2 # From configure.in for Bash 2.05a, version 2.128, from autoconf version 2.52.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52 for bash 2.05a.
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.05a'
190 PACKAGE_STRING
='bash 2.05a'
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.05a 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.05a:";;
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 enable arithmetic
for command
678 --enable-array-variables include shell array variables
679 --enable-bang-history turn on csh-style
history substitution
680 --enable-brace-expansion include brace expansion
681 --enable-command-timing enable the
time reserved word and
command timing
682 --enable-cond-command enable the conditional
command
683 --enable-directory-stack enable builtins pushd
/popd
/dirs
684 --enable-disabled-builtins allow disabled builtins to still be invoked
685 --enable-dparen-arithmetic include
((...
)) command
686 --enable-extended-glob include ksh-style extended pattern matching
687 --enable-help-builtin include the
help builtin
688 --enable-history turn on
command history
689 --enable-job-control enable job control features
690 --enable-largefile enable support
for large files
691 --enable-net-redirections enable /dev
/tcp
/host
/port redirection
692 --enable-process-substitution enable process substitution
693 --enable-progcomp enable programmable completion and the complete
builtin
694 --enable-prompt-string-decoding turn on escape character decoding
in prompts
695 --enable-readline turn on
command line editing
696 --enable-restricted enable a restricted shell
697 --enable-select include
select command
698 --enable-usg-echo-default a synonym
for --enable-xpg-echo-default
699 --enable-xpg-echo-default make the
echo builtin expand escape sequences by default
700 --enable-profiling allow profiling with gprof
701 --enable-static-link link bash statically
, for use as a root shell
702 --disable-largefile omit support
for large files
705 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
706 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
707 --with-afs if you are running AFS
708 --with-bash-malloc use the Bash version of malloc
709 --with-curses use the curses library instead of the termcap library
710 --with-gnu-malloc synonym
for --with-bash-malloc
711 --with-installed-readline use a version of the readline library that is already installed
712 --with-purecov configure to postprocess with pure coverage
713 --with-purify configure to postprocess with purify
715 Some influential environment variables
:
716 CC C compiler
command
717 CFLAGS C compiler flags
718 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
719 nonstandard directory
<lib dir
>
720 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
721 headers
in a nonstandard directory
<include dir
>
724 Use these variables to override the choices made by
`configure' or to help
725 it to find libraries and programs with nonstandard names/locations.
727 Report bugs to <bug-bash@gnu.org>.
731 if test "$ac_init_help" = "recursive"; then
732 # If there are subdirs, report their specific --help.
734 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
736 # A "../" for each directory in /$ac_subdir.
737 ac_dots=`echo $ac_subdir |
738 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
741 .) # No --srcdir option. We are building in place.
742 ac_sub_srcdir=$srcdir ;;
743 [\\/]* | ?:[\\/]* ) # Absolute path.
744 ac_sub_srcdir=$srcdir/$ac_subdir ;;
746 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
749 # Check for guested configure; otherwise get Cygnus style configure.
750 if test -f $ac_sub_srcdir/configure.gnu; then
752 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
753 elif test -f $ac_sub_srcdir/configure; then
755 $SHELL $ac_sub_srcdir/configure --help=recursive
756 elif test -f $ac_sub_srcdir/configure.ac ||
757 test -f $ac_sub_srcdir/configure.in; then
761 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
767 test -n "$ac_init_help" && exit 0
768 if $ac_init_version; then
771 generated by GNU Autoconf 2.52
773 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
774 Free Software Foundation, Inc.
775 This configure script is free software; the Free Software Foundation
776 gives unlimited permission to copy, distribute and modify it.
782 This file contains any messages produced by compilers while
783 running configure, to aid debugging if configure makes a mistake.
785 It was created by bash $as_me 2.05a, which was
786 generated by GNU Autoconf 2.52. Invocation command line was
797 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
798 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
799 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
800 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
801 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
803 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
804 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
806 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
807 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
808 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
809 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
810 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
811 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
812 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
826 # Keep a trace of the command line.
827 # Strip out --no-create and --no-recursion so they do not pile up.
828 # Also quote any args containing shell meta-characters.
834 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
835 | --no-cr | --no-c) ;;
836 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
837 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
838 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
839 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
840 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
842 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
845 # Get rid of the leading space.
848 # When interrupted or exit'd, cleanup temporary files, and complete
849 # config.log. We remove comments because anyway the quotes in there
850 # would cause problems or look ugly.
852 # Save into config.log some information that might help in debugging.
854 echo "## ----------------- ##" >&5
855 echo "## Cache variables. ##" >&5
856 echo "## ----------------- ##" >&5
858 # The following way of writing the cache mishandles newlines in values,
861 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
864 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
869 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
873 sed "/^$/d" confdefs.h >conftest.log
874 if test -s conftest.log; then
876 echo "## ------------ ##" >&5
877 echo "## confdefs.h. ##" >&5
878 echo "## ------------ ##" >&5
883 test "$ac_signal" != 0 &&
884 echo "$as_me: caught signal $ac_signal" >&5
885 echo "$as_me: exit $exit_status" >&5
886 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
889 for ac_signal in 1 2 13 15; do
890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
895 rm -rf conftest* confdefs.h
896 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
899 # Let the site file select an alternate cache file if it wants to.
900 # Prefer explicitly selected file to automatically selected ones.
901 if test -z "$CONFIG_SITE"; then
902 if test "x$prefix" != xNONE; then
903 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
905 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
908 for ac_site_file in $CONFIG_SITE; do
909 if test -r "$ac_site_file"; then
910 { echo "$as_me:910: loading site script $ac_site_file" >&5
911 echo "$as_me: loading site script $ac_site_file" >&6;}
912 cat "$ac_site_file" >&5
917 if test -r "$cache_file"; then
918 # Some versions of bash will fail to source /dev/null (special
919 # files actually), so we avoid doing that.
920 if test -f "$cache_file"; then
921 { echo "$as_me:921: loading cache $cache_file" >&5
922 echo "$as_me: loading cache $cache_file" >&6;}
924 [\\/]* | ?:[\\/]* ) . $cache_file;;
929 { echo "$as_me:929: creating cache $cache_file" >&5
930 echo "$as_me: creating cache $cache_file" >&6;}
934 # Check that the precious variables saved in the cache have kept the same
936 ac_cache_corrupted=false
937 for ac_var in `(set) 2>&1 |
938 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
939 eval ac_old_set=\$ac_cv_env_${ac_var}_set
940 eval ac_new_set=\$ac_env_${ac_var}_set
941 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
942 eval ac_new_val="\$ac_env_${ac_var}_value"
943 case $ac_old_set,$ac_new_set in
945 { echo "$as_me:945: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
946 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
947 ac_cache_corrupted=: ;;
949 { echo "$as_me:949: error: \`$ac_var' was not
set in the previous run
" >&5
950 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
951 ac_cache_corrupted=: ;;
954 if test "x$ac_old_val" != "x$ac_new_val"; then
955 { echo "$as_me:955: error: \`$ac_var' has changed since the previous run:" >&5
956 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
957 { echo "$as_me:957: former value
: $ac_old_val" >&5
958 echo "$as_me: former value
: $ac_old_val" >&2;}
959 { echo "$as_me:959: current value
: $ac_new_val" >&5
960 echo "$as_me: current value
: $ac_new_val" >&2;}
964 # Pass precious variables to config.status. It doesn't matter if
965 # we pass some twice (in addition to the command line arguments).
966 if test "$ac_new_set" = set; then
968 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
970 ac_configure_args="$ac_configure_args '$ac_arg'"
972 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
977 if $ac_cache_corrupted; then
978 { echo "$as_me:978: error
: changes
in the environment can compromise the build
" >&5
979 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
980 { { echo "$as_me:980: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
981 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
982 { (exit 1); exit 1; }; }
986 ac_cpp='$CPP $CPPFLAGS'
987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
991 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
992 *c*,-n*) ECHO_N= ECHO_C='
994 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
995 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
997 echo "#! $SHELL" >conftest.sh
998 echo "exit 0" >>conftest.sh
1000 if { (echo "$as_me:1000: PATH=\".;.\"; conftest.sh") >&5
1001 (PATH=".;."; conftest.sh) 2>&5
1003 echo "$as_me:1003: \$? = $ac_status" >&5
1004 (exit $ac_status); }; then
1005 ac_path_separator=';'
1009 PATH_SEPARATOR="$ac_path_separator"
1013 for ac_dir in ./support $srcdir/./support; do
1014 if test -f $ac_dir/install-sh; then
1016 ac_install_sh="$ac_aux_dir/install-sh -c"
1018 elif test -f $ac_dir/install.sh; then
1020 ac_install_sh="$ac_aux_dir/install.sh -c"
1022 elif test -f $ac_dir/shtool; then
1024 ac_install_sh="$ac_aux_dir/shtool install -c"
1028 if test -z "$ac_aux_dir"; then
1029 { { echo "$as_me:1029: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1030 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1031 { (exit 1); exit 1; }; }
1033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1035 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1037 ac_config_headers="$ac_config_headers config.h"
1041 # Make sure we can run config.sub.
1042 $ac_config_sub sun4 >/dev/null 2>&1 ||
1043 { { echo "$as_me:1043: error: cannot run $ac_config_sub" >&5
1044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1045 { (exit 1); exit 1; }; }
1047 echo "$as_me:1047: checking build system type" >&5
1048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1049 if test "${ac_cv_build+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1052 ac_cv_build_alias=$build_alias
1053 test -z "$ac_cv_build_alias" &&
1054 ac_cv_build_alias=`$ac_config_guess`
1055 test -z "$ac_cv_build_alias" &&
1056 { { echo "$as_me:1056: error: cannot guess build type; you must specify one" >&5
1057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1058 { (exit 1); exit 1; }; }
1059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1060 { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1062 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: result: $ac_cv_build" >&5
1066 echo "${ECHO_T}$ac_cv_build" >&6
1068 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 echo "$as_me:1072: checking host system type" >&5
1073 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1074 if test "${ac_cv_host+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 ac_cv_host_alias=$host_alias
1078 test -z "$ac_cv_host_alias" &&
1079 ac_cv_host_alias=$ac_cv_build_alias
1080 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1081 { { echo "$as_me:1081: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1082 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1083 { (exit 1); exit 1; }; }
1086 echo "$as_me:1086: result: $ac_cv_host" >&5
1087 echo "${ECHO_T}$ac_cv_host" >&6
1089 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1098 opt_with_installed_readline=no
1102 case "${host_cpu}-${host_os}" in
1103 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1104 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1105 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1106 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1107 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1108 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1109 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1110 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1111 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better
1112 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1113 *-aix*) opt_bash_malloc=no ;; # AIX machines
1114 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1115 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1116 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1117 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1118 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1119 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2
1120 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1121 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1122 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1123 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1124 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1127 # Check whether --with-afs or --without-afs was given.
1128 if test "${with_afs+set}" = set; then
1133 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1134 if test "${with_bash_malloc+set}" = set; then
1135 withval="$with_bash_malloc"
1136 opt_bash_malloc=$withval
1139 # Check whether --with-curses or --without-curses was given.
1140 if test "${with_curses+set}" = set; then
1141 withval="$with_curses"
1145 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1146 if test "${with_gnu_malloc+set}" = set; then
1147 withval="$with_gnu_malloc"
1148 opt_bash_malloc=$withval
1151 # Check whether --with-installed-readline or --without-installed-readline was given.
1152 if test "${with_installed_readline+set}" = set; then
1153 withval="$with_installed_readline"
1154 opt_with_installed_readline=$withval
1157 # Check whether --with-purecov or --without-purecov was given.
1158 if test "${with_purecov+set}" = set; then
1159 withval="$with_purecov"
1160 opt_purecov=$withval
1163 # Check whether --with-purify or --without-purify was given.
1164 if test "${with_purify+set}" = set; then
1165 withval="$with_purify"
1169 if test "$opt_bash_malloc" = yes; then
1170 MALLOC_TARGET=malloc
1173 MALLOC_LIB='-lmalloc'
1174 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1175 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1176 MALLOC_DEP='$(MALLOC_LIBRARY)'
1178 cat >>confdefs.h <<\EOF
1179 #define USING_BASH_MALLOC 1
1189 if test "$opt_purify" = yes; then
1195 if test "$opt_purecov" = yes; then
1196 PURIFY="${PURIFY}purecov"
1199 if test "$opt_afs" = yes; then
1200 cat >>confdefs.h <<\EOF
1206 if test "$opt_curses" = yes; then
1210 opt_minimal_config=no
1216 opt_bang_history=yes
1219 opt_process_subst=yes
1220 opt_prompt_decoding=yes
1223 opt_array_variables=yes
1224 opt_dparen_arith=yes
1225 opt_extended_glob=yes
1226 opt_brace_expansion=yes
1227 opt_disabled_builtins=no
1228 opt_command_timing=yes
1230 opt_cond_command=yes
1231 opt_arith_for_command=yes
1239 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1240 if test "${enable_minimal_config+set}" = set; then
1241 enableval="$enable_minimal_config"
1242 opt_minimal_config=$enableval
1245 if test $opt_minimal_config = yes; then
1246 opt_job_control=no opt_alias=no opt_readline=no
1247 opt_history=no opt_bang_history=no opt_dirstack=no
1248 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1249 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1250 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1251 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1252 opt_net_redirs=no opt_progcomp=no
1255 # Check whether --enable-alias or --disable-alias was given.
1256 if test "${enable_alias+set}" = set; then
1257 enableval="$enable_alias"
1258 opt_alias=$enableval
1260 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1261 if test "${enable_arith_for_command+set}" = set; then
1262 enableval="$enable_arith_for_command"
1263 opt_arith_for_command=$enableval
1265 # Check whether --enable-array-variables or --disable-array-variables was given.
1266 if test "${enable_array_variables+set}" = set; then
1267 enableval="$enable_array_variables"
1268 opt_array_variables=$enableval
1270 # Check whether --enable-bang-history or --disable-bang-history was given.
1271 if test "${enable_bang_history+set}" = set; then
1272 enableval="$enable_bang_history"
1273 opt_bang_history=$enableval
1275 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1276 if test "${enable_brace_expansion+set}" = set; then
1277 enableval="$enable_brace_expansion"
1278 opt_brace_expansion=$enableval
1280 # Check whether --enable-command-timing or --disable-command-timing was given.
1281 if test "${enable_command_timing+set}" = set; then
1282 enableval="$enable_command_timing"
1283 opt_command_timing=$enableval
1285 # Check whether --enable-cond-command or --disable-cond-command was given.
1286 if test "${enable_cond_command+set}" = set; then
1287 enableval="$enable_cond_command"
1288 opt_cond_command=$enableval
1290 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1291 if test "${enable_directory_stack+set}" = set; then
1292 enableval="$enable_directory_stack"
1293 opt_dirstack=$enableval
1295 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1296 if test "${enable_disabled_builtins+set}" = set; then
1297 enableval="$enable_disabled_builtins"
1298 opt_disabled_builtins=$enableval
1300 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1301 if test "${enable_dparen_arithmetic+set}" = set; then
1302 enableval="$enable_dparen_arithmetic"
1303 opt_dparen_arith=$enableval
1305 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1306 if test "${enable_extended_glob+set}" = set; then
1307 enableval="$enable_extended_glob"
1308 opt_extended_glob=$enableval
1310 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1311 if test "${enable_help_builtin+set}" = set; then
1312 enableval="$enable_help_builtin"
1315 # Check whether --enable-history or --disable-history was given.
1316 if test "${enable_history+set}" = set; then
1317 enableval="$enable_history"
1318 opt_history=$enableval
1320 # Check whether --enable-job-control or --disable-job-control was given.
1321 if test "${enable_job_control+set}" = set; then
1322 enableval="$enable_job_control"
1323 opt_job_control=$enableval
1325 # Check whether --enable-largefile or --disable-largefile was given.
1326 if test "${enable_largefile+set}" = set; then
1327 enableval="$enable_largefile"
1328 opt_largefile=$enableval
1330 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1331 if test "${enable_net_redirections+set}" = set; then
1332 enableval="$enable_net_redirections"
1333 opt_net_redirs=$enableval
1335 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1336 if test "${enable_process_substitution+set}" = set; then
1337 enableval="$enable_process_substitution"
1338 opt_process_subst=$enableval
1340 # Check whether --enable-progcomp or --disable-progcomp was given.
1341 if test "${enable_progcomp+set}" = set; then
1342 enableval="$enable_progcomp"
1343 opt_progcomp=$enableval
1345 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1346 if test "${enable_prompt_string_decoding+set}" = set; then
1347 enableval="$enable_prompt_string_decoding"
1348 opt_prompt_decoding=$enableval
1350 # Check whether --enable-readline or --disable-readline was given.
1351 if test "${enable_readline+set}" = set; then
1352 enableval="$enable_readline"
1353 opt_readline=$enableval
1355 # Check whether --enable-restricted or --disable-restricted was given.
1356 if test "${enable_restricted+set}" = set; then
1357 enableval="$enable_restricted"
1358 opt_restricted=$enableval
1360 # Check whether --enable-select or --disable-select was given.
1361 if test "${enable_select+set}" = set; then
1362 enableval="$enable_select"
1363 opt_select=$enableval
1365 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1366 if test "${enable_usg_echo_default+set}" = set; then
1367 enableval="$enable_usg_echo_default"
1368 opt_xpg_echo=$enableval
1370 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1371 if test "${enable_xpg_echo_default+set}" = set; then
1372 enableval="$enable_xpg_echo_default"
1373 opt_xpg_echo=$enableval
1376 # Check whether --enable-profiling or --disable-profiling was given.
1377 if test "${enable_profiling+set}" = set; then
1378 enableval="$enable_profiling"
1379 opt_profiling=$enableval
1381 # Check whether --enable-static-link or --disable-static-link was given.
1382 if test "${enable_static_link+set}" = set; then
1383 enableval="$enable_static_link"
1384 opt_static_link=$enableval
1387 if test $opt_alias = yes; then
1388 cat >>confdefs.h <<\EOF
1393 if test $opt_dirstack = yes; then
1394 cat >>confdefs.h <<\EOF
1395 #define PUSHD_AND_POPD 1
1399 if test $opt_restricted = yes; then
1400 cat >>confdefs.h <<\EOF
1401 #define RESTRICTED_SHELL 1
1405 if test $opt_process_subst = yes; then
1406 cat >>confdefs.h <<\EOF
1407 #define PROCESS_SUBSTITUTION 1
1411 if test $opt_prompt_decoding = yes; then
1412 cat >>confdefs.h <<\EOF
1413 #define PROMPT_STRING_DECODE 1
1417 if test $opt_select = yes; then
1418 cat >>confdefs.h <<\EOF
1419 #define SELECT_COMMAND 1
1423 if test $opt_help = yes; then
1424 cat >>confdefs.h <<\EOF
1425 #define HELP_BUILTIN 1
1429 if test $opt_array_variables = yes; then
1430 cat >>confdefs.h <<\EOF
1431 #define ARRAY_VARS 1
1435 if test $opt_dparen_arith = yes; then
1436 cat >>confdefs.h <<\EOF
1437 #define DPAREN_ARITHMETIC 1
1441 if test $opt_brace_expansion = yes; then
1442 cat >>confdefs.h <<\EOF
1443 #define BRACE_EXPANSION 1
1447 if test $opt_disabled_builtins = yes; then
1448 cat >>confdefs.h <<\EOF
1449 #define DISABLED_BUILTINS 1
1453 if test $opt_command_timing = yes; then
1454 cat >>confdefs.h <<\EOF
1455 #define COMMAND_TIMING 1
1459 if test $opt_xpg_echo = yes ; then
1460 cat >>confdefs.h <<\EOF
1461 #define DEFAULT_ECHO_TO_XPG 1
1465 if test $opt_extended_glob = yes ; then
1466 cat >>confdefs.h <<\EOF
1467 #define EXTENDED_GLOB 1
1471 if test $opt_cond_command = yes ; then
1472 cat >>confdefs.h <<\EOF
1473 #define COND_COMMAND 1
1477 if test $opt_arith_for_command = yes; then
1478 cat >>confdefs.h <<\EOF
1479 #define ARITH_FOR_COMMAND 1
1483 if test $opt_net_redirs = yes; then
1484 cat >>confdefs.h <<\EOF
1485 #define NETWORK_REDIRECTIONS 1
1489 if test $opt_progcomp = yes; then
1490 cat >>confdefs.h <<\EOF
1491 #define PROGRAMMABLE_COMPLETION 1
1496 if test "$opt_minimal_config" = yes; then
1497 TESTSCRIPT=run-minimal
1503 echo "Beginning configuration for bash-$BASHVERS for ${host_cpu}-${host_vendor}-${host_os}"
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1514 echo "$as_me:1514: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$CC"; then
1520 ac_cv_prog_CC="$CC" # Let the user override the test.
1522 ac_save_IFS=$IFS; IFS=$ac_path_separator
1524 for ac_dir in $ac_dummy; do
1526 test -z "$ac_dir" && ac_dir=.
1527 $as_executable_p "$ac_dir/$ac_word" || continue
1528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1529 echo "$as_me:1529: found $ac_dir/$ac_word" >&5
1536 if test -n "$CC"; then
1537 echo "$as_me:1537: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1540 echo "$as_me:1540: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1545 if test -z "$ac_cv_prog_CC"; then
1547 # Extract the first word of "gcc", so it can be a program name with args.
1548 set dummy gcc; ac_word=$2
1549 echo "$as_me:1549: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1557 ac_save_IFS=$IFS; IFS=$ac_path_separator
1559 for ac_dir in $ac_dummy; do
1561 test -z "$ac_dir" && ac_dir=.
1562 $as_executable_p "$ac_dir/$ac_word" || continue
1563 ac_cv_prog_ac_ct_CC="gcc"
1564 echo "$as_me:1564: found $ac_dir/$ac_word" >&5
1570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571 if test -n "$ac_ct_CC"; then
1572 echo "$as_me:1572: result: $ac_ct_CC" >&5
1573 echo "${ECHO_T}$ac_ct_CC" >&6
1575 echo "$as_me:1575: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1584 if test -z "$CC"; then
1585 if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1587 set dummy ${ac_tool_prefix}cc; ac_word=$2
1588 echo "$as_me:1588: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1596 ac_save_IFS=$IFS; IFS=$ac_path_separator
1598 for ac_dir in $ac_dummy; do
1600 test -z "$ac_dir" && ac_dir=.
1601 $as_executable_p "$ac_dir/$ac_word" || continue
1602 ac_cv_prog_CC="${ac_tool_prefix}cc"
1603 echo "$as_me:1603: found $ac_dir/$ac_word" >&5
1610 if test -n "$CC"; then
1611 echo "$as_me:1611: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1614 echo "$as_me:1614: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1619 if test -z "$ac_cv_prog_CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:1623: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$ac_ct_CC"; then
1629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1631 ac_save_IFS=$IFS; IFS=$ac_path_separator
1633 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 $as_executable_p "$ac_dir/$ac_word" || continue
1637 ac_cv_prog_ac_ct_CC="cc"
1638 echo "$as_me:1638: found $ac_dir/$ac_word" >&5
1644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1645 if test -n "$ac_ct_CC"; then
1646 echo "$as_me:1646: result: $ac_ct_CC" >&5
1647 echo "${ECHO_T}$ac_ct_CC" >&6
1649 echo "$as_me:1649: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1659 if test -z "$CC"; then
1660 # Extract the first word of "cc", so it can be a program name with args.
1661 set dummy cc; ac_word=$2
1662 echo "$as_me:1662: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$CC"; then
1668 ac_cv_prog_CC="$CC" # Let the user override the test.
1671 ac_save_IFS=$IFS; IFS=$ac_path_separator
1673 for ac_dir in $ac_dummy; do
1675 test -z "$ac_dir" && ac_dir=.
1676 $as_executable_p "$ac_dir/$ac_word" || continue
1677 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1678 ac_prog_rejected=yes
1682 echo "$as_me:1682: found $ac_dir/$ac_word" >&5
1686 if test $ac_prog_rejected = yes; then
1687 # We found a bogon in the path, so make sure we never use it.
1688 set dummy $ac_cv_prog_CC
1690 if test $# != 0; then
1691 # We chose a different compiler from the bogus one.
1692 # However, it has the same basename, so the bogon will be chosen
1693 # first if we set CC to just the basename; use the full file name.
1695 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1703 if test -n "$CC"; then
1704 echo "$as_me:1704: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1707 echo "$as_me:1707: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1712 if test -z "$CC"; then
1713 if test -n "$ac_tool_prefix"; then
1716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1718 echo "$as_me:1718: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 ac_save_IFS=$IFS; IFS=$ac_path_separator
1728 for ac_dir in $ac_dummy; do
1730 test -z "$ac_dir" && ac_dir=.
1731 $as_executable_p "$ac_dir/$ac_word" || continue
1732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1733 echo "$as_me:1733: found $ac_dir/$ac_word" >&5
1740 if test -n "$CC"; then
1741 echo "$as_me:1741: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1744 echo "$as_me:1744: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 test -n "$CC" && break
1751 if test -z "$CC"; then
1755 # Extract the first word of "$ac_prog", so it can be a program name with args.
1756 set dummy $ac_prog; ac_word=$2
1757 echo "$as_me:1757: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$ac_ct_CC"; then
1763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765 ac_save_IFS=$IFS; IFS=$ac_path_separator
1767 for ac_dir in $ac_dummy; do
1769 test -z "$ac_dir" && ac_dir=.
1770 $as_executable_p "$ac_dir/$ac_word" || continue
1771 ac_cv_prog_ac_ct_CC="$ac_prog"
1772 echo "$as_me:1772: found $ac_dir/$ac_word" >&5
1778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1779 if test -n "$ac_ct_CC"; then
1780 echo "$as_me:1780: result: $ac_ct_CC" >&5
1781 echo "${ECHO_T}$ac_ct_CC" >&6
1783 echo "$as_me:1783: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1787 test -n "$ac_ct_CC" && break
1795 test -z "$CC" && { { echo "$as_me:1795: error: no acceptable cc found in \$PATH" >&5
1796 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1797 { (exit 1); exit 1; }; }
1799 # Provide some information about the compiler.
1800 echo "$as_me:1800:" \
1801 "checking for C compiler version" >&5
1802 ac_compiler=`set X
$ac_compile; echo $2`
1803 { (eval echo "$as_me:1803: \"$ac_compiler --version </dev/null >&5\"") >&5
1804 (eval $ac_compiler --version </dev/null >&5) 2>&5
1806 echo "$as_me:1806: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1808 { (eval echo "$as_me:1808: \"$ac_compiler -v </dev/null >&5\"") >&5
1809 (eval $ac_compiler -v </dev/null >&5) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1813 { (eval echo "$as_me:1813: \"$ac_compiler -V </dev/null >&5\"") >&5
1814 (eval $ac_compiler -V </dev/null >&5) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); }
1819 cat >conftest.$ac_ext <<_ACEOF
1820 #line 1820 "configure"
1821 #include "confdefs.h"
1831 ac_clean_files_save=$ac_clean_files
1832 ac_clean_files="$ac_clean_files a.out a.exe"
1833 # Try to create an executable without -o first, disregard a.out.
1834 # It will help us diagnose broken compilers, and finding out an intuition
1836 echo "$as_me:1836: checking for C compiler default output" >&5
1837 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1838 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1839 if { (eval echo "$as_me:1839: \"$ac_link_default\"") >&5
1840 (eval $ac_link_default) 2>&5
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); }; then
1844 # Find the output, starting from the most likely. This scheme is
1845 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1847 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1848 ls a.out conftest 2>/dev/null;
1849 ls a.* conftest.* 2>/dev/null`; do
1851 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1852 a.out ) # We found the default executable, but exeext='' is most
1855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.
]*\
(\..
*\
)'`
1856 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1863 echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 { { echo "$as_me:1865: error: C compiler cannot create executables" >&5
1866 echo "$as_me: error: C compiler cannot create executables" >&2;}
1867 { (exit 77); exit 77; }; }
1870 ac_exeext=$ac_cv_exeext
1871 echo "$as_me:1871: result: $ac_file" >&5
1872 echo "${ECHO_T}$ac_file" >&6
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:1876: checking whether the C compiler works" >&5
1877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1879 # If not cross compiling, check that we can run a simple program.
1880 if test "$cross_compiling" != yes; then
1881 if { ac_try='.
/$ac_file'
1882 { (eval echo "$as_me:1882: \"$ac_try\"") >&5
1885 echo "$as_me:1885: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1889 if test "$cross_compiling" = maybe; then
1892 { { echo "$as_me:1892: error: cannot run C compiled programs.
1893 If you meant to cross compile, use \`--host'.
" >&5
1894 echo "$as_me: error
: cannot run C compiled programs.
1895 If you meant to cross compile
, use \
`--host'." >&2;}
1896 { (exit 1); exit 1; }; }
1900 echo "$as_me:1900: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1903 rm -f a.out a.exe conftest$ac_cv_exeext
1904 ac_clean_files=$ac_clean_files_save
1905 # Check the compiler produces executables we can run. If not, either
1906 # the compiler is broken, or we cross compile.
1907 echo "$as_me:1907: checking whether we are cross compiling" >&5
1908 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1909 echo "$as_me:1909: result: $cross_compiling" >&5
1910 echo "${ECHO_T}$cross_compiling" >&6
1912 echo "$as_me:1912: checking for executable suffix" >&5
1913 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1914 if { (eval echo "$as_me:1914: \"$ac_link\"") >&5
1915 (eval $ac_link) 2>&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); }; then
1919 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1920 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1921 # work properly (i.e., refer to `conftest.exe'), while it won't with
1923 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1925 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1926 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933 { { echo "$as_me:1933: error: cannot compute EXEEXT: cannot compile and link" >&5
1934 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1935 { (exit 1); exit 1; }; }
1938 rm -f conftest
$ac_cv_exeext
1939 echo "$as_me:1939: result: $ac_cv_exeext" >&5
1940 echo "${ECHO_T}$ac_cv_exeext" >&6
1942 rm -f conftest.
$ac_ext
1943 EXEEXT
=$ac_cv_exeext
1945 echo "$as_me:1945: checking for object suffix" >&5
1946 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1947 if test "${ac_cv_objext+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.
$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1962 rm -f conftest.o conftest.obj
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); }; then
1968 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1970 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1971 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1976 echo "$as_me: failed program was:" >&5
1977 cat conftest.
$ac_ext >&5
1978 { { echo "$as_me:1978: error: cannot compute OBJEXT: cannot compile" >&5
1979 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1980 { (exit 1); exit 1; }; }
1983 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1985 echo "$as_me:1985: result: $ac_cv_objext" >&5
1986 echo "${ECHO_T}$ac_cv_objext" >&6
1987 OBJEXT
=$ac_cv_objext
1989 echo "$as_me:1989: checking whether we are using the GNU C compiler" >&5
1990 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1991 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 cat >conftest.
$ac_ext <<_ACEOF
1995 #line 1995 "configure"
1996 #include "confdefs.h"
2009 rm -f conftest.
$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try
='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.
$ac_ext >&5
2027 rm -f conftest.
$ac_objext conftest.
$ac_ext
2028 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2031 echo "$as_me:2031: result: $ac_cv_c_compiler_gnu" >&5
2032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2033 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2034 ac_test_CFLAGS
=${CFLAGS+set}
2035 ac_save_CFLAGS
=$CFLAGS
2037 echo "$as_me:2037: checking whether $CC accepts -g" >&5
2038 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2039 if test "${ac_cv_prog_cc_g+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 cat >conftest.
$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2054 rm -f conftest.
$ac_objext
2055 if { (eval echo "$as_me:2055: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>&5
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try
='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:2061: \"$ac_try\"") >&5
2064 echo "$as_me:2064: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 cat conftest.
$ac_ext >&5
2072 rm -f conftest.
$ac_objext conftest.
$ac_ext
2074 echo "$as_me:2074: result: $ac_cv_prog_cc_g" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2076 if test "$ac_test_CFLAGS" = set; then
2077 CFLAGS
=$ac_save_CFLAGS
2078 elif test $ac_cv_prog_cc_g = yes; then
2079 if test "$GCC" = yes; then
2085 if test "$GCC" = yes; then
2091 # Some people use a C++ compiler to compile C. Since we use `exit',
2092 # in C++ we need to declare it. In case someone uses the same compiler
2093 # for both compiling C and C++ we need to have the C++ compiler decide
2094 # the declaration of exit, since it's the most demanding environment.
2095 cat >conftest.
$ac_ext <<_ACEOF
2100 rm -f conftest.
$ac_objext
2101 if { (eval echo "$as_me:2101: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try
='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:2107: \"$ac_try\"") >&5
2110 echo "$as_me:2110: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 for ac_declaration
in \
2114 '#include <stdlib.h>' \
2115 'extern "C" void std::exit (int) throw (); using std::exit;' \
2116 'extern "C" void std::exit (int); using std::exit;' \
2117 'extern "C" void exit (int) throw ();' \
2118 'extern "C" void exit (int);' \
2121 cat >conftest.
$ac_ext <<_ACEOF
2122 #line 2122 "configure"
2123 #include "confdefs.h"
2134 rm -f conftest.
$ac_objext
2135 if { (eval echo "$as_me:2135: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>&5
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try
='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:2141: \"$ac_try\"") >&5
2144 echo "$as_me:2144: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2148 echo "$as_me: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2152 rm -f conftest.
$ac_objext conftest.
$ac_ext
2153 cat >conftest.
$ac_ext <<_ACEOF
2154 #line 2154 "configure"
2155 #include "confdefs.h"
2165 rm -f conftest.
$ac_objext
2166 if { (eval echo "$as_me:2166: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>&5
2169 echo "$as_me:2169: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try
='test -s conftest.$ac_objext'
2172 { (eval echo "$as_me:2172: \"$ac_try\"") >&5
2175 echo "$as_me:2175: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2179 echo "$as_me: failed program was:" >&5
2180 cat conftest.
$ac_ext >&5
2182 rm -f conftest.
$ac_objext conftest.
$ac_ext
2185 if test -n "$ac_declaration"; then
2186 echo '#ifdef __cplusplus' >>confdefs.h
2187 echo $ac_declaration >>confdefs.h
2188 echo '#endif' >>confdefs.h
2192 echo "$as_me: failed program was:" >&5
2193 cat conftest.
$ac_ext >&5
2195 rm -f conftest.
$ac_objext conftest.
$ac_ext
2197 ac_cpp
='$CPP $CPPFLAGS'
2198 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2202 echo "$as_me:2202: checking for POSIXized ISC" >&5
2203 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2204 if test -d /etc
/conf
/kconfig.d
&&
2205 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2207 echo "$as_me:2207: result: yes" >&5
2208 echo "${ECHO_T}yes" >&6
2209 ISC
=yes # If later tests want to check for ISC.
2211 cat >>confdefs.h
<<\EOF
2212 #define _POSIX_SOURCE 1
2215 if test "$GCC" = yes; then
2221 echo "$as_me:2221: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2227 ac_cpp
='$CPP $CPPFLAGS'
2228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2231 echo "$as_me:2231: checking how to run the C preprocessor" >&5
2232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2233 # On Suns, sometimes $CPP names a directory.
2234 if test -n "$CPP" && test -d "$CPP"; then
2237 if test -z "$CPP"; then
2238 if test "${ac_cv_prog_CPP+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 # Double quotes because CPP needs to be expanded
2242 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2245 for ac_c_preproc_warn_flag
in '' yes
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
2249 # On the NeXT, cc -E runs the code through the compiler's parser,
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.
$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2257 if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2260 egrep -v '^ *\+' conftest.er1
>conftest.err
2262 cat conftest.err
>&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev
/null
; then
2265 if test -s conftest.err
; then
2266 ac_cpp_err
=$ac_c_preproc_warn_flag
2273 if test -z "$ac_cpp_err"; then
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2278 # Broken: fails on valid input.
2281 rm -f conftest.err conftest.
$ac_ext
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.
$ac_ext <<_ACEOF
2286 #line 2286 "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2290 if { (eval echo "$as_me:2290: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2293 egrep -v '^ *\+' conftest.er1
>conftest.err
2295 cat conftest.err
>&5
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); } >/dev
/null
; then
2298 if test -s conftest.err
; then
2299 ac_cpp_err
=$ac_c_preproc_warn_flag
2306 if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.
$ac_ext >&5
2312 # Passes both tests.
2316 rm -f conftest.err conftest.
$ac_ext
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.
$ac_ext
2321 if $ac_preproc_ok; then
2333 echo "$as_me:2333: result: $CPP" >&5
2334 echo "${ECHO_T}$CPP" >&6
2336 for ac_c_preproc_warn_flag
in '' yes
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # On the NeXT, cc -E runs the code through the compiler's parser,
2341 # not just through cpp. "Syntax error" is here to catch this case.
2342 cat >conftest.
$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2348 if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2351 egrep -v '^ *\+' conftest.er1
>conftest.err
2353 cat conftest.err
>&5
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); } >/dev
/null
; then
2356 if test -s conftest.err
; then
2357 ac_cpp_err
=$ac_c_preproc_warn_flag
2364 if test -z "$ac_cpp_err"; then
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.
$ac_ext >&5
2369 # Broken: fails on valid input.
2372 rm -f conftest.err conftest.
$ac_ext
2374 # OK, works on sane cases. Now check whether non-existent headers
2375 # can be detected and how.
2376 cat >conftest.
$ac_ext <<_ACEOF
2377 #line 2377 "configure"
2378 #include "confdefs.h"
2379 #include <ac_nonexistent.h>
2381 if { (eval echo "$as_me:2381: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2384 egrep -v '^ *\+' conftest.er1
>conftest.err
2386 cat conftest.err
>&5
2387 echo "$as_me:2387: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev
/null
; then
2389 if test -s conftest.err
; then
2390 ac_cpp_err
=$ac_c_preproc_warn_flag
2397 if test -z "$ac_cpp_err"; then
2398 # Broken: success on invalid input.
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2403 # Passes both tests.
2407 rm -f conftest.err conftest.
$ac_ext
2410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411 rm -f conftest.err conftest.
$ac_ext
2412 if $ac_preproc_ok; then
2415 { { echo "$as_me:2415: error: C preprocessor \"$CPP\" fails sanity check" >&5
2416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2417 { (exit 1); exit 1; }; }
2421 ac_cpp
='$CPP $CPPFLAGS'
2422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2426 echo "$as_me:2426: checking for minix/config.h" >&5
2427 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2428 if test "${ac_cv_header_minix_config_h+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 cat >conftest.
$ac_ext <<_ACEOF
2432 #line 2432 "configure"
2433 #include "confdefs.h"
2434 #include <minix/config.h>
2436 if { (eval echo "$as_me:2436: \"$ac_cpp conftest.$ac_ext\"") >&5
2437 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2439 egrep -v '^ *\+' conftest.er1
>conftest.err
2441 cat conftest.err
>&5
2442 echo "$as_me:2442: \$? = $ac_status" >&5
2443 (exit $ac_status); } >/dev
/null
; then
2444 if test -s conftest.err
; then
2445 ac_cpp_err
=$ac_c_preproc_warn_flag
2452 if test -z "$ac_cpp_err"; then
2453 ac_cv_header_minix_config_h
=yes
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2457 ac_cv_header_minix_config_h
=no
2459 rm -f conftest.err conftest.
$ac_ext
2461 echo "$as_me:2461: result: $ac_cv_header_minix_config_h" >&5
2462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2463 if test $ac_cv_header_minix_config_h = yes; then
2469 if test "$MINIX" = yes; then
2471 cat >>confdefs.h
<<\EOF
2472 #define _POSIX_SOURCE 1
2475 cat >>confdefs.h
<<\EOF
2476 #define _POSIX_1_SOURCE 2
2479 cat >>confdefs.h
<<\EOF
2486 *cygwin
* ) CYGWIN
=yes;;
2491 *mingw32
* ) MINGW32
=yes;;
2495 # Check whether --enable-largefile or --disable-largefile was given.
2496 if test "${enable_largefile+set}" = set; then
2497 enableval
="$enable_largefile"
2500 if test "$enable_largefile" != no
; then
2502 echo "$as_me:2502: checking for special C compiler options needed for large files" >&5
2503 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2504 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_sys_largefile_CC
=no
2508 if test "$GCC" != yes; then
2511 # IRIX 6.2 and later do not support large files by default,
2512 # so use the C compiler's -n32 option if that helps.
2513 cat >conftest.
$ac_ext <<_ACEOF
2514 #line 2514 "configure"
2515 #include "confdefs.h"
2516 #include <sys/types.h>
2517 /* Check that off_t can represent 2**63 - 1 correctly.
2518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2519 since some C++ compilers masquerading as C compilers
2520 incorrectly reject 9223372036854775807. */
2521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2523 && LARGE_OFF_T % 2147483647 == 1)
2533 rm -f conftest.
$ac_objext
2534 if { (eval echo "$as_me:2534: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try
='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 cat conftest.
$ac_ext >&5
2550 rm -f conftest.
$ac_objext
2552 rm -f conftest.
$ac_objext
2553 if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try
='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:2559: \"$ac_try\"") >&5
2562 echo "$as_me:2562: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_sys_largefile_CC
=' -n32'; break
2566 echo "$as_me: failed program was:" >&5
2567 cat conftest.
$ac_ext >&5
2569 rm -f conftest.
$ac_objext
2573 rm -f conftest.
$ac_ext
2576 echo "$as_me:2576: result: $ac_cv_sys_largefile_CC" >&5
2577 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2578 if test "$ac_cv_sys_largefile_CC" != no
; then
2579 CC
=$CC$ac_cv_sys_largefile_CC
2582 echo "$as_me:2582: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2583 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 ac_cv_sys_file_offset_bits
=no
2589 cat >conftest.
$ac_ext <<_ACEOF
2590 #line 2590 "configure"
2591 #include "confdefs.h"
2592 #include <sys/types.h>
2593 /* Check that off_t can represent 2**63 - 1 correctly.
2594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2595 since some C++ compilers masquerading as C compilers
2596 incorrectly reject 9223372036854775807. */
2597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2599 && LARGE_OFF_T % 2147483647 == 1)
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
2623 echo "$as_me: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 rm -f conftest.
$ac_objext conftest.
$ac_ext
2627 cat >conftest.
$ac_ext <<_ACEOF
2628 #line 2628 "configure"
2629 #include "confdefs.h"
2630 #define _FILE_OFFSET_BITS 64
2631 #include <sys/types.h>
2632 /* Check that off_t can represent 2**63 - 1 correctly.
2633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2634 since some C++ compilers masquerading as C compilers
2635 incorrectly reject 9223372036854775807. */
2636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2638 && LARGE_OFF_T % 2147483647 == 1)
2648 rm -f conftest.
$ac_objext
2649 if { (eval echo "$as_me:2649: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try
='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 ac_cv_sys_file_offset_bits
=64; break
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2665 rm -f conftest.
$ac_objext conftest.
$ac_ext
2669 echo "$as_me:2669: result: $ac_cv_sys_file_offset_bits" >&5
2670 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2671 if test "$ac_cv_sys_file_offset_bits" != no
; then
2673 cat >>confdefs.h
<<EOF
2674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2679 echo "$as_me:2679: checking for _LARGE_FILES value needed for large files" >&5
2680 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2681 if test "${ac_cv_sys_large_files+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 ac_cv_sys_large_files
=no
2686 cat >conftest.
$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2689 #include <sys/types.h>
2690 /* Check that off_t can represent 2**63 - 1 correctly.
2691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2692 since some C++ compilers masquerading as C compilers
2693 incorrectly reject 9223372036854775807. */
2694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2696 && LARGE_OFF_T % 2147483647 == 1)
2706 rm -f conftest.
$ac_objext
2707 if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:2710: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try
='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:2713: \"$ac_try\"") >&5
2716 echo "$as_me:2716: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2723 rm -f conftest.
$ac_objext conftest.
$ac_ext
2724 cat >conftest.
$ac_ext <<_ACEOF
2725 #line 2725 "configure"
2726 #include "confdefs.h"
2727 #define _LARGE_FILES 1
2728 #include <sys/types.h>
2729 /* Check that off_t can represent 2**63 - 1 correctly.
2730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2731 since some C++ compilers masquerading as C compilers
2732 incorrectly reject 9223372036854775807. */
2733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2735 && LARGE_OFF_T % 2147483647 == 1)
2745 rm -f conftest.
$ac_objext
2746 if { (eval echo "$as_me:2746: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try
='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:2752: \"$ac_try\"") >&5
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_sys_large_files
=1; break
2759 echo "$as_me: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 rm -f conftest.
$ac_objext conftest.
$ac_ext
2766 echo "$as_me:2766: result: $ac_cv_sys_large_files" >&5
2767 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2768 if test "$ac_cv_sys_large_files" != no
; then
2770 cat >>confdefs.h
<<EOF
2771 #define _LARGE_FILES $ac_cv_sys_large_files
2778 SIGNAMES_H
=lsignames.h
2780 if test "x$cross_compiling" = "xyes"; then
2783 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
2784 SIGNAMES_H
='$(srcdir)/cross-build/win32sig.h'
2787 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
2788 SIGNAMES_H
='${srcdir}/cross-build/beos-sig.h'
2790 *) echo "configure: cross-compiling for $host is not supported" >&2
2793 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2794 echo "loading cross-build cache file ${cross_cache}"
2800 if test -z "$CC_FOR_BUILD"; then
2801 if test "x$cross_compiling" = "xno"; then
2802 CC_FOR_BUILD
='$(CC)'
2808 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
2810 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O2"
2812 if test "$opt_profiling" = "yes"; then
2816 *) opt_static_link
=yes ;;
2820 if test "$opt_static_link" = yes; then
2821 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
2822 if test -n "$GCC" ||
test "$ac_cv_c_compiler_gnu" = "yes"; then
2826 *) LDFLAGS
="$LDFLAGS -static" ;; # XXX experimental
2831 if test $ac_cv_c_compiler_gnu = yes; then
2832 echo "$as_me:2832: checking whether $CC needs -traditional" >&5
2833 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2834 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 ac_pattern
="Autoconf.*'x'"
2838 cat >conftest.
$ac_ext <<_ACEOF
2839 #line 2839 "configure"
2840 #include "confdefs.h"
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "$ac_pattern" >/dev
/null
2>&1; then
2846 ac_cv_prog_gcc_traditional
=yes
2848 ac_cv_prog_gcc_traditional
=no
2852 if test $ac_cv_prog_gcc_traditional = no
; then
2853 cat >conftest.
$ac_ext <<_ACEOF
2854 #line 2854 "configure"
2855 #include "confdefs.h"
2859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860 egrep "$ac_pattern" >/dev
/null
2>&1; then
2861 ac_cv_prog_gcc_traditional
=yes
2867 echo "$as_me:2867: result: $ac_cv_prog_gcc_traditional" >&5
2868 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2869 if test $ac_cv_prog_gcc_traditional = yes; then
2870 CC
="$CC -traditional"
2874 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
2876 echo opt_with_installed_readline
= $opt_with_installed_readline
2877 # If the user specified --with-installed-readline=PREFIX and PREFIX
2878 # is not `yes', set ac_cv_rl_prefix to PREFIX
2879 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
2881 if test "X$bash_cv_termcap_lib" = "X"; then
2884 echo "$as_me:2884: checking which library has the termcap functions" >&5
2885 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
2888 if test "${bash_cv_termcap_lib+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 echo "$as_me:2891: checking for tgetent in -ltermcap" >&5
2892 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2893 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 ac_check_lib_save_LIBS
=$LIBS
2897 LIBS
="-ltermcap $LIBS"
2898 cat >conftest.
$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2902 /* Override any gcc2 internal prototype to avoid an error. */
2906 /* We use char because int might match the return type of a gcc2
2907 builtin and then its argument prototype would still apply. */
2917 rm -f conftest.
$ac_objext conftest
$ac_exeext
2918 if { (eval echo "$as_me:2918: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try
='test -s conftest$ac_exeext'
2924 { (eval echo "$as_me:2924: \"$ac_try\"") >&5
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 ac_cv_lib_termcap_tgetent
=yes
2931 echo "$as_me: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2933 ac_cv_lib_termcap_tgetent
=no
2935 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2936 LIBS
=$ac_check_lib_save_LIBS
2938 echo "$as_me:2938: result: $ac_cv_lib_termcap_tgetent" >&5
2939 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
2940 if test $ac_cv_lib_termcap_tgetent = yes; then
2941 bash_cv_termcap_lib
=libtermcap
2943 echo "$as_me:2943: checking for tgetent in -ltinfo" >&5
2944 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
2945 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 ac_check_lib_save_LIBS
=$LIBS
2949 LIBS
="-ltinfo $LIBS"
2950 cat >conftest.
$ac_ext <<_ACEOF
2951 #line 2951 "configure"
2952 #include "confdefs.h"
2954 /* Override any gcc2 internal prototype to avoid an error. */
2958 /* We use char because int might match the return type of a gcc2
2959 builtin and then its argument prototype would still apply. */
2969 rm -f conftest.
$ac_objext conftest
$ac_exeext
2970 if { (eval echo "$as_me:2970: \"$ac_link\"") >&5
2971 (eval $ac_link) 2>&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try
='test -s conftest$ac_exeext'
2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_cv_lib_tinfo_tgetent
=yes
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2985 ac_cv_lib_tinfo_tgetent
=no
2987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2988 LIBS
=$ac_check_lib_save_LIBS
2990 echo "$as_me:2990: result: $ac_cv_lib_tinfo_tgetent" >&5
2991 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
2992 if test $ac_cv_lib_tinfo_tgetent = yes; then
2993 bash_cv_termcal_lib
=libtinfo
2995 echo "$as_me:2995: checking for tgetent in -lcurses" >&5
2996 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
2997 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 ac_check_lib_save_LIBS
=$LIBS
3001 LIBS
="-lcurses $LIBS"
3002 cat >conftest.
$ac_ext <<_ACEOF
3003 #line 3003 "configure"
3004 #include "confdefs.h"
3006 /* Override any gcc2 internal prototype to avoid an error. */
3010 /* We use char because int might match the return type of a gcc2
3011 builtin and then its argument prototype would still apply. */
3021 rm -f conftest.
$ac_objext conftest
$ac_exeext
3022 if { (eval echo "$as_me:3022: \"$ac_link\"") >&5
3023 (eval $ac_link) 2>&5
3025 echo "$as_me:3025: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try
='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:3028: \"$ac_try\"") >&5
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_lib_curses_tgetent
=yes
3035 echo "$as_me: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3037 ac_cv_lib_curses_tgetent
=no
3039 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3040 LIBS
=$ac_check_lib_save_LIBS
3042 echo "$as_me:3042: result: $ac_cv_lib_curses_tgetent" >&5
3043 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
3044 if test $ac_cv_lib_curses_tgetent = yes; then
3045 bash_cv_termcap_lib
=libcurses
3047 echo "$as_me:3047: checking for tgetent in -lncurses" >&5
3048 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
3049 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 ac_check_lib_save_LIBS
=$LIBS
3053 LIBS
="-lncurses $LIBS"
3054 cat >conftest.
$ac_ext <<_ACEOF
3055 #line 3055 "configure"
3056 #include "confdefs.h"
3058 /* Override any gcc2 internal prototype to avoid an error. */
3062 /* We use char because int might match the return type of a gcc2
3063 builtin and then its argument prototype would still apply. */
3073 rm -f conftest.
$ac_objext conftest
$ac_exeext
3074 if { (eval echo "$as_me:3074: \"$ac_link\"") >&5
3075 (eval $ac_link) 2>&5
3077 echo "$as_me:3077: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try
='test -s conftest$ac_exeext'
3080 { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_lib_ncurses_tgetent
=yes
3087 echo "$as_me: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3089 ac_cv_lib_ncurses_tgetent
=no
3091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3092 LIBS
=$ac_check_lib_save_LIBS
3094 echo "$as_me:3094: result: $ac_cv_lib_ncurses_tgetent" >&5
3095 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
3096 if test $ac_cv_lib_ncurses_tgetent = yes; then
3097 bash_cv_termcap_lib
=libncurses
3099 bash_cv_termcap_lib
=gnutermcap
3110 if test "X$_bash_needmsg" = "Xyes"; then
3111 echo "$as_me:3111: checking which library has the termcap functions" >&5
3112 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
3114 echo "$as_me:3114: result: using $bash_cv_termcap_lib" >&5
3115 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
3116 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
3117 LDFLAGS
="$LDFLAGS -L./lib/termcap"
3118 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
3119 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
3120 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
3121 TERMCAP_LIB
=-ltermcap
3123 elif test $bash_cv_termcap_lib = libtinfo
; then
3126 elif test $bash_cv_termcap_lib = libncurses
; then
3127 TERMCAP_LIB
=-lncurses
3130 TERMCAP_LIB
=-lcurses
3134 echo "$as_me:3134: checking version of installed readline library" >&5
3135 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
3137 # What a pain in the ass this is.
3139 # save cpp and ld options
3140 _save_CFLAGS
="$CFLAGS"
3141 _save_LDFLAGS
="$LDFLAGS"
3144 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
3145 # allows the caller to do something like $_rl_prefix=$withval if the user
3146 # specifies --with-installed-readline=PREFIX as an argument to configure
3148 if test -z "$ac_cv_rl_prefix"; then
3149 test "x$prefix" = xNONE
&& ac_cv_rl_prefix
=$ac_default_prefix || ac_cv_rl_prefix
=${prefix}
3152 eval ac_cv_rl_includedir
=${ac_cv_rl_prefix}/include
3153 eval ac_cv_rl_libdir
=${ac_cv_rl_prefix}/lib
3155 LIBS
="$LIBS -lreadline ${TERMCAP_LIB}"
3156 CFLAGS
="$CFLAGS -I${ac_cv_rl_includedir}"
3157 LDFLAGS
="$LDFLAGS -L${ac_cv_rl_libdir}"
3159 if test "$cross_compiling" = yes; then
3160 ac_cv_rl_version
='4.2'
3162 cat >conftest.
$ac_ext <<_ACEOF
3163 #line 3163 "configure"
3164 #include "confdefs.h"
3167 #include <readline/readline.h>
3172 fp = fopen("conftest.rlv", "w");
3173 if (fp == 0) exit(1);
3174 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
3180 rm -f conftest
$ac_exeext
3181 if { (eval echo "$as_me:3181: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3184 echo "$as_me:3184: \$? = $ac_status" >&5
3185 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3186 { (eval echo "$as_me:3186: \"$ac_try\"") >&5
3189 echo "$as_me:3189: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_rl_version
=`cat conftest.rlv`
3193 echo "$as_me: program exited with status $ac_status" >&5
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.
$ac_ext >&5
3196 ac_cv_rl_version
='0.0'
3198 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3201 CFLAGS
="$_save_CFLAGS"
3202 LDFLAGS
="$_save_LDFLAGS"
3209 case "$ac_cv_rl_version" in
3210 2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*)
3211 RL_MAJOR
=`echo $ac_cv_rl_version | sed 's:\..*$::'`
3212 RL_MINOR
=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:a-zA-Z*$::'`
3218 [0-9][0-9]) _RL_MAJOR
=$RL_MAJOR ;;
3219 [0-9]) _RL_MAJOR
=0$RL_MAJOR ;;
3225 [0-9][0-9]) _RL_MINOR
=$RL_MINOR ;;
3226 [0-9]) _RL_MINOR
=0$RL_MINOR ;;
3230 RL_VERSION
="0x${_RL_MAJOR}${_RL_MINOR}"
3232 # Readline versions greater than 4.2 have these defines in readline.h
3234 if test $ac_cv_rl_version = '0.0' ; then
3235 { echo "$as_me:3235: WARNING: Could not test version of installed readline library." >&5
3236 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
3237 elif test $RL_MAJOR -gt 4 ||
{ test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
3238 # set these for use by the caller
3239 RL_PREFIX
=$ac_cv_rl_prefix
3240 RL_LIBDIR
=$ac_cv_rl_libdir
3241 RL_INCLUDEDIR
=$ac_cv_rl_includedir
3242 echo "$as_me:3242: result: $ac_cv_rl_version" >&5
3243 echo "${ECHO_T}$ac_cv_rl_version" >&6
3246 cat >>confdefs.h
<<EOF
3247 #define RL_READLINE_VERSION $RL_VERSION
3250 cat >>confdefs.h
<<EOF
3251 #define RL_VERSION_MAJOR $RL_MAJOR
3254 cat >>confdefs.h
<<EOF
3255 #define RL_VERSION_MINOR $RL_MINOR
3258 # set these for use by the caller
3259 RL_PREFIX
=$ac_cv_rl_prefix
3260 RL_LIBDIR
=$ac_cv_rl_libdir
3261 RL_INCLUDEDIR
=$ac_cv_rl_includedir
3263 echo "$as_me:3263: result: $ac_cv_rl_version" >&5
3264 echo "${ECHO_T}$ac_cv_rl_version" >&6
3268 case "$ac_cv_rl_version" in
3269 4.
[2-9]*|
5*|
6*|
7*|
8*|
9*) ;;
3270 *) opt_with_installed_readline
=no
3271 { echo "$as_me:3271: WARNING: installed readline library is too old to be linked with bash" >&5
3272 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
3273 { echo "$as_me:3273: WARNING: using private bash version" >&5
3274 echo "$as_me: WARNING: using private bash version" >&2;}
3279 if test $opt_readline = yes; then
3280 cat >>confdefs.h
<<\EOF
3284 READLINE_LIB
=-lreadline
3285 if test "$opt_with_installed_readline" != "no" ; then
3286 case "$RL_INCLUDEDIR" in
3288 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}'
3292 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
3293 READLINE_DEP
='$(READLINE_LIBRARY)'
3296 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
3297 READLINE_LIB
= READLINE_DEP
=
3299 if test $opt_history = yes ||
test $opt_bang_history = yes; then
3300 if test $opt_history = yes; then
3301 cat >>confdefs.h
<<\EOF
3306 if test $opt_bang_history = yes; then
3307 cat >>confdefs.h
<<\EOF
3308 #define BANG_HISTORY 1
3312 HISTORY_LIB
=-lhistory
3313 if test "$opt_with_installed_readline" != "no"; then
3314 HIST_LIBDIR
=$RL_LIBDIR
3316 case "$RL_INCLUDEDIR" in
3318 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}'
3321 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
3322 HISTORY_DEP
='$(HISTORY_LIBRARY)'
3325 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
3326 HISTORY_LIB
= HISTORY_DEP
=
3329 # Find a good install program. We prefer a C program (faster),
3330 # so one script is as good as another. But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # ./install, which can be erroneously created by make from ./install.sh.
3341 echo "$as_me:3341: checking for a BSD compatible install" >&5
3342 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3343 if test -z "$INSTALL"; then
3344 if test "${ac_cv_path_install+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3348 for ac_dir
in $PATH; do
3350 # Account for people who put trailing slashes in PATH elements.
3352 / | .
/ | .
// |
/cC
/* \
3353 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3356 # OSF1 and SCO ODT 3.0 have their own names for install.
3357 # Don't use installbsd from OSF since it installs stuff as root
3359 for ac_prog
in ginstall scoinst
install; do
3360 if $as_executable_p "$ac_dir/$ac_prog"; then
3361 if test $ac_prog = install &&
3362 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3363 # AIX install. It has an incompatible calling convention.
3365 elif test $ac_prog = install &&
3366 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3367 # program-specific install script used by HP pwplus--don't use.
3370 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3380 if test "${ac_cv_path_install+set}" = set; then
3381 INSTALL
=$ac_cv_path_install
3383 # As a last resort, use the slow shell script. We don't cache a
3384 # path for INSTALL within a source directory, because that will
3385 # break other packages using the cache if that directory is
3386 # removed, or if the path is relative.
3387 INSTALL
=$ac_install_sh
3390 echo "$as_me:3390: result: $INSTALL" >&5
3391 echo "${ECHO_T}$INSTALL" >&6
3393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3394 # It thinks the first close brace ends the variable substitution.
3395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3399 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3401 # Extract the first word of "ar", so it can be a program name with args.
3402 set dummy
ar; ac_word
=$2
3403 echo "$as_me:3403: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_prog_AR+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 if test -n "$AR"; then
3409 ac_cv_prog_AR
="$AR" # Let the user override the test.
3411 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3413 for ac_dir
in $ac_dummy; do
3415 test -z "$ac_dir" && ac_dir
=.
3416 $as_executable_p "$ac_dir/$ac_word" ||
continue
3418 echo "$as_me:3418: found $ac_dir/$ac_word" >&5
3422 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3426 if test -n "$AR"; then
3427 echo "$as_me:3427: result: $AR" >&5
3428 echo "${ECHO_T}$AR" >&6
3430 echo "$as_me:3430: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3434 test -n "$ARFLAGS" || ARFLAGS
="cr"
3435 if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3437 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3438 echo "$as_me:3438: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_RANLIB+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 if test -n "$RANLIB"; then
3444 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3446 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3448 for ac_dir
in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir
=.
3451 $as_executable_p "$ac_dir/$ac_word" ||
continue
3452 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3453 echo "$as_me:3453: found $ac_dir/$ac_word" >&5
3459 RANLIB
=$ac_cv_prog_RANLIB
3460 if test -n "$RANLIB"; then
3461 echo "$as_me:3461: result: $RANLIB" >&5
3462 echo "${ECHO_T}$RANLIB" >&6
3464 echo "$as_me:3464: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB
=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib
; ac_word
=$2
3473 echo "$as_me:3473: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3481 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3483 for ac_dir
in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir
=.
3486 $as_executable_p "$ac_dir/$ac_word" ||
continue
3487 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3488 echo "$as_me:3488: found $ac_dir/$ac_word" >&5
3492 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3495 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3496 if test -n "$ac_ct_RANLIB"; then
3497 echo "$as_me:3497: result: $ac_ct_RANLIB" >&5
3498 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3500 echo "$as_me:3500: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 RANLIB
=$ac_ct_RANLIB
3506 RANLIB
="$ac_cv_prog_RANLIB"
3509 for ac_prog
in 'bison -y' byacc
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy
$ac_prog; ac_word
=$2
3513 echo "$as_me:3513: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_YACC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -n "$YACC"; then
3519 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3521 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3523 for ac_dir
in $ac_dummy; do
3525 test -z "$ac_dir" && ac_dir
=.
3526 $as_executable_p "$ac_dir/$ac_word" ||
continue
3527 ac_cv_prog_YACC
="$ac_prog"
3528 echo "$as_me:3528: found $ac_dir/$ac_word" >&5
3534 YACC
=$ac_cv_prog_YACC
3535 if test -n "$YACC"; then
3536 echo "$as_me:3536: result: $YACC" >&5
3537 echo "${ECHO_T}$YACC" >&6
3539 echo "$as_me:3539: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3543 test -n "$YACC" && break
3545 test -n "$YACC" || YACC
="yacc"
3547 echo "$as_me:3547: checking whether ${MAKE-make} sets \${MAKE}" >&5
3548 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3549 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
3550 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.
make <<\EOF
3555 @
echo 'ac_maketemp="${MAKE}"'
3557 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3558 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3559 if test -n "$ac_maketemp"; then
3560 eval ac_cv_prog_make_
${ac_make}_set
=yes
3562 eval ac_cv_prog_make_
${ac_make}_set
=no
3566 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3567 echo "$as_me:3567: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6
3571 echo "$as_me:3571: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 SET_MAKE
="MAKE=${MAKE-make}"
3577 opennt
*|interix
*) MAKE_SHELL
="$INTERIX_ROOT/bin/sh" ;;
3578 *) MAKE_SHELL
=/bin
/sh
;;
3581 cat >>confdefs.h
<<\EOF
3582 #define _GNU_SOURCE 1
3585 echo "$as_me:3585: checking for $CC option to accept ANSI C" >&5
3586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 ac_cv_prog_cc_stdc
=no
3592 cat >conftest.
$ac_ext <<_ACEOF
3593 #line 3593 "configure"
3594 #include "confdefs.h"
3597 #include <sys/types.h>
3598 #include <sys/stat.h>
3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3600 struct buf { int x; };
3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (p, i)
3608 static char *f (char * (*g) (char **, int), char **p, ...)
3613 s = g (p, va_arg (v,int));
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3631 # Don't try gcc -ansi; that turns off useful extensions and
3632 # breaks some systems' header files.
3633 # AIX -qlanglvl=ansi
3634 # Ultrix and OSF/1 -std1
3635 # HP-UX 10.20 and later -Ae
3636 # HP-UX older versions -Aa -D_HPUX_SOURCE
3637 # SVR4 -Xc -D__EXTENSIONS__
3638 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640 CC
="$ac_save_CC $ac_arg"
3641 rm -f conftest.
$ac_objext
3642 if { (eval echo "$as_me:3642: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>&5
3645 echo "$as_me:3645: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try
='test -s conftest.$ac_objext'
3648 { (eval echo "$as_me:3648: \"$ac_try\"") >&5
3651 echo "$as_me:3651: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 ac_cv_prog_cc_stdc
=$ac_arg
3656 echo "$as_me: failed program was:" >&5
3657 cat conftest.
$ac_ext >&5
3659 rm -f conftest.
$ac_objext
3661 rm -f conftest.
$ac_ext conftest.
$ac_objext
3666 case "x$ac_cv_prog_cc_stdc" in
3668 echo "$as_me:3668: result: none needed" >&5
3669 echo "${ECHO_T}none needed" >&6 ;;
3671 echo "$as_me:3671: result: $ac_cv_prog_cc_stdc" >&5
3672 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3673 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3676 echo "$as_me:3676: checking for an ANSI C-conforming const" >&5
3677 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3678 if test "${ac_cv_c_const+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 cat >conftest.
$ac_ext <<_ACEOF
3682 #line 3682 "configure"
3683 #include "confdefs.h"
3688 /* FIXME: Include the comments suggested by Paul. */
3690 /* Ultrix mips cc rejects this. */
3691 typedef int charset[2];
3693 /* SunOS 4.1.1 cc rejects this. */
3694 char const *const *ccp;
3696 /* NEC SVR4.0.2 mips cc rejects this. */
3697 struct point {int x, y;};
3698 static struct point const zero = {0,0};
3699 /* AIX XL C 1.02.0.0 rejects this.
3700 It does not let you subtract one const X* pointer from another in
3701 an arm of an if-expression whose if-part is not a constant
3703 const char *g = "string";
3704 ccp = &g + (g ? g-g : 0);
3705 /* HPUX 7.0 cc rejects these. */
3708 ccp = (char const *const *) p;
3709 { /* SCO 3.2v4 cc rejects this. */
3711 char const *s = 0 ? (char *) 0 : (char const *) 0;
3715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3717 const int *foo = &x[0];
3720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3721 typedef const int *iptr;
3725 { /* AIX XL C 1.02.0.0 rejects this saying
3726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3727 struct s { int j; const int *ap[3]; };
3728 struct s *b; b->j = 5;
3730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3739 rm -f conftest.
$ac_objext
3740 if { (eval echo "$as_me:3740: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try
='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:3746: \"$ac_try\"") >&5
3749 echo "$as_me:3749: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.
$ac_ext >&5
3757 rm -f conftest.
$ac_objext conftest.
$ac_ext
3759 echo "$as_me:3759: result: $ac_cv_c_const" >&5
3760 echo "${ECHO_T}$ac_cv_c_const" >&6
3761 if test $ac_cv_c_const = no
; then
3763 cat >>confdefs.h
<<\EOF
3769 echo "$as_me:3769: checking for inline" >&5
3770 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3771 if test "${ac_cv_c_inline+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 for ac_kw
in inline __inline__ __inline
; do
3776 cat >conftest.
$ac_ext <<_ACEOF
3777 #line 3777 "configure"
3778 #include "confdefs.h"
3780 static $ac_kw int static_foo () {return 0; }
3781 $ac_kw int foo () {return 0; }
3785 rm -f conftest.
$ac_objext
3786 if { (eval echo "$as_me:3786: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>&5
3789 echo "$as_me:3789: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try
='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:3792: \"$ac_try\"") >&5
3795 echo "$as_me:3795: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_cv_c_inline
=$ac_kw; break
3799 echo "$as_me: failed program was:" >&5
3800 cat conftest.
$ac_ext >&5
3802 rm -f conftest.
$ac_objext conftest.
$ac_ext
3806 echo "$as_me:3806: result: $ac_cv_c_inline" >&5
3807 echo "${ECHO_T}$ac_cv_c_inline" >&6
3808 case $ac_cv_c_inline in
3811 cat >>confdefs.h
<<\EOF
3815 *) cat >>confdefs.h
<<EOF
3816 #define inline $ac_cv_c_inline
3821 echo "$as_me:3821: checking whether byte ordering is bigendian" >&5
3822 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3823 if test "${ac_cv_c_bigendian+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 ac_cv_c_bigendian
=unknown
3827 # See if sys/param.h defines the BYTE_ORDER macro.
3828 cat >conftest.
$ac_ext <<_ACEOF
3829 #line 3829 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3832 #include <sys/param.h>
3837 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
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 # It does; now see whether it defined to BIG_ENDIAN or not.
3858 cat >conftest.
$ac_ext <<_ACEOF
3859 #line 3859 "configure"
3860 #include "confdefs.h"
3861 #include <sys/types.h>
3862 #include <sys/param.h>
3867 #if BYTE_ORDER != BIG_ENDIAN
3875 rm -f conftest.
$ac_objext
3876 if { (eval echo "$as_me:3876: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>&5
3879 echo "$as_me:3879: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try
='test -s conftest.$ac_objext'
3882 { (eval echo "$as_me:3882: \"$ac_try\"") >&5
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_c_bigendian
=yes
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.
$ac_ext >&5
3891 ac_cv_c_bigendian
=no
3893 rm -f conftest.
$ac_objext conftest.
$ac_ext
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.
$ac_ext >&5
3898 rm -f conftest.
$ac_objext conftest.
$ac_ext
3899 if test $ac_cv_c_bigendian = unknown
; then
3900 if test "$cross_compiling" = yes; then
3901 { { echo "$as_me:3901: error: cannot run test program while cross compiling" >&5
3902 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3903 { (exit 1); exit 1; }; }
3905 cat >conftest.
$ac_ext <<_ACEOF
3906 #line 3906 "configure"
3907 #include "confdefs.h"
3911 /* Are we little or big endian? From Harbison&Steele. */
3915 char c[sizeof (long)];
3918 exit (u.c[sizeof (long) - 1] == 1);
3921 rm -f conftest
$ac_exeext
3922 if { (eval echo "$as_me:3922: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>&5
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3927 { (eval echo "$as_me:3927: \"$ac_try\"") >&5
3930 echo "$as_me:3930: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_cv_c_bigendian
=no
3934 echo "$as_me: program exited with status $ac_status" >&5
3935 echo "$as_me: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3937 ac_cv_c_bigendian
=yes
3939 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3943 echo "$as_me:3943: result: $ac_cv_c_bigendian" >&5
3944 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3945 if test $ac_cv_c_bigendian = yes; then
3947 cat >>confdefs.h
<<\EOF
3948 #define WORDS_BIGENDIAN 1
3953 echo "$as_me:3953: checking for preprocessor stringizing operator" >&5
3954 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
3955 if test "${ac_cv_c_stringize+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 cat >conftest.
$ac_ext <<_ACEOF
3959 #line 3959 "configure"
3960 #include "confdefs.h"
3963 char *s = x(teststring);
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "#teststring" >/dev
/null
2>&1; then
3967 ac_cv_c_stringize
=no
3969 ac_cv_c_stringize
=yes
3974 echo "$as_me:3974: result: $ac_cv_c_stringize" >&5
3975 echo "${ECHO_T}$ac_cv_c_stringize" >&6
3976 if test $ac_cv_c_stringize = yes; then
3978 cat >>confdefs.h
<<\EOF
3979 #define HAVE_STRINGIZE 1
3984 echo "$as_me:3984: checking for long double" >&5
3985 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3986 if test "${ac_cv_c_long_double+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 if test "$GCC" = yes; then
3990 ac_cv_c_long_double
=yes
3992 if test "$cross_compiling" = yes; then
3993 { { echo "$as_me:3993: error: cannot run test program while cross compiling" >&5
3994 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3995 { (exit 1); exit 1; }; }
3997 cat >conftest.
$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4003 /* The Stardent Vistra knows sizeof(long double), but does not
4005 long double foo = 0.0;
4006 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4007 exit (sizeof (long double) < sizeof (double));
4010 rm -f conftest
$ac_exeext
4011 if { (eval echo "$as_me:4011: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:4014: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4016 { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4019 echo "$as_me:4019: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_c_long_double
=yes
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 cat conftest.
$ac_ext >&5
4026 ac_cv_c_long_double
=no
4028 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4032 echo "$as_me:4032: result: $ac_cv_c_long_double" >&5
4033 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4034 if test $ac_cv_c_long_double = yes; then
4036 cat >>confdefs.h
<<\EOF
4037 #define HAVE_LONG_DOUBLE 1
4042 echo "$as_me:4042: checking for function prototypes" >&5
4043 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4044 if test "$ac_cv_prog_cc_stdc" != no
; then
4045 echo "$as_me:4045: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6
4048 cat >>confdefs.h
<<\EOF
4049 #define PROTOTYPES 1
4053 echo "$as_me:4053: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4057 echo "$as_me:4057: checking for ANSI C header files" >&5
4058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059 if test "${ac_cv_header_stdc+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.
$ac_ext <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4071 if { (eval echo "$as_me:4071: \"$ac_cpp conftest.$ac_ext\"") >&5
4072 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4074 egrep -v '^ *\+' conftest.er1
>conftest.err
4076 cat conftest.err
>&5
4077 echo "$as_me:4077: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev
/null
; then
4079 if test -s conftest.err
; then
4080 ac_cpp_err
=$ac_c_preproc_warn_flag
4087 if test -z "$ac_cpp_err"; then
4088 ac_cv_header_stdc
=yes
4090 echo "$as_me: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4092 ac_cv_header_stdc
=no
4094 rm -f conftest.err conftest.
$ac_ext
4096 if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.
$ac_ext <<_ACEOF
4099 #line 4099 "configure"
4100 #include "confdefs.h"
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 egrep "memchr" >/dev
/null
2>&1; then
4108 ac_cv_header_stdc
=no
4114 if test $ac_cv_header_stdc = yes; then
4115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116 cat >conftest.
$ac_ext <<_ACEOF
4117 #line 4117 "configure"
4118 #include "confdefs.h"
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123 egrep "free" >/dev
/null
2>&1; then
4126 ac_cv_header_stdc
=no
4132 if test $ac_cv_header_stdc = yes; then
4133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4134 if test "$cross_compiling" = yes; then
4137 cat >conftest.
$ac_ext <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4141 #if ((' ' & 0x0FF) == 0x020)
4142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4145 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4146 || ('j' <= (c) && (c) <= 'r') \
4147 || ('s' <= (c) && (c) <= 'z'))
4148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4156 for (i = 0; i < 256; i++)
4157 if (XOR (islower (i), ISLOWER (i))
4158 || toupper (i) != TOUPPER (i))
4163 rm -f conftest
$ac_exeext
4164 if { (eval echo "$as_me:4164: \"$ac_link\"") >&5
4165 (eval $ac_link) 2>&5
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4169 { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4176 echo "$as_me: program exited with status $ac_status" >&5
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4179 ac_cv_header_stdc
=no
4181 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4185 echo "$as_me:4185: result: $ac_cv_header_stdc" >&5
4186 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4187 if test $ac_cv_header_stdc = yes; then
4189 cat >>confdefs.h
<<\EOF
4190 #define STDC_HEADERS 1
4195 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4197 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4198 inttypes.h stdint.h unistd.h
4200 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201 echo "$as_me:4201: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 cat >conftest.
$ac_ext <<_ACEOF
4207 #line 4207 "configure"
4208 #include "confdefs.h"
4209 $ac_includes_default
4210 #include <$ac_header>
4212 rm -f conftest.
$ac_objext
4213 if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try
='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:4219: \"$ac_try\"") >&5
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 eval "$as_ac_Header=yes"
4226 echo "$as_me: failed program was:" >&5
4227 cat conftest.
$ac_ext >&5
4228 eval "$as_ac_Header=no"
4230 rm -f conftest.
$ac_objext conftest.
$ac_ext
4232 echo "$as_me:4232: result: `eval echo '${'$as_ac_Header'}'`" >&5
4233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235 cat >>confdefs.h
<<EOF
4236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4242 echo "$as_me:4242: checking whether char is unsigned" >&5
4243 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
4244 if test "${ac_cv_c_char_unsigned+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.
$ac_ext <<_ACEOF
4248 #line 4248 "configure"
4249 #include "confdefs.h"
4250 $ac_includes_default
4254 int _array_ [1 - 2 * !(((char) -1) < 0)]
4259 rm -f conftest.
$ac_objext
4260 if { (eval echo "$as_me:4260: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>&5
4263 echo "$as_me:4263: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try
='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:4266: \"$ac_try\"") >&5
4269 echo "$as_me:4269: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_c_char_unsigned
=no
4273 echo "$as_me: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4275 ac_cv_c_char_unsigned
=yes
4277 rm -f conftest.
$ac_objext conftest.
$ac_ext
4279 echo "$as_me:4279: result: $ac_cv_c_char_unsigned" >&5
4280 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
4281 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4282 cat >>confdefs.h
<<\EOF
4283 #define __CHAR_UNSIGNED__ 1
4289 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4290 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4291 echo "$as_me:4291: checking for $ac_hdr that defines DIR" >&5
4292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.
$ac_ext <<_ACEOF
4297 #line 4297 "configure"
4298 #include "confdefs.h"
4299 #include <sys/types.h>
4311 rm -f conftest.
$ac_objext
4312 if { (eval echo "$as_me:4312: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>&5
4315 echo "$as_me:4315: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try
='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:4318: \"$ac_try\"") >&5
4321 echo "$as_me:4321: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_Header=yes"
4325 echo "$as_me: failed program was:" >&5
4326 cat conftest.
$ac_ext >&5
4327 eval "$as_ac_Header=no"
4329 rm -f conftest.
$ac_objext conftest.
$ac_ext
4331 echo "$as_me:4331: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334 cat >>confdefs.h
<<EOF
4335 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4338 ac_header_dirent
=$ac_hdr; break
4342 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4343 if test $ac_header_dirent = dirent.h
; then
4344 echo "$as_me:4344: checking for opendir in -ldir" >&5
4345 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
4346 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 ac_check_lib_save_LIBS
=$LIBS
4351 cat >conftest.
$ac_ext <<_ACEOF
4352 #line 4352 "configure"
4353 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4370 rm -f conftest.
$ac_objext conftest
$ac_exeext
4371 if { (eval echo "$as_me:4371: \"$ac_link\"") >&5
4372 (eval $ac_link) 2>&5
4374 echo "$as_me:4374: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try
='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:4377: \"$ac_try\"") >&5
4380 echo "$as_me:4380: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_lib_dir_opendir
=yes
4384 echo "$as_me: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4386 ac_cv_lib_dir_opendir
=no
4388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4389 LIBS
=$ac_check_lib_save_LIBS
4391 echo "$as_me:4391: result: $ac_cv_lib_dir_opendir" >&5
4392 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
4393 if test $ac_cv_lib_dir_opendir = yes; then
4398 echo "$as_me:4398: checking for opendir in -lx" >&5
4399 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
4400 if test "${ac_cv_lib_x_opendir+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 ac_check_lib_save_LIBS
=$LIBS
4405 cat >conftest.
$ac_ext <<_ACEOF
4406 #line 4406 "configure"
4407 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4424 rm -f conftest.
$ac_objext conftest
$ac_exeext
4425 if { (eval echo "$as_me:4425: \"$ac_link\"") >&5
4426 (eval $ac_link) 2>&5
4428 echo "$as_me:4428: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try
='test -s conftest$ac_exeext'
4431 { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_cv_lib_x_opendir
=yes
4438 echo "$as_me: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4440 ac_cv_lib_x_opendir
=no
4442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4443 LIBS
=$ac_check_lib_save_LIBS
4445 echo "$as_me:4445: result: $ac_cv_lib_x_opendir" >&5
4446 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4447 if test $ac_cv_lib_x_opendir = yes; then
4453 echo "$as_me:4453: checking whether time.h and sys/time.h may both be included" >&5
4454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4455 if test "${ac_cv_header_time+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.
$ac_ext <<_ACEOF
4459 #line 4459 "configure"
4460 #include "confdefs.h"
4461 #include <sys/types.h>
4462 #include <sys/time.h>
4468 if ((struct tm *) 0)
4474 rm -f conftest.
$ac_objext
4475 if { (eval echo "$as_me:4475: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>&5
4478 echo "$as_me:4478: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try
='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:4481: \"$ac_try\"") >&5
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_cv_header_time
=yes
4488 echo "$as_me: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4490 ac_cv_header_time
=no
4492 rm -f conftest.
$ac_objext conftest.
$ac_ext
4494 echo "$as_me:4494: result: $ac_cv_header_time" >&5
4495 echo "${ECHO_T}$ac_cv_header_time" >&6
4496 if test $ac_cv_header_time = yes; then
4498 cat >>confdefs.h
<<\EOF
4499 #define TIME_WITH_SYS_TIME 1
4504 for ac_header
in inttypes.h
4506 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4507 echo "$as_me:4507: checking for $ac_header" >&5
4508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 cat >conftest.
$ac_ext <<_ACEOF
4513 #line 4513 "configure"
4514 #include "confdefs.h"
4515 #include <$ac_header>
4517 if { (eval echo "$as_me:4517: \"$ac_cpp conftest.$ac_ext\"") >&5
4518 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4520 egrep -v '^ *\+' conftest.er1
>conftest.err
4522 cat conftest.err
>&5
4523 echo "$as_me:4523: \$? = $ac_status" >&5
4524 (exit $ac_status); } >/dev
/null
; then
4525 if test -s conftest.err
; then
4526 ac_cpp_err
=$ac_c_preproc_warn_flag
4533 if test -z "$ac_cpp_err"; then
4534 eval "$as_ac_Header=yes"
4536 echo "$as_me: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4538 eval "$as_ac_Header=no"
4540 rm -f conftest.err conftest.
$ac_ext
4542 echo "$as_me:4542: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545 cat >>confdefs.h
<<EOF
4546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552 for ac_header
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
4553 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
4554 stddef.h stdint.h netdb.h grp.h
strings.h
4556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 echo "$as_me:4557: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 cat >conftest.
$ac_ext <<_ACEOF
4563 #line 4563 "configure"
4564 #include "confdefs.h"
4565 #include <$ac_header>
4567 if { (eval echo "$as_me:4567: \"$ac_cpp conftest.$ac_ext\"") >&5
4568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4570 egrep -v '^ *\+' conftest.er1
>conftest.err
4572 cat conftest.err
>&5
4573 echo "$as_me:4573: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev
/null
; then
4575 if test -s conftest.err
; then
4576 ac_cpp_err
=$ac_c_preproc_warn_flag
4583 if test -z "$ac_cpp_err"; then
4584 eval "$as_ac_Header=yes"
4586 echo "$as_me: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4588 eval "$as_ac_Header=no"
4590 rm -f conftest.err conftest.
$ac_ext
4592 echo "$as_me:4592: result: `eval echo '${'$as_ac_Header'}'`" >&5
4593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h
<<EOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 for ac_header
in sys
/ptem.h sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h \
4603 sys
/resource.h sys
/param.h sys
/socket.h \
4604 sys
/time.h sys
/times.h sys
/wait.h
4606 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607 echo "$as_me:4607: checking for $ac_header" >&5
4608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 cat >conftest.
$ac_ext <<_ACEOF
4613 #line 4613 "configure"
4614 #include "confdefs.h"
4615 #include <$ac_header>
4617 if { (eval echo "$as_me:4617: \"$ac_cpp conftest.$ac_ext\"") >&5
4618 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4620 egrep -v '^ *\+' conftest.er1
>conftest.err
4622 cat conftest.err
>&5
4623 echo "$as_me:4623: \$? = $ac_status" >&5
4624 (exit $ac_status); } >/dev
/null
; then
4625 if test -s conftest.err
; then
4626 ac_cpp_err
=$ac_c_preproc_warn_flag
4633 if test -z "$ac_cpp_err"; then
4634 eval "$as_ac_Header=yes"
4636 echo "$as_me: failed program was:" >&5
4637 cat conftest.
$ac_ext >&5
4638 eval "$as_ac_Header=no"
4640 rm -f conftest.err conftest.
$ac_ext
4642 echo "$as_me:4642: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645 cat >>confdefs.h
<<EOF
4646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4652 for ac_header
in netinet
/in.h arpa
/inet.h
4654 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4655 echo "$as_me:4655: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.
$ac_ext <<_ACEOF
4661 #line 4661 "configure"
4662 #include "confdefs.h"
4663 #include <$ac_header>
4665 if { (eval echo "$as_me:4665: \"$ac_cpp conftest.$ac_ext\"") >&5
4666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4668 egrep -v '^ *\+' conftest.er1
>conftest.err
4670 cat conftest.err
>&5
4671 echo "$as_me:4671: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev
/null
; then
4673 if test -s conftest.err
; then
4674 ac_cpp_err
=$ac_c_preproc_warn_flag
4681 if test -z "$ac_cpp_err"; then
4682 eval "$as_ac_Header=yes"
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4686 eval "$as_ac_Header=no"
4688 rm -f conftest.err conftest.
$ac_ext
4690 echo "$as_me:4690: result: `eval echo '${'$as_ac_Header'}'`" >&5
4691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4693 cat >>confdefs.h
<<EOF
4694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4700 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4701 # for constant arguments. Useless!
4702 echo "$as_me:4702: checking for working alloca.h" >&5
4703 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4704 if test "${ac_cv_working_alloca_h+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.
$ac_ext <<_ACEOF
4708 #line 4708 "configure"
4709 #include "confdefs.h"
4714 char *p = (char *) alloca (2 * sizeof (int));
4719 rm -f conftest.
$ac_objext conftest
$ac_exeext
4720 if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>&5
4723 echo "$as_me:4723: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try
='test -s conftest$ac_exeext'
4726 { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4729 echo "$as_me:4729: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_working_alloca_h
=yes
4733 echo "$as_me: failed program was:" >&5
4734 cat conftest.
$ac_ext >&5
4735 ac_cv_working_alloca_h
=no
4737 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4739 echo "$as_me:4739: result: $ac_cv_working_alloca_h" >&5
4740 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4741 if test $ac_cv_working_alloca_h = yes; then
4743 cat >>confdefs.h
<<\EOF
4744 #define HAVE_ALLOCA_H 1
4749 echo "$as_me:4749: checking for alloca" >&5
4750 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4751 if test "${ac_cv_func_alloca_works+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.
$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4758 # define alloca __builtin_alloca
4761 # include <malloc.h>
4762 # define alloca _alloca
4765 # include <alloca.h>
4770 # ifndef alloca /* predefined by HP cc +Olibcalls */
4781 char *p = (char *) alloca (1);
4786 rm -f conftest.
$ac_objext conftest
$ac_exeext
4787 if { (eval echo "$as_me:4787: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:4790: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try
='test -s conftest$ac_exeext'
4793 { (eval echo "$as_me:4793: \"$ac_try\"") >&5
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 ac_cv_func_alloca_works
=yes
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4802 ac_cv_func_alloca_works
=no
4804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4806 echo "$as_me:4806: result: $ac_cv_func_alloca_works" >&5
4807 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4809 if test $ac_cv_func_alloca_works = yes; then
4811 cat >>confdefs.h
<<\EOF
4812 #define HAVE_ALLOCA 1
4816 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4817 # that cause trouble. Some versions do not even contain alloca or
4818 # contain a buggy version. If you still want to use their alloca,
4819 # use ar to extract alloca.o from them instead of compiling alloca.c.
4821 ALLOCA
=alloca.
$ac_objext
4823 cat >>confdefs.h
<<\EOF
4827 echo "$as_me:4827: checking whether \`alloca.c' needs Cray hooks" >&5
4828 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4829 if test "${ac_cv_os_cray+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 cat >conftest.
$ac_ext <<_ACEOF
4833 #line 4833 "configure"
4834 #include "confdefs.h"
4835 #if defined(CRAY) && ! defined(CRAY2)
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 egrep "webecray" >/dev
/null
2>&1; then
4851 echo "$as_me:4851: result: $ac_cv_os_cray" >&5
4852 echo "${ECHO_T}$ac_cv_os_cray" >&6
4853 if test $ac_cv_os_cray = yes; then
4854 for ac_func
in _getb67 GETB67 getb67
; do
4855 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4856 echo "$as_me:4856: checking for $ac_func" >&5
4857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4858 if eval "test \"\${$as_ac_var+set}\" = set"; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 cat >conftest.
$ac_ext <<_ACEOF
4862 #line 4862 "configure"
4863 #include "confdefs.h"
4864 /* System header to define __stub macros and hopefully few prototypes,
4865 which can conflict with char $ac_func (); below. */
4867 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4879 /* The GNU C library defines this for functions which it implements
4880 to always fail with ENOSYS. Some functions are actually named
4881 something starting with __ and the normal name is an alias. */
4882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4892 rm -f conftest.
$ac_objext conftest
$ac_exeext
4893 if { (eval echo "$as_me:4893: \"$ac_link\"") >&5
4894 (eval $ac_link) 2>&5
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -s conftest$ac_exeext'
4899 { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 eval "$as_ac_var=yes"
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4908 eval "$as_ac_var=no"
4910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4912 echo "$as_me:4912: result: `eval echo '${'$as_ac_var'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4914 if test `eval echo '${'$as_ac_var'}'` = yes; then
4916 cat >>confdefs.h
<<EOF
4917 #define CRAY_STACKSEG_END $ac_func
4926 echo "$as_me:4926: checking stack direction for C alloca" >&5
4927 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4928 if test "${ac_cv_c_stack_direction+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 if test "$cross_compiling" = yes; then
4932 ac_cv_c_stack_direction
=0
4934 cat >conftest.
$ac_ext <<_ACEOF
4935 #line 4935 "configure"
4936 #include "confdefs.h"
4938 find_stack_direction ()
4940 static char *addr = 0;
4945 return find_stack_direction ();
4948 return (&dummy > addr) ? 1 : -1;
4954 exit (find_stack_direction () < 0);
4957 rm -f conftest
$ac_exeext
4958 if { (eval echo "$as_me:4958: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>&5
4961 echo "$as_me:4961: \$? = $ac_status" >&5
4962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4963 { (eval echo "$as_me:4963: \"$ac_try\"") >&5
4966 echo "$as_me:4966: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_c_stack_direction
=1
4970 echo "$as_me: program exited with status $ac_status" >&5
4971 echo "$as_me: failed program was:" >&5
4972 cat conftest.
$ac_ext >&5
4973 ac_cv_c_stack_direction
=-1
4975 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4978 echo "$as_me:4978: result: $ac_cv_c_stack_direction" >&5
4979 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4981 cat >>confdefs.h
<<EOF
4982 #define STACK_DIRECTION $ac_cv_c_stack_direction
4987 echo "$as_me:4987: checking whether getpgrp takes no argument" >&5
4988 echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
4989 if test "${ac_cv_func_getpgrp_void+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 # Use it with a single arg.
4993 cat >conftest.
$ac_ext <<_ACEOF
4994 #line 4994 "configure"
4995 #include "confdefs.h"
4996 $ac_includes_default
5005 rm -f conftest.
$ac_objext
5006 if { (eval echo "$as_me:5006: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:5009: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:5012: \"$ac_try\"") >&5
5015 echo "$as_me:5015: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_func_getpgrp_1
=yes
5019 echo "$as_me: failed program was:" >&5
5020 cat conftest.
$ac_ext >&5
5021 ac_func_getpgrp_1
=no
5023 rm -f conftest.
$ac_objext conftest.
$ac_ext
5024 # Use it with no arg.
5025 cat >conftest.
$ac_ext <<_ACEOF
5026 #line 5026 "configure"
5027 #include "confdefs.h"
5028 $ac_includes_default
5037 rm -f conftest.
$ac_objext
5038 if { (eval echo "$as_me:5038: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5041 echo "$as_me:5041: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try
='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:5044: \"$ac_try\"") >&5
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_func_getpgrp_0
=yes
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.
$ac_ext >&5
5053 ac_func_getpgrp_0
=no
5055 rm -f conftest.
$ac_objext conftest.
$ac_ext
5056 # If both static checks agree, we are done.
5057 case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
5058 yes:no
) ac_cv_func_getpgrp_void
=yes;;
5059 no
:yes) ac_cv_func_getpgrp_void
=false
;;
5060 *) if test "$cross_compiling" = yes; then
5061 { { echo "$as_me:5061: error: cannot check getpgrp if cross compiling" >&5
5062 echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
5063 { (exit 1); exit 1; }; }
5065 cat >conftest.
$ac_ext <<_ACEOF
5066 #line 5066 "configure"
5067 #include "confdefs.h"
5068 $ac_includes_default
5071 * If this system has a BSD-style getpgrp(),
5072 * which takes a pid argument, exit unsuccessfully.
5074 * Snarfed from Chet Ramey's bash pgrp.c test program
5078 int pg1, pg2, pg3, pg4;
5079 int ng, np, s, child;
5087 pg3 = getpgrp (pid);
5090 /* If all of these values are the same, it's pretty sure that we're
5091 on a system that ignores getpgrp's first argument. */
5092 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
5098 else if (child == 0)
5101 /* If this is Sys V, this will not work; pgrp will be set to np
5102 because setpgrp just changes a pgrp to be the same as the
5105 ng = getpgrp (0); /* Same result for Sys V and BSD */
5119 rm -f conftest
$ac_exeext
5120 if { (eval echo "$as_me:5120: \"$ac_link\"") >&5
5121 (eval $ac_link) 2>&5
5123 echo "$as_me:5123: \$? = $ac_status" >&5
5124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5125 { (eval echo "$as_me:5125: \"$ac_try\"") >&5
5128 echo "$as_me:5128: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_func_getpgrp_void
=yes
5132 echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 cat conftest.
$ac_ext >&5
5135 ac_cv_func_getpgrp_void
=no
5137 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5139 esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
5142 echo "$as_me:5142: result: $ac_cv_func_getpgrp_void" >&5
5143 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
5144 if test $ac_cv_func_getpgrp_void = yes; then
5146 cat >>confdefs.h
<<\EOF
5147 #define GETPGRP_VOID 1
5152 echo "$as_me:5152: checking whether setvbuf arguments are reversed" >&5
5153 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
5154 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 if test "$cross_compiling" = yes; then
5158 { { echo "$as_me:5158: error: cannot run test program while cross compiling" >&5
5159 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5160 { (exit 1); exit 1; }; }
5162 cat >conftest.
$ac_ext <<_ACEOF
5163 #line 5163 "configure"
5164 #include "confdefs.h"
5166 /* If setvbuf has the reversed format, exit 0. */
5170 /* This call has the arguments reversed.
5171 A reversed system may check and see that the address of main
5172 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
5173 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5176 exit(0); /* Non-reversed systems segv here. */
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_setvbuf_reversed
=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_setvbuf_reversed
=no
5197 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5199 rm -f core core.
* *.core
5201 echo "$as_me:5201: result: $ac_cv_func_setvbuf_reversed" >&5
5202 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5203 if test $ac_cv_func_setvbuf_reversed = yes; then
5205 cat >>confdefs.h
<<\EOF
5206 #define SETVBUF_REVERSED 1
5211 for ac_func
in vprintf
5213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5214 echo "$as_me:5214: checking for $ac_func" >&5
5215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5216 if eval "test \"\${$as_ac_var+set}\" = set"; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 cat >conftest.
$ac_ext <<_ACEOF
5220 #line 5220 "configure"
5221 #include "confdefs.h"
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func (); below. */
5225 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5237 /* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
5240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5250 rm -f conftest.
$ac_objext conftest
$ac_exeext
5251 if { (eval echo "$as_me:5251: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>&5
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try
='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:5257: \"$ac_try\"") >&5
5260 echo "$as_me:5260: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 eval "$as_ac_var=yes"
5264 echo "$as_me: failed program was:" >&5
5265 cat conftest.
$ac_ext >&5
5266 eval "$as_ac_var=no"
5268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5270 echo "$as_me:5270: result: `eval echo '${'$as_ac_var'}'`" >&5
5271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5272 if test `eval echo '${'$as_ac_var'}'` = yes; then
5273 cat >>confdefs.h
<<EOF
5274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5277 echo "$as_me:5277: checking for _doprnt" >&5
5278 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5279 if test "${ac_cv_func__doprnt+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 cat >conftest.
$ac_ext <<_ACEOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5285 /* System header to define __stub macros and hopefully few prototypes,
5286 which can conflict with char _doprnt (); below. */
5288 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5300 /* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5313 rm -f conftest.
$ac_objext conftest
$ac_exeext
5314 if { (eval echo "$as_me:5314: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try
='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:5320: \"$ac_try\"") >&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_func__doprnt
=yes
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.
$ac_ext >&5
5329 ac_cv_func__doprnt
=no
5331 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5333 echo "$as_me:5333: result: $ac_cv_func__doprnt" >&5
5334 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5335 if test $ac_cv_func__doprnt = yes; then
5337 cat >>confdefs.h
<<\EOF
5338 #define HAVE_DOPRNT 1
5346 echo "$as_me:5346: checking for working strcoll" >&5
5347 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5348 if test "${ac_cv_func_strcoll_works+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test "$cross_compiling" = yes; then
5352 ac_cv_func_strcoll_works
=no
5354 cat >conftest.
$ac_ext <<_ACEOF
5355 #line 5355 "configure"
5356 #include "confdefs.h"
5357 $ac_includes_default
5361 exit (strcoll ("abc", "def") >= 0 ||
5362 strcoll ("ABC", "DEF") >= 0 ||
5363 strcoll ("123", "456") >= 0)
5368 rm -f conftest
$ac_exeext
5369 if { (eval echo "$as_me:5369: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5372 echo "$as_me:5372: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5374 { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5377 echo "$as_me:5377: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_func_strcoll_works
=yes
5381 echo "$as_me: program exited with status $ac_status" >&5
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.
$ac_ext >&5
5384 ac_cv_func_strcoll_works
=no
5386 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5389 echo "$as_me:5389: result: $ac_cv_func_strcoll_works" >&5
5390 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5391 if test $ac_cv_func_strcoll_works = yes; then
5393 cat >>confdefs.h
<<\EOF
5394 #define HAVE_STRCOLL 1
5399 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
5400 MALLOC_TARGET
=alloca
5403 MALLOC_LIB
='-lmalloc'
5404 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
5405 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
5406 MALLOC_DEP
='$(MALLOC_LIBRARY)'
5409 if test "$ac_cv_func_vprintf" = no
; then
5410 echo "$as_me:5410: checking for declaration of vprintf in stdio.h" >&5
5411 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
5412 cat >conftest.
$ac_ext <<_ACEOF
5413 #line 5413 "configure"
5414 #include "confdefs.h"
5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5419 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
5420 ac_cv_func_vprintf
=yes
5424 echo "$as_me:5424: result: $ac_cv_func_vprintf" >&5
5425 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
5426 if test $ac_cv_func_vprintf = yes; then
5427 cat >>confdefs.h
<<\EOF
5428 #define HAVE_VPRINTF 1
5434 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
5435 LIBOBJS
="$LIBOBJS vprint.$ac_objext"
5438 echo "$as_me:5438: checking return type of signal handlers" >&5
5439 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5440 if test "${ac_cv_type_signal+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 cat >conftest.
$ac_ext <<_ACEOF
5444 #line 5444 "configure"
5445 #include "confdefs.h"
5446 #include <sys/types.h>
5452 extern "C" void (*signal (int, void (*)(int)))(int);
5454 void (*signal ()) ();
5465 rm -f conftest.
$ac_objext
5466 if { (eval echo "$as_me:5466: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5469 echo "$as_me:5469: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try
='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:5472: \"$ac_try\"") >&5
5475 echo "$as_me:5475: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_type_signal
=void
5479 echo "$as_me: failed program was:" >&5
5480 cat conftest.
$ac_ext >&5
5481 ac_cv_type_signal
=int
5483 rm -f conftest.
$ac_objext conftest.
$ac_ext
5485 echo "$as_me:5485: result: $ac_cv_type_signal" >&5
5486 echo "${ECHO_T}$ac_cv_type_signal" >&6
5488 cat >>confdefs.h
<<EOF
5489 #define RETSIGTYPE $ac_cv_type_signal
5492 echo "$as_me:5492: checking for __setostype" >&5
5493 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
5494 if test "${ac_cv_func___setostype+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 cat >conftest.
$ac_ext <<_ACEOF
5498 #line 5498 "configure"
5499 #include "confdefs.h"
5500 /* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char __setostype (); below. */
5503 /* Override any gcc2 internal prototype to avoid an error. */
5507 /* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5509 char __setostype ();
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub___setostype) || defined (__stub_____setostype)
5528 rm -f conftest.
$ac_objext conftest
$ac_exeext
5529 if { (eval echo "$as_me:5529: \"$ac_link\"") >&5
5530 (eval $ac_link) 2>&5
5532 echo "$as_me:5532: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try
='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:5535: \"$ac_try\"") >&5
5538 echo "$as_me:5538: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_func___setostype
=yes
5542 echo "$as_me: failed program was:" >&5
5543 cat conftest.
$ac_ext >&5
5544 ac_cv_func___setostype
=no
5546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5548 echo "$as_me:5548: result: $ac_cv_func___setostype" >&5
5549 echo "${ECHO_T}$ac_cv_func___setostype" >&6
5550 if test $ac_cv_func___setostype = yes; then
5551 cat >>confdefs.h
<<\EOF
5552 #define HAVE_SETOSTYPE 1
5557 echo "$as_me:5557: checking for wait3" >&5
5558 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
5559 if test "${ac_cv_func_wait3+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.
$ac_ext <<_ACEOF
5563 #line 5563 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char wait3 (); below. */
5568 /* Override any gcc2 internal prototype to avoid an error. */
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined (__stub_wait3) || defined (__stub___wait3)
5593 rm -f conftest.
$ac_objext conftest
$ac_exeext
5594 if { (eval echo "$as_me:5594: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5597 echo "$as_me:5597: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try
='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:5600: \"$ac_try\"") >&5
5603 echo "$as_me:5603: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_func_wait3
=yes
5607 echo "$as_me: failed program was:" >&5
5608 cat conftest.
$ac_ext >&5
5611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5613 echo "$as_me:5613: result: $ac_cv_func_wait3" >&5
5614 echo "${ECHO_T}$ac_cv_func_wait3" >&6
5615 if test $ac_cv_func_wait3 = yes; then
5616 cat >>confdefs.h
<<\EOF
5617 #define HAVE_WAIT3 1
5622 echo "$as_me:5622: checking for mkfifo" >&5
5623 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
5624 if test "${ac_cv_func_mkfifo+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 cat >conftest.
$ac_ext <<_ACEOF
5628 #line 5628 "configure"
5629 #include "confdefs.h"
5630 /* System header to define __stub macros and hopefully few prototypes,
5631 which can conflict with char mkfifo (); below. */
5633 /* Override any gcc2 internal prototype to avoid an error. */
5637 /* We use char because int might match the return type of a gcc2
5638 builtin and then its argument prototype would still apply. */
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
5658 rm -f conftest.
$ac_objext conftest
$ac_exeext
5659 if { (eval echo "$as_me:5659: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>&5
5662 echo "$as_me:5662: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try
='test -s conftest$ac_exeext'
5665 { (eval echo "$as_me:5665: \"$ac_try\"") >&5
5668 echo "$as_me:5668: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_func_mkfifo
=yes
5672 echo "$as_me: failed program was:" >&5
5673 cat conftest.
$ac_ext >&5
5674 ac_cv_func_mkfifo
=no
5676 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5678 echo "$as_me:5678: result: $ac_cv_func_mkfifo" >&5
5679 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
5680 if test $ac_cv_func_mkfifo = yes; then
5681 cat >>confdefs.h
<<\EOF
5682 #define HAVE_MKFIFO 1
5686 cat >>confdefs.h
<<\EOF
5687 #define MKFIFO_MISSING 1
5692 for ac_func
in dup2
select getdtablesize getgroups gethostname \
5693 setdtablesize getpagesize killpg lstat getpeername sbrk \
5694 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
5697 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5698 echo "$as_me:5698: checking for $ac_func" >&5
5699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5700 if eval "test \"\${$as_ac_var+set}\" = set"; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 cat >conftest.
$ac_ext <<_ACEOF
5704 #line 5704 "configure"
5705 #include "confdefs.h"
5706 /* System header to define __stub macros and hopefully few prototypes,
5707 which can conflict with char $ac_func (); below. */
5709 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5721 /* The GNU C library defines this for functions which it implements
5722 to always fail with ENOSYS. Some functions are actually named
5723 something starting with __ and the normal name is an alias. */
5724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5734 rm -f conftest.
$ac_objext conftest
$ac_exeext
5735 if { (eval echo "$as_me:5735: \"$ac_link\"") >&5
5736 (eval $ac_link) 2>&5
5738 echo "$as_me:5738: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try
='test -s conftest$ac_exeext'
5741 { (eval echo "$as_me:5741: \"$ac_try\"") >&5
5744 echo "$as_me:5744: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 eval "$as_ac_var=yes"
5748 echo "$as_me: failed program was:" >&5
5749 cat conftest.
$ac_ext >&5
5750 eval "$as_ac_var=no"
5752 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5754 echo "$as_me:5754: result: `eval echo '${'$as_ac_var'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5756 if test `eval echo '${'$as_ac_var'}'` = yes; then
5757 cat >>confdefs.h
<<EOF
5758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5764 for ac_func
in rename
5766 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5767 echo "$as_me:5767: checking for $ac_func" >&5
5768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5769 if eval "test \"\${$as_ac_var+set}\" = set"; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.
$ac_ext <<_ACEOF
5773 #line 5773 "configure"
5774 #include "confdefs.h"
5775 /* System header to define __stub macros and hopefully few prototypes,
5776 which can conflict with char $ac_func (); below. */
5778 /* Override any gcc2 internal prototype to avoid an error. */
5782 /* We use char because int might match the return type of a gcc2
5783 builtin and then its argument prototype would still apply. */
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5803 rm -f conftest.
$ac_objext conftest
$ac_exeext
5804 if { (eval echo "$as_me:5804: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>&5
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try
='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5813 echo "$as_me:5813: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 eval "$as_ac_var=yes"
5817 echo "$as_me: failed program was:" >&5
5818 cat conftest.
$ac_ext >&5
5819 eval "$as_ac_var=no"
5821 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5823 echo "$as_me:5823: result: `eval echo '${'$as_ac_var'}'`" >&5
5824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5825 if test `eval echo '${'$as_ac_var'}'` = yes; then
5826 cat >>confdefs.h
<<EOF
5827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5831 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5835 for ac_func
in bcopy bzero confstr sysconf pathconf setenv putenv \
5836 setlinebuf setvbuf setlocale strchr tcgetattr uname \
5837 ulimit tzset siginterrupt memmove ttyname
times \
5838 getaddrinfo gethostbyname getservbyname inet_aton \
5839 vsnprintf snprintf vasprintf asprintf fnmatch
5841 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5842 echo "$as_me:5842: checking for $ac_func" >&5
5843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5844 if eval "test \"\${$as_ac_var+set}\" = set"; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.
$ac_ext <<_ACEOF
5848 #line 5848 "configure"
5849 #include "confdefs.h"
5850 /* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func (); below. */
5853 /* Override any gcc2 internal prototype to avoid an error. */
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5865 /* The GNU C library defines this for functions which it implements
5866 to always fail with ENOSYS. Some functions are actually named
5867 something starting with __ and the normal name is an alias. */
5868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5878 rm -f conftest.
$ac_objext conftest
$ac_exeext
5879 if { (eval echo "$as_me:5879: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>&5
5882 echo "$as_me:5882: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try
='test -s conftest$ac_exeext'
5885 { (eval echo "$as_me:5885: \"$ac_try\"") >&5
5888 echo "$as_me:5888: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 eval "$as_ac_var=yes"
5892 echo "$as_me: failed program was:" >&5
5893 cat conftest.
$ac_ext >&5
5894 eval "$as_ac_var=no"
5896 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5898 echo "$as_me:5898: result: `eval echo '${'$as_ac_var'}'`" >&5
5899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5900 if test `eval echo '${'$as_ac_var'}'` = yes; then
5901 cat >>confdefs.h
<<EOF
5902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5908 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
5910 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5911 echo "$as_me:5911: checking for $ac_func" >&5
5912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_var+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 cat >conftest.
$ac_ext <<_ACEOF
5917 #line 5917 "configure"
5918 #include "confdefs.h"
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func (); below. */
5922 /* Override any gcc2 internal prototype to avoid an error. */
5926 /* We use char because int might match the return type of a gcc2
5927 builtin and then its argument prototype would still apply. */
5934 /* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5947 rm -f conftest.
$ac_objext conftest
$ac_exeext
5948 if { (eval echo "$as_me:5948: \"$ac_link\"") >&5
5949 (eval $ac_link) 2>&5
5951 echo "$as_me:5951: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try
='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:5954: \"$ac_try\"") >&5
5957 echo "$as_me:5957: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 eval "$as_ac_var=yes"
5961 echo "$as_me: failed program was:" >&5
5962 cat conftest.
$ac_ext >&5
5963 eval "$as_ac_var=no"
5965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5967 echo "$as_me:5967: result: `eval echo '${'$as_ac_var'}'`" >&5
5968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5969 if test `eval echo '${'$as_ac_var'}'` = yes; then
5970 cat >>confdefs.h
<<EOF
5971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5977 for ac_func
in getcwd strcasecmp strerror strpbrk strtod
5979 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980 echo "$as_me:5980: checking for $ac_func" >&5
5981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_var+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.
$ac_ext <<_ACEOF
5986 #line 5986 "configure"
5987 #include "confdefs.h"
5988 /* System header to define __stub macros and hopefully few prototypes,
5989 which can conflict with char $ac_func (); below. */
5991 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6003 /* The GNU C library defines this for functions which it implements
6004 to always fail with ENOSYS. Some functions are actually named
6005 something starting with __ and the normal name is an alias. */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6016 rm -f conftest.
$ac_objext conftest
$ac_exeext
6017 if { (eval echo "$as_me:6017: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:6020: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try
='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:6023: \"$ac_try\"") >&5
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 eval "$as_ac_var=yes"
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.
$ac_ext >&5
6032 eval "$as_ac_var=no"
6034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6036 echo "$as_me:6036: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039 cat >>confdefs.h
<<EOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6044 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6048 for ac_func
in strtol strtoul strtoll strtoull strtoimax strtoumax
6050 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6051 echo "$as_me:6051: checking for $ac_func" >&5
6052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6053 if eval "test \"\${$as_ac_var+set}\" = set"; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.
$ac_ext <<_ACEOF
6057 #line 6057 "configure"
6058 #include "confdefs.h"
6059 /* System header to define __stub macros and hopefully few prototypes,
6060 which can conflict with char $ac_func (); below. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6087 rm -f conftest.
$ac_objext conftest
$ac_exeext
6088 if { (eval echo "$as_me:6088: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>&5
6091 echo "$as_me:6091: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try
='test -s conftest$ac_exeext'
6094 { (eval echo "$as_me:6094: \"$ac_try\"") >&5
6097 echo "$as_me:6097: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 eval "$as_ac_var=yes"
6101 echo "$as_me: failed program was:" >&5
6102 cat conftest.
$ac_ext >&5
6103 eval "$as_ac_var=no"
6105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6107 echo "$as_me:6107: result: `eval echo '${'$as_ac_var'}'`" >&5
6108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6109 if test `eval echo '${'$as_ac_var'}'` = yes; then
6110 cat >>confdefs.h
<<EOF
6111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6115 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6119 echo "$as_me:6119: checking whether strtold is declared" >&5
6120 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
6121 if test "${ac_cv_have_decl_strtold+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.
$ac_ext <<_ACEOF
6125 #line 6125 "configure"
6126 #include "confdefs.h"
6127 $ac_includes_default
6132 char *p = (char *) strtold;
6139 rm -f conftest.
$ac_objext
6140 if { (eval echo "$as_me:6140: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>&5
6143 echo "$as_me:6143: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try
='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:6146: \"$ac_try\"") >&5
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_have_decl_strtold
=yes
6153 echo "$as_me: failed program was:" >&5
6154 cat conftest.
$ac_ext >&5
6155 ac_cv_have_decl_strtold
=no
6157 rm -f conftest.
$ac_objext conftest.
$ac_ext
6159 echo "$as_me:6159: result: $ac_cv_have_decl_strtold" >&5
6160 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
6161 if test $ac_cv_have_decl_strtold = yes; then
6163 cat >>confdefs.h
<<EOF
6164 #define HAVE_DECL_STRTOLD 1
6168 cat >>confdefs.h
<<EOF
6169 #define HAVE_DECL_STRTOLD 0
6174 echo "$as_me:6174: checking whether confstr is declared" >&5
6175 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
6176 if test "${ac_cv_have_decl_confstr+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 cat >conftest.
$ac_ext <<_ACEOF
6180 #line 6180 "configure"
6181 #include "confdefs.h"
6182 $ac_includes_default
6187 char *p = (char *) confstr;
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:6195: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try
='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:6201: \"$ac_try\"") >&5
6204 echo "$as_me:6204: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_have_decl_confstr
=yes
6208 echo "$as_me: failed program was:" >&5
6209 cat conftest.
$ac_ext >&5
6210 ac_cv_have_decl_confstr
=no
6212 rm -f conftest.
$ac_objext conftest.
$ac_ext
6214 echo "$as_me:6214: result: $ac_cv_have_decl_confstr" >&5
6215 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
6216 if test $ac_cv_have_decl_confstr = yes; then
6218 cat >>confdefs.h
<<EOF
6219 #define HAVE_DECL_CONFSTR 1
6223 cat >>confdefs.h
<<EOF
6224 #define HAVE_DECL_CONFSTR 0
6229 echo "$as_me:6229: checking whether sbrk is declared" >&5
6230 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
6231 if test "${ac_cv_have_decl_sbrk+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6235 #line 6235 "configure"
6236 #include "confdefs.h"
6237 $ac_includes_default
6242 char *p = (char *) sbrk;
6249 rm -f conftest.
$ac_objext
6250 if { (eval echo "$as_me:6250: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>&5
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try
='test -s conftest.$ac_objext'
6256 { (eval echo "$as_me:6256: \"$ac_try\"") >&5
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_have_decl_sbrk
=yes
6263 echo "$as_me: failed program was:" >&5
6264 cat conftest.
$ac_ext >&5
6265 ac_cv_have_decl_sbrk
=no
6267 rm -f conftest.
$ac_objext conftest.
$ac_ext
6269 echo "$as_me:6269: result: $ac_cv_have_decl_sbrk" >&5
6270 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
6271 if test $ac_cv_have_decl_sbrk = yes; then
6273 cat >>confdefs.h
<<EOF
6274 #define HAVE_DECL_SBRK 1
6278 cat >>confdefs.h
<<EOF
6279 #define HAVE_DECL_SBRK 0
6284 echo "$as_me:6284: checking whether printf is declared" >&5
6285 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
6286 if test "${ac_cv_have_decl_printf+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 cat >conftest.
$ac_ext <<_ACEOF
6290 #line 6290 "configure"
6291 #include "confdefs.h"
6292 $ac_includes_default
6297 char *p = (char *) printf;
6304 rm -f conftest.
$ac_objext
6305 if { (eval echo "$as_me:6305: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>&5
6308 echo "$as_me:6308: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try
='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:6311: \"$ac_try\"") >&5
6314 echo "$as_me:6314: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_have_decl_printf
=yes
6318 echo "$as_me: failed program was:" >&5
6319 cat conftest.
$ac_ext >&5
6320 ac_cv_have_decl_printf
=no
6322 rm -f conftest.
$ac_objext conftest.
$ac_ext
6324 echo "$as_me:6324: result: $ac_cv_have_decl_printf" >&5
6325 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
6326 if test $ac_cv_have_decl_printf = yes; then
6328 cat >>confdefs.h
<<EOF
6329 #define HAVE_DECL_PRINTF 1
6333 cat >>confdefs.h
<<EOF
6334 #define HAVE_DECL_PRINTF 0
6339 echo "$as_me:6339: checking whether strsignal is declared" >&5
6340 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
6341 if test "${ac_cv_have_decl_strsignal+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 cat >conftest.
$ac_ext <<_ACEOF
6345 #line 6345 "configure"
6346 #include "confdefs.h"
6347 $ac_includes_default
6352 char *p = (char *) strsignal;
6359 rm -f conftest.
$ac_objext
6360 if { (eval echo "$as_me:6360: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>&5
6363 echo "$as_me:6363: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try
='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:6366: \"$ac_try\"") >&5
6369 echo "$as_me:6369: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_have_decl_strsignal
=yes
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.
$ac_ext >&5
6375 ac_cv_have_decl_strsignal
=no
6377 rm -f conftest.
$ac_objext conftest.
$ac_ext
6379 echo "$as_me:6379: result: $ac_cv_have_decl_strsignal" >&5
6380 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
6381 if test $ac_cv_have_decl_strsignal = yes; then
6383 cat >>confdefs.h
<<EOF
6384 #define HAVE_DECL_STRSIGNAL 1
6388 cat >>confdefs.h
<<EOF
6389 #define HAVE_DECL_STRSIGNAL 0
6394 echo "$as_me:6394: checking for declaration of strtoimax" >&5
6395 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
6396 if test "${bash_cv_decl_strtoimax+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 cat >conftest.
$ac_ext <<_ACEOF
6400 #line 6400 "configure"
6401 #include "confdefs.h"
6404 # include <stdlib.h>
6407 # include <inttypes.h>
6418 rm -f conftest.
$ac_objext conftest
$ac_exeext
6419 if { (eval echo "$as_me:6419: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>&5
6422 echo "$as_me:6422: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try
='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:6425: \"$ac_try\"") >&5
6428 echo "$as_me:6428: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 bash_cv_decl_strtoimax
=yes
6432 echo "$as_me: failed program was:" >&5
6433 cat conftest.
$ac_ext >&5
6434 bash_cv_decl_strtoimax
=no
6436 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6438 echo "$as_me:6438: result: $bash_cv_decl_strtoimax" >&5
6439 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
6440 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6441 if test $bash_cv_decl_strtoimax = yes; then
6442 cat >>confdefs.h
<<EOF
6443 #define $bash_tr_func 1
6447 cat >>confdefs.h
<<EOF
6448 #define $bash_tr_func 0
6453 echo "$as_me:6453: checking for declaration of strtol" >&5
6454 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
6455 if test "${bash_cv_decl_strtol+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 cat >conftest.
$ac_ext <<_ACEOF
6459 #line 6459 "configure"
6460 #include "confdefs.h"
6463 # include <stdlib.h>
6466 # include <inttypes.h>
6477 rm -f conftest.
$ac_objext conftest
$ac_exeext
6478 if { (eval echo "$as_me:6478: \"$ac_link\"") >&5
6479 (eval $ac_link) 2>&5
6481 echo "$as_me:6481: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try
='test -s conftest$ac_exeext'
6484 { (eval echo "$as_me:6484: \"$ac_try\"") >&5
6487 echo "$as_me:6487: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 bash_cv_decl_strtol
=yes
6491 echo "$as_me: failed program was:" >&5
6492 cat conftest.
$ac_ext >&5
6493 bash_cv_decl_strtol
=no
6495 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6497 echo "$as_me:6497: result: $bash_cv_decl_strtol" >&5
6498 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
6499 bash_tr_func
=HAVE_DECL_
`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6500 if test $bash_cv_decl_strtol = yes; then
6501 cat >>confdefs.h
<<EOF
6502 #define $bash_tr_func 1
6506 cat >>confdefs.h
<<EOF
6507 #define $bash_tr_func 0
6512 echo "$as_me:6512: checking for declaration of strtoll" >&5
6513 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
6514 if test "${bash_cv_decl_strtoll+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 cat >conftest.
$ac_ext <<_ACEOF
6518 #line 6518 "configure"
6519 #include "confdefs.h"
6522 # include <stdlib.h>
6525 # include <inttypes.h>
6536 rm -f conftest.
$ac_objext conftest
$ac_exeext
6537 if { (eval echo "$as_me:6537: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6540 echo "$as_me:6540: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try
='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:6543: \"$ac_try\"") >&5
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 bash_cv_decl_strtoll
=yes
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6552 bash_cv_decl_strtoll
=no
6554 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6556 echo "$as_me:6556: result: $bash_cv_decl_strtoll" >&5
6557 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
6558 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6559 if test $bash_cv_decl_strtoll = yes; then
6560 cat >>confdefs.h
<<EOF
6561 #define $bash_tr_func 1
6565 cat >>confdefs.h
<<EOF
6566 #define $bash_tr_func 0
6571 echo "$as_me:6571: checking for declaration of strtoul" >&5
6572 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
6573 if test "${bash_cv_decl_strtoul+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.
$ac_ext <<_ACEOF
6577 #line 6577 "configure"
6578 #include "confdefs.h"
6581 # include <stdlib.h>
6584 # include <inttypes.h>
6595 rm -f conftest.
$ac_objext conftest
$ac_exeext
6596 if { (eval echo "$as_me:6596: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>&5
6599 echo "$as_me:6599: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try
='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:6602: \"$ac_try\"") >&5
6605 echo "$as_me:6605: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 bash_cv_decl_strtoul
=yes
6609 echo "$as_me: failed program was:" >&5
6610 cat conftest.
$ac_ext >&5
6611 bash_cv_decl_strtoul
=no
6613 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6615 echo "$as_me:6615: result: $bash_cv_decl_strtoul" >&5
6616 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
6617 bash_tr_func
=HAVE_DECL_
`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6618 if test $bash_cv_decl_strtoul = yes; then
6619 cat >>confdefs.h
<<EOF
6620 #define $bash_tr_func 1
6624 cat >>confdefs.h
<<EOF
6625 #define $bash_tr_func 0
6630 echo "$as_me:6630: checking for declaration of strtoull" >&5
6631 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
6632 if test "${bash_cv_decl_strtoull+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat >conftest.
$ac_ext <<_ACEOF
6636 #line 6636 "configure"
6637 #include "confdefs.h"
6640 # include <stdlib.h>
6643 # include <inttypes.h>
6654 rm -f conftest.
$ac_objext conftest
$ac_exeext
6655 if { (eval echo "$as_me:6655: \"$ac_link\"") >&5
6656 (eval $ac_link) 2>&5
6658 echo "$as_me:6658: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try
='test -s conftest$ac_exeext'
6661 { (eval echo "$as_me:6661: \"$ac_try\"") >&5
6664 echo "$as_me:6664: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 bash_cv_decl_strtoull
=yes
6668 echo "$as_me: failed program was:" >&5
6669 cat conftest.
$ac_ext >&5
6670 bash_cv_decl_strtoull
=no
6672 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6674 echo "$as_me:6674: result: $bash_cv_decl_strtoull" >&5
6675 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
6676 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6677 if test $bash_cv_decl_strtoull = yes; then
6678 cat >>confdefs.h
<<EOF
6679 #define $bash_tr_func 1
6683 cat >>confdefs.h
<<EOF
6684 #define $bash_tr_func 0
6689 echo "$as_me:6689: checking for declaration of strtoumax" >&5
6690 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
6691 if test "${bash_cv_decl_strtoumax+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 cat >conftest.
$ac_ext <<_ACEOF
6695 #line 6695 "configure"
6696 #include "confdefs.h"
6699 # include <stdlib.h>
6702 # include <inttypes.h>
6713 rm -f conftest.
$ac_objext conftest
$ac_exeext
6714 if { (eval echo "$as_me:6714: \"$ac_link\"") >&5
6715 (eval $ac_link) 2>&5
6717 echo "$as_me:6717: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try
='test -s conftest$ac_exeext'
6720 { (eval echo "$as_me:6720: \"$ac_try\"") >&5
6723 echo "$as_me:6723: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 bash_cv_decl_strtoumax
=yes
6727 echo "$as_me: failed program was:" >&5
6728 cat conftest.
$ac_ext >&5
6729 bash_cv_decl_strtoumax
=no
6731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6733 echo "$as_me:6733: result: $bash_cv_decl_strtoumax" >&5
6734 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
6735 bash_tr_func
=HAVE_DECL_
`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6736 if test $bash_cv_decl_strtoumax = yes; then
6737 cat >>confdefs.h
<<EOF
6738 #define $bash_tr_func 1
6742 cat >>confdefs.h
<<EOF
6743 #define $bash_tr_func 0
6748 for ac_header
in libintl.h
6750 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 echo "$as_me:6751: checking for $ac_header" >&5
6752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6753 if eval "test \"\${$as_ac_Header+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"
6759 #include <$ac_header>
6761 if { (eval echo "$as_me:6761: \"$ac_cpp conftest.$ac_ext\"") >&5
6762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6764 egrep -v '^ *\+' conftest.er1
>conftest.err
6766 cat conftest.err
>&5
6767 echo "$as_me:6767: \$? = $ac_status" >&5
6768 (exit $ac_status); } >/dev
/null
; then
6769 if test -s conftest.err
; then
6770 ac_cpp_err
=$ac_c_preproc_warn_flag
6777 if test -z "$ac_cpp_err"; then
6778 eval "$as_ac_Header=yes"
6780 echo "$as_me: failed program was:" >&5
6781 cat conftest.
$ac_ext >&5
6782 eval "$as_ac_Header=no"
6784 rm -f conftest.err conftest.
$ac_ext
6786 echo "$as_me:6786: result: `eval echo '${'$as_ac_Header'}'`" >&5
6787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789 cat >>confdefs.h
<<EOF
6790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6796 for ac_func
in gettext textdomain bindtextdomain
6798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6799 echo "$as_me:6799: checking for $ac_func" >&5
6800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6801 if eval "test \"\${$as_ac_var+set}\" = set"; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6805 #line 6805 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func (); below. */
6810 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6835 rm -f conftest.
$ac_objext conftest
$ac_exeext
6836 if { (eval echo "$as_me:6836: \"$ac_link\"") >&5
6837 (eval $ac_link) 2>&5
6839 echo "$as_me:6839: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try
='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:6842: \"$ac_try\"") >&5
6845 echo "$as_me:6845: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 eval "$as_ac_var=yes"
6849 echo "$as_me: failed program was:" >&5
6850 cat conftest.
$ac_ext >&5
6851 eval "$as_ac_var=no"
6853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6855 echo "$as_me:6855: result: `eval echo '${'$as_ac_var'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h
<<EOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6865 if test "$ac_cv_func_bindtextdomain" = "no"; then
6867 echo "$as_me:6867: checking for bindtextdomain in -lintl" >&5
6868 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
6869 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_check_lib_save_LIBS
=$LIBS
6874 cat >conftest.
$ac_ext <<_ACEOF
6875 #line 6875 "configure"
6876 #include "confdefs.h"
6878 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884 char bindtextdomain ();
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 ac_cv_lib_intl_bindtextdomain
=yes
6907 echo "$as_me: failed program was:" >&5
6908 cat conftest.
$ac_ext >&5
6909 ac_cv_lib_intl_bindtextdomain
=no
6911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6912 LIBS
=$ac_check_lib_save_LIBS
6914 echo "$as_me:6914: result: $ac_cv_lib_intl_bindtextdomain" >&5
6915 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
6916 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6917 cat >>confdefs.h
<<EOF
6918 #define HAVE_LIBINTL 1
6925 if test "$ac_cv_lib_intl" = "yes"; then
6927 for ac_func
in gettext textdomain bindtextdomain
6929 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930 echo "$as_me:6930: checking for $ac_func" >&5
6931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6932 if eval "test \"\${$as_ac_var+set}\" = set"; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 cat >conftest.
$ac_ext <<_ACEOF
6936 #line 6936 "configure"
6937 #include "confdefs.h"
6938 /* System header to define __stub macros and hopefully few prototypes,
6939 which can conflict with char $ac_func (); below. */
6941 /* Override any gcc2 internal prototype to avoid an error. */
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6953 /* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
6956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6966 rm -f conftest.
$ac_objext conftest
$ac_exeext
6967 if { (eval echo "$as_me:6967: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6970 echo "$as_me:6970: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try
='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:6973: \"$ac_try\"") >&5
6976 echo "$as_me:6976: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 eval "$as_ac_var=yes"
6980 echo "$as_me: failed program was:" >&5
6981 cat conftest.
$ac_ext >&5
6982 eval "$as_ac_var=no"
6984 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6986 echo "$as_me:6986: result: `eval echo '${'$as_ac_var'}'`" >&5
6987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6988 if test `eval echo '${'$as_ac_var'}'` = yes; then
6989 cat >>confdefs.h
<<EOF
6990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6999 if test "$opt_static_link" != yes; then
7001 echo "$as_me:7001: checking for dlopen in -ldl" >&5
7002 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 ac_check_lib_save_LIBS
=$LIBS
7008 cat >conftest.
$ac_ext <<_ACEOF
7009 #line 7009 "configure"
7010 #include "confdefs.h"
7012 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7027 rm -f conftest.
$ac_objext conftest
$ac_exeext
7028 if { (eval echo "$as_me:7028: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7031 echo "$as_me:7031: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try
='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:7034: \"$ac_try\"") >&5
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 ac_cv_lib_dl_dlopen
=yes
7041 echo "$as_me: failed program was:" >&5
7042 cat conftest.
$ac_ext >&5
7043 ac_cv_lib_dl_dlopen
=no
7045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7046 LIBS
=$ac_check_lib_save_LIBS
7048 echo "$as_me:7048: result: $ac_cv_lib_dl_dlopen" >&5
7049 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7050 if test $ac_cv_lib_dl_dlopen = yes; then
7051 cat >>confdefs.h
<<EOF
7052 #define HAVE_LIBDL 1
7059 for ac_func
in dlopen dlclose dlsym
7061 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7062 echo "$as_me:7062: checking for $ac_func" >&5
7063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7064 if eval "test \"\${$as_ac_var+set}\" = set"; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 cat >conftest.
$ac_ext <<_ACEOF
7068 #line 7068 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func (); below. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7085 /* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7098 rm -f conftest.
$ac_objext conftest
$ac_exeext
7099 if { (eval echo "$as_me:7099: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>&5
7102 echo "$as_me:7102: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try
='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:7105: \"$ac_try\"") >&5
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 eval "$as_ac_var=yes"
7112 echo "$as_me: failed program was:" >&5
7113 cat conftest.
$ac_ext >&5
7114 eval "$as_ac_var=no"
7116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7118 echo "$as_me:7118: result: `eval echo '${'$as_ac_var'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7120 if test `eval echo '${'$as_ac_var'}'` = yes; then
7121 cat >>confdefs.h
<<EOF
7122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7130 echo "$as_me:7130: checking for sys_siglist declaration in signal.h or unistd.h" >&5
7131 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
7132 if test "${ac_cv_decl_sys_siglist+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 cat >conftest.
$ac_ext <<_ACEOF
7136 #line 7136 "configure"
7137 #include "confdefs.h"
7138 #include <sys/types.h>
7140 /* NetBSD declares sys_siglist in unistd.h. */
7142 # include <unistd.h>
7148 char *msg = *(sys_siglist + 1);
7153 rm -f conftest.
$ac_objext
7154 if { (eval echo "$as_me:7154: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>&5
7157 echo "$as_me:7157: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try
='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:7160: \"$ac_try\"") >&5
7163 echo "$as_me:7163: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_cv_decl_sys_siglist
=yes
7167 echo "$as_me: failed program was:" >&5
7168 cat conftest.
$ac_ext >&5
7169 ac_cv_decl_sys_siglist
=no
7171 rm -f conftest.
$ac_objext conftest.
$ac_ext
7173 echo "$as_me:7173: result: $ac_cv_decl_sys_siglist" >&5
7174 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
7175 if test $ac_cv_decl_sys_siglist = yes; then
7177 cat >>confdefs.h
<<\EOF
7178 #define SYS_SIGLIST_DECLARED 1
7183 if test "$ac_cv_func_inet_aton" != 'yes'; then
7185 echo "$as_me:7185: checking for inet_aton" >&5
7186 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
7187 if test "${bash_cv_func_inet_aton+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 cat >conftest.
$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7194 #include <sys/types.h>
7195 #include <netinet/in.h>
7196 #include <arpa/inet.h>
7201 inet_aton("127.0.0.1", &ap);
7206 rm -f conftest.
$ac_objext conftest
$ac_exeext
7207 if { (eval echo "$as_me:7207: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>&5
7210 echo "$as_me:7210: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try
='test -s conftest$ac_exeext'
7213 { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7216 echo "$as_me:7216: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 bash_cv_func_inet_aton
=yes
7220 echo "$as_me: failed program was:" >&5
7221 cat conftest.
$ac_ext >&5
7222 bash_cv_func_inet_aton
=no
7224 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7226 echo "$as_me:7226: result: $bash_cv_func_inet_aton" >&5
7227 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
7228 if test $bash_cv_func_inet_aton = yes; then
7229 cat >>confdefs.h
<<\EOF
7230 #define HAVE_INET_ATON 1
7234 LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
7241 echo "$as_me:7241: checking for getpwent in -lsun" >&5
7242 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
7243 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_check_lib_save_LIBS
=$LIBS
7248 cat >conftest.
$ac_ext <<_ACEOF
7249 #line 7249 "configure"
7250 #include "confdefs.h"
7252 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7267 rm -f conftest.
$ac_objext conftest
$ac_exeext
7268 if { (eval echo "$as_me:7268: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>&5
7271 echo "$as_me:7271: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -s conftest$ac_exeext'
7274 { (eval echo "$as_me:7274: \"$ac_try\"") >&5
7277 echo "$as_me:7277: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_lib_sun_getpwent
=yes
7281 echo "$as_me: failed program was:" >&5
7282 cat conftest.
$ac_ext >&5
7283 ac_cv_lib_sun_getpwent
=no
7285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7286 LIBS
=$ac_check_lib_save_LIBS
7288 echo "$as_me:7288: result: $ac_cv_lib_sun_getpwent" >&5
7289 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
7290 if test $ac_cv_lib_sun_getpwent = yes; then
7291 cat >>confdefs.h
<<EOF
7292 #define HAVE_LIBSUN 1
7301 if test "$ac_cv_func_getpeername" = no
; then
7303 if test "X$bash_cv_have_socklib" = "X"; then
7306 echo "$as_me:7306: checking for socket library" >&5
7307 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
7310 if test "${bash_cv_have_socklib+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 echo "$as_me:7313: checking for getpeername in -lsocket" >&5
7314 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
7315 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 ac_check_lib_save_LIBS
=$LIBS
7319 LIBS
="-lsocket -lnsl $LIBS"
7320 cat >conftest.
$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7324 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7330 char getpeername ();
7339 rm -f conftest.
$ac_objext conftest
$ac_exeext
7340 if { (eval echo "$as_me:7340: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>&5
7343 echo "$as_me:7343: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try
='test -s conftest$ac_exeext'
7346 { (eval echo "$as_me:7346: \"$ac_try\"") >&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_lib_socket_getpeername
=yes
7353 echo "$as_me: failed program was:" >&5
7354 cat conftest.
$ac_ext >&5
7355 ac_cv_lib_socket_getpeername
=no
7357 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7358 LIBS
=$ac_check_lib_save_LIBS
7360 echo "$as_me:7360: result: $ac_cv_lib_socket_getpeername" >&5
7361 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
7362 if test $ac_cv_lib_socket_getpeername = yes; then
7363 bash_cv_have_socklib
=yes
7365 bash_cv_have_socklib
=no
7370 if test "X$_bash_needmsg" = Xyes
; then
7371 echo "$as_me:7371: result: $bash_cv_have_socklib" >&5
7372 echo "${ECHO_T}$bash_cv_have_socklib" >&6
7375 if test $bash_cv_have_socklib = yes; then
7376 # check for libnsl, add it to LIBS if present
7377 if test "X$bash_cv_have_libnsl" = "X"; then
7380 echo "$as_me:7380: checking for libnsl" >&5
7381 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
7384 if test "${bash_cv_have_libnsl+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 echo "$as_me:7387: checking for t_open in -lnsl" >&5
7388 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
7389 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_check_lib_save_LIBS
=$LIBS
7394 cat >conftest.
$ac_ext <<_ACEOF
7395 #line 7395 "configure"
7396 #include "confdefs.h"
7398 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7413 rm -f conftest.
$ac_objext conftest
$ac_exeext
7414 if { (eval echo "$as_me:7414: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>&5
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try
='test -s conftest$ac_exeext'
7420 { (eval echo "$as_me:7420: \"$ac_try\"") >&5
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_lib_nsl_t_open
=yes
7427 echo "$as_me: failed program was:" >&5
7428 cat conftest.
$ac_ext >&5
7429 ac_cv_lib_nsl_t_open
=no
7431 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7432 LIBS
=$ac_check_lib_save_LIBS
7434 echo "$as_me:7434: result: $ac_cv_lib_nsl_t_open" >&5
7435 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
7436 if test $ac_cv_lib_nsl_t_open = yes; then
7437 bash_cv_have_libnsl
=yes
7439 bash_cv_have_libnsl
=no
7444 if test "X$_bash_needmsg" = Xyes
; then
7445 echo "$as_me:7445: result: $bash_cv_have_libnsl" >&5
7446 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
7449 if test $bash_cv_have_libnsl = yes; then
7450 LIBS
="-lsocket -lnsl $LIBS"
7452 LIBS
="-lsocket $LIBS"
7454 cat >>confdefs.h
<<\EOF
7455 #define HAVE_LIBSOCKET 1
7458 cat >>confdefs.h
<<\EOF
7459 #define HAVE_GETPEERNAME 1
7465 if test "$ac_cv_func_gethostbyname" = no
; then
7466 if test "X$bash_cv_have_gethostbyname" = "X"; then
7469 echo "$as_me:7469: checking for gethostbyname in socket library" >&5
7470 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
7473 if test "${bash_cv_have_gethostbyname+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.
$ac_ext <<_ACEOF
7477 #line 7477 "configure"
7478 #include "confdefs.h"
7484 hp = gethostbyname("localhost");
7490 rm -f conftest.
$ac_objext conftest
$ac_exeext
7491 if { (eval echo "$as_me:7491: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>&5
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try
='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 bash_cv_have_gethostbyname
=yes
7504 echo "$as_me: failed program was:" >&5
7505 cat conftest.
$ac_ext >&5
7506 bash_cv_have_gethostbyname
=no
7508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7512 if test "X$_bash_needmsg" = Xyes
; then
7513 echo "$as_me:7513: checking for gethostbyname in socket library" >&5
7514 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
7516 echo "$as_me:7516: result: $bash_cv_have_gethostbyname" >&5
7517 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
7518 if test "$bash_cv_have_gethostbyname" = yes; then
7519 cat >>confdefs.h
<<\EOF
7520 #define HAVE_GETHOSTBYNAME 1
7527 echo "$as_me:7527: checking for uid_t in sys/types.h" >&5
7528 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7529 if test "${ac_cv_type_uid_t+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 cat >conftest.
$ac_ext <<_ACEOF
7533 #line 7533 "configure"
7534 #include "confdefs.h"
7535 #include <sys/types.h>
7538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7539 egrep "uid_t" >/dev
/null
2>&1; then
7540 ac_cv_type_uid_t
=yes
7547 echo "$as_me:7547: result: $ac_cv_type_uid_t" >&5
7548 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7549 if test $ac_cv_type_uid_t = no
; then
7551 cat >>confdefs.h
<<\EOF
7555 cat >>confdefs.h
<<\EOF
7561 echo "$as_me:7561: checking type of array argument to getgroups" >&5
7562 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7563 if test "${ac_cv_type_getgroups+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 if test "$cross_compiling" = yes; then
7567 ac_cv_type_getgroups
=cross
7569 cat >conftest.
$ac_ext <<_ACEOF
7570 #line 7570 "configure"
7571 #include "confdefs.h"
7572 /* Thanks to Mike Rendell for this test. */
7573 #include <sys/types.h>
7576 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7583 union { gid_t gval; long lval; } val;
7586 for (i = 0; i < NGID; i++)
7587 gidset[i] = val.gval;
7588 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7590 /* Exit non-zero if getgroups seems to require an array of ints. This
7591 happens when gid_t is short but getgroups modifies an array of ints. */
7592 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7595 rm -f conftest
$ac_exeext
7596 if { (eval echo "$as_me:7596: \"$ac_link\"") >&5
7597 (eval $ac_link) 2>&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7601 { (eval echo "$as_me:7601: \"$ac_try\"") >&5
7604 echo "$as_me:7604: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_type_getgroups
=gid_t
7608 echo "$as_me: program exited with status $ac_status" >&5
7609 echo "$as_me: failed program was:" >&5
7610 cat conftest.
$ac_ext >&5
7611 ac_cv_type_getgroups
=int
7613 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7615 if test $ac_cv_type_getgroups = cross
; then
7616 cat >conftest.
$ac_ext <<_ACEOF
7617 #line 7617 "configure"
7618 #include "confdefs.h"
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7624 ac_cv_type_getgroups
=gid_t
7626 ac_cv_type_getgroups
=int
7632 echo "$as_me:7632: result: $ac_cv_type_getgroups" >&5
7633 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7635 cat >>confdefs.h
<<EOF
7636 #define GETGROUPS_T $ac_cv_type_getgroups
7639 echo "$as_me:7639: checking for off_t" >&5
7640 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7641 if test "${ac_cv_type_off_t+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 cat >conftest.
$ac_ext <<_ACEOF
7645 #line 7645 "configure"
7646 #include "confdefs.h"
7647 $ac_includes_default
7659 rm -f conftest.
$ac_objext
7660 if { (eval echo "$as_me:7660: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>&5
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try
='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:7666: \"$ac_try\"") >&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_type_off_t
=yes
7673 echo "$as_me: failed program was:" >&5
7674 cat conftest.
$ac_ext >&5
7677 rm -f conftest.
$ac_objext conftest.
$ac_ext
7679 echo "$as_me:7679: result: $ac_cv_type_off_t" >&5
7680 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7681 if test $ac_cv_type_off_t = yes; then
7685 cat >>confdefs.h
<<EOF
7691 echo "$as_me:7691: checking for mode_t" >&5
7692 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7693 if test "${ac_cv_type_mode_t+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cat >conftest.
$ac_ext <<_ACEOF
7697 #line 7697 "configure"
7698 #include "confdefs.h"
7699 $ac_includes_default
7705 if (sizeof (mode_t))
7711 rm -f conftest.
$ac_objext
7712 if { (eval echo "$as_me:7712: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>&5
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try
='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:7718: \"$ac_try\"") >&5
7721 echo "$as_me:7721: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_type_mode_t
=yes
7725 echo "$as_me: failed program was:" >&5
7726 cat conftest.
$ac_ext >&5
7727 ac_cv_type_mode_t
=no
7729 rm -f conftest.
$ac_objext conftest.
$ac_ext
7731 echo "$as_me:7731: result: $ac_cv_type_mode_t" >&5
7732 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7733 if test $ac_cv_type_mode_t = yes; then
7737 cat >>confdefs.h
<<EOF
7743 echo "$as_me:7743: checking for uid_t in sys/types.h" >&5
7744 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7745 if test "${ac_cv_type_uid_t+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 cat >conftest.
$ac_ext <<_ACEOF
7749 #line 7749 "configure"
7750 #include "confdefs.h"
7751 #include <sys/types.h>
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755 egrep "uid_t" >/dev
/null
2>&1; then
7756 ac_cv_type_uid_t
=yes
7763 echo "$as_me:7763: result: $ac_cv_type_uid_t" >&5
7764 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7765 if test $ac_cv_type_uid_t = no
; then
7767 cat >>confdefs.h
<<\EOF
7771 cat >>confdefs.h
<<\EOF
7777 echo "$as_me:7777: checking for pid_t" >&5
7778 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7779 if test "${ac_cv_type_pid_t+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.
$ac_ext <<_ACEOF
7783 #line 7783 "configure"
7784 #include "confdefs.h"
7785 $ac_includes_default
7797 rm -f conftest.
$ac_objext
7798 if { (eval echo "$as_me:7798: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try
='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:7804: \"$ac_try\"") >&5
7807 echo "$as_me:7807: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_cv_type_pid_t
=yes
7811 echo "$as_me: failed program was:" >&5
7812 cat conftest.
$ac_ext >&5
7815 rm -f conftest.
$ac_objext conftest.
$ac_ext
7817 echo "$as_me:7817: result: $ac_cv_type_pid_t" >&5
7818 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7819 if test $ac_cv_type_pid_t = yes; then
7823 cat >>confdefs.h
<<EOF
7829 echo "$as_me:7829: checking for size_t" >&5
7830 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7831 if test "${ac_cv_type_size_t+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.
$ac_ext <<_ACEOF
7835 #line 7835 "configure"
7836 #include "confdefs.h"
7837 $ac_includes_default
7843 if (sizeof (size_t))
7849 rm -f conftest.
$ac_objext
7850 if { (eval echo "$as_me:7850: \"$ac_compile\"") >&5
7851 (eval $ac_compile) 2>&5
7853 echo "$as_me:7853: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try
='test -s conftest.$ac_objext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 ac_cv_type_size_t
=yes
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.
$ac_ext >&5
7865 ac_cv_type_size_t
=no
7867 rm -f conftest.
$ac_objext conftest.
$ac_ext
7869 echo "$as_me:7869: result: $ac_cv_type_size_t" >&5
7870 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7871 if test $ac_cv_type_size_t = yes; then
7875 cat >>confdefs.h
<<EOF
7876 #define size_t unsigned
7881 echo "$as_me:7881: checking for ssize_t" >&5
7882 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7883 if test "${ac_cv_type_ssize_t+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 cat >conftest.
$ac_ext <<_ACEOF
7887 #line 7887 "configure"
7888 #include "confdefs.h"
7889 $ac_includes_default
7895 if (sizeof (ssize_t))
7901 rm -f conftest.
$ac_objext
7902 if { (eval echo "$as_me:7902: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>&5
7905 echo "$as_me:7905: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -s conftest.$ac_objext'
7908 { (eval echo "$as_me:7908: \"$ac_try\"") >&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_type_ssize_t
=yes
7915 echo "$as_me: failed program was:" >&5
7916 cat conftest.
$ac_ext >&5
7917 ac_cv_type_ssize_t
=no
7919 rm -f conftest.
$ac_objext conftest.
$ac_ext
7921 echo "$as_me:7921: result: $ac_cv_type_ssize_t" >&5
7922 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7923 if test $ac_cv_type_ssize_t = yes; then
7927 cat >>confdefs.h
<<EOF
7933 echo "$as_me:7933: checking for time_t" >&5
7934 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
7935 if test "${ac_cv_type_time_t+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.
$ac_ext <<_ACEOF
7939 #line 7939 "configure"
7940 #include "confdefs.h"
7941 $ac_includes_default
7947 if (sizeof (time_t))
7953 rm -f conftest.
$ac_objext
7954 if { (eval echo "$as_me:7954: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>&5
7957 echo "$as_me:7957: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try
='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:7960: \"$ac_try\"") >&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_cv_type_time_t
=yes
7967 echo "$as_me: failed program was:" >&5
7968 cat conftest.
$ac_ext >&5
7969 ac_cv_type_time_t
=no
7971 rm -f conftest.
$ac_objext conftest.
$ac_ext
7973 echo "$as_me:7973: result: $ac_cv_type_time_t" >&5
7974 echo "${ECHO_T}$ac_cv_type_time_t" >&6
7975 if test $ac_cv_type_time_t = yes; then
7979 cat >>confdefs.h
<<EOF
7985 echo "$as_me:7985: checking for long long" >&5
7986 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7987 if test "${bash_cv_type_long_long+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cat >conftest.
$ac_ext <<_ACEOF
7991 #line 7991 "configure"
7992 #include "confdefs.h"
7994 long long ll = 1; int i = 63;
7999 long long llm = (long long) -1;
8000 return ll << i | ll >> i | llm / ll | llm % ll;
8006 rm -f conftest.
$ac_objext conftest
$ac_exeext
8007 if { (eval echo "$as_me:8007: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>&5
8010 echo "$as_me:8010: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try
='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 bash_cv_type_long_long
='long long'
8020 echo "$as_me: failed program was:" >&5
8021 cat conftest.
$ac_ext >&5
8022 bash_cv_type_long_long
='long'
8024 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8026 echo "$as_me:8026: result: $bash_cv_type_long_long" >&5
8027 echo "${ECHO_T}$bash_cv_type_long_long" >&6
8028 if test "$bash_cv_type_long_long" = 'long long'; then
8029 cat >>confdefs.h
<<\EOF
8030 #define HAVE_LONG_LONG 1
8035 echo "$as_me:8035: checking for unsigned long long" >&5
8036 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8037 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 cat >conftest.
$ac_ext <<_ACEOF
8041 #line 8041 "configure"
8042 #include "confdefs.h"
8044 unsigned long long ull = 1; int i = 63;
8049 unsigned long long ullmax = (unsigned long long) -1;
8050 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8056 rm -f conftest.
$ac_objext conftest
$ac_exeext
8057 if { (eval echo "$as_me:8057: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8060 echo "$as_me:8060: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try
='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:8063: \"$ac_try\"") >&5
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 bash_cv_type_unsigned_long_long
='unsigned long long'
8070 echo "$as_me: failed program was:" >&5
8071 cat conftest.
$ac_ext >&5
8072 bash_cv_type_unsigned_long_long
='unsigned long'
8074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8076 echo "$as_me:8076: result: $bash_cv_type_unsigned_long_long" >&5
8077 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
8078 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
8079 cat >>confdefs.h
<<\EOF
8080 #define HAVE_UNSIGNED_LONG_LONG 1
8085 echo "$as_me:8085: checking return type of signal handlers" >&5
8086 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8087 if test "${ac_cv_type_signal+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 cat >conftest.
$ac_ext <<_ACEOF
8091 #line 8091 "configure"
8092 #include "confdefs.h"
8093 #include <sys/types.h>
8099 extern "C" void (*signal (int, void (*)(int)))(int);
8101 void (*signal ()) ();
8112 rm -f conftest.
$ac_objext
8113 if { (eval echo "$as_me:8113: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try
='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:8119: \"$ac_try\"") >&5
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_type_signal
=void
8126 echo "$as_me: failed program was:" >&5
8127 cat conftest.
$ac_ext >&5
8128 ac_cv_type_signal
=int
8130 rm -f conftest.
$ac_objext conftest.
$ac_ext
8132 echo "$as_me:8132: result: $ac_cv_type_signal" >&5
8133 echo "${ECHO_T}$ac_cv_type_signal" >&6
8135 cat >>confdefs.h
<<EOF
8136 #define RETSIGTYPE $ac_cv_type_signal
8139 echo "$as_me:8139: checking for char" >&5
8140 echo $ECHO_N "checking for char... $ECHO_C" >&6
8141 if test "${ac_cv_type_char+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 cat >conftest.
$ac_ext <<_ACEOF
8145 #line 8145 "configure"
8146 #include "confdefs.h"
8147 $ac_includes_default
8159 rm -f conftest.
$ac_objext
8160 if { (eval echo "$as_me:8160: \"$ac_compile\"") >&5
8161 (eval $ac_compile) 2>&5
8163 echo "$as_me:8163: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try
='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:8166: \"$ac_try\"") >&5
8169 echo "$as_me:8169: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8173 echo "$as_me: failed program was:" >&5
8174 cat conftest.
$ac_ext >&5
8177 rm -f conftest.
$ac_objext conftest.
$ac_ext
8179 echo "$as_me:8179: result: $ac_cv_type_char" >&5
8180 echo "${ECHO_T}$ac_cv_type_char" >&6
8182 echo "$as_me:8182: checking size of char" >&5
8183 echo $ECHO_N "checking size of char... $ECHO_C" >&6
8184 if test "${ac_cv_sizeof_char+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 if test "$ac_cv_type_char" = yes; then
8188 if test "$cross_compiling" = yes; then
8189 # Depending upon the size, compute the lo and hi bounds.
8190 cat >conftest.
$ac_ext <<_ACEOF
8191 #line 8191 "configure"
8192 #include "confdefs.h"
8193 $ac_includes_default
8197 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
8202 rm -f conftest.
$ac_objext
8203 if { (eval echo "$as_me:8203: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>&5
8206 echo "$as_me:8206: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try
='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:8209: \"$ac_try\"") >&5
8212 echo "$as_me:8212: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8216 cat >conftest.
$ac_ext <<_ACEOF
8217 #line 8217 "configure"
8218 #include "confdefs.h"
8219 $ac_includes_default
8223 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
8228 rm -f conftest.
$ac_objext
8229 if { (eval echo "$as_me:8229: \"$ac_compile\"") >&5
8230 (eval $ac_compile) 2>&5
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try
='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:8235: \"$ac_try\"") >&5
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_hi
=$ac_mid; break
8242 echo "$as_me: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8244 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
8246 rm -f conftest.
$ac_objext conftest.
$ac_ext
8249 echo "$as_me: failed program was:" >&5
8250 cat conftest.
$ac_ext >&5
8253 cat >conftest.
$ac_ext <<_ACEOF
8254 #line 8254 "configure"
8255 #include "confdefs.h"
8256 $ac_includes_default
8260 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
8265 rm -f conftest.
$ac_objext
8266 if { (eval echo "$as_me:8266: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>&5
8269 echo "$as_me:8269: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try
='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:8272: \"$ac_try\"") >&5
8275 echo "$as_me:8275: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 ac_lo
=$ac_mid; break
8279 echo "$as_me: failed program was:" >&5
8280 cat conftest.
$ac_ext >&5
8281 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
8283 rm -f conftest.
$ac_objext conftest.
$ac_ext
8286 rm -f conftest.
$ac_objext conftest.
$ac_ext
8287 # Binary search between lo and hi bounds.
8288 while test "x$ac_lo" != "x$ac_hi"; do
8289 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290 cat >conftest.
$ac_ext <<_ACEOF
8291 #line 8291 "configure"
8292 #include "confdefs.h"
8293 $ac_includes_default
8297 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
8302 rm -f conftest.
$ac_objext
8303 if { (eval echo "$as_me:8303: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>&5
8306 echo "$as_me:8306: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try
='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:8309: \"$ac_try\"") >&5
8312 echo "$as_me:8312: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8316 echo "$as_me: failed program was:" >&5
8317 cat conftest.
$ac_ext >&5
8318 ac_lo
=`expr $ac_mid + 1`
8320 rm -f conftest.
$ac_objext conftest.
$ac_ext
8322 ac_cv_sizeof_char
=$ac_lo
8324 if test "$cross_compiling" = yes; then
8325 { { echo "$as_me:8325: error: cannot run test program while cross compiling" >&5
8326 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8327 { (exit 1); exit 1; }; }
8329 cat >conftest.
$ac_ext <<_ACEOF
8330 #line 8330 "configure"
8331 #include "confdefs.h"
8332 $ac_includes_default
8336 FILE *f = fopen ("conftest.val", "w");
8339 fprintf (f, "%d", (sizeof (char)));
8345 rm -f conftest
$ac_exeext
8346 if { (eval echo "$as_me:8346: \"$ac_link\"") >&5
8347 (eval $ac_link) 2>&5
8349 echo "$as_me:8349: \$? = $ac_status" >&5
8350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8351 { (eval echo "$as_me:8351: \"$ac_try\"") >&5
8354 echo "$as_me:8354: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_sizeof_char
=`cat conftest.val`
8358 echo "$as_me: program exited with status $ac_status" >&5
8359 echo "$as_me: failed program was:" >&5
8360 cat conftest.
$ac_ext >&5
8362 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8370 echo "$as_me:8370: result: $ac_cv_sizeof_char" >&5
8371 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8372 cat >>confdefs.h
<<EOF
8373 #define SIZEOF_CHAR $ac_cv_sizeof_char
8376 echo "$as_me:8376: checking for short" >&5
8377 echo $ECHO_N "checking for short... $ECHO_C" >&6
8378 if test "${ac_cv_type_short+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 cat >conftest.
$ac_ext <<_ACEOF
8382 #line 8382 "configure"
8383 #include "confdefs.h"
8384 $ac_includes_default
8396 rm -f conftest.
$ac_objext
8397 if { (eval echo "$as_me:8397: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>&5
8400 echo "$as_me:8400: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try
='test -s conftest.$ac_objext'
8403 { (eval echo "$as_me:8403: \"$ac_try\"") >&5
8406 echo "$as_me:8406: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_type_short
=yes
8410 echo "$as_me: failed program was:" >&5
8411 cat conftest.
$ac_ext >&5
8414 rm -f conftest.
$ac_objext conftest.
$ac_ext
8416 echo "$as_me:8416: result: $ac_cv_type_short" >&5
8417 echo "${ECHO_T}$ac_cv_type_short" >&6
8419 echo "$as_me:8419: checking size of short" >&5
8420 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8421 if test "${ac_cv_sizeof_short+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 if test "$ac_cv_type_short" = yes; then
8425 if test "$cross_compiling" = yes; then
8426 # Depending upon the size, compute the lo and hi bounds.
8427 cat >conftest.
$ac_ext <<_ACEOF
8428 #line 8428 "configure"
8429 #include "confdefs.h"
8430 $ac_includes_default
8434 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
8439 rm -f conftest.
$ac_objext
8440 if { (eval echo "$as_me:8440: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>&5
8443 echo "$as_me:8443: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try
='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:8446: \"$ac_try\"") >&5
8449 echo "$as_me:8449: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8453 cat >conftest.
$ac_ext <<_ACEOF
8454 #line 8454 "configure"
8455 #include "confdefs.h"
8456 $ac_includes_default
8460 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
8465 rm -f conftest.
$ac_objext
8466 if { (eval echo "$as_me:8466: \"$ac_compile\"") >&5
8467 (eval $ac_compile) 2>&5
8469 echo "$as_me:8469: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try
='test -s conftest.$ac_objext'
8472 { (eval echo "$as_me:8472: \"$ac_try\"") >&5
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 ac_hi
=$ac_mid; break
8479 echo "$as_me: failed program was:" >&5
8480 cat conftest.
$ac_ext >&5
8481 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
8483 rm -f conftest.
$ac_objext conftest.
$ac_ext
8486 echo "$as_me: failed program was:" >&5
8487 cat conftest.
$ac_ext >&5
8490 cat >conftest.
$ac_ext <<_ACEOF
8491 #line 8491 "configure"
8492 #include "confdefs.h"
8493 $ac_includes_default
8497 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
8502 rm -f conftest.
$ac_objext
8503 if { (eval echo "$as_me:8503: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>&5
8506 echo "$as_me:8506: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try
='test -s conftest.$ac_objext'
8509 { (eval echo "$as_me:8509: \"$ac_try\"") >&5
8512 echo "$as_me:8512: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_lo
=$ac_mid; break
8516 echo "$as_me: failed program was:" >&5
8517 cat conftest.
$ac_ext >&5
8518 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
8520 rm -f conftest.
$ac_objext conftest.
$ac_ext
8523 rm -f conftest.
$ac_objext conftest.
$ac_ext
8524 # Binary search between lo and hi bounds.
8525 while test "x$ac_lo" != "x$ac_hi"; do
8526 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8527 cat >conftest.
$ac_ext <<_ACEOF
8528 #line 8528 "configure"
8529 #include "confdefs.h"
8530 $ac_includes_default
8534 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
8539 rm -f conftest.
$ac_objext
8540 if { (eval echo "$as_me:8540: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>&5
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try
='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:8546: \"$ac_try\"") >&5
8549 echo "$as_me:8549: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8553 echo "$as_me: failed program was:" >&5
8554 cat conftest.
$ac_ext >&5
8555 ac_lo
=`expr $ac_mid + 1`
8557 rm -f conftest.
$ac_objext conftest.
$ac_ext
8559 ac_cv_sizeof_short
=$ac_lo
8561 if test "$cross_compiling" = yes; then
8562 { { echo "$as_me:8562: error: cannot run test program while cross compiling" >&5
8563 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8564 { (exit 1); exit 1; }; }
8566 cat >conftest.
$ac_ext <<_ACEOF
8567 #line 8567 "configure"
8568 #include "confdefs.h"
8569 $ac_includes_default
8573 FILE *f = fopen ("conftest.val", "w");
8576 fprintf (f, "%d", (sizeof (short)));
8582 rm -f conftest
$ac_exeext
8583 if { (eval echo "$as_me:8583: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>&5
8586 echo "$as_me:8586: \$? = $ac_status" >&5
8587 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8588 { (eval echo "$as_me:8588: \"$ac_try\"") >&5
8591 echo "$as_me:8591: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_sizeof_short
=`cat conftest.val`
8595 echo "$as_me: program exited with status $ac_status" >&5
8596 echo "$as_me: failed program was:" >&5
8597 cat conftest.
$ac_ext >&5
8599 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8604 ac_cv_sizeof_short
=0
8607 echo "$as_me:8607: result: $ac_cv_sizeof_short" >&5
8608 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8609 cat >>confdefs.h
<<EOF
8610 #define SIZEOF_SHORT $ac_cv_sizeof_short
8613 echo "$as_me:8613: checking for int" >&5
8614 echo $ECHO_N "checking for int... $ECHO_C" >&6
8615 if test "${ac_cv_type_int+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 cat >conftest.
$ac_ext <<_ACEOF
8619 #line 8619 "configure"
8620 #include "confdefs.h"
8621 $ac_includes_default
8633 rm -f conftest.
$ac_objext
8634 if { (eval echo "$as_me:8634: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>&5
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try
='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:8640: \"$ac_try\"") >&5
8643 echo "$as_me:8643: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8647 echo "$as_me: failed program was:" >&5
8648 cat conftest.
$ac_ext >&5
8651 rm -f conftest.
$ac_objext conftest.
$ac_ext
8653 echo "$as_me:8653: result: $ac_cv_type_int" >&5
8654 echo "${ECHO_T}$ac_cv_type_int" >&6
8656 echo "$as_me:8656: checking size of int" >&5
8657 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8658 if test "${ac_cv_sizeof_int+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 if test "$ac_cv_type_int" = yes; then
8662 if test "$cross_compiling" = yes; then
8663 # Depending upon the size, compute the lo and hi bounds.
8664 cat >conftest.
$ac_ext <<_ACEOF
8665 #line 8665 "configure"
8666 #include "confdefs.h"
8667 $ac_includes_default
8671 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
8676 rm -f conftest.
$ac_objext
8677 if { (eval echo "$as_me:8677: \"$ac_compile\"") >&5
8678 (eval $ac_compile) 2>&5
8680 echo "$as_me:8680: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try
='test -s conftest.$ac_objext'
8683 { (eval echo "$as_me:8683: \"$ac_try\"") >&5
8686 echo "$as_me:8686: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8690 cat >conftest.
$ac_ext <<_ACEOF
8691 #line 8691 "configure"
8692 #include "confdefs.h"
8693 $ac_includes_default
8697 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
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_hi
=$ac_mid; break
8716 echo "$as_me: failed program was:" >&5
8717 cat conftest.
$ac_ext >&5
8718 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
8720 rm -f conftest.
$ac_objext conftest.
$ac_ext
8723 echo "$as_me: failed program was:" >&5
8724 cat conftest.
$ac_ext >&5
8727 cat >conftest.
$ac_ext <<_ACEOF
8728 #line 8728 "configure"
8729 #include "confdefs.h"
8730 $ac_includes_default
8734 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
8739 rm -f conftest.
$ac_objext
8740 if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>&5
8743 echo "$as_me:8743: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try
='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:8746: \"$ac_try\"") >&5
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_lo
=$ac_mid; break
8753 echo "$as_me: failed program was:" >&5
8754 cat conftest.
$ac_ext >&5
8755 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
8757 rm -f conftest.
$ac_objext conftest.
$ac_ext
8760 rm -f conftest.
$ac_objext conftest.
$ac_ext
8761 # Binary search between lo and hi bounds.
8762 while test "x$ac_lo" != "x$ac_hi"; do
8763 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8764 cat >conftest.
$ac_ext <<_ACEOF
8765 #line 8765 "configure"
8766 #include "confdefs.h"
8767 $ac_includes_default
8771 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
8776 rm -f conftest.
$ac_objext
8777 if { (eval echo "$as_me:8777: \"$ac_compile\"") >&5
8778 (eval $ac_compile) 2>&5
8780 echo "$as_me:8780: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try
='test -s conftest.$ac_objext'
8783 { (eval echo "$as_me:8783: \"$ac_try\"") >&5
8786 echo "$as_me:8786: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8790 echo "$as_me: failed program was:" >&5
8791 cat conftest.
$ac_ext >&5
8792 ac_lo
=`expr $ac_mid + 1`
8794 rm -f conftest.
$ac_objext conftest.
$ac_ext
8796 ac_cv_sizeof_int
=$ac_lo
8798 if test "$cross_compiling" = yes; then
8799 { { echo "$as_me:8799: error: cannot run test program while cross compiling" >&5
8800 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8801 { (exit 1); exit 1; }; }
8803 cat >conftest.
$ac_ext <<_ACEOF
8804 #line 8804 "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8810 FILE *f = fopen ("conftest.val", "w");
8813 fprintf (f, "%d", (sizeof (int)));
8819 rm -f conftest
$ac_exeext
8820 if { (eval echo "$as_me:8820: \"$ac_link\"") >&5
8821 (eval $ac_link) 2>&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8825 { (eval echo "$as_me:8825: \"$ac_try\"") >&5
8828 echo "$as_me:8828: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_sizeof_int
=`cat conftest.val`
8832 echo "$as_me: program exited with status $ac_status" >&5
8833 echo "$as_me: failed program was:" >&5
8834 cat conftest.
$ac_ext >&5
8836 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8844 echo "$as_me:8844: result: $ac_cv_sizeof_int" >&5
8845 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8846 cat >>confdefs.h
<<EOF
8847 #define SIZEOF_INT $ac_cv_sizeof_int
8850 echo "$as_me:8850: checking for long" >&5
8851 echo $ECHO_N "checking for long... $ECHO_C" >&6
8852 if test "${ac_cv_type_long+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 cat >conftest.
$ac_ext <<_ACEOF
8856 #line 8856 "configure"
8857 #include "confdefs.h"
8858 $ac_includes_default
8870 rm -f conftest.
$ac_objext
8871 if { (eval echo "$as_me:8871: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>&5
8874 echo "$as_me:8874: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try
='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:8877: \"$ac_try\"") >&5
8880 echo "$as_me:8880: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8884 echo "$as_me: failed program was:" >&5
8885 cat conftest.
$ac_ext >&5
8888 rm -f conftest.
$ac_objext conftest.
$ac_ext
8890 echo "$as_me:8890: result: $ac_cv_type_long" >&5
8891 echo "${ECHO_T}$ac_cv_type_long" >&6
8893 echo "$as_me:8893: checking size of long" >&5
8894 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8895 if test "${ac_cv_sizeof_long+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 if test "$ac_cv_type_long" = yes; then
8899 if test "$cross_compiling" = yes; then
8900 # Depending upon the size, compute the lo and hi bounds.
8901 cat >conftest.
$ac_ext <<_ACEOF
8902 #line 8902 "configure"
8903 #include "confdefs.h"
8904 $ac_includes_default
8908 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
8913 rm -f conftest.
$ac_objext
8914 if { (eval echo "$as_me:8914: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>&5
8917 echo "$as_me:8917: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try
='test -s conftest.$ac_objext'
8920 { (eval echo "$as_me:8920: \"$ac_try\"") >&5
8923 echo "$as_me:8923: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8927 cat >conftest.
$ac_ext <<_ACEOF
8928 #line 8928 "configure"
8929 #include "confdefs.h"
8930 $ac_includes_default
8934 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8939 rm -f conftest.
$ac_objext
8940 if { (eval echo "$as_me:8940: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>&5
8943 echo "$as_me:8943: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try
='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:8946: \"$ac_try\"") >&5
8949 echo "$as_me:8949: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_hi
=$ac_mid; break
8953 echo "$as_me: failed program was:" >&5
8954 cat conftest.
$ac_ext >&5
8955 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
8957 rm -f conftest.
$ac_objext conftest.
$ac_ext
8960 echo "$as_me: failed program was:" >&5
8961 cat conftest.
$ac_ext >&5
8964 cat >conftest.
$ac_ext <<_ACEOF
8965 #line 8965 "configure"
8966 #include "confdefs.h"
8967 $ac_includes_default
8971 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
8976 rm -f conftest.
$ac_objext
8977 if { (eval echo "$as_me:8977: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>&5
8980 echo "$as_me:8980: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try
='test -s conftest.$ac_objext'
8983 { (eval echo "$as_me:8983: \"$ac_try\"") >&5
8986 echo "$as_me:8986: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_lo
=$ac_mid; break
8990 echo "$as_me: failed program was:" >&5
8991 cat conftest.
$ac_ext >&5
8992 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
8994 rm -f conftest.
$ac_objext conftest.
$ac_ext
8997 rm -f conftest.
$ac_objext conftest.
$ac_ext
8998 # Binary search between lo and hi bounds.
8999 while test "x$ac_lo" != "x$ac_hi"; do
9000 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9001 cat >conftest.
$ac_ext <<_ACEOF
9002 #line 9002 "configure"
9003 #include "confdefs.h"
9004 $ac_includes_default
9008 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9013 rm -f conftest.
$ac_objext
9014 if { (eval echo "$as_me:9014: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9017 echo "$as_me:9017: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try
='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:9020: \"$ac_try\"") >&5
9023 echo "$as_me:9023: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.
$ac_ext >&5
9029 ac_lo
=`expr $ac_mid + 1`
9031 rm -f conftest.
$ac_objext conftest.
$ac_ext
9033 ac_cv_sizeof_long
=$ac_lo
9035 if test "$cross_compiling" = yes; then
9036 { { echo "$as_me:9036: error: cannot run test program while cross compiling" >&5
9037 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9038 { (exit 1); exit 1; }; }
9040 cat >conftest.
$ac_ext <<_ACEOF
9041 #line 9041 "configure"
9042 #include "confdefs.h"
9043 $ac_includes_default
9047 FILE *f = fopen ("conftest.val", "w");
9050 fprintf (f, "%d", (sizeof (long)));
9056 rm -f conftest
$ac_exeext
9057 if { (eval echo "$as_me:9057: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_sizeof_long
=`cat conftest.val`
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.
$ac_ext >&5
9073 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9081 echo "$as_me:9081: result: $ac_cv_sizeof_long" >&5
9082 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9083 cat >>confdefs.h
<<EOF
9084 #define SIZEOF_LONG $ac_cv_sizeof_long
9087 echo "$as_me:9087: checking for char *" >&5
9088 echo $ECHO_N "checking for char *... $ECHO_C" >&6
9089 if test "${ac_cv_type_char_p+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.
$ac_ext <<_ACEOF
9093 #line 9093 "configure"
9094 #include "confdefs.h"
9095 $ac_includes_default
9101 if (sizeof (char *))
9107 rm -f conftest.
$ac_objext
9108 if { (eval echo "$as_me:9108: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>&5
9111 echo "$as_me:9111: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try
='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:9114: \"$ac_try\"") >&5
9117 echo "$as_me:9117: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_cv_type_char_p
=yes
9121 echo "$as_me: failed program was:" >&5
9122 cat conftest.
$ac_ext >&5
9123 ac_cv_type_char_p
=no
9125 rm -f conftest.
$ac_objext conftest.
$ac_ext
9127 echo "$as_me:9127: result: $ac_cv_type_char_p" >&5
9128 echo "${ECHO_T}$ac_cv_type_char_p" >&6
9130 echo "$as_me:9130: checking size of char *" >&5
9131 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
9132 if test "${ac_cv_sizeof_char_p+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 if test "$ac_cv_type_char_p" = yes; then
9136 if test "$cross_compiling" = yes; then
9137 # Depending upon the size, compute the lo and hi bounds.
9138 cat >conftest.
$ac_ext <<_ACEOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9141 $ac_includes_default
9145 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
9150 rm -f conftest.
$ac_objext
9151 if { (eval echo "$as_me:9151: \"$ac_compile\"") >&5
9152 (eval $ac_compile) 2>&5
9154 echo "$as_me:9154: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try
='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:9157: \"$ac_try\"") >&5
9160 echo "$as_me:9160: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9164 cat >conftest.
$ac_ext <<_ACEOF
9165 #line 9165 "configure"
9166 #include "confdefs.h"
9167 $ac_includes_default
9171 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
9176 rm -f conftest.
$ac_objext
9177 if { (eval echo "$as_me:9177: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>&5
9180 echo "$as_me:9180: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try
='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:9183: \"$ac_try\"") >&5
9186 echo "$as_me:9186: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_hi
=$ac_mid; break
9190 echo "$as_me: failed program was:" >&5
9191 cat conftest.
$ac_ext >&5
9192 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
9194 rm -f conftest.
$ac_objext conftest.
$ac_ext
9197 echo "$as_me: failed program was:" >&5
9198 cat conftest.
$ac_ext >&5
9201 cat >conftest.
$ac_ext <<_ACEOF
9202 #line 9202 "configure"
9203 #include "confdefs.h"
9204 $ac_includes_default
9208 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
9213 rm -f conftest.
$ac_objext
9214 if { (eval echo "$as_me:9214: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try
='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:9220: \"$ac_try\"") >&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_lo
=$ac_mid; break
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.
$ac_ext >&5
9229 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
9231 rm -f conftest.
$ac_objext conftest.
$ac_ext
9234 rm -f conftest.
$ac_objext conftest.
$ac_ext
9235 # Binary search between lo and hi bounds.
9236 while test "x$ac_lo" != "x$ac_hi"; do
9237 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9238 cat >conftest.
$ac_ext <<_ACEOF
9239 #line 9239 "configure"
9240 #include "confdefs.h"
9241 $ac_includes_default
9245 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
9250 rm -f conftest.
$ac_objext
9251 if { (eval echo "$as_me:9251: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>&5
9254 echo "$as_me:9254: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try
='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:9257: \"$ac_try\"") >&5
9260 echo "$as_me:9260: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9264 echo "$as_me: failed program was:" >&5
9265 cat conftest.
$ac_ext >&5
9266 ac_lo
=`expr $ac_mid + 1`
9268 rm -f conftest.
$ac_objext conftest.
$ac_ext
9270 ac_cv_sizeof_char_p
=$ac_lo
9272 if test "$cross_compiling" = yes; then
9273 { { echo "$as_me:9273: error: cannot run test program while cross compiling" >&5
9274 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9275 { (exit 1); exit 1; }; }
9277 cat >conftest.
$ac_ext <<_ACEOF
9278 #line 9278 "configure"
9279 #include "confdefs.h"
9280 $ac_includes_default
9284 FILE *f = fopen ("conftest.val", "w");
9287 fprintf (f, "%d", (sizeof (char *)));
9293 rm -f conftest
$ac_exeext
9294 if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9299 { (eval echo "$as_me:9299: \"$ac_try\"") >&5
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_sizeof_char_p
=`cat conftest.val`
9306 echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.
$ac_ext >&5
9310 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9315 ac_cv_sizeof_char_p
=0
9318 echo "$as_me:9318: result: $ac_cv_sizeof_char_p" >&5
9319 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
9320 cat >>confdefs.h
<<EOF
9321 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
9324 echo "$as_me:9324: checking for double" >&5
9325 echo $ECHO_N "checking for double... $ECHO_C" >&6
9326 if test "${ac_cv_type_double+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 cat >conftest.
$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9332 $ac_includes_default
9338 if (sizeof (double))
9344 rm -f conftest.
$ac_objext
9345 if { (eval echo "$as_me:9345: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>&5
9348 echo "$as_me:9348: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try
='test -s conftest.$ac_objext'
9351 { (eval echo "$as_me:9351: \"$ac_try\"") >&5
9354 echo "$as_me:9354: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_type_double
=yes
9358 echo "$as_me: failed program was:" >&5
9359 cat conftest.
$ac_ext >&5
9360 ac_cv_type_double
=no
9362 rm -f conftest.
$ac_objext conftest.
$ac_ext
9364 echo "$as_me:9364: result: $ac_cv_type_double" >&5
9365 echo "${ECHO_T}$ac_cv_type_double" >&6
9367 echo "$as_me:9367: checking size of double" >&5
9368 echo $ECHO_N "checking size of double... $ECHO_C" >&6
9369 if test "${ac_cv_sizeof_double+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 if test "$ac_cv_type_double" = yes; then
9373 if test "$cross_compiling" = yes; then
9374 # Depending upon the size, compute the lo and hi bounds.
9375 cat >conftest.
$ac_ext <<_ACEOF
9376 #line 9376 "configure"
9377 #include "confdefs.h"
9378 $ac_includes_default
9382 int _array_ [1 - 2 * !((sizeof (double)) >= 0)]
9387 rm -f conftest.
$ac_objext
9388 if { (eval echo "$as_me:9388: \"$ac_compile\"") >&5
9389 (eval $ac_compile) 2>&5
9391 echo "$as_me:9391: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try
='test -s conftest.$ac_objext'
9394 { (eval echo "$as_me:9394: \"$ac_try\"") >&5
9397 echo "$as_me:9397: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9401 cat >conftest.
$ac_ext <<_ACEOF
9402 #line 9402 "configure"
9403 #include "confdefs.h"
9404 $ac_includes_default
9408 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
9413 rm -f conftest.
$ac_objext
9414 if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try
='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:9420: \"$ac_try\"") >&5
9423 echo "$as_me:9423: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_hi
=$ac_mid; break
9427 echo "$as_me: failed program was:" >&5
9428 cat conftest.
$ac_ext >&5
9429 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
9431 rm -f conftest.
$ac_objext conftest.
$ac_ext
9434 echo "$as_me: failed program was:" >&5
9435 cat conftest.
$ac_ext >&5
9438 cat >conftest.
$ac_ext <<_ACEOF
9439 #line 9439 "configure"
9440 #include "confdefs.h"
9441 $ac_includes_default
9445 int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)]
9450 rm -f conftest.
$ac_objext
9451 if { (eval echo "$as_me:9451: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:9454: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try
='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:9457: \"$ac_try\"") >&5
9460 echo "$as_me:9460: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_lo
=$ac_mid; break
9464 echo "$as_me: failed program was:" >&5
9465 cat conftest.
$ac_ext >&5
9466 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
9468 rm -f conftest.
$ac_objext conftest.
$ac_ext
9471 rm -f conftest.
$ac_objext conftest.
$ac_ext
9472 # Binary search between lo and hi bounds.
9473 while test "x$ac_lo" != "x$ac_hi"; do
9474 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9475 cat >conftest.
$ac_ext <<_ACEOF
9476 #line 9476 "configure"
9477 #include "confdefs.h"
9478 $ac_includes_default
9482 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
9487 rm -f conftest.
$ac_objext
9488 if { (eval echo "$as_me:9488: \"$ac_compile\"") >&5
9489 (eval $ac_compile) 2>&5
9491 echo "$as_me:9491: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try
='test -s conftest.$ac_objext'
9494 { (eval echo "$as_me:9494: \"$ac_try\"") >&5
9497 echo "$as_me:9497: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9501 echo "$as_me: failed program was:" >&5
9502 cat conftest.
$ac_ext >&5
9503 ac_lo
=`expr $ac_mid + 1`
9505 rm -f conftest.
$ac_objext conftest.
$ac_ext
9507 ac_cv_sizeof_double
=$ac_lo
9509 if test "$cross_compiling" = yes; then
9510 { { echo "$as_me:9510: error: cannot run test program while cross compiling" >&5
9511 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9512 { (exit 1); exit 1; }; }
9514 cat >conftest.
$ac_ext <<_ACEOF
9515 #line 9515 "configure"
9516 #include "confdefs.h"
9517 $ac_includes_default
9521 FILE *f = fopen ("conftest.val", "w");
9524 fprintf (f, "%d", (sizeof (double)));
9530 rm -f conftest
$ac_exeext
9531 if { (eval echo "$as_me:9531: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9536 { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_sizeof_double
=`cat conftest.val`
9543 echo "$as_me: program exited with status $ac_status" >&5
9544 echo "$as_me: failed program was:" >&5
9545 cat conftest.
$ac_ext >&5
9547 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9552 ac_cv_sizeof_double
=0
9555 echo "$as_me:9555: result: $ac_cv_sizeof_double" >&5
9556 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
9557 cat >>confdefs.h
<<EOF
9558 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9561 echo "$as_me:9561: checking for long long" >&5
9562 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9563 if test "${ac_cv_type_long_long+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.
$ac_ext <<_ACEOF
9567 #line 9567 "configure"
9568 #include "confdefs.h"
9569 $ac_includes_default
9573 if ((long long *) 0)
9575 if (sizeof (long long))
9581 rm -f conftest.
$ac_objext
9582 if { (eval echo "$as_me:9582: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>&5
9585 echo "$as_me:9585: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try
='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:9588: \"$ac_try\"") >&5
9591 echo "$as_me:9591: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_type_long_long
=yes
9595 echo "$as_me: failed program was:" >&5
9596 cat conftest.
$ac_ext >&5
9597 ac_cv_type_long_long
=no
9599 rm -f conftest.
$ac_objext conftest.
$ac_ext
9601 echo "$as_me:9601: result: $ac_cv_type_long_long" >&5
9602 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9604 echo "$as_me:9604: checking size of long long" >&5
9605 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9606 if test "${ac_cv_sizeof_long_long+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 if test "$ac_cv_type_long_long" = yes; then
9610 if test "$cross_compiling" = yes; then
9611 # Depending upon the size, compute the lo and hi bounds.
9612 cat >conftest.
$ac_ext <<_ACEOF
9613 #line 9613 "configure"
9614 #include "confdefs.h"
9615 $ac_includes_default
9619 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
9624 rm -f conftest.
$ac_objext
9625 if { (eval echo "$as_me:9625: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>&5
9628 echo "$as_me:9628: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try
='test -s conftest.$ac_objext'
9631 { (eval echo "$as_me:9631: \"$ac_try\"") >&5
9634 echo "$as_me:9634: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9638 cat >conftest.
$ac_ext <<_ACEOF
9639 #line 9639 "configure"
9640 #include "confdefs.h"
9641 $ac_includes_default
9645 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9650 rm -f conftest.
$ac_objext
9651 if { (eval echo "$as_me:9651: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>&5
9654 echo "$as_me:9654: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try
='test -s conftest.$ac_objext'
9657 { (eval echo "$as_me:9657: \"$ac_try\"") >&5
9660 echo "$as_me:9660: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_hi
=$ac_mid; break
9664 echo "$as_me: failed program was:" >&5
9665 cat conftest.
$ac_ext >&5
9666 ac_lo
=`expr $ac_mid + 1`; ac_mid
=`expr 2 '*' $ac_mid + 1`
9668 rm -f conftest.
$ac_objext conftest.
$ac_ext
9671 echo "$as_me: failed program was:" >&5
9672 cat conftest.
$ac_ext >&5
9675 cat >conftest.
$ac_ext <<_ACEOF
9676 #line 9676 "configure"
9677 #include "confdefs.h"
9678 $ac_includes_default
9682 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
9687 rm -f conftest.
$ac_objext
9688 if { (eval echo "$as_me:9688: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>&5
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try
='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:9694: \"$ac_try\"") >&5
9697 echo "$as_me:9697: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_lo
=$ac_mid; break
9701 echo "$as_me: failed program was:" >&5
9702 cat conftest.
$ac_ext >&5
9703 ac_hi
=`expr $ac_mid - 1`; ac_mid
=`expr 2 '*' $ac_mid`
9705 rm -f conftest.
$ac_objext conftest.
$ac_ext
9708 rm -f conftest.
$ac_objext conftest.
$ac_ext
9709 # Binary search between lo and hi bounds.
9710 while test "x$ac_lo" != "x$ac_hi"; do
9711 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9712 cat >conftest.
$ac_ext <<_ACEOF
9713 #line 9713 "configure"
9714 #include "confdefs.h"
9715 $ac_includes_default
9719 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9724 rm -f conftest.
$ac_objext
9725 if { (eval echo "$as_me:9725: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>&5
9728 echo "$as_me:9728: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try
='test -s conftest.$ac_objext'
9731 { (eval echo "$as_me:9731: \"$ac_try\"") >&5
9734 echo "$as_me:9734: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9738 echo "$as_me: failed program was:" >&5
9739 cat conftest.
$ac_ext >&5
9740 ac_lo
=`expr $ac_mid + 1`
9742 rm -f conftest.
$ac_objext conftest.
$ac_ext
9744 ac_cv_sizeof_long_long
=$ac_lo
9746 if test "$cross_compiling" = yes; then
9747 { { echo "$as_me:9747: error: cannot run test program while cross compiling" >&5
9748 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9749 { (exit 1); exit 1; }; }
9751 cat >conftest.
$ac_ext <<_ACEOF
9752 #line 9752 "configure"
9753 #include "confdefs.h"
9754 $ac_includes_default
9758 FILE *f = fopen ("conftest.val", "w");
9761 fprintf (f, "%d", (sizeof (long long)));
9767 rm -f conftest
$ac_exeext
9768 if { (eval echo "$as_me:9768: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:9771: \$? = $ac_status" >&5
9772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9773 { (eval echo "$as_me:9773: \"$ac_try\"") >&5
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_sizeof_long_long
=`cat conftest.val`
9780 echo "$as_me: program exited with status $ac_status" >&5
9781 echo "$as_me: failed program was:" >&5
9782 cat conftest.
$ac_ext >&5
9784 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9789 ac_cv_sizeof_long_long
=0
9792 echo "$as_me:9792: result: $ac_cv_sizeof_long_long" >&5
9793 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9794 cat >>confdefs.h
<<EOF
9795 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9798 echo "$as_me:9798: checking for u_int" >&5
9799 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
9800 if test "${ac_cv_type_u_int+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.
$ac_ext <<_ACEOF
9804 #line 9804 "configure"
9805 #include "confdefs.h"
9806 $ac_includes_default
9818 rm -f conftest.
$ac_objext
9819 if { (eval echo "$as_me:9819: \"$ac_compile\"") >&5
9820 (eval $ac_compile) 2>&5
9822 echo "$as_me:9822: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try
='test -s conftest.$ac_objext'
9825 { (eval echo "$as_me:9825: \"$ac_try\"") >&5
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_type_u_int
=yes
9832 echo "$as_me: failed program was:" >&5
9833 cat conftest.
$ac_ext >&5
9836 rm -f conftest.
$ac_objext conftest.
$ac_ext
9838 echo "$as_me:9838: result: $ac_cv_type_u_int" >&5
9839 echo "${ECHO_T}$ac_cv_type_u_int" >&6
9840 if test $ac_cv_type_u_int = yes; then
9844 cat >>confdefs.h
<<EOF
9845 #define u_int unsigned int
9850 echo "$as_me:9850: checking for u_long" >&5
9851 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
9852 if test "${ac_cv_type_u_long+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 cat >conftest.
$ac_ext <<_ACEOF
9856 #line 9856 "configure"
9857 #include "confdefs.h"
9858 $ac_includes_default
9864 if (sizeof (u_long))
9870 rm -f conftest.
$ac_objext
9871 if { (eval echo "$as_me:9871: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>&5
9874 echo "$as_me:9874: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try
='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:9877: \"$ac_try\"") >&5
9880 echo "$as_me:9880: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_type_u_long
=yes
9884 echo "$as_me: failed program was:" >&5
9885 cat conftest.
$ac_ext >&5
9886 ac_cv_type_u_long
=no
9888 rm -f conftest.
$ac_objext conftest.
$ac_ext
9890 echo "$as_me:9890: result: $ac_cv_type_u_long" >&5
9891 echo "${ECHO_T}$ac_cv_type_u_long" >&6
9892 if test $ac_cv_type_u_long = yes; then
9896 cat >>confdefs.h
<<EOF
9897 #define u_long unsigned long
9902 if test "$ac_cv_sizeof_short" = 2; then
9903 echo "$as_me:9903: checking for bits16_t" >&5
9904 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
9905 if test "${ac_cv_type_bits16_t+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 cat >conftest.
$ac_ext <<_ACEOF
9909 #line 9909 "configure"
9910 #include "confdefs.h"
9911 $ac_includes_default
9917 if (sizeof (bits16_t))
9923 rm -f conftest.
$ac_objext
9924 if { (eval echo "$as_me:9924: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>&5
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try
='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9933 echo "$as_me:9933: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_type_bits16_t
=yes
9937 echo "$as_me: failed program was:" >&5
9938 cat conftest.
$ac_ext >&5
9939 ac_cv_type_bits16_t
=no
9941 rm -f conftest.
$ac_objext conftest.
$ac_ext
9943 echo "$as_me:9943: result: $ac_cv_type_bits16_t" >&5
9944 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
9945 if test $ac_cv_type_bits16_t = yes; then
9949 cat >>confdefs.h
<<EOF
9950 #define bits16_t short
9955 elif test "$ac_cv_sizeof_char" = 2; then
9956 echo "$as_me:9956: checking for bits16_t" >&5
9957 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
9958 if test "${ac_cv_type_bits16_t+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.
$ac_ext <<_ACEOF
9962 #line 9962 "configure"
9963 #include "confdefs.h"
9964 $ac_includes_default
9970 if (sizeof (bits16_t))
9976 rm -f conftest.
$ac_objext
9977 if { (eval echo "$as_me:9977: \"$ac_compile\"") >&5
9978 (eval $ac_compile) 2>&5
9980 echo "$as_me:9980: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try
='test -s conftest.$ac_objext'
9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5
9986 echo "$as_me:9986: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_type_bits16_t
=yes
9990 echo "$as_me: failed program was:" >&5
9991 cat conftest.
$ac_ext >&5
9992 ac_cv_type_bits16_t
=no
9994 rm -f conftest.
$ac_objext conftest.
$ac_ext
9996 echo "$as_me:9996: result: $ac_cv_type_bits16_t" >&5
9997 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
9998 if test $ac_cv_type_bits16_t = yes; then
10002 cat >>confdefs.h
<<EOF
10003 #define bits16_t char
10009 echo "$as_me:10009: checking for bits16_t" >&5
10010 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10011 if test "${ac_cv_type_bits16_t+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 cat >conftest.
$ac_ext <<_ACEOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10017 $ac_includes_default
10021 if ((bits16_t *) 0)
10023 if (sizeof (bits16_t))
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_cv_type_bits16_t
=yes
10043 echo "$as_me: failed program was:" >&5
10044 cat conftest.
$ac_ext >&5
10045 ac_cv_type_bits16_t
=no
10047 rm -f conftest.
$ac_objext conftest.
$ac_ext
10049 echo "$as_me:10049: result: $ac_cv_type_bits16_t" >&5
10050 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10051 if test $ac_cv_type_bits16_t = yes; then
10055 cat >>confdefs.h
<<EOF
10056 #define bits16_t short
10063 if test "$ac_cv_sizeof_short" = 2; then
10064 echo "$as_me:10064: checking for u_bits16_t" >&5
10065 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10066 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10070 #line 10070 "configure"
10071 #include "confdefs.h"
10072 $ac_includes_default
10076 if ((u_bits16_t *) 0)
10078 if (sizeof (u_bits16_t))
10084 rm -f conftest.
$ac_objext
10085 if { (eval echo "$as_me:10085: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>&5
10088 echo "$as_me:10088: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try
='test -s conftest.$ac_objext'
10091 { (eval echo "$as_me:10091: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:10094: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_type_u_bits16_t
=yes
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.
$ac_ext >&5
10100 ac_cv_type_u_bits16_t
=no
10102 rm -f conftest.
$ac_objext conftest.
$ac_ext
10104 echo "$as_me:10104: result: $ac_cv_type_u_bits16_t" >&5
10105 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10106 if test $ac_cv_type_u_bits16_t = yes; then
10110 cat >>confdefs.h
<<EOF
10111 #define u_bits16_t unsigned short
10116 elif test "$ac_cv_sizeof_char" = 2; then
10117 echo "$as_me:10117: checking for u_bits16_t" >&5
10118 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10119 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.
$ac_ext <<_ACEOF
10123 #line 10123 "configure"
10124 #include "confdefs.h"
10125 $ac_includes_default
10129 if ((u_bits16_t *) 0)
10131 if (sizeof (u_bits16_t))
10137 rm -f conftest.
$ac_objext
10138 if { (eval echo "$as_me:10138: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>&5
10141 echo "$as_me:10141: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try
='test -s conftest.$ac_objext'
10144 { (eval echo "$as_me:10144: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 ac_cv_type_u_bits16_t
=yes
10151 echo "$as_me: failed program was:" >&5
10152 cat conftest.
$ac_ext >&5
10153 ac_cv_type_u_bits16_t
=no
10155 rm -f conftest.
$ac_objext conftest.
$ac_ext
10157 echo "$as_me:10157: result: $ac_cv_type_u_bits16_t" >&5
10158 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10159 if test $ac_cv_type_u_bits16_t = yes; then
10163 cat >>confdefs.h
<<EOF
10164 #define u_bits16_t unsigned char
10170 echo "$as_me:10170: checking for u_bits16_t" >&5
10171 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10172 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 cat >conftest.
$ac_ext <<_ACEOF
10176 #line 10176 "configure"
10177 #include "confdefs.h"
10178 $ac_includes_default
10182 if ((u_bits16_t *) 0)
10184 if (sizeof (u_bits16_t))
10190 rm -f conftest.
$ac_objext
10191 if { (eval echo "$as_me:10191: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>&5
10194 echo "$as_me:10194: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try
='test -s conftest.$ac_objext'
10197 { (eval echo "$as_me:10197: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_type_u_bits16_t
=yes
10204 echo "$as_me: failed program was:" >&5
10205 cat conftest.
$ac_ext >&5
10206 ac_cv_type_u_bits16_t
=no
10208 rm -f conftest.
$ac_objext conftest.
$ac_ext
10210 echo "$as_me:10210: result: $ac_cv_type_u_bits16_t" >&5
10211 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10212 if test $ac_cv_type_u_bits16_t = yes; then
10216 cat >>confdefs.h
<<EOF
10217 #define u_bits16_t unsigned short
10224 if test "$ac_cv_sizeof_int" = 4; then
10225 echo "$as_me:10225: checking for bits32_t" >&5
10226 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10227 if test "${ac_cv_type_bits32_t+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.
$ac_ext <<_ACEOF
10231 #line 10231 "configure"
10232 #include "confdefs.h"
10233 $ac_includes_default
10237 if ((bits32_t *) 0)
10239 if (sizeof (bits32_t))
10245 rm -f conftest.
$ac_objext
10246 if { (eval echo "$as_me:10246: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>&5
10249 echo "$as_me:10249: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try
='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:10252: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:10255: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_type_bits32_t
=yes
10259 echo "$as_me: failed program was:" >&5
10260 cat conftest.
$ac_ext >&5
10261 ac_cv_type_bits32_t
=no
10263 rm -f conftest.
$ac_objext conftest.
$ac_ext
10265 echo "$as_me:10265: result: $ac_cv_type_bits32_t" >&5
10266 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10267 if test $ac_cv_type_bits32_t = yes; then
10271 cat >>confdefs.h
<<EOF
10272 #define bits32_t int
10277 elif test "$ac_cv_sizeof_long" = 4; then
10278 echo "$as_me:10278: checking for bits32_t" >&5
10279 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10280 if test "${ac_cv_type_bits32_t+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 cat >conftest.
$ac_ext <<_ACEOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286 $ac_includes_default
10290 if ((bits32_t *) 0)
10292 if (sizeof (bits32_t))
10298 rm -f conftest.
$ac_objext
10299 if { (eval echo "$as_me:10299: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>&5
10302 echo "$as_me:10302: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try
='test -s conftest.$ac_objext'
10305 { (eval echo "$as_me:10305: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:10308: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_type_bits32_t
=yes
10312 echo "$as_me: failed program was:" >&5
10313 cat conftest.
$ac_ext >&5
10314 ac_cv_type_bits32_t
=no
10316 rm -f conftest.
$ac_objext conftest.
$ac_ext
10318 echo "$as_me:10318: result: $ac_cv_type_bits32_t" >&5
10319 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10320 if test $ac_cv_type_bits32_t = yes; then
10324 cat >>confdefs.h
<<EOF
10325 #define bits32_t long
10331 echo "$as_me:10331: checking for bits32_t" >&5
10332 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10333 if test "${ac_cv_type_bits32_t+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 cat >conftest.
$ac_ext <<_ACEOF
10337 #line 10337 "configure"
10338 #include "confdefs.h"
10339 $ac_includes_default
10343 if ((bits32_t *) 0)
10345 if (sizeof (bits32_t))
10351 rm -f conftest.
$ac_objext
10352 if { (eval echo "$as_me:10352: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10355 echo "$as_me:10355: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try
='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:10358: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:10361: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_cv_type_bits32_t
=yes
10365 echo "$as_me: failed program was:" >&5
10366 cat conftest.
$ac_ext >&5
10367 ac_cv_type_bits32_t
=no
10369 rm -f conftest.
$ac_objext conftest.
$ac_ext
10371 echo "$as_me:10371: result: $ac_cv_type_bits32_t" >&5
10372 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10373 if test $ac_cv_type_bits32_t = yes; then
10377 cat >>confdefs.h
<<EOF
10378 #define bits32_t int
10385 if test "$ac_cv_sizeof_int" = 4; then
10386 echo "$as_me:10386: checking for u_bits32_t" >&5
10387 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10388 if test "${ac_cv_type_u_bits32_t+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 cat >conftest.
$ac_ext <<_ACEOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10394 $ac_includes_default
10398 if ((u_bits32_t *) 0)
10400 if (sizeof (u_bits32_t))
10406 rm -f conftest.
$ac_objext
10407 if { (eval echo "$as_me:10407: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>&5
10410 echo "$as_me:10410: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try
='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:10413: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:10416: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_type_u_bits32_t
=yes
10420 echo "$as_me: failed program was:" >&5
10421 cat conftest.
$ac_ext >&5
10422 ac_cv_type_u_bits32_t
=no
10424 rm -f conftest.
$ac_objext conftest.
$ac_ext
10426 echo "$as_me:10426: result: $ac_cv_type_u_bits32_t" >&5
10427 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10428 if test $ac_cv_type_u_bits32_t = yes; then
10432 cat >>confdefs.h
<<EOF
10433 #define u_bits32_t unsigned int
10438 elif test "$ac_cv_sizeof_long" = 4; then
10439 echo "$as_me:10439: checking for u_bits32_t" >&5
10440 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10441 if test "${ac_cv_type_u_bits32_t+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 cat >conftest.
$ac_ext <<_ACEOF
10445 #line 10445 "configure"
10446 #include "confdefs.h"
10447 $ac_includes_default
10451 if ((u_bits32_t *) 0)
10453 if (sizeof (u_bits32_t))
10459 rm -f conftest.
$ac_objext
10460 if { (eval echo "$as_me:10460: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try
='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_type_u_bits32_t
=yes
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.
$ac_ext >&5
10475 ac_cv_type_u_bits32_t
=no
10477 rm -f conftest.
$ac_objext conftest.
$ac_ext
10479 echo "$as_me:10479: result: $ac_cv_type_u_bits32_t" >&5
10480 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10481 if test $ac_cv_type_u_bits32_t = yes; then
10485 cat >>confdefs.h
<<EOF
10486 #define u_bits32_t unsigned long
10492 echo "$as_me:10492: checking for u_bits32_t" >&5
10493 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10494 if test "${ac_cv_type_u_bits32_t+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.
$ac_ext <<_ACEOF
10498 #line 10498 "configure"
10499 #include "confdefs.h"
10500 $ac_includes_default
10504 if ((u_bits32_t *) 0)
10506 if (sizeof (u_bits32_t))
10512 rm -f conftest.
$ac_objext
10513 if { (eval echo "$as_me:10513: \"$ac_compile\"") >&5
10514 (eval $ac_compile) 2>&5
10516 echo "$as_me:10516: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try
='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:10519: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:10522: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_cv_type_u_bits32_t
=yes
10526 echo "$as_me: failed program was:" >&5
10527 cat conftest.
$ac_ext >&5
10528 ac_cv_type_u_bits32_t
=no
10530 rm -f conftest.
$ac_objext conftest.
$ac_ext
10532 echo "$as_me:10532: result: $ac_cv_type_u_bits32_t" >&5
10533 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10534 if test $ac_cv_type_u_bits32_t = yes; then
10538 cat >>confdefs.h
<<EOF
10539 #define u_bits32_t unsigned int
10546 if test "$ac_cv_sizeof_char_p" = 8; then
10547 echo "$as_me:10547: checking for bits64_t" >&5
10548 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10549 if test "${ac_cv_type_bits64_t+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 cat >conftest.
$ac_ext <<_ACEOF
10553 #line 10553 "configure"
10554 #include "confdefs.h"
10555 $ac_includes_default
10559 if ((bits64_t *) 0)
10561 if (sizeof (bits64_t))
10567 rm -f conftest.
$ac_objext
10568 if { (eval echo "$as_me:10568: \"$ac_compile\"") >&5
10569 (eval $ac_compile) 2>&5
10571 echo "$as_me:10571: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try
='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:10574: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:10577: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_type_bits64_t
=yes
10581 echo "$as_me: failed program was:" >&5
10582 cat conftest.
$ac_ext >&5
10583 ac_cv_type_bits64_t
=no
10585 rm -f conftest.
$ac_objext conftest.
$ac_ext
10587 echo "$as_me:10587: result: $ac_cv_type_bits64_t" >&5
10588 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10589 if test $ac_cv_type_bits64_t = yes; then
10593 cat >>confdefs.h
<<EOF
10594 #define bits64_t char *
10599 elif test "$ac_cv_sizeof_double" = 8; then
10600 echo "$as_me:10600: checking for bits64_t" >&5
10601 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10602 if test "${ac_cv_type_bits64_t+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 cat >conftest.
$ac_ext <<_ACEOF
10606 #line 10606 "configure"
10607 #include "confdefs.h"
10608 $ac_includes_default
10612 if ((bits64_t *) 0)
10614 if (sizeof (bits64_t))
10620 rm -f conftest.
$ac_objext
10621 if { (eval echo "$as_me:10621: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10624 echo "$as_me:10624: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try
='test -s conftest.$ac_objext'
10627 { (eval echo "$as_me:10627: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:10630: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_cv_type_bits64_t
=yes
10634 echo "$as_me: failed program was:" >&5
10635 cat conftest.
$ac_ext >&5
10636 ac_cv_type_bits64_t
=no
10638 rm -f conftest.
$ac_objext conftest.
$ac_ext
10640 echo "$as_me:10640: result: $ac_cv_type_bits64_t" >&5
10641 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10642 if test $ac_cv_type_bits64_t = yes; then
10646 cat >>confdefs.h
<<EOF
10647 #define bits64_t double
10652 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
10653 echo "$as_me:10653: checking for bits64_t" >&5
10654 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10655 if test "${ac_cv_type_bits64_t+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 cat >conftest.
$ac_ext <<_ACEOF
10659 #line 10659 "configure"
10660 #include "confdefs.h"
10661 $ac_includes_default
10665 if ((bits64_t *) 0)
10667 if (sizeof (bits64_t))
10673 rm -f conftest.
$ac_objext
10674 if { (eval echo "$as_me:10674: \"$ac_compile\"") >&5
10675 (eval $ac_compile) 2>&5
10677 echo "$as_me:10677: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try
='test -s conftest.$ac_objext'
10680 { (eval echo "$as_me:10680: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:10683: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_type_bits64_t
=yes
10687 echo "$as_me: failed program was:" >&5
10688 cat conftest.
$ac_ext >&5
10689 ac_cv_type_bits64_t
=no
10691 rm -f conftest.
$ac_objext conftest.
$ac_ext
10693 echo "$as_me:10693: result: $ac_cv_type_bits64_t" >&5
10694 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10695 if test $ac_cv_type_bits64_t = yes; then
10699 cat >>confdefs.h
<<EOF
10700 #define bits64_t long long
10705 elif test "$ac_cv_sizeof_long" = 8; then
10706 echo "$as_me:10706: checking for bits64_t" >&5
10707 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10708 if test "${ac_cv_type_bits64_t+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 cat >conftest.
$ac_ext <<_ACEOF
10712 #line 10712 "configure"
10713 #include "confdefs.h"
10714 $ac_includes_default
10718 if ((bits64_t *) 0)
10720 if (sizeof (bits64_t))
10726 rm -f conftest.
$ac_objext
10727 if { (eval echo "$as_me:10727: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try
='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:10733: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:10736: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_type_bits64_t
=yes
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.
$ac_ext >&5
10742 ac_cv_type_bits64_t
=no
10744 rm -f conftest.
$ac_objext conftest.
$ac_ext
10746 echo "$as_me:10746: result: $ac_cv_type_bits64_t" >&5
10747 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10748 if test $ac_cv_type_bits64_t = yes; then
10752 cat >>confdefs.h
<<EOF
10753 #define bits64_t long
10759 echo "$as_me:10759: checking for bits64_t" >&5
10760 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10761 if test "${ac_cv_type_bits64_t+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 cat >conftest.
$ac_ext <<_ACEOF
10765 #line 10765 "configure"
10766 #include "confdefs.h"
10767 $ac_includes_default
10771 if ((bits64_t *) 0)
10773 if (sizeof (bits64_t))
10779 rm -f conftest.
$ac_objext
10780 if { (eval echo "$as_me:10780: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>&5
10783 echo "$as_me:10783: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try
='test -s conftest.$ac_objext'
10786 { (eval echo "$as_me:10786: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_type_bits64_t
=yes
10793 echo "$as_me: failed program was:" >&5
10794 cat conftest.
$ac_ext >&5
10795 ac_cv_type_bits64_t
=no
10797 rm -f conftest.
$ac_objext conftest.
$ac_ext
10799 echo "$as_me:10799: result: $ac_cv_type_bits64_t" >&5
10800 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10801 if test $ac_cv_type_bits64_t = yes; then
10805 cat >>confdefs.h
<<EOF
10806 #define bits64_t double
10813 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
10814 echo "$as_me:10814: checking for ptrdiff_t" >&5
10815 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10816 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 cat >conftest.
$ac_ext <<_ACEOF
10820 #line 10820 "configure"
10821 #include "confdefs.h"
10822 $ac_includes_default
10826 if ((ptrdiff_t *) 0)
10828 if (sizeof (ptrdiff_t))
10834 rm -f conftest.
$ac_objext
10835 if { (eval echo "$as_me:10835: \"$ac_compile\"") >&5
10836 (eval $ac_compile) 2>&5
10838 echo "$as_me:10838: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try
='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:10841: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:10844: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_cv_type_ptrdiff_t
=yes
10848 echo "$as_me: failed program was:" >&5
10849 cat conftest.
$ac_ext >&5
10850 ac_cv_type_ptrdiff_t
=no
10852 rm -f conftest.
$ac_objext conftest.
$ac_ext
10854 echo "$as_me:10854: result: $ac_cv_type_ptrdiff_t" >&5
10855 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10856 if test $ac_cv_type_ptrdiff_t = yes; then
10860 cat >>confdefs.h
<<EOF
10861 #define ptrdiff_t int
10866 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
10867 echo "$as_me:10867: checking for ptrdiff_t" >&5
10868 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10869 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.
$ac_ext <<_ACEOF
10873 #line 10873 "configure"
10874 #include "confdefs.h"
10875 $ac_includes_default
10879 if ((ptrdiff_t *) 0)
10881 if (sizeof (ptrdiff_t))
10887 rm -f conftest.
$ac_objext
10888 if { (eval echo "$as_me:10888: \"$ac_compile\"") >&5
10889 (eval $ac_compile) 2>&5
10891 echo "$as_me:10891: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try
='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:10894: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:10897: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_cv_type_ptrdiff_t
=yes
10901 echo "$as_me: failed program was:" >&5
10902 cat conftest.
$ac_ext >&5
10903 ac_cv_type_ptrdiff_t
=no
10905 rm -f conftest.
$ac_objext conftest.
$ac_ext
10907 echo "$as_me:10907: result: $ac_cv_type_ptrdiff_t" >&5
10908 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10909 if test $ac_cv_type_ptrdiff_t = yes; then
10913 cat >>confdefs.h
<<EOF
10914 #define ptrdiff_t long
10919 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
10920 echo "$as_me:10920: checking for ptrdiff_t" >&5
10921 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10922 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.
$ac_ext <<_ACEOF
10926 #line 10926 "configure"
10927 #include "confdefs.h"
10928 $ac_includes_default
10932 if ((ptrdiff_t *) 0)
10934 if (sizeof (ptrdiff_t))
10940 rm -f conftest.
$ac_objext
10941 if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>&5
10944 echo "$as_me:10944: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try
='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:10947: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:10950: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_type_ptrdiff_t
=yes
10954 echo "$as_me: failed program was:" >&5
10955 cat conftest.
$ac_ext >&5
10956 ac_cv_type_ptrdiff_t
=no
10958 rm -f conftest.
$ac_objext conftest.
$ac_ext
10960 echo "$as_me:10960: result: $ac_cv_type_ptrdiff_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10962 if test $ac_cv_type_ptrdiff_t = yes; then
10966 cat >>confdefs.h
<<EOF
10967 #define ptrdiff_t long long
10973 echo "$as_me:10973: checking for ptrdiff_t" >&5
10974 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10975 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 cat >conftest.
$ac_ext <<_ACEOF
10979 #line 10979 "configure"
10980 #include "confdefs.h"
10981 $ac_includes_default
10985 if ((ptrdiff_t *) 0)
10987 if (sizeof (ptrdiff_t))
10993 rm -f conftest.
$ac_objext
10994 if { (eval echo "$as_me:10994: \"$ac_compile\"") >&5
10995 (eval $ac_compile) 2>&5
10997 echo "$as_me:10997: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try
='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:11000: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:11003: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_type_ptrdiff_t
=yes
11007 echo "$as_me: failed program was:" >&5
11008 cat conftest.
$ac_ext >&5
11009 ac_cv_type_ptrdiff_t
=no
11011 rm -f conftest.
$ac_objext conftest.
$ac_ext
11013 echo "$as_me:11013: result: $ac_cv_type_ptrdiff_t" >&5
11014 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11015 if test $ac_cv_type_ptrdiff_t = yes; then
11019 cat >>confdefs.h
<<EOF
11020 #define ptrdiff_t int
11027 echo "$as_me:11027: checking whether stat file-mode macros are broken" >&5
11028 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11029 if test "${ac_cv_header_stat_broken+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 cat >conftest.
$ac_ext <<_ACEOF
11033 #line 11033 "configure"
11034 #include "confdefs.h"
11035 #include <sys/types.h>
11036 #include <sys/stat.h>
11038 #if defined(S_ISBLK) && defined(S_IFDIR)
11039 # if S_ISBLK (S_IFDIR)
11044 #if defined(S_ISBLK) && defined(S_IFCHR)
11045 # if S_ISBLK (S_IFCHR)
11050 #if defined(S_ISLNK) && defined(S_IFREG)
11051 # if S_ISLNK (S_IFREG)
11056 #if defined(S_ISSOCK) && defined(S_IFREG)
11057 # if S_ISSOCK (S_IFREG)
11063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11064 egrep "You lose" >/dev
/null
2>&1; then
11065 ac_cv_header_stat_broken
=yes
11067 ac_cv_header_stat_broken
=no
11072 echo "$as_me:11072: result: $ac_cv_header_stat_broken" >&5
11073 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11074 if test $ac_cv_header_stat_broken = yes; then
11076 cat >>confdefs.h
<<\EOF
11077 #define STAT_MACROS_BROKEN 1
11082 echo "$as_me:11082: checking whether #! works in shell scripts" >&5
11083 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
11084 if test "${ac_cv_sys_interpreter+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
)
11092 if test $?
-ne 69; then
11093 ac_cv_sys_interpreter
=yes
11095 ac_cv_sys_interpreter
=no
11099 echo "$as_me:11099: result: $ac_cv_sys_interpreter" >&5
11100 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
11101 interpval
=$ac_cv_sys_interpreter
11103 if test $ac_cv_sys_interpreter = yes; then
11104 cat >>confdefs.h
<<\EOF
11105 #define HAVE_HASH_BANG_EXEC 1
11110 if test "$ac_cv_func_lstat" = "no"; then
11111 echo "$as_me:11111: checking for lstat" >&5
11112 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
11113 if test "${bash_cv_func_lstat+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 cat >conftest.
$ac_ext <<_ACEOF
11117 #line 11117 "configure"
11118 #include "confdefs.h"
11120 #include <sys/types.h>
11121 #include <sys/stat.h>
11126 lstat(".",(struct stat *)0);
11131 rm -f conftest.
$ac_objext conftest
$ac_exeext
11132 if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try
='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:11138: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 bash_cv_func_lstat
=yes
11145 echo "$as_me: failed program was:" >&5
11146 cat conftest.
$ac_ext >&5
11147 bash_cv_func_lstat
=no
11149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11151 echo "$as_me:11151: result: $bash_cv_func_lstat" >&5
11152 echo "${ECHO_T}$bash_cv_func_lstat" >&6
11153 if test $bash_cv_func_lstat = yes; then
11154 cat >>confdefs.h
<<\EOF
11155 #define HAVE_LSTAT 1
11162 echo "$as_me:11162: checking if dup2 fails to clear the close-on-exec flag" >&5
11163 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
11164 if test "${bash_cv_dup2_broken+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 if test "$cross_compiling" = yes; then
11168 { echo "$as_me:11168: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
11169 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
11170 bash_cv_dup2_broken
=no
11172 cat >conftest.
$ac_ext <<_ACEOF
11173 #line 11173 "configure"
11174 #include "confdefs.h"
11176 #include <sys/types.h>
11181 fd1 = open("/dev/null", 2);
11182 if (fcntl(fd1, 2, 1) < 0)
11184 fd2 = dup2(fd1, 1);
11187 fl = fcntl(fd2, 1, 0);
11188 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
11193 rm -f conftest
$ac_exeext
11194 if { (eval echo "$as_me:11194: \"$ac_link\"") >&5
11195 (eval $ac_link) 2>&5
11197 echo "$as_me:11197: \$? = $ac_status" >&5
11198 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11199 { (eval echo "$as_me:11199: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:11202: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 bash_cv_dup2_broken
=yes
11206 echo "$as_me: program exited with status $ac_status" >&5
11207 echo "$as_me: failed program was:" >&5
11208 cat conftest.
$ac_ext >&5
11209 bash_cv_dup2_broken
=no
11211 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11216 echo "$as_me:11216: result: $bash_cv_dup2_broken" >&5
11217 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
11218 if test $bash_cv_dup2_broken = yes; then
11219 cat >>confdefs.h
<<\EOF
11220 #define DUP2_BROKEN 1
11225 echo "$as_me:11225: checking whether pgrps need synchronization" >&5
11226 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
11227 if test "${bash_cv_pgrp_pipe+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 if test "$cross_compiling" = yes; then
11231 { echo "$as_me:11231: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
11232 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
11233 bash_cv_pgrp_pipe
=no
11235 cat >conftest.
$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11239 #ifdef HAVE_UNISTD_H
11240 # include <unistd.h>
11244 # ifdef GETPGRP_VOID
11245 # define getpgID() getpgrp()
11247 # define getpgID() getpgrp(0)
11248 # define setpgid(x,y) setpgrp(x,y)
11250 int pid1, pid2, fds[2];
11254 switch (pid1 = fork()) {
11258 setpgid(0, getpid());
11261 setpgid(pid1, pid1);
11263 sleep(2); /* let first child die */
11268 switch (pid2 = fork()) {
11273 ok = getpgID() == pid1;
11274 write(fds[1], &ok, 1);
11277 setpgid(pid2, pid1);
11280 if (read(fds[0], &ok, 1) != 1)
11288 rm -f conftest
$ac_exeext
11289 if { (eval echo "$as_me:11289: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11292 echo "$as_me:11292: \$? = $ac_status" >&5
11293 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11294 { (eval echo "$as_me:11294: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:11297: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 bash_cv_pgrp_pipe
=no
11301 echo "$as_me: program exited with status $ac_status" >&5
11302 echo "$as_me: failed program was:" >&5
11303 cat conftest.
$ac_ext >&5
11304 bash_cv_pgrp_pipe
=yes
11306 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11311 echo "$as_me:11311: result: $bash_cv_pgrp_pipe" >&5
11312 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
11313 if test $bash_cv_pgrp_pipe = yes; then
11314 cat >>confdefs.h
<<\EOF
11315 #define PGRP_PIPE 1
11320 echo "$as_me:11320: checking for type of signal functions" >&5
11321 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11322 if test "${bash_cv_signal_vintage+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 cat >conftest.
$ac_ext <<_ACEOF
11327 #line 11327 "configure"
11328 #include "confdefs.h"
11329 #include <signal.h>
11335 struct sigaction sa;
11336 sigemptyset(&ss); sigsuspend(&ss);
11337 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11338 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11344 rm -f conftest.
$ac_objext conftest
$ac_exeext
11345 if { (eval echo "$as_me:11345: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11348 echo "$as_me:11348: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try
='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:11351: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:11354: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 bash_cv_signal_vintage
=posix
11358 echo "$as_me: failed program was:" >&5
11359 cat conftest.
$ac_ext >&5
11361 cat >conftest.
$ac_ext <<_ACEOF
11362 #line 11362 "configure"
11363 #include "confdefs.h"
11364 #include <signal.h>
11369 int mask = sigmask(SIGINT);
11370 sigsetmask(mask); sigblock(mask); sigpause(mask);
11376 rm -f conftest.
$ac_objext conftest
$ac_exeext
11377 if { (eval echo "$as_me:11377: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>&5
11380 echo "$as_me:11380: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try
='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:11383: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:11386: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 bash_cv_signal_vintage
=4.2bsd
11390 echo "$as_me: failed program was:" >&5
11391 cat conftest.
$ac_ext >&5
11393 cat >conftest.
$ac_ext <<_ACEOF
11394 #line 11394 "configure"
11395 #include "confdefs.h"
11397 #include <signal.h>
11398 RETSIGTYPE foo() { }
11403 int mask = sigmask(SIGINT);
11404 sigset(SIGINT, foo); sigrelse(SIGINT);
11405 sighold(SIGINT); sigpause(SIGINT);
11411 rm -f conftest.
$ac_objext conftest
$ac_exeext
11412 if { (eval echo "$as_me:11412: \"$ac_link\"") >&5
11413 (eval $ac_link) 2>&5
11415 echo "$as_me:11415: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try
='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:11418: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:11421: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 bash_cv_signal_vintage
=svr3
11425 echo "$as_me: failed program was:" >&5
11426 cat conftest.
$ac_ext >&5
11427 bash_cv_signal_vintage
=v7
11430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11433 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11436 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11440 echo "$as_me:11440: result: $bash_cv_signal_vintage" >&5
11441 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11442 if test "$bash_cv_signal_vintage" = posix
; then
11443 cat >>confdefs.h
<<\EOF
11444 #define HAVE_POSIX_SIGNALS 1
11447 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11448 cat >>confdefs.h
<<\EOF
11449 #define HAVE_BSD_SIGNALS 1
11452 elif test "$bash_cv_signal_vintage" = svr3
; then
11453 cat >>confdefs.h
<<\EOF
11454 #define HAVE_USG_SIGHOLD 1
11459 echo "$as_me:11459: checking for sys_errlist and sys_nerr" >&5
11460 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
11461 if test "${bash_cv_sys_errlist+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.
$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11471 extern char *sys_errlist[];
11472 extern int sys_nerr;
11473 char *msg = sys_errlist[sys_nerr - 1];
11478 rm -f conftest.
$ac_objext conftest
$ac_exeext
11479 if { (eval echo "$as_me:11479: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>&5
11482 echo "$as_me:11482: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try
='test -s conftest$ac_exeext'
11485 { (eval echo "$as_me:11485: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:11488: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 bash_cv_sys_errlist
=yes
11492 echo "$as_me: failed program was:" >&5
11493 cat conftest.
$ac_ext >&5
11494 bash_cv_sys_errlist
=no
11496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11498 echo "$as_me:11498: result: $bash_cv_sys_errlist" >&5
11499 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
11500 if test $bash_cv_sys_errlist = yes; then
11501 cat >>confdefs.h
<<\EOF
11502 #define HAVE_SYS_ERRLIST 1
11507 echo "$as_me:11507: checking for sys_siglist in system C library" >&5
11508 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
11509 if test "${bash_cv_sys_siglist+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 if test "$cross_compiling" = yes; then
11513 { echo "$as_me:11513: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
11514 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
11515 bash_cv_sys_siglist
=no
11517 cat >conftest.
$ac_ext <<_ACEOF
11518 #line 11518 "configure"
11519 #include "confdefs.h"
11521 #include <sys/types.h>
11522 #include <signal.h>
11523 #ifdef HAVE_UNISTD_H
11524 #include <unistd.h>
11526 #ifndef SYS_SIGLIST_DECLARED
11527 extern char *sys_siglist[];
11531 char *msg = sys_siglist[2];
11535 rm -f conftest
$ac_exeext
11536 if { (eval echo "$as_me:11536: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11541 { (eval echo "$as_me:11541: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 bash_cv_sys_siglist
=yes
11548 echo "$as_me: program exited with status $ac_status" >&5
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.
$ac_ext >&5
11551 bash_cv_sys_siglist
=no
11553 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11557 echo "$as_me:11557: result: $bash_cv_sys_siglist" >&5
11558 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
11559 if test $bash_cv_sys_siglist = yes; then
11560 cat >>confdefs.h
<<\EOF
11561 #define HAVE_SYS_SIGLIST 1
11566 echo "$as_me:11566: checking for _sys_siglist in signal.h or unistd.h" >&5
11567 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
11568 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 cat >conftest.
$ac_ext <<_ACEOF
11572 #line 11572 "configure"
11573 #include "confdefs.h"
11575 #include <sys/types.h>
11576 #include <signal.h>
11577 #ifdef HAVE_UNISTD_H
11578 #include <unistd.h>
11583 char *msg = _sys_siglist[2];
11588 rm -f conftest.
$ac_objext
11589 if { (eval echo "$as_me:11589: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>&5
11592 echo "$as_me:11592: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try
='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:11595: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11598 echo "$as_me:11598: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 bash_cv_decl_under_sys_siglist
=yes
11602 echo "$as_me: failed program was:" >&5
11603 cat conftest.
$ac_ext >&5
11604 bash_cv_decl_under_sys_siglist
=no
11606 rm -f conftest.
$ac_objext conftest.
$ac_ext
11608 echo "$as_me:11608: result: $bash_cv_decl_under_sys_siglist" >&5
11609 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
11610 if test $bash_cv_decl_under_sys_siglist = yes; then
11611 cat >>confdefs.h
<<\EOF
11612 #define UNDER_SYS_SIGLIST_DECLARED 1
11617 echo "$as_me:11617: checking for _sys_siglist in system C library" >&5
11618 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
11619 if test "${bash_cv_under_sys_siglist+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 if test "$cross_compiling" = yes; then
11623 { echo "$as_me:11623: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
11624 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
11625 bash_cv_under_sys_siglist
=no
11627 cat >conftest.
$ac_ext <<_ACEOF
11628 #line 11628 "configure"
11629 #include "confdefs.h"
11631 #include <sys/types.h>
11632 #include <signal.h>
11633 #ifdef HAVE_UNISTD_H
11634 #include <unistd.h>
11636 #ifndef UNDER_SYS_SIGLIST_DECLARED
11637 extern char *_sys_siglist[];
11641 char *msg = (char *)_sys_siglist[2];
11645 rm -f conftest
$ac_exeext
11646 if { (eval echo "$as_me:11646: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11651 { (eval echo "$as_me:11651: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:11654: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 bash_cv_under_sys_siglist
=yes
11658 echo "$as_me: program exited with status $ac_status" >&5
11659 echo "$as_me: failed program was:" >&5
11660 cat conftest.
$ac_ext >&5
11661 bash_cv_under_sys_siglist
=no
11663 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11667 echo "$as_me:11667: result: $bash_cv_under_sys_siglist" >&5
11668 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
11669 if test $bash_cv_under_sys_siglist = yes; then
11670 cat >>confdefs.h
<<\EOF
11671 #define HAVE_UNDER_SYS_SIGLIST 1
11676 echo "$as_me:11676: checking whether signal handlers are of type void" >&5
11677 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
11678 if test "${bash_cv_void_sighandler+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.
$ac_ext <<_ACEOF
11682 #line 11682 "configure"
11683 #include "confdefs.h"
11684 #include <sys/types.h>
11685 #include <signal.h>
11692 void (*signal ()) ();
11701 rm -f conftest.
$ac_objext
11702 if { (eval echo "$as_me:11702: \"$ac_compile\"") >&5
11703 (eval $ac_compile) 2>&5
11705 echo "$as_me:11705: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try
='test -s conftest.$ac_objext'
11708 { (eval echo "$as_me:11708: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:11711: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 bash_cv_void_sighandler
=yes
11715 echo "$as_me: failed program was:" >&5
11716 cat conftest.
$ac_ext >&5
11717 bash_cv_void_sighandler
=no
11719 rm -f conftest.
$ac_objext conftest.
$ac_ext
11721 echo "$as_me:11721: result: $bash_cv_void_sighandler" >&5
11722 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
11723 if test $bash_cv_void_sighandler = yes; then
11724 cat >>confdefs.h
<<\EOF
11725 #define VOID_SIGHANDLER 1
11730 echo "$as_me:11730: checking for clock_t" >&5
11731 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11732 if test "${bash_cv_type_clock_t+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.
$ac_ext <<_ACEOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11738 #include <sys/types.h>
11740 #include <stdlib.h>
11741 #include <stddef.h>
11743 #if HAVE_INTTYPES_H
11744 #include <inttypes.h>
11746 #include <sys/times.h>
11749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11750 egrep "clock_t" >/dev
/null
2>&1; then
11751 bash_cv_type_clock_t
=yes
11753 bash_cv_type_clock_t
=no
11759 echo "$as_me:11759: result: $bash_cv_type_clock_t" >&5
11760 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
11762 if test $bash_cv_type_clock_t = no
; then
11763 cat >>confdefs.h
<<EOF
11764 #define clock_t long
11769 echo "$as_me:11769: checking for sigset_t" >&5
11770 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
11771 if test "${bash_cv_type_sigset_t+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 cat >conftest.
$ac_ext <<_ACEOF
11775 #line 11775 "configure"
11776 #include "confdefs.h"
11777 #include <sys/types.h>
11779 #include <stdlib.h>
11780 #include <stddef.h>
11782 #if HAVE_INTTYPES_H
11783 #include <inttypes.h>
11785 #include <signal.h>
11788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11789 egrep "sigset_t" >/dev
/null
2>&1; then
11790 bash_cv_type_sigset_t
=yes
11792 bash_cv_type_sigset_t
=no
11798 echo "$as_me:11798: result: $bash_cv_type_sigset_t" >&5
11799 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
11801 if test $bash_cv_type_sigset_t = no
; then
11802 cat >>confdefs.h
<<EOF
11803 #define sigset_t int
11808 echo "$as_me:11808: checking for quad_t" >&5
11809 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
11810 if test "${bash_cv_type_quad_t+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.
$ac_ext <<_ACEOF
11814 #line 11814 "configure"
11815 #include "confdefs.h"
11816 #include <sys/types.h>
11818 #include <stdlib.h>
11819 #include <stddef.h>
11821 #if HAVE_INTTYPES_H
11822 #include <inttypes.h>
11826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11827 egrep "quad_t" >/dev
/null
2>&1; then
11828 bash_cv_type_quad_t
=yes
11830 bash_cv_type_quad_t
=no
11836 echo "$as_me:11836: result: $bash_cv_type_quad_t" >&5
11837 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
11838 if test $bash_cv_type_quad_t = yes; then
11839 cat >>confdefs.h
<<\EOF
11840 #define HAVE_QUAD_T 1
11844 if test $bash_cv_type_quad_t = no
; then
11845 cat >>confdefs.h
<<EOF
11846 #define quad_t long
11851 echo "$as_me:11851: checking for intmax_t" >&5
11852 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
11853 if test "${bash_cv_type_intmax_t+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 cat >conftest.
$ac_ext <<_ACEOF
11857 #line 11857 "configure"
11858 #include "confdefs.h"
11859 #include <sys/types.h>
11861 #include <stdlib.h>
11862 #include <stddef.h>
11864 #if HAVE_INTTYPES_H
11865 #include <inttypes.h>
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870 egrep "intmax_t" >/dev
/null
2>&1; then
11871 bash_cv_type_intmax_t
=yes
11873 bash_cv_type_intmax_t
=no
11879 echo "$as_me:11879: result: $bash_cv_type_intmax_t" >&5
11880 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
11882 if test $bash_cv_type_intmax_t = no
; then
11883 cat >>confdefs.h
<<EOF
11884 #define intmax_t $bash_cv_type_long_long
11889 echo "$as_me:11889: checking for uintmax_t" >&5
11890 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11891 if test "${bash_cv_type_uintmax_t+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.
$ac_ext <<_ACEOF
11895 #line 11895 "configure"
11896 #include "confdefs.h"
11897 #include <sys/types.h>
11899 #include <stdlib.h>
11900 #include <stddef.h>
11902 #if HAVE_INTTYPES_H
11903 #include <inttypes.h>
11907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11908 egrep "uintmax_t" >/dev
/null
2>&1; then
11909 bash_cv_type_uintmax_t
=yes
11911 bash_cv_type_uintmax_t
=no
11917 echo "$as_me:11917: result: $bash_cv_type_uintmax_t" >&5
11918 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
11920 if test $bash_cv_type_uintmax_t = no
; then
11921 cat >>confdefs.h
<<EOF
11922 #define uintmax_t $bash_cv_type_unsigned_long_long
11927 if test "$ac_cv_header_sys_socket_h" = "yes"; then
11929 echo "$as_me:11929: checking for socklen_t" >&5
11930 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11931 if test "${bash_cv_type_socklen_t+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.
$ac_ext <<_ACEOF
11935 #line 11935 "configure"
11936 #include "confdefs.h"
11937 #include <sys/types.h>
11939 #include <stdlib.h>
11940 #include <stddef.h>
11942 #if HAVE_INTTYPES_H
11943 #include <inttypes.h>
11945 #include <sys/socket.h>
11948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11949 egrep "socklen_t" >/dev
/null
2>&1; then
11950 bash_cv_type_socklen_t
=yes
11952 bash_cv_type_socklen_t
=no
11958 echo "$as_me:11958: result: $bash_cv_type_socklen_t" >&5
11959 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
11960 if test $bash_cv_type_socklen_t = yes; then
11961 cat >>confdefs.h
<<\EOF
11962 #define HAVE_SOCKLEN_T 1
11966 if test $bash_cv_type_socklen_t = no
; then
11967 cat >>confdefs.h
<<EOF
11968 #define socklen_t int
11974 echo "$as_me:11974: checking for size and type of struct rlimit fields" >&5
11975 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
11976 if test "${bash_cv_type_rlimit+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 cat >conftest.
$ac_ext <<_ACEOF
11980 #line 11980 "configure"
11981 #include "confdefs.h"
11982 #include <sys/types.h>
11983 #include <sys/resource.h>
11992 rm -f conftest.
$ac_objext
11993 if { (eval echo "$as_me:11993: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>&5
11996 echo "$as_me:11996: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try
='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:11999: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:12002: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 bash_cv_type_rlimit
=rlim_t
12006 echo "$as_me: failed program was:" >&5
12007 cat conftest.
$ac_ext >&5
12009 if test "$cross_compiling" = yes; then
12010 { echo "$as_me:12010: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
12011 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
12012 bash_cv_type_rlimit
=long
12014 cat >conftest.
$ac_ext <<_ACEOF
12015 #line 12015 "configure"
12016 #include "confdefs.h"
12018 #include <sys/types.h>
12019 #include <sys/time.h>
12020 #include <sys/resource.h>
12025 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
12031 rm -f conftest
$ac_exeext
12032 if { (eval echo "$as_me:12032: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>&5
12035 echo "$as_me:12035: \$? = $ac_status" >&5
12036 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12037 { (eval echo "$as_me:12037: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:12040: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 bash_cv_type_rlimit
=quad_t
12044 echo "$as_me: program exited with status $ac_status" >&5
12045 echo "$as_me: failed program was:" >&5
12046 cat conftest.
$ac_ext >&5
12047 bash_cv_type_rlimit
=long
12049 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12052 rm -f conftest.
$ac_objext conftest.
$ac_ext
12056 echo "$as_me:12056: result: $bash_cv_type_rlimit" >&5
12057 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
12058 if test $bash_cv_type_rlimit = quad_t
; then
12059 cat >>confdefs.h
<<\EOF
12060 #define RLIMTYPE quad_t
12063 elif test $bash_cv_type_rlimit = rlim_t
; then
12064 cat >>confdefs.h
<<\EOF
12065 #define RLIMTYPE rlim_t
12070 echo "$as_me:12070: checking for struct termios.c_line" >&5
12071 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
12072 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 cat >conftest.
$ac_ext <<_ACEOF
12076 #line 12076 "configure"
12077 #include "confdefs.h"
12079 #include <sys/types.h>
12080 #include <termios.h>
12085 static struct termios ac_aggr;
12086 if (ac_aggr.c_line)
12092 rm -f conftest.
$ac_objext
12093 if { (eval echo "$as_me:12093: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try
='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:12099: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:12102: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_member_struct_termios_c_line
=yes
12106 echo "$as_me: failed program was:" >&5
12107 cat conftest.
$ac_ext >&5
12108 ac_cv_member_struct_termios_c_line
=no
12110 rm -f conftest.
$ac_objext conftest.
$ac_ext
12112 echo "$as_me:12112: result: $ac_cv_member_struct_termios_c_line" >&5
12113 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
12114 if test $ac_cv_member_struct_termios_c_line = yes; then
12115 cat >>confdefs.h
<<\EOF
12116 #define TERMIOS_LDISC 1
12121 echo "$as_me:12121: checking for struct termio.c_line" >&5
12122 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
12123 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 cat >conftest.
$ac_ext <<_ACEOF
12127 #line 12127 "configure"
12128 #include "confdefs.h"
12130 #include <sys/types.h>
12131 #include <termio.h>
12136 static struct termio ac_aggr;
12137 if (ac_aggr.c_line)
12143 rm -f conftest.
$ac_objext
12144 if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>&5
12147 echo "$as_me:12147: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try
='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_cv_member_struct_termio_c_line
=yes
12157 echo "$as_me: failed program was:" >&5
12158 cat conftest.
$ac_ext >&5
12159 ac_cv_member_struct_termio_c_line
=no
12161 rm -f conftest.
$ac_objext conftest.
$ac_ext
12163 echo "$as_me:12163: result: $ac_cv_member_struct_termio_c_line" >&5
12164 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
12165 if test $ac_cv_member_struct_termio_c_line = yes; then
12166 cat >>confdefs.h
<<\EOF
12167 #define TERMIO_LDISC 1
12172 echo "$as_me:12172: checking if struct dirent has a d_ino member" >&5
12173 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
12174 if test "${bash_cv_dirent_has_dino+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.
$ac_ext <<_ACEOF
12178 #line 12178 "configure"
12179 #include "confdefs.h"
12182 #include <sys/types.h>
12183 #ifdef HAVE_UNISTD_H
12184 # include <unistd.h>
12185 #endif /* HAVE_UNISTD_H */
12186 #if defined(HAVE_DIRENT_H)
12187 # include <dirent.h>
12189 # define dirent direct
12190 # ifdef HAVE_SYS_NDIR_H
12191 # include <sys/ndir.h>
12192 # endif /* SYSNDIR */
12193 # ifdef HAVE_SYS_DIR_H
12194 # include <sys/dir.h>
12195 # endif /* SYSDIR */
12196 # ifdef HAVE_NDIR_H
12199 #endif /* HAVE_DIRENT_H */
12205 struct dirent d; int z; z = d.d_ino;
12211 rm -f conftest.
$ac_objext
12212 if { (eval echo "$as_me:12212: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>&5
12215 echo "$as_me:12215: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try
='test -s conftest.$ac_objext'
12218 { (eval echo "$as_me:12218: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:12221: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 bash_cv_dirent_has_dino
=yes
12225 echo "$as_me: failed program was:" >&5
12226 cat conftest.
$ac_ext >&5
12227 bash_cv_dirent_has_dino
=no
12229 rm -f conftest.
$ac_objext conftest.
$ac_ext
12232 echo "$as_me:12232: result: $bash_cv_dirent_has_dino" >&5
12233 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
12234 if test $bash_cv_dirent_has_dino = yes; then
12235 cat >>confdefs.h
<<\EOF
12236 #define STRUCT_DIRENT_HAS_D_INO 1
12241 echo "$as_me:12241: checking if struct dirent has a d_fileno member" >&5
12242 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
12243 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 cat >conftest.
$ac_ext <<_ACEOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12251 #include <sys/types.h>
12252 #ifdef HAVE_UNISTD_H
12253 # include <unistd.h>
12254 #endif /* HAVE_UNISTD_H */
12255 #if defined(HAVE_DIRENT_H)
12256 # include <dirent.h>
12258 # define dirent direct
12259 # ifdef HAVE_SYS_NDIR_H
12260 # include <sys/ndir.h>
12261 # endif /* SYSNDIR */
12262 # ifdef HAVE_SYS_DIR_H
12263 # include <sys/dir.h>
12264 # endif /* SYSDIR */
12265 # ifdef HAVE_NDIR_H
12268 #endif /* HAVE_DIRENT_H */
12274 struct dirent d; int z; z = d.d_fileno;
12280 rm -f conftest.
$ac_objext
12281 if { (eval echo "$as_me:12281: \"$ac_compile\"") >&5
12282 (eval $ac_compile) 2>&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try
='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:12287: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:12290: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 bash_cv_dirent_has_d_fileno
=yes
12294 echo "$as_me: failed program was:" >&5
12295 cat conftest.
$ac_ext >&5
12296 bash_cv_dirent_has_d_fileno
=no
12298 rm -f conftest.
$ac_objext conftest.
$ac_ext
12301 echo "$as_me:12301: result: $bash_cv_dirent_has_d_fileno" >&5
12302 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
12303 if test $bash_cv_dirent_has_d_fileno = yes; then
12304 cat >>confdefs.h
<<\EOF
12305 #define STRUCT_DIRENT_HAS_D_FILENO 1
12310 echo "$as_me:12310: checking for struct winsize in sys/ioctl.h and termios.h" >&5
12311 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
12312 if test "${bash_cv_struct_winsize_header+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.
$ac_ext <<_ACEOF
12316 #line 12316 "configure"
12317 #include "confdefs.h"
12318 #include <sys/types.h>
12319 #include <sys/ioctl.h>
12328 rm -f conftest.
$ac_objext
12329 if { (eval echo "$as_me:12329: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>&5
12332 echo "$as_me:12332: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try
='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:12335: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:12338: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 bash_cv_struct_winsize_header
=ioctl_h
12342 echo "$as_me: failed program was:" >&5
12343 cat conftest.
$ac_ext >&5
12344 cat >conftest.
$ac_ext <<_ACEOF
12345 #line 12345 "configure"
12346 #include "confdefs.h"
12347 #include <sys/types.h>
12348 #include <termios.h>
12357 rm -f conftest.
$ac_objext
12358 if { (eval echo "$as_me:12358: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>&5
12361 echo "$as_me:12361: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try
='test -s conftest.$ac_objext'
12364 { (eval echo "$as_me:12364: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:12367: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 bash_cv_struct_winsize_header
=termios_h
12371 echo "$as_me: failed program was:" >&5
12372 cat conftest.
$ac_ext >&5
12373 bash_cv_struct_winsize_header
=other
12375 rm -f conftest.
$ac_objext conftest.
$ac_ext
12378 rm -f conftest.
$ac_objext conftest.
$ac_ext
12381 if test $bash_cv_struct_winsize_header = ioctl_h
; then
12382 echo "$as_me:12382: result: sys/ioctl.h" >&5
12383 echo "${ECHO_T}sys/ioctl.h" >&6
12384 cat >>confdefs.h
<<\EOF
12385 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
12388 elif test $bash_cv_struct_winsize_header = termios_h
; then
12389 echo "$as_me:12389: result: termios.h" >&5
12390 echo "${ECHO_T}termios.h" >&6
12391 cat >>confdefs.h
<<\EOF
12392 #define STRUCT_WINSIZE_IN_TERMIOS 1
12396 echo "$as_me:12396: result: not found" >&5
12397 echo "${ECHO_T}not found" >&6
12400 echo "$as_me:12400: checking for struct timeval in sys/time.h and time.h" >&5
12401 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
12402 if test "${bash_cv_struct_timeval+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 cat >conftest.
$ac_ext <<_ACEOF
12407 #line 12407 "configure"
12408 #include "confdefs.h"
12409 #include <sys/time.h>
12412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12413 egrep "struct timeval" >/dev
/null
2>&1; then
12414 bash_cv_struct_timeval
=yes
12416 cat >conftest.
$ac_ext <<_ACEOF
12417 #line 12417 "configure"
12418 #include "confdefs.h"
12422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12423 egrep "struct timeval" >/dev
/null
2>&1; then
12424 bash_cv_struct_timeval
=yes
12426 bash_cv_struct_timeval
=no
12435 echo "$as_me:12435: result: $bash_cv_struct_timeval" >&5
12436 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
12437 if test $bash_cv_struct_timeval = yes; then
12438 cat >>confdefs.h
<<\EOF
12439 #define HAVE_TIMEVAL 1
12444 echo "$as_me:12444: checking for struct stat.st_blocks" >&5
12445 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12446 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 cat >conftest.
$ac_ext <<_ACEOF
12450 #line 12450 "configure"
12451 #include "confdefs.h"
12452 $ac_includes_default
12456 static struct stat ac_aggr;
12457 if (ac_aggr.st_blocks)
12463 rm -f conftest.
$ac_objext
12464 if { (eval echo "$as_me:12464: \"$ac_compile\"") >&5
12465 (eval $ac_compile) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try
='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_member_struct_stat_st_blocks
=yes
12477 echo "$as_me: failed program was:" >&5
12478 cat conftest.
$ac_ext >&5
12479 ac_cv_member_struct_stat_st_blocks
=no
12481 rm -f conftest.
$ac_objext conftest.
$ac_ext
12483 echo "$as_me:12483: result: $ac_cv_member_struct_stat_st_blocks" >&5
12484 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12485 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12487 cat >>confdefs.h
<<EOF
12488 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12493 echo "$as_me:12493: checking for the existence of strsignal" >&5
12494 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
12495 if test "${bash_cv_have_strsignal+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 cat >conftest.
$ac_ext <<_ACEOF
12499 #line 12499 "configure"
12500 #include "confdefs.h"
12501 #include <sys/types.h>
12502 #include <signal.h>
12506 char *s = (char *)strsignal(2);
12511 rm -f conftest.
$ac_objext conftest
$ac_exeext
12512 if { (eval echo "$as_me:12512: \"$ac_link\"") >&5
12513 (eval $ac_link) 2>&5
12515 echo "$as_me:12515: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try
='test -s conftest$ac_exeext'
12518 { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 bash_cv_have_strsignal
=yes
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.
$ac_ext >&5
12527 bash_cv_have_strsignal
=no
12529 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12532 echo "$as_me:12532: result: $bash_cv_have_strsignal" >&5
12533 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
12534 if test $bash_cv_have_strsignal = yes; then
12535 cat >>confdefs.h
<<\EOF
12536 #define HAVE_STRSIGNAL 1
12541 echo "$as_me:12541: checking if opendir() opens non-directories" >&5
12542 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
12543 if test "${bash_cv_opendir_not_robust+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 if test "$cross_compiling" = yes; then
12547 { echo "$as_me:12547: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
12548 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
12549 bash_cv_opendir_not_robust
=no
12552 cat >conftest.
$ac_ext <<_ACEOF
12553 #line 12553 "configure"
12554 #include "confdefs.h"
12557 #include <sys/types.h>
12559 #ifdef HAVE_UNISTD_H
12560 # include <unistd.h>
12561 #endif /* HAVE_UNISTD_H */
12562 #if defined(HAVE_DIRENT_H)
12563 # include <dirent.h>
12565 # define dirent direct
12566 # ifdef HAVE_SYS_NDIR_H
12567 # include <sys/ndir.h>
12568 # endif /* SYSNDIR */
12569 # ifdef HAVE_SYS_DIR_H
12570 # include <sys/dir.h>
12571 # endif /* SYSDIR */
12572 # ifdef HAVE_NDIR_H
12575 #endif /* HAVE_DIRENT_H */
12580 err = mkdir("/tmp/bash-aclocal", 0700);
12585 unlink("/tmp/bash-aclocal/not_a_directory");
12586 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
12587 write(fd, "\n", 1);
12589 dir = opendir("/tmp/bash-aclocal/not_a_directory");
12590 unlink("/tmp/bash-aclocal/not_a_directory");
12591 rmdir("/tmp/bash-aclocal");
12595 rm -f conftest
$ac_exeext
12596 if { (eval echo "$as_me:12596: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12599 echo "$as_me:12599: \$? = $ac_status" >&5
12600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12601 { (eval echo "$as_me:12601: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 bash_cv_opendir_not_robust
=yes
12608 echo "$as_me: program exited with status $ac_status" >&5
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.
$ac_ext >&5
12611 bash_cv_opendir_not_robust
=no
12613 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12617 echo "$as_me:12617: result: $bash_cv_opendir_not_robust" >&5
12618 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
12619 if test $bash_cv_opendir_not_robust = yes; then
12620 cat >>confdefs.h
<<\EOF
12621 #define OPENDIR_NOT_ROBUST 1
12626 echo "$as_me:12626: checking whether ulimit can substitute for getdtablesize" >&5
12627 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
12628 if test "${bash_cv_ulimit_maxfds+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 if test "$cross_compiling" = yes; then
12632 { echo "$as_me:12632: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
12633 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
12634 bash_cv_ulimit_maxfds
=no
12637 cat >conftest.
$ac_ext <<_ACEOF
12638 #line 12638 "configure"
12639 #include "confdefs.h"
12643 long maxfds = ulimit(4, 0L);
12644 exit (maxfds == -1L);
12648 rm -f conftest
$ac_exeext
12649 if { (eval echo "$as_me:12649: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12652 echo "$as_me:12652: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12654 { (eval echo "$as_me:12654: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 echo "$as_me:12657: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 bash_cv_ulimit_maxfds
=yes
12661 echo "$as_me: program exited with status $ac_status" >&5
12662 echo "$as_me: failed program was:" >&5
12663 cat conftest.
$ac_ext >&5
12664 bash_cv_ulimit_maxfds
=no
12666 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12670 echo "$as_me:12670: result: $bash_cv_ulimit_maxfds" >&5
12671 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
12672 if test $bash_cv_ulimit_maxfds = yes; then
12673 cat >>confdefs.h
<<\EOF
12674 #define ULIMIT_MAXFDS 1
12679 echo "$as_me:12679: checking to see if getenv can be redefined" >&5
12680 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
12681 if test "${bash_cv_getenv_redef+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 if test "$cross_compiling" = yes; then
12685 { echo "$as_me:12685: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
12686 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
12687 bash_cv_getenv_redef
=yes
12690 cat >conftest.
$ac_ext <<_ACEOF
12691 #line 12691 "configure"
12692 #include "confdefs.h"
12694 #ifdef HAVE_UNISTD_H
12695 # include <unistd.h>
12704 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
12708 #endif /* !__linux__ && !__bsdi__ && !convex */
12715 /* The next allows this program to run, but does not allow bash to link
12716 when it redefines getenv. I'm not really interested in figuring out
12721 s = getenv("ABCDE");
12722 exit(s == 0); /* force optimizer to leave getenv in */
12726 rm -f conftest
$ac_exeext
12727 if { (eval echo "$as_me:12727: \"$ac_link\"") >&5
12728 (eval $ac_link) 2>&5
12730 echo "$as_me:12730: \$? = $ac_status" >&5
12731 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12732 { (eval echo "$as_me:12732: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:12735: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 bash_cv_getenv_redef
=yes
12739 echo "$as_me: program exited with status $ac_status" >&5
12740 echo "$as_me: failed program was:" >&5
12741 cat conftest.
$ac_ext >&5
12742 bash_cv_getenv_redef
=no
12744 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12748 echo "$as_me:12748: result: $bash_cv_getenv_redef" >&5
12749 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
12750 if test $bash_cv_getenv_redef = yes; then
12751 cat >>confdefs.h
<<\EOF
12752 #define CAN_REDEFINE_GETENV 1
12757 if test "$ac_func_getcwd" = "yes"; then
12758 echo "$as_me:12758: checking if getcwd() calls popen()" >&5
12759 echo $ECHO_N "checking if getcwd() calls popen()... $ECHO_C" >&6
12760 if test "${bash_cv_getcwd_calls_popen+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 if test "$cross_compiling" = yes; then
12764 { echo "$as_me:12764: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&5
12765 echo "$as_me: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&2;}
12766 bash_cv_getcwd_calls_popen
=no
12769 cat >conftest.
$ac_ext <<_ACEOF
12770 #line 12770 "configure"
12771 #include "confdefs.h"
12774 #ifdef HAVE_UNISTD_H
12775 #include <unistd.h>
12787 popen(command, type)
12788 const char *command;
12792 return (FILE *)NULL;
12795 FILE *_popen(command, type)
12796 const char *command;
12799 return (popen (command, type));
12821 exit (popen_called);
12825 rm -f conftest
$ac_exeext
12826 if { (eval echo "$as_me:12826: \"$ac_link\"") >&5
12827 (eval $ac_link) 2>&5
12829 echo "$as_me:12829: \$? = $ac_status" >&5
12830 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12831 { (eval echo "$as_me:12831: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 bash_cv_getcwd_calls_popen
=no
12838 echo "$as_me: program exited with status $ac_status" >&5
12839 echo "$as_me: failed program was:" >&5
12840 cat conftest.
$ac_ext >&5
12841 bash_cv_getcwd_calls_popen
=yes
12843 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12847 echo "$as_me:12847: result: $bash_cv_getcwd_calls_popen" >&5
12848 echo "${ECHO_T}$bash_cv_getcwd_calls_popen" >&6
12849 if test $bash_cv_getcwd_calls_popen = yes; then
12850 cat >>confdefs.h
<<\EOF
12851 #define GETCWD_BROKEN 1
12854 LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
12859 echo "$as_me:12859: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
12860 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
12861 if test "${bash_cv_func_sigsetjmp+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 if test "$cross_compiling" = yes; then
12865 { echo "$as_me:12865: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
12866 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
12867 bash_cv_func_sigsetjmp
=missing
12870 cat >conftest.
$ac_ext <<_ACEOF
12871 #line 12871 "configure"
12872 #include "confdefs.h"
12874 #ifdef HAVE_UNISTD_H
12875 #include <unistd.h>
12877 #include <sys/types.h>
12878 #include <signal.h>
12879 #include <setjmp.h>
12883 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
12888 sigset_t set, oset;
12893 sigemptyset(&oset);
12894 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
12895 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
12898 code = sigsetjmp(xx, 1);
12900 exit(0); /* could get sigmask and compare to oset here. */
12903 sigaddset(&set, SIGINT);
12904 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
12906 /* and siglongjmp */
12907 siglongjmp(xx, 10);
12912 rm -f conftest
$ac_exeext
12913 if { (eval echo "$as_me:12913: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>&5
12916 echo "$as_me:12916: \$? = $ac_status" >&5
12917 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12918 { (eval echo "$as_me:12918: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:12921: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 bash_cv_func_sigsetjmp
=present
12925 echo "$as_me: program exited with status $ac_status" >&5
12926 echo "$as_me: failed program was:" >&5
12927 cat conftest.
$ac_ext >&5
12928 bash_cv_func_sigsetjmp
=missing
12930 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12934 echo "$as_me:12934: result: $bash_cv_func_sigsetjmp" >&5
12935 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
12936 if test $bash_cv_func_sigsetjmp = present
; then
12937 cat >>confdefs.h
<<\EOF
12938 #define HAVE_POSIX_SIGSETJMP 1
12943 echo "$as_me:12943: checking whether or not strcoll and strcmp differ" >&5
12944 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
12945 if test "${bash_cv_func_strcoll_broken+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 if test "$cross_compiling" = yes; then
12949 { echo "$as_me:12949: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
12950 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
12951 bash_cv_func_strcoll_broken
=no
12954 cat >conftest.
$ac_ext <<_ACEOF
12955 #line 12955 "configure"
12956 #include "confdefs.h"
12959 #if defined (HAVE_LOCALE_H)
12960 #include <locale.h>
12968 char *deflocale, *defcoll;
12970 #ifdef HAVE_SETLOCALE
12971 deflocale = setlocale(LC_ALL, "");
12972 defcoll = setlocale(LC_COLLATE, "");
12975 #ifdef HAVE_STRCOLL
12976 /* These two values are taken from tests/glob-test. */
12977 r1 = strcoll("abd", "aXd");
12981 r2 = strcmp("abd", "aXd");
12983 /* These two should both be greater than 0. It is permissible for
12984 a system to return different values, as long as the sign is the
12987 /* Exit with 1 (failure) if these two values are both > 0, since
12988 this tests whether strcoll(3) is broken with respect to strcmp(3)
12989 in the default locale. */
12990 exit (r1 > 0 && r2 > 0);
12994 rm -f conftest
$ac_exeext
12995 if { (eval echo "$as_me:12995: \"$ac_link\"") >&5
12996 (eval $ac_link) 2>&5
12998 echo "$as_me:12998: \$? = $ac_status" >&5
12999 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13000 { (eval echo "$as_me:13000: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13003 echo "$as_me:13003: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 bash_cv_func_strcoll_broken
=yes
13007 echo "$as_me: program exited with status $ac_status" >&5
13008 echo "$as_me: failed program was:" >&5
13009 cat conftest.
$ac_ext >&5
13010 bash_cv_func_strcoll_broken
=no
13012 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13016 echo "$as_me:13016: result: $bash_cv_func_strcoll_broken" >&5
13017 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
13018 if test $bash_cv_func_strcoll_broken = yes; then
13019 cat >>confdefs.h
<<\EOF
13020 #define STRCOLL_BROKEN 1
13025 echo "$as_me:13025: checking for printf floating point output in hex notation" >&5
13026 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
13027 if test "${bash_cv_printf_a_format+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 if test "$cross_compiling" = yes; then
13031 { echo "$as_me:13031: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
13032 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
13033 bash_cv_printf_a_format
=no
13036 cat >conftest.
$ac_ext <<_ACEOF
13037 #line 13037 "configure"
13038 #include "confdefs.h"
13041 #include <string.h>
13049 sprintf(abuf, "%A", y);
13050 exit(strchr(abuf, 'P') == (char *)0);
13054 rm -f conftest
$ac_exeext
13055 if { (eval echo "$as_me:13055: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>&5
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 bash_cv_printf_a_format
=yes
13067 echo "$as_me: program exited with status $ac_status" >&5
13068 echo "$as_me: failed program was:" >&5
13069 cat conftest.
$ac_ext >&5
13070 bash_cv_printf_a_format
=no
13072 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13076 echo "$as_me:13076: result: $bash_cv_printf_a_format" >&5
13077 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
13078 if test $bash_cv_printf_a_format = yes; then
13079 cat >>confdefs.h
<<\EOF
13080 #define HAVE_PRINTF_A_FORMAT 1
13085 echo "$as_me:13085: checking if signal handlers must be reinstalled when invoked" >&5
13086 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
13087 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 if test "$cross_compiling" = yes; then
13091 { echo "$as_me:13091: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
13092 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
13093 bash_cv_must_reinstall_sighandlers
=no
13096 cat >conftest.
$ac_ext <<_ACEOF
13097 #line 13097 "configure"
13098 #include "confdefs.h"
13100 #include <signal.h>
13101 #ifdef HAVE_UNISTD_H
13102 #include <unistd.h>
13105 typedef RETSIGTYPE sigfunc();
13109 #ifdef HAVE_POSIX_SIGNALS
13111 set_signal_handler(sig, handler)
13115 struct sigaction act, oact;
13116 act.sa_handler = handler;
13118 sigemptyset (&act.sa_mask);
13119 sigemptyset (&oact.sa_mask);
13120 sigaction (sig, &act, &oact);
13121 return (oact.sa_handler);
13124 #define set_signal_handler(s, h) signal(s, h)
13137 set_signal_handler(SIGINT, sigint);
13138 kill((int)getpid(), SIGINT);
13139 kill((int)getpid(), SIGINT);
13140 exit(nsigint != 2);
13144 rm -f conftest
$ac_exeext
13145 if { (eval echo "$as_me:13145: \"$ac_link\"") >&5
13146 (eval $ac_link) 2>&5
13148 echo "$as_me:13148: \$? = $ac_status" >&5
13149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13150 { (eval echo "$as_me:13150: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:13153: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 bash_cv_must_reinstall_sighandlers
=no
13157 echo "$as_me: program exited with status $ac_status" >&5
13158 echo "$as_me: failed program was:" >&5
13159 cat conftest.
$ac_ext >&5
13160 bash_cv_must_reinstall_sighandlers
=yes
13162 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13166 echo "$as_me:13166: result: $bash_cv_must_reinstall_sighandlers" >&5
13167 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
13168 if test $bash_cv_must_reinstall_sighandlers = yes; then
13169 cat >>confdefs.h
<<\EOF
13170 #define MUST_REINSTALL_SIGHANDLERS 1
13175 echo "$as_me:13175: checking for presence of necessary job control definitions" >&5
13176 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
13177 if test "${bash_cv_job_control_missing+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 if test "$cross_compiling" = yes; then
13181 { echo "$as_me:13181: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
13182 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
13183 bash_cv_job_control_missing
=missing
13186 cat >conftest.
$ac_ext <<_ACEOF
13187 #line 13187 "configure"
13188 #include "confdefs.h"
13190 #include <sys/types.h>
13191 #ifdef HAVE_SYS_WAIT_H
13192 #include <sys/wait.h>
13194 #ifdef HAVE_UNISTD_H
13195 #include <unistd.h>
13197 #include <signal.h>
13199 /* Add more tests in here as appropriate. */
13203 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
13207 /* signals and tty control. */
13208 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
13212 /* process control */
13213 #if !defined (WNOHANG) || !defined (WUNTRACED)
13217 /* Posix systems have tcgetpgrp and waitpid. */
13218 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
13222 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
13226 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
13227 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
13234 rm -f conftest
$ac_exeext
13235 if { (eval echo "$as_me:13235: \"$ac_link\"") >&5
13236 (eval $ac_link) 2>&5
13238 echo "$as_me:13238: \$? = $ac_status" >&5
13239 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13240 { (eval echo "$as_me:13240: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:13243: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 bash_cv_job_control_missing
=present
13247 echo "$as_me: program exited with status $ac_status" >&5
13248 echo "$as_me: failed program was:" >&5
13249 cat conftest.
$ac_ext >&5
13250 bash_cv_job_control_missing
=missing
13252 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13256 echo "$as_me:13256: result: $bash_cv_job_control_missing" >&5
13257 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
13258 if test $bash_cv_job_control_missing = missing
; then
13259 cat >>confdefs.h
<<\EOF
13260 #define JOB_CONTROL_MISSING 1
13265 echo "$as_me:13265: checking for presence of named pipes" >&5
13266 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
13267 if test "${bash_cv_sys_named_pipes+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 if test "$cross_compiling" = yes; then
13271 { echo "$as_me:13271: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
13272 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
13273 bash_cv_sys_named_pipes
=missing
13276 cat >conftest.
$ac_ext <<_ACEOF
13277 #line 13277 "configure"
13278 #include "confdefs.h"
13280 #include <sys/types.h>
13281 #include <sys/stat.h>
13282 #ifdef HAVE_UNISTD_H
13283 #include <unistd.h>
13286 /* Add more tests in here as appropriate. */
13291 #if defined (HAVE_MKFIFO)
13295 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
13302 err = mkdir("/tmp/bash-aclocal", 0700);
13307 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
13309 rmdir ("/tmp/bash-aclocal");
13313 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
13314 rmdir ("/tmp/bash-aclocal");
13318 rm -f conftest
$ac_exeext
13319 if { (eval echo "$as_me:13319: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13322 echo "$as_me:13322: \$? = $ac_status" >&5
13323 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13324 { (eval echo "$as_me:13324: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 echo "$as_me:13327: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 bash_cv_sys_named_pipes
=present
13331 echo "$as_me: program exited with status $ac_status" >&5
13332 echo "$as_me: failed program was:" >&5
13333 cat conftest.
$ac_ext >&5
13334 bash_cv_sys_named_pipes
=missing
13336 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13340 echo "$as_me:13340: result: $bash_cv_sys_named_pipes" >&5
13341 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
13342 if test $bash_cv_sys_named_pipes = missing
; then
13343 cat >>confdefs.h
<<\EOF
13344 #define NAMED_PIPES_MISSING 1
13349 echo "$as_me:13349: checking POSIX termios" >&5
13350 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
13351 if test "${ac_cv_sys_posix_termios+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 cat >conftest.
$ac_ext <<_ACEOF
13355 #line 13355 "configure"
13356 #include "confdefs.h"
13357 #include <sys/types.h>
13358 #include <unistd.h>
13359 #include <termios.h>
13363 /* SunOS 4.0.3 has termios.h but not the library calls. */
13369 rm -f conftest.
$ac_objext conftest
$ac_exeext
13370 if { (eval echo "$as_me:13370: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>&5
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try
='test -s conftest$ac_exeext'
13376 { (eval echo "$as_me:13376: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:13379: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_cv_sys_posix_termios
=yes
13383 echo "$as_me: failed program was:" >&5
13384 cat conftest.
$ac_ext >&5
13385 ac_cv_sys_posix_termios
=no
13387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13389 echo "$as_me:13389: result: $ac_cv_sys_posix_termios" >&5
13390 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
13392 if test $ac_cv_sys_posix_termios = yes; then
13393 echo "$as_me:13393: checking whether termios.h defines TIOCGWINSZ" >&5
13394 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13395 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 cat >conftest.
$ac_ext <<_ACEOF
13399 #line 13399 "configure"
13400 #include "confdefs.h"
13401 #include <sys/types.h>
13402 #include <termios.h>
13408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409 egrep "yes" >/dev
/null
2>&1; then
13410 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
13412 ac_cv_sys_tiocgwinsz_in_termios_h
=no
13417 echo "$as_me:13417: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13418 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13421 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13422 echo "$as_me:13422: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13423 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13424 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 cat >conftest.
$ac_ext <<_ACEOF
13428 #line 13428 "configure"
13429 #include "confdefs.h"
13430 #include <sys/types.h>
13431 #include <sys/ioctl.h>
13437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438 egrep "yes" >/dev
/null
2>&1; then
13439 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
13441 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
13446 echo "$as_me:13446: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13447 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13449 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13451 cat >>confdefs.h
<<\EOF
13452 #define GWINSZ_IN_SYS_IOCTL 1
13458 echo "$as_me:13458: checking for TIOCSTAT in sys/ioctl.h" >&5
13459 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
13460 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 cat >conftest.
$ac_ext <<_ACEOF
13464 #line 13464 "configure"
13465 #include "confdefs.h"
13466 #include <sys/types.h>
13467 #include <sys/ioctl.h>
13476 rm -f conftest.
$ac_objext
13477 if { (eval echo "$as_me:13477: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try
='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:13483: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:13486: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 bash_cv_tiocstat_in_ioctl
=yes
13490 echo "$as_me: failed program was:" >&5
13491 cat conftest.
$ac_ext >&5
13492 bash_cv_tiocstat_in_ioctl
=no
13494 rm -f conftest.
$ac_objext conftest.
$ac_ext
13497 echo "$as_me:13497: result: $bash_cv_tiocstat_in_ioctl" >&5
13498 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
13499 if test $bash_cv_tiocstat_in_ioctl = yes; then
13500 cat >>confdefs.h
<<\EOF
13501 #define TIOCSTAT_IN_SYS_IOCTL 1
13506 echo "$as_me:13506: checking for FIONREAD in sys/ioctl.h" >&5
13507 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
13508 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 cat >conftest.
$ac_ext <<_ACEOF
13512 #line 13512 "configure"
13513 #include "confdefs.h"
13514 #include <sys/types.h>
13515 #include <sys/ioctl.h>
13524 rm -f conftest.
$ac_objext
13525 if { (eval echo "$as_me:13525: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13528 echo "$as_me:13528: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try
='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:13531: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:13534: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 bash_cv_fionread_in_ioctl
=yes
13538 echo "$as_me: failed program was:" >&5
13539 cat conftest.
$ac_ext >&5
13540 bash_cv_fionread_in_ioctl
=no
13542 rm -f conftest.
$ac_objext conftest.
$ac_ext
13545 echo "$as_me:13545: result: $bash_cv_fionread_in_ioctl" >&5
13546 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
13547 if test $bash_cv_fionread_in_ioctl = yes; then
13548 cat >>confdefs.h
<<\EOF
13549 #define FIONREAD_IN_SYS_IOCTL 1
13554 echo "$as_me:13554: checking for speed_t in sys/types.h" >&5
13555 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
13556 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 cat >conftest.
$ac_ext <<_ACEOF
13560 #line 13560 "configure"
13561 #include "confdefs.h"
13562 #include <sys/types.h>
13571 rm -f conftest.
$ac_objext
13572 if { (eval echo "$as_me:13572: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>&5
13575 echo "$as_me:13575: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try
='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:13578: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:13581: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 bash_cv_speed_t_in_sys_types
=yes
13585 echo "$as_me: failed program was:" >&5
13586 cat conftest.
$ac_ext >&5
13587 bash_cv_speed_t_in_sys_types
=no
13589 rm -f conftest.
$ac_objext conftest.
$ac_ext
13592 echo "$as_me:13592: result: $bash_cv_speed_t_in_sys_types" >&5
13593 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
13594 if test $bash_cv_speed_t_in_sys_types = yes; then
13595 cat >>confdefs.h
<<\EOF
13596 #define SPEED_T_IN_SYS_TYPES 1
13601 echo "$as_me:13601: checking whether getpw functions are declared in pwd.h" >&5
13602 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
13603 if test "${bash_cv_getpw_declared+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 cat >conftest.
$ac_ext <<_ACEOF
13607 #line 13607 "configure"
13608 #include "confdefs.h"
13610 #include <sys/types.h>
13611 #ifdef HAVE_UNISTD_H
13612 # include <unistd.h>
13617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13618 egrep "getpwuid" >/dev
/null
2>&1; then
13619 bash_cv_getpw_declared
=yes
13621 bash_cv_getpw_declared
=no
13627 echo "$as_me:13627: result: $bash_cv_getpw_declared" >&5
13628 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
13629 if test $bash_cv_getpw_declared = yes; then
13630 cat >>confdefs.h
<<\EOF
13631 #define HAVE_GETPW_DECLS 1
13636 echo "$as_me:13636: checking for unusable real-time signals due to large values" >&5
13637 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
13638 if test "${bash_cv_unusable_rtsigs+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 if test "$cross_compiling" = yes; then
13642 { echo "$as_me:13642: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
13643 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
13644 bash_cv_unusable_rtsigs
=yes
13647 cat >conftest.
$ac_ext <<_ACEOF
13648 #line 13648 "configure"
13649 #include "confdefs.h"
13651 #include <sys/types.h>
13652 #include <signal.h>
13660 int n_sigs = 2 * NSIG;
13662 int rtmin = SIGRTMIN;
13667 exit(rtmin < n_sigs);
13670 rm -f conftest
$ac_exeext
13671 if { (eval echo "$as_me:13671: \"$ac_link\"") >&5
13672 (eval $ac_link) 2>&5
13674 echo "$as_me:13674: \$? = $ac_status" >&5
13675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13676 { (eval echo "$as_me:13676: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:13679: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 bash_cv_unusable_rtsigs
=yes
13683 echo "$as_me: program exited with status $ac_status" >&5
13684 echo "$as_me: failed program was:" >&5
13685 cat conftest.
$ac_ext >&5
13686 bash_cv_unusable_rtsigs
=no
13688 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13692 echo "$as_me:13692: result: $bash_cv_unusable_rtsigs" >&5
13693 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
13694 if test $bash_cv_unusable_rtsigs = yes; then
13695 cat >>confdefs.h
<<\EOF
13696 #define UNUSABLE_RT_SIGNALS 1
13701 if test "$bash_cv_sys_siglist" = no
&& test "$bash_cv_under_sys_siglist" = no
&& test "$bash_cv_have_strsignal" = no
; then
13702 SIGLIST_O
=siglist.o
13708 hpux
*) echo "$as_me:13708: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
13709 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
13710 if test "${bash_cv_kernel_rlimit+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 cat >conftest.
$ac_ext <<_ACEOF
13714 #line 13714 "configure"
13715 #include "confdefs.h"
13717 #include <sys/types.h>
13718 #include <sys/resource.h>
13731 rm -f conftest.
$ac_objext
13732 if { (eval echo "$as_me:13732: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13735 echo "$as_me:13735: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try
='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:13738: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 bash_cv_kernel_rlimit
=no
13745 echo "$as_me: failed program was:" >&5
13746 cat conftest.
$ac_ext >&5
13747 cat >conftest.
$ac_ext <<_ACEOF
13748 #line 13748 "configure"
13749 #include "confdefs.h"
13751 #include <sys/types.h>
13753 #include <sys/resource.h>
13767 rm -f conftest.
$ac_objext
13768 if { (eval echo "$as_me:13768: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>&5
13771 echo "$as_me:13771: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try
='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:13774: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:13777: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 bash_cv_kernel_rlimit
=yes
13781 echo "$as_me: failed program was:" >&5
13782 cat conftest.
$ac_ext >&5
13783 bash_cv_kernel_rlimit
=no
13785 rm -f conftest.
$ac_objext conftest.
$ac_ext
13788 rm -f conftest.
$ac_objext conftest.
$ac_ext
13791 echo "$as_me:13791: result: $bash_cv_kernel_rlimit" >&5
13792 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
13793 if test $bash_cv_kernel_rlimit = yes; then
13794 cat >>confdefs.h
<<\EOF
13795 #define RLIMIT_NEEDS_KERNEL 1
13802 if test "$opt_readline" = yes; then
13804 aix
*) prefer_curses
=yes ;;
13807 if test "X$bash_cv_termcap_lib" = "X"; then
13810 echo "$as_me:13810: checking which library has the termcap functions" >&5
13811 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
13814 if test "${bash_cv_termcap_lib+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 echo "$as_me:13817: checking for tgetent in -ltermcap" >&5
13818 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13819 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 ac_check_lib_save_LIBS
=$LIBS
13823 LIBS
="-ltermcap $LIBS"
13824 cat >conftest.
$ac_ext <<_ACEOF
13825 #line 13825 "configure"
13826 #include "confdefs.h"
13828 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13843 rm -f conftest.
$ac_objext conftest
$ac_exeext
13844 if { (eval echo "$as_me:13844: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>&5
13847 echo "$as_me:13847: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try
='test -s conftest$ac_exeext'
13850 { (eval echo "$as_me:13850: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:13853: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_lib_termcap_tgetent
=yes
13857 echo "$as_me: failed program was:" >&5
13858 cat conftest.
$ac_ext >&5
13859 ac_cv_lib_termcap_tgetent
=no
13861 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13862 LIBS
=$ac_check_lib_save_LIBS
13864 echo "$as_me:13864: result: $ac_cv_lib_termcap_tgetent" >&5
13865 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13866 if test $ac_cv_lib_termcap_tgetent = yes; then
13867 bash_cv_termcap_lib
=libtermcap
13869 echo "$as_me:13869: checking for tgetent in -ltinfo" >&5
13870 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
13871 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 ac_check_lib_save_LIBS
=$LIBS
13875 LIBS
="-ltinfo $LIBS"
13876 cat >conftest.
$ac_ext <<_ACEOF
13877 #line 13877 "configure"
13878 #include "confdefs.h"
13880 /* Override any gcc2 internal prototype to avoid an error. */
13884 /* We use char because int might match the return type of a gcc2
13885 builtin and then its argument prototype would still apply. */
13895 rm -f conftest.
$ac_objext conftest
$ac_exeext
13896 if { (eval echo "$as_me:13896: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13899 echo "$as_me:13899: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try
='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:13902: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:13905: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_lib_tinfo_tgetent
=yes
13909 echo "$as_me: failed program was:" >&5
13910 cat conftest.
$ac_ext >&5
13911 ac_cv_lib_tinfo_tgetent
=no
13913 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13914 LIBS
=$ac_check_lib_save_LIBS
13916 echo "$as_me:13916: result: $ac_cv_lib_tinfo_tgetent" >&5
13917 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
13918 if test $ac_cv_lib_tinfo_tgetent = yes; then
13919 bash_cv_termcal_lib
=libtinfo
13921 echo "$as_me:13921: checking for tgetent in -lcurses" >&5
13922 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13923 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 ac_check_lib_save_LIBS
=$LIBS
13927 LIBS
="-lcurses $LIBS"
13928 cat >conftest.
$ac_ext <<_ACEOF
13929 #line 13929 "configure"
13930 #include "confdefs.h"
13932 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13947 rm -f conftest.
$ac_objext conftest
$ac_exeext
13948 if { (eval echo "$as_me:13948: \"$ac_link\"") >&5
13949 (eval $ac_link) 2>&5
13951 echo "$as_me:13951: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try
='test -s conftest$ac_exeext'
13954 { (eval echo "$as_me:13954: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:13957: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_lib_curses_tgetent
=yes
13961 echo "$as_me: failed program was:" >&5
13962 cat conftest.
$ac_ext >&5
13963 ac_cv_lib_curses_tgetent
=no
13965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13966 LIBS
=$ac_check_lib_save_LIBS
13968 echo "$as_me:13968: result: $ac_cv_lib_curses_tgetent" >&5
13969 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13970 if test $ac_cv_lib_curses_tgetent = yes; then
13971 bash_cv_termcap_lib
=libcurses
13973 echo "$as_me:13973: checking for tgetent in -lncurses" >&5
13974 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13975 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 ac_check_lib_save_LIBS
=$LIBS
13979 LIBS
="-lncurses $LIBS"
13980 cat >conftest.
$ac_ext <<_ACEOF
13981 #line 13981 "configure"
13982 #include "confdefs.h"
13984 /* Override any gcc2 internal prototype to avoid an error. */
13988 /* We use char because int might match the return type of a gcc2
13989 builtin and then its argument prototype would still apply. */
13999 rm -f conftest.
$ac_objext conftest
$ac_exeext
14000 if { (eval echo "$as_me:14000: \"$ac_link\"") >&5
14001 (eval $ac_link) 2>&5
14003 echo "$as_me:14003: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try
='test -s conftest$ac_exeext'
14006 { (eval echo "$as_me:14006: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:14009: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_lib_ncurses_tgetent
=yes
14013 echo "$as_me: failed program was:" >&5
14014 cat conftest.
$ac_ext >&5
14015 ac_cv_lib_ncurses_tgetent
=no
14017 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14018 LIBS
=$ac_check_lib_save_LIBS
14020 echo "$as_me:14020: result: $ac_cv_lib_ncurses_tgetent" >&5
14021 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
14022 if test $ac_cv_lib_ncurses_tgetent = yes; then
14023 bash_cv_termcap_lib
=libncurses
14025 bash_cv_termcap_lib
=gnutermcap
14036 if test "X$_bash_needmsg" = "Xyes"; then
14037 echo "$as_me:14037: checking which library has the termcap functions" >&5
14038 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
14040 echo "$as_me:14040: result: using $bash_cv_termcap_lib" >&5
14041 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
14042 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
14043 LDFLAGS
="$LDFLAGS -L./lib/termcap"
14044 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
14045 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
14046 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
14047 TERMCAP_LIB
=-ltermcap
14049 elif test $bash_cv_termcap_lib = libtinfo
; then
14050 TERMCAP_LIB
=-ltinfo
14052 elif test $bash_cv_termcap_lib = libncurses
; then
14053 TERMCAP_LIB
=-lncurses
14056 TERMCAP_LIB
=-lcurses
14062 echo "$as_me:14062: checking whether /dev/fd is available" >&5
14063 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
14064 if test "${bash_cv_dev_fd+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 if test -d /dev
/fd
&& test -r /dev
/fd
/0; then
14068 bash_cv_dev_fd
=standard
14069 elif test -d /proc
/self
/fd
&& test -r /proc
/self
/fd
/0; then
14070 bash_cv_dev_fd
=whacky
14072 bash_cv_dev_fd
=absent
14077 echo "$as_me:14077: result: $bash_cv_dev_fd" >&5
14078 echo "${ECHO_T}$bash_cv_dev_fd" >&6
14079 if test $bash_cv_dev_fd = "standard"; then
14080 cat >>confdefs.h
<<\EOF
14081 #define HAVE_DEV_FD 1
14084 cat >>confdefs.h
<<\EOF
14085 #define DEV_FD_PREFIX "/dev/fd/"
14088 elif test $bash_cv_dev_fd = "whacky"; then
14089 cat >>confdefs.h
<<\EOF
14090 #define HAVE_DEV_FD 1
14093 cat >>confdefs.h
<<\EOF
14094 #define DEV_FD_PREFIX "/proc/self/fd/"
14099 echo "$as_me:14099: checking whether /dev/stdin stdout stderr are available" >&5
14100 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
14101 if test "${bash_cv_dev_stdin+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 if test -d /dev
/fd
&& test -r /dev
/stdin
; then
14105 bash_cv_dev_stdin
=present
14106 elif test -d /proc
/self
/fd
&& test -r /dev
/stdin
; then
14107 bash_cv_dev_stdin
=present
14109 bash_cv_dev_stdin
=absent
14114 echo "$as_me:14114: result: $bash_cv_dev_stdin" >&5
14115 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
14116 if test $bash_cv_dev_stdin = "present"; then
14117 cat >>confdefs.h
<<\EOF
14118 #define HAVE_DEV_STDIN 1
14123 echo "$as_me:14123: checking for default mail directory" >&5
14124 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
14125 if test "${bash_cv_mail_dir+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 if test -d /var
/mail; then
14129 bash_cv_mail_dir
=/var
/mail
14130 elif test -d /usr
/mail; then
14131 bash_cv_mail_dir
=/usr
/mail
14132 elif test -d /var
/spool
/mail; then
14133 bash_cv_mail_dir
=/var
/spool
/mail
14134 elif test -d /usr
/spool
/mail; then
14135 bash_cv_mail_dir
=/usr
/spool
/mail
14137 bash_cv_mail_dir
=unknown
14142 echo "$as_me:14142: result: $bash_cv_mail_dir" >&5
14143 echo "${ECHO_T}$bash_cv_mail_dir" >&6
14144 if test $bash_cv_mail_dir = "/var/mail"; then
14145 cat >>confdefs.h
<<\EOF
14146 #define DEFAULT_MAIL_DIRECTORY "/var/mail"
14149 elif test $bash_cv_mail_dir = "/usr/mail"; then
14150 cat >>confdefs.h
<<\EOF
14151 #define DEFAULT_MAIL_DIRECTORY "/usr/mail"
14154 elif test $bash_cv_mail_dir = "/var/spool/mail"; then
14155 cat >>confdefs.h
<<\EOF
14156 #define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
14159 elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
14160 cat >>confdefs.h
<<\EOF
14161 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
14165 cat >>confdefs.h
<<\EOF
14166 #define DEFAULT_MAIL_DIRECTORY "unknown"
14171 if test "$bash_cv_job_control_missing" = missing
; then
14175 if test "$opt_job_control" = yes; then
14176 cat >>confdefs.h
<<\EOF
14177 #define JOB_CONTROL 1
14187 case "${host_os}" in
14188 sysv4.2
*) cat >>confdefs.h
<<\EOF
14192 cat >>confdefs.h
<<\EOF
14196 sysv4
*) cat >>confdefs.h
<<\EOF
14200 sysv5
*) cat >>confdefs.h
<<\EOF
14204 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
14205 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
14206 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
14207 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
14208 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
14209 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
14210 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
14211 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
14212 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
14213 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
14214 solaris2.5
*) LOCAL_CFLAGS
=-DSunOS5 ;;
14215 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
14216 linux
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
14217 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s -lunix -lncurses" ;;
14218 powerux
*) LOCAL_LIBS
="-lgen" ;;
14219 cygwin
*) LOCAL_LIBS
="-luser32" ;;
14220 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
14223 case "${host_os}-${CC}" in
14224 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
14225 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
14226 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
14229 case "${host_os}" in
14231 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
14232 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
14234 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
14237 case "$host_cpu" in
14238 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
14241 case "$host_cpu-$host_os" in
14242 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
14245 case "$host_cpu-$host_vendor-$host_os" in
14246 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
14247 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
14251 # Shared object configuration section. These values are generated by
14252 # ${srcdir}/support/shobj-conf
14254 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
14256 echo "$as_me:14256: checking shared object configuration for loadable builtins" >&5
14257 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
14258 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
14260 echo "$as_me:14260: result: $SHOBJ_STATUS" >&5
14261 echo "${ECHO_T}$SHOBJ_STATUS" >&6
14264 # try to create a directory tree if the source is elsewhere
14265 # this should be packaged into a script accessible via ${srcdir}/support
14268 *) for d
in doc tests support lib examples
; do # dirs
14269 test -d $d || mkdir
$d
14271 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
14272 test -d lib
/$ld || mkdir lib
/$ld
14274 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
14275 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
14281 #AC_SUBST(ALLOCA_SOURCE)
14282 #AC_SUBST(ALLOCA_OBJECT)
14284 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"
14285 ac_config_commands
="$ac_config_commands default"
14286 cat >confcache
<<\_ACEOF
14287 # This file is a shell script that caches the results of configure
14288 # tests run on this system so they can be shared between configure
14289 # scripts and configure runs, see configure's option --config-cache.
14290 # It is not useful on other systems. If it contains results you don't
14291 # want to keep, you may remove or edit it.
14293 # config.status only pays attention to the cache file if you give it
14294 # the --recheck option to rerun configure.
14296 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14298 # following values.
14302 # The following way of writing the cache mishandles newlines in values,
14303 # but we know of no workaround that is simple, portable, and efficient.
14304 # So, don't put newlines in cache variables' values.
14305 # Ultrix sh set writes to stderr and can't be redirected directly,
14306 # and sets the high bit in the cache file unless we assign to the vars.
14309 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14311 # `set' does not quote correctly, so add quotes (double-quote
14312 # substitution turns \\\\ into \\, and sed turns \\ into \).
14315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14318 # `set' quotes correctly as required by POSIX, so do not add quotes.
14320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14329 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14331 if cmp -s $cache_file confcache
; then :; else
14332 if test -w $cache_file; then
14333 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14334 cat confcache
>$cache_file
14336 echo "not updating unwritable cache $cache_file"
14341 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14342 # Let make expand exec_prefix.
14343 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14347 # trailing colons and then remove the whole line if VPATH becomes empty
14348 # (actually we leave an empty line to preserve line numbers).
14349 if test "x$srcdir" = x.
; then
14350 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14351 s/:*\$(srcdir):*/:/;
14352 s/:*\${srcdir}:*/:/;
14354 s/^\([^=]*=[ ]*\):*/\1/;
14360 DEFS
=-DHAVE_CONFIG_H
14362 : ${CONFIG_STATUS=./config.status}
14363 ac_clean_files_save
=$ac_clean_files
14364 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14365 { echo "$as_me:14365: creating $CONFIG_STATUS" >&5
14366 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14367 cat >$CONFIG_STATUS <<_ACEOF
14369 # Generated automatically by configure.
14370 # Run this file to recreate the current configuration.
14371 # Compiler output produced by configure, useful for debugging
14372 # configure, is in config.log if it exists.
14375 SHELL=\${CONFIG_SHELL-$SHELL}
14376 ac_cs_invocation="\$0 \$@"
14380 cat >>$CONFIG_STATUS <<\_ACEOF
14381 # Be Bourne compatible
14382 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14385 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
14389 # Name of the executable.
14390 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
14392 if expr a
: '\(a\)' >/dev
/null
2>&1; then
14398 rm -f conf$$ conf$$.exe conf$$.
file
14400 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14401 # We could just check for DJGPP; but this test a) works b) is more generic
14402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14403 if test -f conf$$.exe
; then
14404 # Don't use ln at all; we don't have any links
14409 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14414 rm -f conf$$ conf$$.exe conf$$.
file
14416 as_executable_p
="test -f"
14418 # Support unset when possible.
14419 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
14426 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
14427 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
14428 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
14429 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
14430 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
14431 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
14432 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
14433 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
14436 # We need space, tab and new line, in precisely that order.
14442 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
14448 # Files that config.status was made for.
14449 if test -n "$ac_config_files"; then
14450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14453 if test -n "$ac_config_headers"; then
14454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14457 if test -n "$ac_config_links"; then
14458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14461 if test -n "$ac_config_commands"; then
14462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14465 cat >>$CONFIG_STATUS <<\EOF
14468 \`$as_me' instantiates files from templates according to the
14469 current configuration.
14471 Usage: $0 [OPTIONS] [FILE]...
14473 -h, --help print this help, then exit
14474 -V, --version print version number, then exit
14475 -d, --debug don't remove temporary files
14476 --recheck update $as_me by reconfiguring in the same conditions
14477 --file=FILE[:TEMPLATE]
14478 instantiate the configuration file FILE
14479 --header=FILE[:TEMPLATE]
14480 instantiate the configuration header FILE
14482 Configuration files:
14485 Configuration headers:
14488 Configuration commands:
14491 Report bugs to <bug-autoconf@gnu.org>."
14494 cat >>$CONFIG_STATUS <<EOF
14496 bash config.status 2.05a
14497 configured by $0, generated by GNU Autoconf 2.52,
14498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14501 Free Software Foundation, Inc.
14502 This config.status script is free software; the Free Software Foundation
14503 gives unlimited permission to copy, distribute and modify it."
14508 cat >>$CONFIG_STATUS <<\EOF
14509 # If no file are specified by the user, then we need to provide default
14510 # value. By we need to know if files were specified by the user.
14516 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
14517 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
14519 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
14523 *) # This is not an option, so the user has probably given explicit
14525 ac_need_defaults
=false
;;
14529 # Handling of the options.
14531 cat >>$CONFIG_STATUS <<EOF
14532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14533 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14534 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14536 cat >>$CONFIG_STATUS <<\EOF
14537 --version |
--vers* |
-V )
14538 echo "$ac_cs_version"; exit 0 ;;
14540 # Conflict between --help and --header
14541 { { echo "$as_me:14541: error: ambiguous option: $1
14542 Try \`$0 --help' for more information." >&5
14543 echo "$as_me: error: ambiguous option: $1
14544 Try \`$0 --help' for more information." >&2;}
14545 { (exit 1); exit 1; }; };;
14546 --help |
--hel |
-h )
14547 echo "$ac_cs_usage"; exit 0 ;;
14548 --debug |
--d* |
-d )
14550 --file |
--fil |
--fi |
--f )
14552 CONFIG_FILES
="$CONFIG_FILES $1"
14553 ac_need_defaults
=false
;;
14554 --header |
--heade |
--head |
--hea )
14556 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
14557 ac_need_defaults
=false
;;
14559 # This is an error.
14560 -*) { { echo "$as_me:14560: error: unrecognized option: $1
14561 Try \`$0 --help' for more information." >&5
14562 echo "$as_me: error: unrecognized option: $1
14563 Try \`$0 --help' for more information." >&2;}
14564 { (exit 1); exit 1; }; } ;;
14566 *) ac_config_targets
="$ac_config_targets $1" ;;
14575 ## ----------------------- ##
14576 ## Running config.status. ##
14577 ## ----------------------- ##
14579 This file was extended by $as_me (bash 2.05a) 2.52, executed with
14580 CONFIG_FILES = $CONFIG_FILES
14581 CONFIG_HEADERS = $CONFIG_HEADERS
14582 CONFIG_LINKS = $CONFIG_LINKS
14583 CONFIG_COMMANDS = $CONFIG_COMMANDS
14584 > $ac_cs_invocation
14585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14590 cat >>$CONFIG_STATUS <<\EOF
14591 for ac_config_target
in $ac_config_targets
14593 case "$ac_config_target" in
14594 # Handling of arguments.
14595 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14596 "builtins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
14597 "lib/readline/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
14598 "lib/glob/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
14599 "lib/malloc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
14600 "lib/sh/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
14601 "lib/termcap/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
14602 "lib/tilde/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
14603 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14604 "support/Makefile" ) CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
14605 "examples/loadables/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
14606 "examples/loadables/perl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
14607 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14608 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14609 *) { { echo "$as_me:14609: error: invalid argument: $ac_config_target" >&5
14610 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14611 { (exit 1); exit 1; }; };;
14615 # If the user did not use the arguments to specify the items to instantiate,
14616 # then the envvar interface is used. Set only those that are not.
14617 # We use the long form for the default assignment because of an extremely
14618 # bizarre bug on SunOS 4.1.3.
14619 if $ac_need_defaults; then
14620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14625 # Create a temporary directory, and hook for its removal unless debugging.
14628 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14629 trap '{ (exit 1); exit 1; }' 1 2 13 15
14632 # Create a (secure) tmp directory for tmp files.
14635 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14636 test -n "$tmp" && test -d "$tmp"
14639 tmp
=$TMPDIR/cs$$
-$RANDOM
14640 (umask 077 && mkdir
$tmp)
14643 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14644 { (exit 1); exit 1; }
14649 cat >>$CONFIG_STATUS <<EOF
14652 # CONFIG_FILES section.
14655 # No need to generate the scripts if there are no CONFIG_FILES.
14656 # This happens for instance when ./config.status config.h
14657 if test -n "\$CONFIG_FILES"; then
14658 # Protect against being on the right side of a sed subst in config.status.
14659 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14660 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14661 s,@SHELL@,$SHELL,;t t
14662 s,@exec_prefix@,$exec_prefix,;t t
14663 s,@prefix@,$prefix,;t t
14664 s,@program_transform_name@,$program_transform_name,;t t
14665 s,@bindir@,$bindir,;t t
14666 s,@sbindir@,$sbindir,;t t
14667 s,@libexecdir@,$libexecdir,;t t
14668 s,@datadir@,$datadir,;t t
14669 s,@sysconfdir@,$sysconfdir,;t t
14670 s,@sharedstatedir@,$sharedstatedir,;t t
14671 s,@localstatedir@,$localstatedir,;t t
14672 s,@libdir@,$libdir,;t t
14673 s,@includedir@,$includedir,;t t
14674 s,@oldincludedir@,$oldincludedir,;t t
14675 s,@infodir@,$infodir,;t t
14676 s,@mandir@,$mandir,;t t
14677 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14678 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14679 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14680 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14681 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14682 s,@build_alias@,$build_alias,;t t
14683 s,@host_alias@,$host_alias,;t t
14684 s,@target_alias@,$target_alias,;t t
14685 s,@ECHO_C@,$ECHO_C,;t t
14686 s,@ECHO_N@,$ECHO_N,;t t
14687 s,@ECHO_T@,$ECHO_T,;t t
14688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14689 s,@DEFS@,$DEFS,;t t
14690 s,@LIBS@,$LIBS,;t t
14691 s,@build@,$build,;t t
14692 s,@build_cpu@,$build_cpu,;t t
14693 s,@build_vendor@,$build_vendor,;t t
14694 s,@build_os@,$build_os,;t t
14695 s,@host@,$host,;t t
14696 s,@host_cpu@,$host_cpu,;t t
14697 s,@host_vendor@,$host_vendor,;t t
14698 s,@host_os@,$host_os,;t t
14699 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
14700 s,@PURIFY@,$PURIFY,;t t
14701 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
14702 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
14703 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
14704 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
14705 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
14706 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
14707 s,@htmldir@,$htmldir,;t t
14709 s,@CFLAGS@,$CFLAGS,;t t
14710 s,@LDFLAGS@,$LDFLAGS,;t t
14711 s,@CPPFLAGS@,$CPPFLAGS,;t t
14712 s,@ac_ct_CC@,$ac_ct_CC,;t t
14713 s,@EXEEXT@,$EXEEXT,;t t
14714 s,@OBJEXT@,$OBJEXT,;t t
14716 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
14717 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
14718 s,@STATIC_LD@,$STATIC_LD,;t t
14719 s,@RL_VERSION@,$RL_VERSION,;t t
14720 s,@RL_MAJOR@,$RL_MAJOR,;t t
14721 s,@RL_MINOR@,$RL_MINOR,;t t
14722 s,@READLINE_LIB@,$READLINE_LIB,;t t
14723 s,@READLINE_DEP@,$READLINE_DEP,;t t
14724 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
14725 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
14726 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
14727 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
14728 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
14729 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
14730 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14731 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14732 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14734 s,@RANLIB@,$RANLIB,;t t
14735 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14736 s,@YACC@,$YACC,;t t
14737 s,@SET_MAKE@,$SET_MAKE,;t t
14738 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
14739 s,@ALLOCA@,$ALLOCA,;t t
14740 s,@LIBOBJS@,$LIBOBJS,;t t
14741 s,@SIGLIST_O@,$SIGLIST_O,;t t
14742 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
14743 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
14744 s,@JOBS_O@,$JOBS_O,;t t
14745 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
14746 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
14747 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
14748 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
14749 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
14750 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
14751 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
14752 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
14753 s,@incdir@,$incdir,;t t
14754 s,@BUILD_DIR@,$BUILD_DIR,;t t
14755 s,@ARFLAGS@,$ARFLAGS,;t t
14756 s,@BASHVERS@,$BASHVERS,;t t
14757 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
14758 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
14759 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
14760 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
14765 cat >>$CONFIG_STATUS <<\EOF
14766 # Split the substitutions into bite-sized pieces for seds with
14767 # small command number limits, like on Digital OSF/1 and HP-UX.
14768 ac_max_sed_lines
=48
14769 ac_sed_frag
=1 # Number of current file.
14770 ac_beg
=1 # First line for current file.
14771 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14774 while $ac_more_lines; do
14775 if test $ac_beg -gt 1; then
14776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14778 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14780 if test ! -s $tmp/subs.frag
; then
14781 ac_more_lines
=false
14783 # The purpose of the label and of the branching condition is to
14784 # speed up the sed processing (if there are no `@' at all, there
14785 # is no need to browse any of the substitutions).
14786 # These are the two extra sed commands mentioned above.
14788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
14789 if test -z "$ac_sed_cmds"; then
14790 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
14792 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14794 ac_sed_frag
=`expr $ac_sed_frag + 1`
14796 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14799 if test -z "$ac_sed_cmds"; then
14802 fi # test -n "$CONFIG_FILES"
14805 cat >>$CONFIG_STATUS <<\EOF
14806 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14809 - |
*:- |
*:-:* ) # input from stdin
14811 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14812 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14813 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14814 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14815 * ) ac_file_in
=$ac_file.
in ;;
14818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14819 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14820 X"$ac_file" : 'X\(//\)[^/]' \| \
14821 X"$ac_file" : 'X\(//\)$' \| \
14822 X"$ac_file" : 'X\(/\)' \| \
14823 . : '\(.\)' 2>/dev/null ||
14825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14827 /^X\(\/\/\)$/{ s//\1/; q; }
14828 /^X\(\/\).*/{ s//\1/; q; }
14830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14831 { case "$ac_dir" in
14832 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
14836 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14837 case $as_mkdir_dir in
14838 # Skip DOS drivespec
14839 ?
:) as_incr_dir
=$as_mkdir_dir ;;
14841 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
14842 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
14847 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
14848 # A "../" for each directory in $ac_dir_suffix.
14849 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
14851 ac_dir_suffix
= ac_dots
=
14856 if test -z "$ac_dots"; then
14859 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
14861 [\\/]* | ?
:[\\/]* )
14862 ac_srcdir
=$srcdir$ac_dir_suffix;
14863 ac_top_srcdir
=$srcdir ;;
14864 *) # Relative path.
14865 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
14866 ac_top_srcdir
=$ac_dots$srcdir ;;
14870 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14871 *) ac_INSTALL
=$ac_dots$INSTALL ;;
14874 if test x
"$ac_file" != x-
; then
14875 { echo "$as_me:14875: creating $ac_file" >&5
14876 echo "$as_me: creating $ac_file" >&6;}
14879 # Let's still pretend it is `configure' which instantiates (i.e., don't
14880 # use $as_me), people would be surprised to read:
14881 # /* config.h. Generated automatically by config.status. */
14882 configure_input
="Generated automatically from `echo $ac_file_in |
14883 sed 's,.*/,,'` by configure."
14885 # First look for the input files in the build tree, otherwise in the
14887 ac_file_inputs
=`IFS=:
14888 for f in $ac_file_in; do
14890 -) echo $tmp/stdin ;;
14892 # Absolute (can't be DOS-style, as IFS=:)
14893 test -f "$f" || { { echo "$as_me:14893: error: cannot find input file: $f" >&5
14894 echo "$as_me: error: cannot find input file: $f" >&2;}
14895 { (exit 1); exit 1; }; }
14898 if test -f "$f"; then
14901 elif test -f "$srcdir/$f"; then
14906 { { echo "$as_me:14906: error: cannot find input file: $f" >&5
14907 echo "$as_me: error: cannot find input file: $f" >&2;}
14908 { (exit 1); exit 1; }; }
14911 done` ||
{ (exit 1); exit 1; }
14913 cat >>$CONFIG_STATUS <<EOF
14917 cat >>$CONFIG_STATUS <<\EOF
14919 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14920 s
,@configure_input@
,$configure_input,;t t
14921 s
,@srcdir@
,$ac_srcdir,;t t
14922 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14923 s
,@INSTALL@
,$ac_INSTALL,;t t
14924 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14926 if test x"$ac_file" != x-; then
14927 mv $tmp/out $ac_file
14935 cat >>$CONFIG_STATUS <<\EOF
14938 # CONFIG_HEADER section.
14941 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14942 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14944 # ac_d sets the value in "#define NAME VALUE" lines.
14945 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14946 ac_dB
='[ ].*$,\1#\2'
14949 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14950 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14951 ac_uB
='$,\1#\2define\3'
14955 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14958 - |
*:- |
*:-:* ) # input from stdin
14960 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14961 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14962 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14963 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14964 * ) ac_file_in
=$ac_file.
in ;;
14967 test x
"$ac_file" != x-
&& { echo "$as_me:14967: creating $ac_file" >&5
14968 echo "$as_me: creating $ac_file" >&6;}
14970 # First look for the input files in the build tree, otherwise in the
14972 ac_file_inputs
=`IFS=:
14973 for f in $ac_file_in; do
14975 -) echo $tmp/stdin ;;
14977 # Absolute (can't be DOS-style, as IFS=:)
14978 test -f "$f" || { { echo "$as_me:14978: error: cannot find input file: $f" >&5
14979 echo "$as_me: error: cannot find input file: $f" >&2;}
14980 { (exit 1); exit 1; }; }
14983 if test -f "$f"; then
14986 elif test -f "$srcdir/$f"; then
14991 { { echo "$as_me:14991: error: cannot find input file: $f" >&5
14992 echo "$as_me: error: cannot find input file: $f" >&2;}
14993 { (exit 1); exit 1; }; }
14996 done` ||
{ (exit 1); exit 1; }
14997 # Remove the trailing spaces.
14998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15002 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15003 # `conftest.undefs', that substitutes the proper values into
15004 # config.h.in to produce config.h. The first handles `#define'
15005 # templates, and the second `#undef' templates.
15006 # And first: Protect against being on the right side of a sed subst in
15007 # config.status. Protect against being in an unquoted here document
15008 # in config.status.
15009 rm -f conftest.defines conftest.undefs
15010 # Using a here document instead of a string reduces the quoting nightmare.
15011 # Putting comments in sed scripts is not portable.
15013 # `end' is used to avoid that the second main sed command (meant for
15014 # 0-ary CPP macros) applies to n-ary macro definitions.
15015 # See the Autoconf documentation for `clear'.
15016 cat >confdef2sed.
sed <<\EOF
15021 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
15023 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15026 # If some macros were called several times there might be several times
15027 # the same #defines, which is useless. Nevertheless, we may not want to
15028 # sort them, since we want the *last* AC-DEFINE to be honored.
15029 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15030 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15031 rm -f confdef2sed.sed
15033 # This sed command replaces #undef with comments. This is necessary, for
15034 # example, in the case of _POSIX_SOURCE, which is predefined and required
15035 # on some systems where configure will not decide to define it.
15036 cat >>conftest.undefs <<\EOF
15037 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15040 # Break up conftest.defines because some shells have a limit on the size
15041 # of here documents, and old seds have small limits too (100 cmds).
15042 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15043 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15044 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15045 echo ' :' >>$CONFIG_STATUS
15046 rm -f conftest.tail
15047 while grep . conftest.defines >/dev/null
15049 # Write a limited-size here document to $tmp/defines.sed.
15050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15051 # Speed up: don't consider the non `#define' lines.
15052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15053 # Work around the forget-to-reset-the-flag bug.
15054 echo 't clr' >>$CONFIG_STATUS
15055 echo ': clr' >>$CONFIG_STATUS
15056 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
15058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15060 mv $tmp/out $tmp/in
15062 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
15063 rm -f conftest.defines
15064 mv conftest.
tail conftest.defines
15066 rm -f conftest.defines
15067 echo ' fi # egrep' >>$CONFIG_STATUS
15068 echo >>$CONFIG_STATUS
15070 # Break up conftest.undefs because some shells have a limit on the size
15071 # of here documents, and old seds have small limits too (100 cmds).
15072 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15073 rm -f conftest.
tail
15074 while grep . conftest.undefs
>/dev
/null
15076 # Write a limited-size here document to $tmp/undefs.sed.
15077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15078 # Speed up: don't consider the non
`#undef'
15079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15080 # Work around the forget-to-reset-the-flag bug.
15081 echo 't clr' >>$CONFIG_STATUS
15082 echo ': clr' >>$CONFIG_STATUS
15083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15087 mv $tmp/out $tmp/in
15089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15090 rm -f conftest.undefs
15091 mv conftest.tail conftest.undefs
15093 rm -f conftest.undefs
15095 cat >>$CONFIG_STATUS <<\EOF
15096 # Let's still pretend it is `configure
' which instantiates (i.e., don't
15097 # use $as_me), people would be surprised to read:
15098 # /* config.h. Generated automatically by config.status. */
15099 if test x
"$ac_file" = x-
; then
15100 echo "/* Generated automatically by configure. */" >$tmp/config.h
15102 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
15104 cat $tmp/in >>$tmp/config.h
15106 if test x
"$ac_file" != x-
; then
15107 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
15108 { echo "$as_me:15108: $ac_file is unchanged" >&5
15109 echo "$as_me: $ac_file is unchanged" >&6;}
15111 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112 X"$ac_file" : 'X\(//\)[^/]' \| \
15113 X"$ac_file" : 'X\(//\)$' \| \
15114 X"$ac_file" : 'X\(/\)' \| \
15115 . : '\(.\)' 2>/dev/null ||
15117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15119 /^X\(\/\/\)$/{ s//\1/; q; }
15120 /^X\(\/\).*/{ s//\1/; q; }
15122 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
15123 { case "$ac_dir" in
15124 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
15128 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15129 case $as_mkdir_dir in
15130 # Skip DOS drivespec
15131 ?
:) as_incr_dir
=$as_mkdir_dir ;;
15133 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
15134 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
15141 mv $tmp/config.h
$ac_file
15145 rm -f $tmp/config.h
15149 cat >>$CONFIG_STATUS <<\EOF
15152 # CONFIG_COMMANDS section.
15154 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
15155 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
15156 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15160 # Makefile uses this timestamp file to record whether config.h is up to date.
15161 echo timestamp
> stamp-h
15167 cat >>$CONFIG_STATUS <<\EOF
15169 { (exit 0); exit 0; }
15171 chmod +x
$CONFIG_STATUS
15172 ac_clean_files
=$ac_clean_files_save
15174 # configure is writing to config.log, and then calls config.status.
15175 # config.status does its own redirection, appending to config.log.
15176 # Unfortunately, on DOS this fails, as config.log is still kept open
15177 # by configure, so config.status won't be able to write to it; its
15178 # output is simply discarded. So we exec the FD to /dev/null,
15179 # effectively closing config.log, so it can be properly (re)opened and
15180 # appended to by config.status. When coming back to configure, we
15181 # need to make the FD available again.
15182 if test "$no_create" != yes; then
15185 $SHELL $CONFIG_STATUS || ac_cs_success
=false
15187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15188 # would make configure fail if this is the last instruction.
15189 $ac_cs_success ||
{ (exit 1); exit 1; }