2 # From configure.in for Readline 4.3, version 2.45, from autoconf version 2.52.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52 for readline 4.3.
6 # Report bugs to <bug-readline@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
="readline.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.
187 PACKAGE_NAME
='readline'
188 PACKAGE_TARNAME
='readline'
189 PACKAGE_VERSION
='4.3'
190 PACKAGE_STRING
='readline 4.3'
191 PACKAGE_BUGREPORT
='bug-readline@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 readline 4.3 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 readline 4.3:";;
673 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
674 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
675 --enable-shared build shared libraries
[default
=YES
]
676 --enable-static build static libraries
[default
=YES
]
679 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
680 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
681 --with-curses use the curses library instead of the termcap
684 Some influential environment variables
:
685 CC C compiler
command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
688 nonstandard directory
<lib dir
>
689 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
690 headers
in a nonstandard directory
<include dir
>
693 Use these variables to override the choices made by
`configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
696 Report bugs to <bug-readline@gnu.org>.
700 if test "$ac_init_help" = "recursive"; then
701 # If there are subdirs, report their specific --help.
703 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
705 # A "../" for each directory in /$ac_subdir.
706 ac_dots=`echo $ac_subdir |
707 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
710 .) # No --srcdir option. We are building in place.
711 ac_sub_srcdir=$srcdir ;;
712 [\\/]* | ?:[\\/]* ) # Absolute path.
713 ac_sub_srcdir=$srcdir/$ac_subdir ;;
715 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
718 # Check for guested configure; otherwise get Cygnus style configure.
719 if test -f $ac_sub_srcdir/configure.gnu; then
721 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
722 elif test -f $ac_sub_srcdir/configure; then
724 $SHELL $ac_sub_srcdir/configure --help=recursive
725 elif test -f $ac_sub_srcdir/configure.ac ||
726 test -f $ac_sub_srcdir/configure.in; then
730 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
736 test -n "$ac_init_help" && exit 0
737 if $ac_init_version; then
739 readline configure 4.3
740 generated by GNU Autoconf 2.52
742 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
743 Free Software Foundation, Inc.
744 This configure script is free software; the Free Software Foundation
745 gives unlimited permission to copy, distribute and modify it.
751 This file contains any messages produced by compilers while
752 running configure, to aid debugging if configure makes a mistake.
754 It was created by readline $as_me 4.3, which was
755 generated by GNU Autoconf 2.52. Invocation command line was
766 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
767 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
768 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
769 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
770 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
772 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
773 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
775 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
776 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
777 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
778 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
779 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
780 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
781 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
795 # Keep a trace of the command line.
796 # Strip out --no-create and --no-recursion so they do not pile up.
797 # Also quote any args containing shell meta-characters.
803 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
804 | --no-cr | --no-c) ;;
805 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
806 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
807 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
808 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
809 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
811 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
814 # Get rid of the leading space.
817 # When interrupted or exit'd, cleanup temporary files, and complete
818 # config.log. We remove comments because anyway the quotes in there
819 # would cause problems or look ugly.
821 # Save into config.log some information that might help in debugging.
823 echo "## ----------------- ##" >&5
824 echo "## Cache variables. ##" >&5
825 echo "## ----------------- ##" >&5
827 # The following way of writing the cache mishandles newlines in values,
830 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
833 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
842 sed "/^$/d" confdefs.h >conftest.log
843 if test -s conftest.log; then
845 echo "## ------------ ##" >&5
846 echo "## confdefs.h. ##" >&5
847 echo "## ------------ ##" >&5
852 test "$ac_signal" != 0 &&
853 echo "$as_me: caught signal $ac_signal" >&5
854 echo "$as_me: exit $exit_status" >&5
855 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
858 for ac_signal in 1 2 13 15; do
859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
864 rm -rf conftest* confdefs.h
865 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
868 # Let the site file select an alternate cache file if it wants to.
869 # Prefer explicitly selected file to automatically selected ones.
870 if test -z "$CONFIG_SITE"; then
871 if test "x$prefix" != xNONE; then
872 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
874 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
877 for ac_site_file in $CONFIG_SITE; do
878 if test -r "$ac_site_file"; then
879 { echo "$as_me:879: loading site script $ac_site_file" >&5
880 echo "$as_me: loading site script $ac_site_file" >&6;}
881 cat "$ac_site_file" >&5
886 if test -r "$cache_file"; then
887 # Some versions of bash will fail to source /dev/null (special
888 # files actually), so we avoid doing that.
889 if test -f "$cache_file"; then
890 { echo "$as_me:890: loading cache $cache_file" >&5
891 echo "$as_me: loading cache $cache_file" >&6;}
893 [\\/]* | ?:[\\/]* ) . $cache_file;;
898 { echo "$as_me:898: creating cache $cache_file" >&5
899 echo "$as_me: creating cache $cache_file" >&6;}
903 # Check that the precious variables saved in the cache have kept the same
905 ac_cache_corrupted=false
906 for ac_var in `(set) 2>&1 |
907 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
908 eval ac_old_set=\$ac_cv_env_${ac_var}_set
909 eval ac_new_set=\$ac_env_${ac_var}_set
910 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
911 eval ac_new_val="\$ac_env_${ac_var}_value"
912 case $ac_old_set,$ac_new_set in
914 { echo "$as_me:914: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
915 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
916 ac_cache_corrupted=: ;;
918 { echo "$as_me:918: error: \`$ac_var' was not
set in the previous run
" >&5
919 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
920 ac_cache_corrupted=: ;;
923 if test "x$ac_old_val" != "x$ac_new_val"; then
924 { echo "$as_me:924: error: \`$ac_var' has changed since the previous run:" >&5
925 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
926 { echo "$as_me:926: former value
: $ac_old_val" >&5
927 echo "$as_me: former value
: $ac_old_val" >&2;}
928 { echo "$as_me:928: current value
: $ac_new_val" >&5
929 echo "$as_me: current value
: $ac_new_val" >&2;}
933 # Pass precious variables to config.status. It doesn't matter if
934 # we pass some twice (in addition to the command line arguments).
935 if test "$ac_new_set" = set; then
937 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
938 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
939 ac_configure_args="$ac_configure_args '$ac_arg'"
941 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
946 if $ac_cache_corrupted; then
947 { echo "$as_me:947: error
: changes
in the environment can compromise the build
" >&5
948 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
949 { { echo "$as_me:949: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
950 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
951 { (exit 1); exit 1; }; }
955 ac_cpp='$CPP $CPPFLAGS'
956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
961 *c*,-n*) ECHO_N= ECHO_C='
963 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
964 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
966 echo "#! $SHELL" >conftest.sh
967 echo "exit 0" >>conftest.sh
969 if { (echo "$as_me:969: PATH=\".;.\"; conftest.sh") >&5
970 (PATH=".;."; conftest.sh) 2>&5
972 echo "$as_me:972: \$? = $ac_status" >&5
973 (exit $ac_status); }; then
974 ac_path_separator=';'
978 PATH_SEPARATOR="$ac_path_separator"
982 for ac_dir in ./support $srcdir/./support; do
983 if test -f $ac_dir/install-sh; then
985 ac_install_sh="$ac_aux_dir/install-sh -c"
987 elif test -f $ac_dir/install.sh; then
989 ac_install_sh="$ac_aux_dir/install.sh -c"
991 elif test -f $ac_dir/shtool; then
993 ac_install_sh="$ac_aux_dir/shtool install -c"
997 if test -z "$ac_aux_dir"; then
998 { { echo "$as_me:998: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
999 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1000 { (exit 1); exit 1; }; }
1002 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1003 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1004 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1006 ac_config_headers="$ac_config_headers config.h"
1010 # Make sure we can run config.sub.
1011 $ac_config_sub sun4 >/dev/null 2>&1 ||
1012 { { echo "$as_me:1012: error: cannot run $ac_config_sub" >&5
1013 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1014 { (exit 1); exit 1; }; }
1016 echo "$as_me:1016: checking build system type" >&5
1017 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1018 if test "${ac_cv_build+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1021 ac_cv_build_alias=$build_alias
1022 test -z "$ac_cv_build_alias" &&
1023 ac_cv_build_alias=`$ac_config_guess`
1024 test -z "$ac_cv_build_alias" &&
1025 { { echo "$as_me:1025: error: cannot guess build type; you must specify one" >&5
1026 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1027 { (exit 1); exit 1; }; }
1028 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1029 { { echo "$as_me:1029: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1030 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1031 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: result: $ac_cv_build" >&5
1035 echo "${ECHO_T}$ac_cv_build" >&6
1037 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1041 echo "$as_me:1041: checking host system type" >&5
1042 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1043 if test "${ac_cv_host+set}" = set; then
1044 echo $ECHO_N "(cached) $ECHO_C" >&6
1046 ac_cv_host_alias=$host_alias
1047 test -z "$ac_cv_host_alias" &&
1048 ac_cv_host_alias=$ac_cv_build_alias
1049 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1050 { { echo "$as_me:1050: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1051 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1052 { (exit 1); exit 1; }; }
1055 echo "$as_me:1055: result: $ac_cv_host" >&5
1056 echo "${ECHO_T}$ac_cv_host" >&6
1058 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 # Check whether --with-curses or --without-curses was given.
1065 if test "${with_curses+set}" = set; then
1066 withval="$with_curses"
1070 if test "$opt_curses" = "yes"; then
1077 # Check whether --enable-shared or --disable-shared was given.
1078 if test "${enable_shared+set}" = set; then
1079 enableval="$enable_shared"
1080 opt_shared_libs=$enableval
1082 # Check whether --enable-static or --disable-static was given.
1083 if test "${enable_static+set}" = set; then
1084 enableval="$enable_static"
1085 opt_static_libs=$enableval
1089 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1092 # We want these before the checks, so the checks can modify their values.
1093 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1095 echo "$as_me:1095: checking whether ${MAKE-make} sets \${MAKE}" >&5
1096 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1097 set dummy ${MAKE-make}; ac_make=`echo "$2" |
sed 'y,./+-,__p_,'`
1098 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1099 echo $ECHO_N "(cached) $ECHO_C" >&6
1101 cat >conftest.make <<\EOF
1103 @echo 'ac_maketemp="${MAKE}"'
1105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1106 eval `${MAKE-make} -f conftest.
make 2>/dev
/null |
grep temp
=`
1107 if test -n "$ac_maketemp"; then
1108 eval ac_cv_prog_make_${ac_make}_set=yes
1110 eval ac_cv_prog_make_${ac_make}_set=no
1114 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set
`\" = yes"; then
1115 echo "$as_me:1115: result: yes" >&5
1116 echo "${ECHO_T}yes" >&6
1119 echo "$as_me:1119: result: no" >&5
1120 echo "${ECHO_T}no" >&6
1121 SET_MAKE="MAKE=${MAKE-make}"
1125 ac_cpp='$CPP $CPPFLAGS'
1126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1129 if test -n "$ac_tool_prefix"; then
1130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1132 echo "$as_me:1132: checking for $ac_word" >&5
1133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1134 if test "${ac_cv_prog_CC+set}" = set; then
1135 echo $ECHO_N "(cached) $ECHO_C" >&6
1137 if test -n "$CC"; then
1138 ac_cv_prog_CC="$CC" # Let the user override the test.
1140 ac_save_IFS=$IFS; IFS=$ac_path_separator
1142 for ac_dir in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir=.
1145 $as_executable_p "$ac_dir/$ac_word" || continue
1146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1147 echo "$as_me:1147: found $ac_dir/$ac_word" >&5
1154 if test -n "$CC"; then
1155 echo "$as_me:1155: result: $CC" >&5
1156 echo "${ECHO_T}$CC" >&6
1158 echo "$as_me:1158: result: no" >&5
1159 echo "${ECHO_T}no" >&6
1163 if test -z "$ac_cv_prog_CC"; then
1165 # Extract the first word of "gcc", so it can be a program name with args.
1166 set dummy gcc; ac_word=$2
1167 echo "$as_me:1167: checking for $ac_word" >&5
1168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1170 echo $ECHO_N "(cached) $ECHO_C" >&6
1172 if test -n "$ac_ct_CC"; then
1173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1175 ac_save_IFS=$IFS; IFS=$ac_path_separator
1177 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 $as_executable_p "$ac_dir/$ac_word" || continue
1181 ac_cv_prog_ac_ct_CC="gcc"
1182 echo "$as_me:1182: found $ac_dir/$ac_word" >&5
1188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1189 if test -n "$ac_ct_CC"; then
1190 echo "$as_me:1190: result: $ac_ct_CC" >&5
1191 echo "${ECHO_T}$ac_ct_CC" >&6
1193 echo "$as_me:1193: result: no" >&5
1194 echo "${ECHO_T}no" >&6
1202 if test -z "$CC"; then
1203 if test -n "$ac_tool_prefix"; then
1204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1205 set dummy ${ac_tool_prefix}cc; ac_word=$2
1206 echo "$as_me:1206: checking for $ac_word" >&5
1207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1208 if test "${ac_cv_prog_CC+set}" = set; then
1209 echo $ECHO_N "(cached) $ECHO_C" >&6
1211 if test -n "$CC"; then
1212 ac_cv_prog_CC="$CC" # Let the user override the test.
1214 ac_save_IFS=$IFS; IFS=$ac_path_separator
1216 for ac_dir in $ac_dummy; do
1218 test -z "$ac_dir" && ac_dir=.
1219 $as_executable_p "$ac_dir/$ac_word" || continue
1220 ac_cv_prog_CC="${ac_tool_prefix}cc"
1221 echo "$as_me:1221: found $ac_dir/$ac_word" >&5
1228 if test -n "$CC"; then
1229 echo "$as_me:1229: result: $CC" >&5
1230 echo "${ECHO_T}$CC" >&6
1232 echo "$as_me:1232: result: no" >&5
1233 echo "${ECHO_T}no" >&6
1237 if test -z "$ac_cv_prog_CC"; then
1239 # Extract the first word of "cc", so it can be a program name with args.
1240 set dummy cc; ac_word=$2
1241 echo "$as_me:1241: checking for $ac_word" >&5
1242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1246 if test -n "$ac_ct_CC"; then
1247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1249 ac_save_IFS=$IFS; IFS=$ac_path_separator
1251 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 $as_executable_p "$ac_dir/$ac_word" || continue
1255 ac_cv_prog_ac_ct_CC="cc"
1256 echo "$as_me:1256: found $ac_dir/$ac_word" >&5
1262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1263 if test -n "$ac_ct_CC"; then
1264 echo "$as_me:1264: result: $ac_ct_CC" >&5
1265 echo "${ECHO_T}$ac_ct_CC" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1277 if test -z "$CC"; then
1278 # Extract the first word of "cc", so it can be a program name with args.
1279 set dummy cc; ac_word=$2
1280 echo "$as_me:1280: checking for $ac_word" >&5
1281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1282 if test "${ac_cv_prog_CC+set}" = set; then
1283 echo $ECHO_N "(cached) $ECHO_C" >&6
1285 if test -n "$CC"; then
1286 ac_cv_prog_CC="$CC" # Let the user override the test.
1289 ac_save_IFS=$IFS; IFS=$ac_path_separator
1291 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 $as_executable_p "$ac_dir/$ac_word" || continue
1295 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1296 ac_prog_rejected=yes
1300 echo "$as_me:1300: found $ac_dir/$ac_word" >&5
1304 if test $ac_prog_rejected = yes; then
1305 # We found a bogon in the path, so make sure we never use it.
1306 set dummy $ac_cv_prog_CC
1308 if test $# != 0; then
1309 # We chose a different compiler from the bogus one.
1310 # However, it has the same basename, so the bogon will be chosen
1311 # first if we set CC to just the basename; use the full file name.
1313 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1321 if test -n "$CC"; then
1322 echo "$as_me:1322: result: $CC" >&5
1323 echo "${ECHO_T}$CC" >&6
1325 echo "$as_me:1325: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1330 if test -z "$CC"; then
1331 if test -n "$ac_tool_prefix"; then
1334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1336 echo "$as_me:1336: checking for $ac_word" >&5
1337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1338 if test "${ac_cv_prog_CC+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1341 if test -n "$CC"; then
1342 ac_cv_prog_CC="$CC" # Let the user override the test.
1344 ac_save_IFS=$IFS; IFS=$ac_path_separator
1346 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 $as_executable_p "$ac_dir/$ac_word" || continue
1350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1351 echo "$as_me:1351: found $ac_dir/$ac_word" >&5
1358 if test -n "$CC"; then
1359 echo "$as_me:1359: result: $CC" >&5
1360 echo "${ECHO_T}$CC" >&6
1362 echo "$as_me:1362: result: no" >&5
1363 echo "${ECHO_T}no" >&6
1366 test -n "$CC" && break
1369 if test -z "$CC"; then
1373 # Extract the first word of "$ac_prog", so it can be a program name with args.
1374 set dummy $ac_prog; ac_word=$2
1375 echo "$as_me:1375: checking for $ac_word" >&5
1376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 if test -n "$ac_ct_CC"; then
1381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1383 ac_save_IFS=$IFS; IFS=$ac_path_separator
1385 for ac_dir in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir=.
1388 $as_executable_p "$ac_dir/$ac_word" || continue
1389 ac_cv_prog_ac_ct_CC="$ac_prog"
1390 echo "$as_me:1390: found $ac_dir/$ac_word" >&5
1396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1397 if test -n "$ac_ct_CC"; then
1398 echo "$as_me:1398: result: $ac_ct_CC" >&5
1399 echo "${ECHO_T}$ac_ct_CC" >&6
1401 echo "$as_me:1401: result: no" >&5
1402 echo "${ECHO_T}no" >&6
1405 test -n "$ac_ct_CC" && break
1413 test -z "$CC" && { { echo "$as_me:1413: error: no acceptable cc found in \$PATH" >&5
1414 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1415 { (exit 1); exit 1; }; }
1417 # Provide some information about the compiler.
1418 echo "$as_me:1418:" \
1419 "checking for C compiler version" >&5
1420 ac_compiler=`set X
$ac_compile; echo $2`
1421 { (eval echo "$as_me:1421: \"$ac_compiler --version </dev/null >&5\"") >&5
1422 (eval $ac_compiler --version </dev/null >&5) 2>&5
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1426 { (eval echo "$as_me:1426: \"$ac_compiler -v </dev/null >&5\"") >&5
1427 (eval $ac_compiler -v </dev/null >&5) 2>&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }
1431 { (eval echo "$as_me:1431: \"$ac_compiler -V </dev/null >&5\"") >&5
1432 (eval $ac_compiler -V </dev/null >&5) 2>&5
1434 echo "$as_me:1434: \$? = $ac_status" >&5
1435 (exit $ac_status); }
1437 cat >conftest.$ac_ext <<_ACEOF
1438 #line 1438 "configure"
1439 #include "confdefs.h"
1449 ac_clean_files_save=$ac_clean_files
1450 ac_clean_files="$ac_clean_files a.out a.exe"
1451 # Try to create an executable without -o first, disregard a.out.
1452 # It will help us diagnose broken compilers, and finding out an intuition
1454 echo "$as_me:1454: checking for C compiler default output" >&5
1455 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1456 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1457 if { (eval echo "$as_me:1457: \"$ac_link_default\"") >&5
1458 (eval $ac_link_default) 2>&5
1460 echo "$as_me:1460: \$? = $ac_status" >&5
1461 (exit $ac_status); }; then
1462 # Find the output, starting from the most likely. This scheme is
1463 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1465 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1466 ls a.out conftest 2>/dev/null;
1467 ls a.* conftest.* 2>/dev/null`; do
1469 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1470 a.out ) # We found the default executable, but exeext='' is most
1473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.
]*\
(\..
*\
)'`
1474 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1481 echo "$as_me: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1483 { { echo "$as_me:1483: error: C compiler cannot create executables" >&5
1484 echo "$as_me: error: C compiler cannot create executables" >&2;}
1485 { (exit 77); exit 77; }; }
1488 ac_exeext=$ac_cv_exeext
1489 echo "$as_me:1489: result: $ac_file" >&5
1490 echo "${ECHO_T}$ac_file" >&6
1492 # Check the compiler produces executables we can run. If not, either
1493 # the compiler is broken, or we cross compile.
1494 echo "$as_me:1494: checking whether the C compiler works" >&5
1495 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1496 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1497 # If not cross compiling, check that we can run a simple program.
1498 if test "$cross_compiling" != yes; then
1499 if { ac_try='.
/$ac_file'
1500 { (eval echo "$as_me:1500: \"$ac_try\"") >&5
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit $ac_status); }; }; then
1507 if test "$cross_compiling" = maybe; then
1510 { { echo "$as_me:1510: error: cannot run C compiled programs.
1511 If you meant to cross compile, use \`--host'.
" >&5
1512 echo "$as_me: error
: cannot run C compiled programs.
1513 If you meant to cross compile
, use \
`--host'." >&2;}
1514 { (exit 1); exit 1; }; }
1518 echo "$as_me:1518: result: yes" >&5
1519 echo "${ECHO_T}yes" >&6
1521 rm -f a.out a.exe conftest$ac_cv_exeext
1522 ac_clean_files=$ac_clean_files_save
1523 # Check the compiler produces executables we can run. If not, either
1524 # the compiler is broken, or we cross compile.
1525 echo "$as_me:1525: checking whether we are cross compiling" >&5
1526 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1527 echo "$as_me:1527: result: $cross_compiling" >&5
1528 echo "${ECHO_T}$cross_compiling" >&6
1530 echo "$as_me:1530: checking for executable suffix" >&5
1531 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1532 if { (eval echo "$as_me:1532: \"$ac_link\"") >&5
1533 (eval $ac_link) 2>&5
1535 echo "$as_me:1535: \$? = $ac_status" >&5
1536 (exit $ac_status); }; then
1537 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1538 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1539 # work properly (i.e., refer to `conftest.exe'), while it won't with
1541 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1543 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1544 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1551 { { echo "$as_me:1551: error: cannot compute EXEEXT: cannot compile and link" >&5
1552 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1553 { (exit 1); exit 1; }; }
1556 rm -f conftest
$ac_cv_exeext
1557 echo "$as_me:1557: result: $ac_cv_exeext" >&5
1558 echo "${ECHO_T}$ac_cv_exeext" >&6
1560 rm -f conftest.
$ac_ext
1561 EXEEXT
=$ac_cv_exeext
1563 echo "$as_me:1563: checking for object suffix" >&5
1564 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1565 if test "${ac_cv_objext+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 cat >conftest.
$ac_ext <<_ACEOF
1569 #line 1569 "configure"
1570 #include "confdefs.h"
1580 rm -f conftest.o conftest.obj
1581 if { (eval echo "$as_me:1581: \"$ac_compile\"") >&5
1582 (eval $ac_compile) 2>&5
1584 echo "$as_me:1584: \$? = $ac_status" >&5
1585 (exit $ac_status); }; then
1586 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1588 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1589 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1594 echo "$as_me: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1596 { { echo "$as_me:1596: error: cannot compute OBJEXT: cannot compile" >&5
1597 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1598 { (exit 1); exit 1; }; }
1601 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1603 echo "$as_me:1603: result: $ac_cv_objext" >&5
1604 echo "${ECHO_T}$ac_cv_objext" >&6
1605 OBJEXT
=$ac_cv_objext
1607 echo "$as_me:1607: checking whether we are using the GNU C compiler" >&5
1608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 cat >conftest.
$ac_ext <<_ACEOF
1613 #line 1613 "configure"
1614 #include "confdefs.h"
1627 rm -f conftest.
$ac_objext
1628 if { (eval echo "$as_me:1628: \"$ac_compile\"") >&5
1629 (eval $ac_compile) 2>&5
1631 echo "$as_me:1631: \$? = $ac_status" >&5
1632 (exit $ac_status); } &&
1633 { ac_try
='test -s conftest.$ac_objext'
1634 { (eval echo "$as_me:1634: \"$ac_try\"") >&5
1637 echo "$as_me:1637: \$? = $ac_status" >&5
1638 (exit $ac_status); }; }; then
1641 echo "$as_me: failed program was:" >&5
1642 cat conftest.
$ac_ext >&5
1645 rm -f conftest.
$ac_objext conftest.
$ac_ext
1646 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1649 echo "$as_me:1649: result: $ac_cv_c_compiler_gnu" >&5
1650 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1651 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1652 ac_test_CFLAGS
=${CFLAGS+set}
1653 ac_save_CFLAGS
=$CFLAGS
1655 echo "$as_me:1655: checking whether $CC accepts -g" >&5
1656 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1657 if test "${ac_cv_prog_cc_g+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 cat >conftest.
$ac_ext <<_ACEOF
1661 #line 1661 "configure"
1662 #include "confdefs.h"
1672 rm -f conftest.
$ac_objext
1673 if { (eval echo "$as_me:1673: \"$ac_compile\"") >&5
1674 (eval $ac_compile) 2>&5
1676 echo "$as_me:1676: \$? = $ac_status" >&5
1677 (exit $ac_status); } &&
1678 { ac_try
='test -s conftest.$ac_objext'
1679 { (eval echo "$as_me:1679: \"$ac_try\"") >&5
1682 echo "$as_me:1682: \$? = $ac_status" >&5
1683 (exit $ac_status); }; }; then
1686 echo "$as_me: failed program was:" >&5
1687 cat conftest.
$ac_ext >&5
1690 rm -f conftest.
$ac_objext conftest.
$ac_ext
1692 echo "$as_me:1692: result: $ac_cv_prog_cc_g" >&5
1693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1694 if test "$ac_test_CFLAGS" = set; then
1695 CFLAGS
=$ac_save_CFLAGS
1696 elif test $ac_cv_prog_cc_g = yes; then
1697 if test "$GCC" = yes; then
1703 if test "$GCC" = yes; then
1709 # Some people use a C++ compiler to compile C. Since we use `exit',
1710 # in C++ we need to declare it. In case someone uses the same compiler
1711 # for both compiling C and C++ we need to have the C++ compiler decide
1712 # the declaration of exit, since it's the most demanding environment.
1713 cat >conftest.
$ac_ext <<_ACEOF
1718 rm -f conftest.
$ac_objext
1719 if { (eval echo "$as_me:1719: \"$ac_compile\"") >&5
1720 (eval $ac_compile) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); } &&
1724 { ac_try
='test -s conftest.$ac_objext'
1725 { (eval echo "$as_me:1725: \"$ac_try\"") >&5
1728 echo "$as_me:1728: \$? = $ac_status" >&5
1729 (exit $ac_status); }; }; then
1730 for ac_declaration
in \
1732 '#include <stdlib.h>' \
1733 'extern "C" void std::exit (int) throw (); using std::exit;' \
1734 'extern "C" void std::exit (int); using std::exit;' \
1735 'extern "C" void exit (int) throw ();' \
1736 'extern "C" void exit (int);' \
1739 cat >conftest.
$ac_ext <<_ACEOF
1740 #line 1740 "configure"
1741 #include "confdefs.h"
1752 rm -f conftest.
$ac_objext
1753 if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5
1754 (eval $ac_compile) 2>&5
1756 echo "$as_me:1756: \$? = $ac_status" >&5
1757 (exit $ac_status); } &&
1758 { ac_try
='test -s conftest.$ac_objext'
1759 { (eval echo "$as_me:1759: \"$ac_try\"") >&5
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit $ac_status); }; }; then
1766 echo "$as_me: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1770 rm -f conftest.
$ac_objext conftest.
$ac_ext
1771 cat >conftest.
$ac_ext <<_ACEOF
1772 #line 1772 "configure"
1773 #include "confdefs.h"
1783 rm -f conftest.
$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try
='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1800 rm -f conftest.
$ac_objext conftest.
$ac_ext
1803 if test -n "$ac_declaration"; then
1804 echo '#ifdef __cplusplus' >>confdefs.h
1805 echo $ac_declaration >>confdefs.h
1806 echo '#endif' >>confdefs.h
1810 echo "$as_me: failed program was:" >&5
1811 cat conftest.
$ac_ext >&5
1813 rm -f conftest.
$ac_objext conftest.
$ac_ext
1815 ac_cpp
='$CPP $CPPFLAGS'
1816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1821 ac_cpp
='$CPP $CPPFLAGS'
1822 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1825 echo "$as_me:1825: checking how to run the C preprocessor" >&5
1826 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1827 # On Suns, sometimes $CPP names a directory.
1828 if test -n "$CPP" && test -d "$CPP"; then
1831 if test -z "$CPP"; then
1832 if test "${ac_cv_prog_CPP+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 # Double quotes because CPP needs to be expanded
1836 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1839 for ac_c_preproc_warn_flag
in '' yes
1841 # Use a header file that comes with gcc, so configuring glibc
1842 # with a fresh cross-compiler works.
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp. "Syntax error" is here to catch this case.
1845 cat >conftest.
$ac_ext <<_ACEOF
1846 #line 1846 "configure"
1847 #include "confdefs.h"
1851 if { (eval echo "$as_me:1851: \"$ac_cpp conftest.$ac_ext\"") >&5
1852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1854 egrep -v '^ *\+' conftest.er1
>conftest.err
1856 cat conftest.err
>&5
1857 echo "$as_me:1857: \$? = $ac_status" >&5
1858 (exit $ac_status); } >/dev
/null
; then
1859 if test -s conftest.err
; then
1860 ac_cpp_err
=$ac_c_preproc_warn_flag
1867 if test -z "$ac_cpp_err"; then
1870 echo "$as_me: failed program was:" >&5
1871 cat conftest.
$ac_ext >&5
1872 # Broken: fails on valid input.
1875 rm -f conftest.err conftest.
$ac_ext
1877 # OK, works on sane cases. Now check whether non-existent headers
1878 # can be detected and how.
1879 cat >conftest.
$ac_ext <<_ACEOF
1880 #line 1880 "configure"
1881 #include "confdefs.h"
1882 #include <ac_nonexistent.h>
1884 if { (eval echo "$as_me:1884: \"$ac_cpp conftest.$ac_ext\"") >&5
1885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1887 egrep -v '^ *\+' conftest.er1
>conftest.err
1889 cat conftest.err
>&5
1890 echo "$as_me:1890: \$? = $ac_status" >&5
1891 (exit $ac_status); } >/dev
/null
; then
1892 if test -s conftest.err
; then
1893 ac_cpp_err
=$ac_c_preproc_warn_flag
1900 if test -z "$ac_cpp_err"; then
1901 # Broken: success on invalid input.
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.
$ac_ext >&5
1906 # Passes both tests.
1910 rm -f conftest.err conftest.
$ac_ext
1913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1914 rm -f conftest.err conftest.
$ac_ext
1915 if $ac_preproc_ok; then
1927 echo "$as_me:1927: result: $CPP" >&5
1928 echo "${ECHO_T}$CPP" >&6
1930 for ac_c_preproc_warn_flag
in '' yes
1932 # Use a header file that comes with gcc, so configuring glibc
1933 # with a fresh cross-compiler works.
1934 # On the NeXT, cc -E runs the code through the compiler's parser,
1935 # not just through cpp. "Syntax error" is here to catch this case.
1936 cat >conftest.
$ac_ext <<_ACEOF
1937 #line 1937 "configure"
1938 #include "confdefs.h"
1942 if { (eval echo "$as_me:1942: \"$ac_cpp conftest.$ac_ext\"") >&5
1943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1945 egrep -v '^ *\+' conftest.er1
>conftest.err
1947 cat conftest.err
>&5
1948 echo "$as_me:1948: \$? = $ac_status" >&5
1949 (exit $ac_status); } >/dev
/null
; then
1950 if test -s conftest.err
; then
1951 ac_cpp_err
=$ac_c_preproc_warn_flag
1958 if test -z "$ac_cpp_err"; then
1961 echo "$as_me: failed program was:" >&5
1962 cat conftest.
$ac_ext >&5
1963 # Broken: fails on valid input.
1966 rm -f conftest.err conftest.
$ac_ext
1968 # OK, works on sane cases. Now check whether non-existent headers
1969 # can be detected and how.
1970 cat >conftest.
$ac_ext <<_ACEOF
1971 #line 1971 "configure"
1972 #include "confdefs.h"
1973 #include <ac_nonexistent.h>
1975 if { (eval echo "$as_me:1975: \"$ac_cpp conftest.$ac_ext\"") >&5
1976 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1978 egrep -v '^ *\+' conftest.er1
>conftest.err
1980 cat conftest.err
>&5
1981 echo "$as_me:1981: \$? = $ac_status" >&5
1982 (exit $ac_status); } >/dev
/null
; then
1983 if test -s conftest.err
; then
1984 ac_cpp_err
=$ac_c_preproc_warn_flag
1991 if test -z "$ac_cpp_err"; then
1992 # Broken: success on invalid input.
1995 echo "$as_me: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1997 # Passes both tests.
2001 rm -f conftest.err conftest.
$ac_ext
2004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2005 rm -f conftest.err conftest.
$ac_ext
2006 if $ac_preproc_ok; then
2009 { { echo "$as_me:2009: error: C preprocessor \"$CPP\" fails sanity check" >&5
2010 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2011 { (exit 1); exit 1; }; }
2015 ac_cpp
='$CPP $CPPFLAGS'
2016 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2020 echo "$as_me:2020: checking for minix/config.h" >&5
2021 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2022 if test "${ac_cv_header_minix_config_h+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.
$ac_ext <<_ACEOF
2026 #line 2026 "configure"
2027 #include "confdefs.h"
2028 #include <minix/config.h>
2030 if { (eval echo "$as_me:2030: \"$ac_cpp conftest.$ac_ext\"") >&5
2031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2033 egrep -v '^ *\+' conftest.er1
>conftest.err
2035 cat conftest.err
>&5
2036 echo "$as_me:2036: \$? = $ac_status" >&5
2037 (exit $ac_status); } >/dev
/null
; then
2038 if test -s conftest.err
; then
2039 ac_cpp_err
=$ac_c_preproc_warn_flag
2046 if test -z "$ac_cpp_err"; then
2047 ac_cv_header_minix_config_h
=yes
2049 echo "$as_me: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2051 ac_cv_header_minix_config_h
=no
2053 rm -f conftest.err conftest.
$ac_ext
2055 echo "$as_me:2055: result: $ac_cv_header_minix_config_h" >&5
2056 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2057 if test $ac_cv_header_minix_config_h = yes; then
2063 if test "$MINIX" = yes; then
2065 cat >>confdefs.h
<<\EOF
2066 #define _POSIX_SOURCE 1
2069 cat >>confdefs.h
<<\EOF
2070 #define _POSIX_1_SOURCE 2
2073 cat >>confdefs.h
<<\EOF
2079 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
2080 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
2082 if test $ac_cv_c_compiler_gnu = yes; then
2083 echo "$as_me:2083: checking whether $CC needs -traditional" >&5
2084 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2085 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 ac_pattern
="Autoconf.*'x'"
2089 cat >conftest.
$ac_ext <<_ACEOF
2090 #line 2090 "configure"
2091 #include "confdefs.h"
2095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2096 egrep "$ac_pattern" >/dev
/null
2>&1; then
2097 ac_cv_prog_gcc_traditional
=yes
2099 ac_cv_prog_gcc_traditional
=no
2103 if test $ac_cv_prog_gcc_traditional = no
; then
2104 cat >conftest.
$ac_ext <<_ACEOF
2105 #line 2105 "configure"
2106 #include "confdefs.h"
2110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2111 egrep "$ac_pattern" >/dev
/null
2>&1; then
2112 ac_cv_prog_gcc_traditional
=yes
2118 echo "$as_me:2118: result: $ac_cv_prog_gcc_traditional" >&5
2119 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2120 if test $ac_cv_prog_gcc_traditional = yes; then
2121 CC
="$CC -traditional"
2125 # Find a good install program. We prefer a C program (faster),
2126 # so one script is as good as another. But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 echo "$as_me:2137: checking for a BSD compatible install" >&5
2138 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2144 for ac_dir
in $PATH; do
2146 # Account for people who put trailing slashes in PATH elements.
2148 / | .
/ | .
// |
/cC
/* \
2149 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
2152 # OSF1 and SCO ODT 3.0 have their own names for install.
2153 # Don't use installbsd from OSF since it installs stuff as root
2155 for ac_prog
in ginstall scoinst
install; do
2156 if $as_executable_p "$ac_dir/$ac_prog"; then
2157 if test $ac_prog = install &&
2158 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
2159 # AIX install. It has an incompatible calling convention.
2161 elif test $ac_prog = install &&
2162 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
2163 # program-specific install script used by HP pwplus--don't use.
2166 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2176 if test "${ac_cv_path_install+set}" = set; then
2177 INSTALL
=$ac_cv_path_install
2179 # As a last resort, use the slow shell script. We don't cache a
2180 # path for INSTALL within a source directory, because that will
2181 # break other packages using the cache if that directory is
2182 # removed, or if the path is relative.
2183 INSTALL
=$ac_install_sh
2186 echo "$as_me:2186: result: $INSTALL" >&5
2187 echo "${ECHO_T}$INSTALL" >&6
2189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2190 # It thinks the first close brace ends the variable substitution.
2191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2195 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2197 # Extract the first word of "ar", so it can be a program name with args.
2198 set dummy
ar; ac_word
=$2
2199 echo "$as_me:2199: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_AR+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$AR"; then
2205 ac_cv_prog_AR
="$AR" # Let the user override the test.
2207 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2209 for ac_dir
in $ac_dummy; do
2211 test -z "$ac_dir" && ac_dir
=.
2212 $as_executable_p "$ac_dir/$ac_word" ||
continue
2214 echo "$as_me:2214: found $ac_dir/$ac_word" >&5
2218 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2222 if test -n "$AR"; then
2223 echo "$as_me:2223: result: $AR" >&5
2224 echo "${ECHO_T}$AR" >&6
2226 echo "$as_me:2226: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 test -n "$ARFLAGS" || ARFLAGS
="cr"
2231 if test -n "$ac_tool_prefix"; then
2232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2233 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2234 echo "$as_me:2234: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_RANLIB+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$RANLIB"; then
2240 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2242 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2244 for ac_dir
in $ac_dummy; do
2246 test -z "$ac_dir" && ac_dir
=.
2247 $as_executable_p "$ac_dir/$ac_word" ||
continue
2248 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2249 echo "$as_me:2249: found $ac_dir/$ac_word" >&5
2255 RANLIB
=$ac_cv_prog_RANLIB
2256 if test -n "$RANLIB"; then
2257 echo "$as_me:2257: result: $RANLIB" >&5
2258 echo "${ECHO_T}$RANLIB" >&6
2260 echo "$as_me:2260: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2265 if test -z "$ac_cv_prog_RANLIB"; then
2266 ac_ct_RANLIB
=$RANLIB
2267 # Extract the first word of "ranlib", so it can be a program name with args.
2268 set dummy ranlib
; ac_word
=$2
2269 echo "$as_me:2269: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$ac_ct_RANLIB"; then
2275 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2277 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2279 for ac_dir
in $ac_dummy; do
2281 test -z "$ac_dir" && ac_dir
=.
2282 $as_executable_p "$ac_dir/$ac_word" ||
continue
2283 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2284 echo "$as_me:2284: found $ac_dir/$ac_word" >&5
2288 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2291 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2292 if test -n "$ac_ct_RANLIB"; then
2293 echo "$as_me:2293: result: $ac_ct_RANLIB" >&5
2294 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2296 echo "$as_me:2296: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2300 RANLIB
=$ac_ct_RANLIB
2302 RANLIB
="$ac_cv_prog_RANLIB"
2307 echo "$as_me:2307: checking for $CC option to accept ANSI C" >&5
2308 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2309 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 ac_cv_prog_cc_stdc
=no
2314 cat >conftest.
$ac_ext <<_ACEOF
2315 #line 2315 "configure"
2316 #include "confdefs.h"
2319 #include <sys/types.h>
2320 #include <sys/stat.h>
2321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2322 struct buf { int x; };
2323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2324 static char *e (p, i)
2330 static char *f (char * (*g) (char **, int), char **p, ...)
2335 s = g (p, va_arg (v,int));
2339 int test (int i, double x);
2340 struct s1 {int (*f) (int a);};
2341 struct s2 {int (*f) (double a);};
2342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2353 # Don't try gcc -ansi; that turns off useful extensions and
2354 # breaks some systems' header files.
2355 # AIX -qlanglvl=ansi
2356 # Ultrix and OSF/1 -std1
2357 # HP-UX 10.20 and later -Ae
2358 # HP-UX older versions -Aa -D_HPUX_SOURCE
2359 # SVR4 -Xc -D__EXTENSIONS__
2360 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2362 CC
="$ac_save_CC $ac_arg"
2363 rm -f conftest.
$ac_objext
2364 if { (eval echo "$as_me:2364: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>&5
2367 echo "$as_me:2367: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try
='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:2370: \"$ac_try\"") >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc
=$ac_arg
2378 echo "$as_me: failed program was:" >&5
2379 cat conftest.
$ac_ext >&5
2381 rm -f conftest.
$ac_objext
2383 rm -f conftest.
$ac_ext conftest.
$ac_objext
2388 case "x$ac_cv_prog_cc_stdc" in
2390 echo "$as_me:2390: result: none needed" >&5
2391 echo "${ECHO_T}none needed" >&6 ;;
2393 echo "$as_me:2393: result: $ac_cv_prog_cc_stdc" >&5
2394 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2395 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2398 echo "$as_me:2398: checking for an ANSI C-conforming const" >&5
2399 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2400 if test "${ac_cv_c_const+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.
$ac_ext <<_ACEOF
2404 #line 2404 "configure"
2405 #include "confdefs.h"
2410 /* FIXME: Include the comments suggested by Paul. */
2412 /* Ultrix mips cc rejects this. */
2413 typedef int charset[2];
2415 /* SunOS 4.1.1 cc rejects this. */
2416 char const *const *ccp;
2418 /* NEC SVR4.0.2 mips cc rejects this. */
2419 struct point {int x, y;};
2420 static struct point const zero = {0,0};
2421 /* AIX XL C 1.02.0.0 rejects this.
2422 It does not let you subtract one const X* pointer from another in
2423 an arm of an if-expression whose if-part is not a constant
2425 const char *g = "string";
2426 ccp = &g + (g ? g-g : 0);
2427 /* HPUX 7.0 cc rejects these. */
2430 ccp = (char const *const *) p;
2431 { /* SCO 3.2v4 cc rejects this. */
2433 char const *s = 0 ? (char *) 0 : (char const *) 0;
2437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2439 const int *foo = &x[0];
2442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2443 typedef const int *iptr;
2447 { /* AIX XL C 1.02.0.0 rejects this saying
2448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2449 struct s { int j; const int *ap[3]; };
2450 struct s *b; b->j = 5;
2452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2461 rm -f conftest.
$ac_objext
2462 if { (eval echo "$as_me:2462: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>&5
2465 echo "$as_me:2465: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try
='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:2468: \"$ac_try\"") >&5
2471 echo "$as_me:2471: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2479 rm -f conftest.
$ac_objext conftest.
$ac_ext
2481 echo "$as_me:2481: result: $ac_cv_c_const" >&5
2482 echo "${ECHO_T}$ac_cv_c_const" >&6
2483 if test $ac_cv_c_const = no
; then
2485 cat >>confdefs.h
<<\EOF
2491 echo "$as_me:2491: checking for function prototypes" >&5
2492 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2493 if test "$ac_cv_prog_cc_stdc" != no
; then
2494 echo "$as_me:2494: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2497 cat >>confdefs.h
<<\EOF
2498 #define PROTOTYPES 1
2502 echo "$as_me:2502: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 echo "$as_me:2506: checking for ANSI C header files" >&5
2507 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2508 if test "${ac_cv_header_stdc+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.
$ac_ext <<_ACEOF
2512 #line 2512 "configure"
2513 #include "confdefs.h"
2520 if { (eval echo "$as_me:2520: \"$ac_cpp conftest.$ac_ext\"") >&5
2521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2523 egrep -v '^ *\+' conftest.er1
>conftest.err
2525 cat conftest.err
>&5
2526 echo "$as_me:2526: \$? = $ac_status" >&5
2527 (exit $ac_status); } >/dev
/null
; then
2528 if test -s conftest.err
; then
2529 ac_cpp_err
=$ac_c_preproc_warn_flag
2536 if test -z "$ac_cpp_err"; then
2537 ac_cv_header_stdc
=yes
2539 echo "$as_me: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2541 ac_cv_header_stdc
=no
2543 rm -f conftest.err conftest.
$ac_ext
2545 if test $ac_cv_header_stdc = yes; then
2546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2547 cat >conftest.
$ac_ext <<_ACEOF
2548 #line 2548 "configure"
2549 #include "confdefs.h"
2553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2554 egrep "memchr" >/dev
/null
2>&1; then
2557 ac_cv_header_stdc
=no
2563 if test $ac_cv_header_stdc = yes; then
2564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2565 cat >conftest.
$ac_ext <<_ACEOF
2566 #line 2566 "configure"
2567 #include "confdefs.h"
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 egrep "free" >/dev
/null
2>&1; then
2575 ac_cv_header_stdc
=no
2581 if test $ac_cv_header_stdc = yes; then
2582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2583 if test "$cross_compiling" = yes; then
2586 cat >conftest.
$ac_ext <<_ACEOF
2587 #line 2587 "configure"
2588 #include "confdefs.h"
2590 #if ((' ' & 0x0FF) == 0x020)
2591 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2592 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2594 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2595 || ('j' <= (c) && (c) <= 'r') \
2596 || ('s' <= (c) && (c) <= 'z'))
2597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2605 for (i = 0; i < 256; i++)
2606 if (XOR (islower (i), ISLOWER (i))
2607 || toupper (i) != TOUPPER (i))
2612 rm -f conftest
$ac_exeext
2613 if { (eval echo "$as_me:2613: \"$ac_link\"") >&5
2614 (eval $ac_link) 2>&5
2616 echo "$as_me:2616: \$? = $ac_status" >&5
2617 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2618 { (eval echo "$as_me:2618: \"$ac_try\"") >&5
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 echo "$as_me: program exited with status $ac_status" >&5
2626 echo "$as_me: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2628 ac_cv_header_stdc
=no
2630 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2634 echo "$as_me:2634: result: $ac_cv_header_stdc" >&5
2635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2636 if test $ac_cv_header_stdc = yes; then
2638 cat >>confdefs.h
<<\EOF
2639 #define STDC_HEADERS 1
2644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2646 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2647 inttypes.h stdint.h unistd.h
2649 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2650 echo "$as_me:2650: checking for $ac_header" >&5
2651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.
$ac_ext <<_ACEOF
2656 #line 2656 "configure"
2657 #include "confdefs.h"
2658 $ac_includes_default
2659 #include <$ac_header>
2661 rm -f conftest.
$ac_objext
2662 if { (eval echo "$as_me:2662: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>&5
2665 echo "$as_me:2665: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try
='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:2668: \"$ac_try\"") >&5
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 eval "$as_ac_Header=yes"
2675 echo "$as_me: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2677 eval "$as_ac_Header=no"
2679 rm -f conftest.
$ac_objext conftest.
$ac_ext
2681 echo "$as_me:2681: result: `eval echo '${'$as_ac_Header'}'`" >&5
2682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2684 cat >>confdefs.h
<<EOF
2685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2691 echo "$as_me:2691: checking whether char is unsigned" >&5
2692 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
2693 if test "${ac_cv_c_char_unsigned+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.
$ac_ext <<_ACEOF
2697 #line 2697 "configure"
2698 #include "confdefs.h"
2699 $ac_includes_default
2703 int _array_ [1 - 2 * !(((char) -1) < 0)]
2708 rm -f conftest.
$ac_objext
2709 if { (eval echo "$as_me:2709: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2712 echo "$as_me:2712: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try
='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:2715: \"$ac_try\"") >&5
2718 echo "$as_me:2718: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_c_char_unsigned
=no
2722 echo "$as_me: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2724 ac_cv_c_char_unsigned
=yes
2726 rm -f conftest.
$ac_objext conftest.
$ac_ext
2728 echo "$as_me:2728: result: $ac_cv_c_char_unsigned" >&5
2729 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
2730 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2731 cat >>confdefs.h
<<\EOF
2732 #define __CHAR_UNSIGNED__ 1
2737 echo "$as_me:2737: checking return type of signal handlers" >&5
2738 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2739 if test "${ac_cv_type_signal+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 cat >conftest.
$ac_ext <<_ACEOF
2743 #line 2743 "configure"
2744 #include "confdefs.h"
2745 #include <sys/types.h>
2751 extern "C" void (*signal (int, void (*)(int)))(int);
2753 void (*signal ()) ();
2764 rm -f conftest.
$ac_objext
2765 if { (eval echo "$as_me:2765: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>&5
2768 echo "$as_me:2768: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try
='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:2771: \"$ac_try\"") >&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_cv_type_signal
=void
2778 echo "$as_me: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2780 ac_cv_type_signal
=int
2782 rm -f conftest.
$ac_objext conftest.
$ac_ext
2784 echo "$as_me:2784: result: $ac_cv_type_signal" >&5
2785 echo "${ECHO_T}$ac_cv_type_signal" >&6
2787 cat >>confdefs.h
<<EOF
2788 #define RETSIGTYPE $ac_cv_type_signal
2791 echo "$as_me:2791: checking for size_t" >&5
2792 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2793 if test "${ac_cv_type_size_t+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 cat >conftest.
$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #include "confdefs.h"
2799 $ac_includes_default
2805 if (sizeof (size_t))
2811 rm -f conftest.
$ac_objext
2812 if { (eval echo "$as_me:2812: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>&5
2815 echo "$as_me:2815: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try
='test -s conftest.$ac_objext'
2818 { (eval echo "$as_me:2818: \"$ac_try\"") >&5
2821 echo "$as_me:2821: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 ac_cv_type_size_t
=yes
2825 echo "$as_me: failed program was:" >&5
2826 cat conftest.
$ac_ext >&5
2827 ac_cv_type_size_t
=no
2829 rm -f conftest.
$ac_objext conftest.
$ac_ext
2831 echo "$as_me:2831: result: $ac_cv_type_size_t" >&5
2832 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2833 if test $ac_cv_type_size_t = yes; then
2837 cat >>confdefs.h
<<EOF
2838 #define size_t unsigned
2843 echo "$as_me:2843: checking for ssize_t" >&5
2844 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
2845 if test "${ac_cv_type_ssize_t+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.
$ac_ext <<_ACEOF
2849 #line 2849 "configure"
2850 #include "confdefs.h"
2851 $ac_includes_default
2857 if (sizeof (ssize_t))
2863 rm -f conftest.
$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try
='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_cv_type_ssize_t
=yes
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.
$ac_ext >&5
2879 ac_cv_type_ssize_t
=no
2881 rm -f conftest.
$ac_objext conftest.
$ac_ext
2883 echo "$as_me:2883: result: $ac_cv_type_ssize_t" >&5
2884 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
2885 if test $ac_cv_type_ssize_t = yes; then
2889 cat >>confdefs.h
<<EOF
2895 echo "$as_me:2895: checking whether stat file-mode macros are broken" >&5
2896 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
2897 if test "${ac_cv_header_stat_broken+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 cat >conftest.
$ac_ext <<_ACEOF
2901 #line 2901 "configure"
2902 #include "confdefs.h"
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2906 #if defined(S_ISBLK) && defined(S_IFDIR)
2907 # if S_ISBLK (S_IFDIR)
2912 #if defined(S_ISBLK) && defined(S_IFCHR)
2913 # if S_ISBLK (S_IFCHR)
2918 #if defined(S_ISLNK) && defined(S_IFREG)
2919 # if S_ISLNK (S_IFREG)
2924 #if defined(S_ISSOCK) && defined(S_IFREG)
2925 # if S_ISSOCK (S_IFREG)
2931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2932 egrep "You lose" >/dev
/null
2>&1; then
2933 ac_cv_header_stat_broken
=yes
2935 ac_cv_header_stat_broken
=no
2940 echo "$as_me:2940: result: $ac_cv_header_stat_broken" >&5
2941 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
2942 if test $ac_cv_header_stat_broken = yes; then
2944 cat >>confdefs.h
<<\EOF
2945 #define STAT_MACROS_BROKEN 1
2951 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
2952 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2953 echo "$as_me:2953: checking for $ac_hdr that defines DIR" >&5
2954 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 cat >conftest.
$ac_ext <<_ACEOF
2959 #line 2959 "configure"
2960 #include "confdefs.h"
2961 #include <sys/types.h>
2973 rm -f conftest.
$ac_objext
2974 if { (eval echo "$as_me:2974: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>&5
2977 echo "$as_me:2977: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try
='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:2980: \"$ac_try\"") >&5
2983 echo "$as_me:2983: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 eval "$as_ac_Header=yes"
2987 echo "$as_me: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2989 eval "$as_ac_Header=no"
2991 rm -f conftest.
$ac_objext conftest.
$ac_ext
2993 echo "$as_me:2993: result: `eval echo '${'$as_ac_Header'}'`" >&5
2994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2996 cat >>confdefs.h
<<EOF
2997 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3000 ac_header_dirent
=$ac_hdr; break
3004 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3005 if test $ac_header_dirent = dirent.h
; then
3006 echo "$as_me:3006: checking for opendir in -ldir" >&5
3007 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3008 if test "${ac_cv_lib_dir_opendir+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 ac_check_lib_save_LIBS
=$LIBS
3013 cat >conftest.
$ac_ext <<_ACEOF
3014 #line 3014 "configure"
3015 #include "confdefs.h"
3017 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3032 rm -f conftest.
$ac_objext conftest
$ac_exeext
3033 if { (eval echo "$as_me:3033: \"$ac_link\"") >&5
3034 (eval $ac_link) 2>&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try
='test -s conftest$ac_exeext'
3039 { (eval echo "$as_me:3039: \"$ac_try\"") >&5
3042 echo "$as_me:3042: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_lib_dir_opendir
=yes
3046 echo "$as_me: failed program was:" >&5
3047 cat conftest.
$ac_ext >&5
3048 ac_cv_lib_dir_opendir
=no
3050 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3051 LIBS
=$ac_check_lib_save_LIBS
3053 echo "$as_me:3053: result: $ac_cv_lib_dir_opendir" >&5
3054 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3055 if test $ac_cv_lib_dir_opendir = yes; then
3060 echo "$as_me:3060: checking for opendir in -lx" >&5
3061 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3062 if test "${ac_cv_lib_x_opendir+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 ac_check_lib_save_LIBS
=$LIBS
3067 cat >conftest.
$ac_ext <<_ACEOF
3068 #line 3068 "configure"
3069 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3086 rm -f conftest.
$ac_objext conftest
$ac_exeext
3087 if { (eval echo "$as_me:3087: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>&5
3090 echo "$as_me:3090: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try
='test -s conftest$ac_exeext'
3093 { (eval echo "$as_me:3093: \"$ac_try\"") >&5
3096 echo "$as_me:3096: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_lib_x_opendir
=yes
3100 echo "$as_me: failed program was:" >&5
3101 cat conftest.
$ac_ext >&5
3102 ac_cv_lib_x_opendir
=no
3104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3105 LIBS
=$ac_check_lib_save_LIBS
3107 echo "$as_me:3107: result: $ac_cv_lib_x_opendir" >&5
3108 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
3109 if test $ac_cv_lib_x_opendir = yes; then
3115 for ac_func
in lstat memmove putenv
select setenv setlocale \
3116 strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit
3118 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3119 echo "$as_me:3119: checking for $ac_func" >&5
3120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3121 if eval "test \"\${$as_ac_var+set}\" = set"; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.
$ac_ext <<_ACEOF
3125 #line 3125 "configure"
3126 #include "confdefs.h"
3127 /* System header to define __stub macros and hopefully few prototypes,
3128 which can conflict with char $ac_func (); below. */
3130 /* Override any gcc2 internal prototype to avoid an error. */
3134 /* We use char because int might match the return type of a gcc2
3135 builtin and then its argument prototype would still apply. */
3142 /* The GNU C library defines this for functions which it implements
3143 to always fail with ENOSYS. Some functions are actually named
3144 something starting with __ and the normal name is an alias. */
3145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3155 rm -f conftest.
$ac_objext conftest
$ac_exeext
3156 if { (eval echo "$as_me:3156: \"$ac_link\"") >&5
3157 (eval $ac_link) 2>&5
3159 echo "$as_me:3159: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try
='test -s conftest$ac_exeext'
3162 { (eval echo "$as_me:3162: \"$ac_try\"") >&5
3165 echo "$as_me:3165: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 eval "$as_ac_var=yes"
3169 echo "$as_me: failed program was:" >&5
3170 cat conftest.
$ac_ext >&5
3171 eval "$as_ac_var=no"
3173 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3175 echo "$as_me:3175: result: `eval echo '${'$as_ac_var'}'`" >&5
3176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3177 if test `eval echo '${'$as_ac_var'}'` = yes; then
3178 cat >>confdefs.h
<<EOF
3179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3185 echo "$as_me:3185: checking for working strcoll" >&5
3186 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
3187 if test "${ac_cv_func_strcoll_works+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 if test "$cross_compiling" = yes; then
3191 ac_cv_func_strcoll_works
=no
3193 cat >conftest.
$ac_ext <<_ACEOF
3194 #line 3194 "configure"
3195 #include "confdefs.h"
3196 $ac_includes_default
3200 exit (strcoll ("abc", "def") >= 0 ||
3201 strcoll ("ABC", "DEF") >= 0 ||
3202 strcoll ("123", "456") >= 0)
3207 rm -f conftest
$ac_exeext
3208 if { (eval echo "$as_me:3208: \"$ac_link\"") >&5
3209 (eval $ac_link) 2>&5
3211 echo "$as_me:3211: \$? = $ac_status" >&5
3212 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3213 { (eval echo "$as_me:3213: \"$ac_try\"") >&5
3216 echo "$as_me:3216: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 ac_cv_func_strcoll_works
=yes
3220 echo "$as_me: program exited with status $ac_status" >&5
3221 echo "$as_me: failed program was:" >&5
3222 cat conftest.
$ac_ext >&5
3223 ac_cv_func_strcoll_works
=no
3225 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3228 echo "$as_me:3228: result: $ac_cv_func_strcoll_works" >&5
3229 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
3230 if test $ac_cv_func_strcoll_works = yes; then
3232 cat >>confdefs.h
<<\EOF
3233 #define HAVE_STRCOLL 1
3238 for ac_header
in unistd.h stdlib.h varargs.h stdarg.h string.h
strings.h \
3239 limits.h sys
/ptem.h sys
/pte.h sys
/stream.h sys
/select.h \
3240 termcap.h termios.h termio.h sys
/file.h locale.h memory.h
3242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3243 echo "$as_me:3243: checking for $ac_header" >&5
3244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 cat >conftest.
$ac_ext <<_ACEOF
3249 #line 3249 "configure"
3250 #include "confdefs.h"
3251 #include <$ac_header>
3253 if { (eval echo "$as_me:3253: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3256 egrep -v '^ *\+' conftest.er1
>conftest.err
3258 cat conftest.err
>&5
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev
/null
; then
3261 if test -s conftest.err
; then
3262 ac_cpp_err
=$ac_c_preproc_warn_flag
3269 if test -z "$ac_cpp_err"; then
3270 eval "$as_ac_Header=yes"
3272 echo "$as_me: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3274 eval "$as_ac_Header=no"
3276 rm -f conftest.err conftest.
$ac_ext
3278 echo "$as_me:3278: result: `eval echo '${'$as_ac_Header'}'`" >&5
3279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3281 cat >>confdefs.h
<<EOF
3282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3288 echo "$as_me:3288: checking for type of signal functions" >&5
3289 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
3290 if test "${bash_cv_signal_vintage+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 cat >conftest.
$ac_ext <<_ACEOF
3295 #line 3295 "configure"
3296 #include "confdefs.h"
3303 struct sigaction sa;
3304 sigemptyset(&ss); sigsuspend(&ss);
3305 sigaction(SIGINT, &sa, (struct sigaction *) 0);
3306 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
3312 rm -f conftest.
$ac_objext conftest
$ac_exeext
3313 if { (eval echo "$as_me:3313: \"$ac_link\"") >&5
3314 (eval $ac_link) 2>&5
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try
='test -s conftest$ac_exeext'
3319 { (eval echo "$as_me:3319: \"$ac_try\"") >&5
3322 echo "$as_me:3322: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 bash_cv_signal_vintage
=posix
3326 echo "$as_me: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 cat >conftest.
$ac_ext <<_ACEOF
3330 #line 3330 "configure"
3331 #include "confdefs.h"
3337 int mask = sigmask(SIGINT);
3338 sigsetmask(mask); sigblock(mask); sigpause(mask);
3344 rm -f conftest.
$ac_objext conftest
$ac_exeext
3345 if { (eval echo "$as_me:3345: \"$ac_link\"") >&5
3346 (eval $ac_link) 2>&5
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try
='test -s conftest$ac_exeext'
3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 bash_cv_signal_vintage
=4.2bsd
3358 echo "$as_me: failed program was:" >&5
3359 cat conftest.
$ac_ext >&5
3361 cat >conftest.
$ac_ext <<_ACEOF
3362 #line 3362 "configure"
3363 #include "confdefs.h"
3366 RETSIGTYPE foo() { }
3371 int mask = sigmask(SIGINT);
3372 sigset(SIGINT, foo); sigrelse(SIGINT);
3373 sighold(SIGINT); sigpause(SIGINT);
3379 rm -f conftest.
$ac_objext conftest
$ac_exeext
3380 if { (eval echo "$as_me:3380: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3383 echo "$as_me:3383: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try
='test -s conftest$ac_exeext'
3386 { (eval echo "$as_me:3386: \"$ac_try\"") >&5
3389 echo "$as_me:3389: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 bash_cv_signal_vintage
=svr3
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.
$ac_ext >&5
3395 bash_cv_signal_vintage
=v7
3398 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3404 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3408 echo "$as_me:3408: result: $bash_cv_signal_vintage" >&5
3409 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
3410 if test "$bash_cv_signal_vintage" = posix
; then
3411 cat >>confdefs.h
<<\EOF
3412 #define HAVE_POSIX_SIGNALS 1
3415 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
3416 cat >>confdefs.h
<<\EOF
3417 #define HAVE_BSD_SIGNALS 1
3420 elif test "$bash_cv_signal_vintage" = svr3
; then
3421 cat >>confdefs.h
<<\EOF
3422 #define HAVE_USG_SIGHOLD 1
3427 echo "$as_me:3427: checking if signal handlers must be reinstalled when invoked" >&5
3428 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
3429 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test "$cross_compiling" = yes; then
3433 { echo "$as_me:3433: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
3434 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
3435 bash_cv_must_reinstall_sighandlers
=no
3438 cat >conftest.
$ac_ext <<_ACEOF
3439 #line 3439 "configure"
3440 #include "confdefs.h"
3443 #ifdef HAVE_UNISTD_H
3447 typedef RETSIGTYPE sigfunc();
3451 #ifdef HAVE_POSIX_SIGNALS
3453 set_signal_handler(sig, handler)
3457 struct sigaction act, oact;
3458 act.sa_handler = handler;
3460 sigemptyset (&act.sa_mask);
3461 sigemptyset (&oact.sa_mask);
3462 sigaction (sig, &act, &oact);
3463 return (oact.sa_handler);
3466 #define set_signal_handler(s, h) signal(s, h)
3479 set_signal_handler(SIGINT, sigint);
3480 kill((int)getpid(), SIGINT);
3481 kill((int)getpid(), SIGINT);
3486 rm -f conftest
$ac_exeext
3487 if { (eval echo "$as_me:3487: \"$ac_link\"") >&5
3488 (eval $ac_link) 2>&5
3490 echo "$as_me:3490: \$? = $ac_status" >&5
3491 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3492 { (eval echo "$as_me:3492: \"$ac_try\"") >&5
3495 echo "$as_me:3495: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 bash_cv_must_reinstall_sighandlers
=no
3499 echo "$as_me: program exited with status $ac_status" >&5
3500 echo "$as_me: failed program was:" >&5
3501 cat conftest.
$ac_ext >&5
3502 bash_cv_must_reinstall_sighandlers
=yes
3504 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3508 echo "$as_me:3508: result: $bash_cv_must_reinstall_sighandlers" >&5
3509 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
3510 if test $bash_cv_must_reinstall_sighandlers = yes; then
3511 cat >>confdefs.h
<<\EOF
3512 #define MUST_REINSTALL_SIGHANDLERS 1
3517 echo "$as_me:3517: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
3518 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
3519 if test "${bash_cv_func_sigsetjmp+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test "$cross_compiling" = yes; then
3523 { echo "$as_me:3523: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
3524 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
3525 bash_cv_func_sigsetjmp
=missing
3528 cat >conftest.
$ac_ext <<_ACEOF
3529 #line 3529 "configure"
3530 #include "confdefs.h"
3532 #ifdef HAVE_UNISTD_H
3535 #include <sys/types.h>
3541 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
3552 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
3553 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
3556 code = sigsetjmp(xx, 1);
3558 exit(0); /* could get sigmask and compare to oset here. */
3561 sigaddset(&set, SIGINT);
3562 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
3564 /* and siglongjmp */
3570 rm -f conftest
$ac_exeext
3571 if { (eval echo "$as_me:3571: \"$ac_link\"") >&5
3572 (eval $ac_link) 2>&5
3574 echo "$as_me:3574: \$? = $ac_status" >&5
3575 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3576 { (eval echo "$as_me:3576: \"$ac_try\"") >&5
3579 echo "$as_me:3579: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 bash_cv_func_sigsetjmp
=present
3583 echo "$as_me: program exited with status $ac_status" >&5
3584 echo "$as_me: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3586 bash_cv_func_sigsetjmp
=missing
3588 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3592 echo "$as_me:3592: result: $bash_cv_func_sigsetjmp" >&5
3593 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
3594 if test $bash_cv_func_sigsetjmp = present
; then
3595 cat >>confdefs.h
<<\EOF
3596 #define HAVE_POSIX_SIGSETJMP 1
3601 echo "$as_me:3601: checking for lstat" >&5
3602 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
3603 if test "${bash_cv_func_lstat+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 cat >conftest.
$ac_ext <<_ACEOF
3607 #line 3607 "configure"
3608 #include "confdefs.h"
3610 #include <sys/types.h>
3611 #include <sys/stat.h>
3616 lstat(".",(struct stat *)0);
3621 rm -f conftest.
$ac_objext conftest
$ac_exeext
3622 if { (eval echo "$as_me:3622: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>&5
3625 echo "$as_me:3625: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try
='test -s conftest$ac_exeext'
3628 { (eval echo "$as_me:3628: \"$ac_try\"") >&5
3631 echo "$as_me:3631: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 bash_cv_func_lstat
=yes
3635 echo "$as_me: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3637 bash_cv_func_lstat
=no
3639 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3641 echo "$as_me:3641: result: $bash_cv_func_lstat" >&5
3642 echo "${ECHO_T}$bash_cv_func_lstat" >&6
3643 if test $bash_cv_func_lstat = yes; then
3644 cat >>confdefs.h
<<\EOF
3645 #define HAVE_LSTAT 1
3650 echo "$as_me:3650: checking whether or not strcoll and strcmp differ" >&5
3651 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
3652 if test "${bash_cv_func_strcoll_broken+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test "$cross_compiling" = yes; then
3656 { echo "$as_me:3656: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
3657 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
3658 bash_cv_func_strcoll_broken
=no
3661 cat >conftest.
$ac_ext <<_ACEOF
3662 #line 3662 "configure"
3663 #include "confdefs.h"
3666 #if defined (HAVE_LOCALE_H)
3675 char *deflocale, *defcoll;
3677 #ifdef HAVE_SETLOCALE
3678 deflocale = setlocale(LC_ALL, "");
3679 defcoll = setlocale(LC_COLLATE, "");
3683 /* These two values are taken from tests/glob-test. */
3684 r1 = strcoll("abd", "aXd");
3688 r2 = strcmp("abd", "aXd");
3690 /* These two should both be greater than 0. It is permissible for
3691 a system to return different values, as long as the sign is the
3694 /* Exit with 1 (failure) if these two values are both > 0, since
3695 this tests whether strcoll(3) is broken with respect to strcmp(3)
3696 in the default locale. */
3697 exit (r1 > 0 && r2 > 0);
3701 rm -f conftest
$ac_exeext
3702 if { (eval echo "$as_me:3702: \"$ac_link\"") >&5
3703 (eval $ac_link) 2>&5
3705 echo "$as_me:3705: \$? = $ac_status" >&5
3706 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3707 { (eval echo "$as_me:3707: \"$ac_try\"") >&5
3710 echo "$as_me:3710: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 bash_cv_func_strcoll_broken
=yes
3714 echo "$as_me: program exited with status $ac_status" >&5
3715 echo "$as_me: failed program was:" >&5
3716 cat conftest.
$ac_ext >&5
3717 bash_cv_func_strcoll_broken
=no
3719 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3723 echo "$as_me:3723: result: $bash_cv_func_strcoll_broken" >&5
3724 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
3725 if test $bash_cv_func_strcoll_broken = yes; then
3726 cat >>confdefs.h
<<\EOF
3727 #define STRCOLL_BROKEN 1
3732 echo "$as_me:3732: checking whether getpw functions are declared in pwd.h" >&5
3733 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
3734 if test "${bash_cv_getpw_declared+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 cat >conftest.
$ac_ext <<_ACEOF
3738 #line 3738 "configure"
3739 #include "confdefs.h"
3741 #include <sys/types.h>
3742 #ifdef HAVE_UNISTD_H
3743 # include <unistd.h>
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749 egrep "getpwuid" >/dev
/null
2>&1; then
3750 bash_cv_getpw_declared
=yes
3752 bash_cv_getpw_declared
=no
3758 echo "$as_me:3758: result: $bash_cv_getpw_declared" >&5
3759 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
3760 if test $bash_cv_getpw_declared = yes; then
3761 cat >>confdefs.h
<<\EOF
3762 #define HAVE_GETPW_DECLS 1
3767 echo "$as_me:3767: checking POSIX termios" >&5
3768 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
3769 if test "${ac_cv_sys_posix_termios+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 cat >conftest.
$ac_ext <<_ACEOF
3773 #line 3773 "configure"
3774 #include "confdefs.h"
3775 #include <sys/types.h>
3777 #include <termios.h>
3781 /* SunOS 4.0.3 has termios.h but not the library calls. */
3787 rm -f conftest.
$ac_objext conftest
$ac_exeext
3788 if { (eval echo "$as_me:3788: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3791 echo "$as_me:3791: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:3794: \"$ac_try\"") >&5
3797 echo "$as_me:3797: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_sys_posix_termios
=yes
3801 echo "$as_me: failed program was:" >&5
3802 cat conftest.
$ac_ext >&5
3803 ac_cv_sys_posix_termios
=no
3805 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3807 echo "$as_me:3807: result: $ac_cv_sys_posix_termios" >&5
3808 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
3810 if test $ac_cv_sys_posix_termios = yes; then
3811 echo "$as_me:3811: checking whether termios.h defines TIOCGWINSZ" >&5
3812 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
3813 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 cat >conftest.
$ac_ext <<_ACEOF
3817 #line 3817 "configure"
3818 #include "confdefs.h"
3819 #include <sys/types.h>
3820 #include <termios.h>
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 egrep "yes" >/dev
/null
2>&1; then
3828 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
3830 ac_cv_sys_tiocgwinsz_in_termios_h
=no
3835 echo "$as_me:3835: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
3836 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
3839 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3840 echo "$as_me:3840: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
3841 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
3842 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 cat >conftest.
$ac_ext <<_ACEOF
3846 #line 3846 "configure"
3847 #include "confdefs.h"
3848 #include <sys/types.h>
3849 #include <sys/ioctl.h>
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 egrep "yes" >/dev
/null
2>&1; then
3857 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
3859 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
3864 echo "$as_me:3864: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
3865 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
3867 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
3869 cat >>confdefs.h
<<\EOF
3870 #define GWINSZ_IN_SYS_IOCTL 1
3876 echo "$as_me:3876: checking whether signal handlers are of type void" >&5
3877 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
3878 if test "${bash_cv_void_sighandler+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 cat >conftest.
$ac_ext <<_ACEOF
3882 #line 3882 "configure"
3883 #include "confdefs.h"
3884 #include <sys/types.h>
3892 void (*signal ()) ();
3901 rm -f conftest.
$ac_objext
3902 if { (eval echo "$as_me:3902: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>&5
3905 echo "$as_me:3905: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try
='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:3908: \"$ac_try\"") >&5
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 bash_cv_void_sighandler
=yes
3915 echo "$as_me: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3917 bash_cv_void_sighandler
=no
3919 rm -f conftest.
$ac_objext conftest.
$ac_ext
3921 echo "$as_me:3921: result: $bash_cv_void_sighandler" >&5
3922 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
3923 if test $bash_cv_void_sighandler = yes; then
3924 cat >>confdefs.h
<<\EOF
3925 #define VOID_SIGHANDLER 1
3930 echo "$as_me:3930: checking for TIOCSTAT in sys/ioctl.h" >&5
3931 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
3932 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 cat >conftest.
$ac_ext <<_ACEOF
3936 #line 3936 "configure"
3937 #include "confdefs.h"
3938 #include <sys/types.h>
3939 #include <sys/ioctl.h>
3948 rm -f conftest.
$ac_objext
3949 if { (eval echo "$as_me:3949: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>&5
3952 echo "$as_me:3952: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try
='test -s conftest.$ac_objext'
3955 { (eval echo "$as_me:3955: \"$ac_try\"") >&5
3958 echo "$as_me:3958: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 bash_cv_tiocstat_in_ioctl
=yes
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3964 bash_cv_tiocstat_in_ioctl
=no
3966 rm -f conftest.
$ac_objext conftest.
$ac_ext
3969 echo "$as_me:3969: result: $bash_cv_tiocstat_in_ioctl" >&5
3970 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
3971 if test $bash_cv_tiocstat_in_ioctl = yes; then
3972 cat >>confdefs.h
<<\EOF
3973 #define TIOCSTAT_IN_SYS_IOCTL 1
3978 echo "$as_me:3978: checking for FIONREAD in sys/ioctl.h" >&5
3979 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
3980 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 cat >conftest.
$ac_ext <<_ACEOF
3984 #line 3984 "configure"
3985 #include "confdefs.h"
3986 #include <sys/types.h>
3987 #include <sys/ioctl.h>
3996 rm -f conftest.
$ac_objext
3997 if { (eval echo "$as_me:3997: \"$ac_compile\"") >&5
3998 (eval $ac_compile) 2>&5
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try
='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:4003: \"$ac_try\"") >&5
4006 echo "$as_me:4006: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 bash_cv_fionread_in_ioctl
=yes
4010 echo "$as_me: failed program was:" >&5
4011 cat conftest.
$ac_ext >&5
4012 bash_cv_fionread_in_ioctl
=no
4014 rm -f conftest.
$ac_objext conftest.
$ac_ext
4017 echo "$as_me:4017: result: $bash_cv_fionread_in_ioctl" >&5
4018 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
4019 if test $bash_cv_fionread_in_ioctl = yes; then
4020 cat >>confdefs.h
<<\EOF
4021 #define FIONREAD_IN_SYS_IOCTL 1
4026 echo "$as_me:4026: checking for speed_t in sys/types.h" >&5
4027 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
4028 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 cat >conftest.
$ac_ext <<_ACEOF
4032 #line 4032 "configure"
4033 #include "confdefs.h"
4034 #include <sys/types.h>
4043 rm -f conftest.
$ac_objext
4044 if { (eval echo "$as_me:4044: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>&5
4047 echo "$as_me:4047: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try
='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:4050: \"$ac_try\"") >&5
4053 echo "$as_me:4053: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 bash_cv_speed_t_in_sys_types
=yes
4057 echo "$as_me: failed program was:" >&5
4058 cat conftest.
$ac_ext >&5
4059 bash_cv_speed_t_in_sys_types
=no
4061 rm -f conftest.
$ac_objext conftest.
$ac_ext
4064 echo "$as_me:4064: result: $bash_cv_speed_t_in_sys_types" >&5
4065 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
4066 if test $bash_cv_speed_t_in_sys_types = yes; then
4067 cat >>confdefs.h
<<\EOF
4068 #define SPEED_T_IN_SYS_TYPES 1
4073 echo "$as_me:4073: checking for struct winsize in sys/ioctl.h and termios.h" >&5
4074 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
4075 if test "${bash_cv_struct_winsize_header+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.
$ac_ext <<_ACEOF
4079 #line 4079 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4082 #include <sys/ioctl.h>
4091 rm -f conftest.
$ac_objext
4092 if { (eval echo "$as_me:4092: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4095 echo "$as_me:4095: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try
='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:4098: \"$ac_try\"") >&5
4101 echo "$as_me:4101: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 bash_cv_struct_winsize_header
=ioctl_h
4105 echo "$as_me: failed program was:" >&5
4106 cat conftest.
$ac_ext >&5
4107 cat >conftest.
$ac_ext <<_ACEOF
4108 #line 4108 "configure"
4109 #include "confdefs.h"
4110 #include <sys/types.h>
4111 #include <termios.h>
4120 rm -f conftest.
$ac_objext
4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try
='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4130 echo "$as_me:4130: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 bash_cv_struct_winsize_header
=termios_h
4134 echo "$as_me: failed program was:" >&5
4135 cat conftest.
$ac_ext >&5
4136 bash_cv_struct_winsize_header
=other
4138 rm -f conftest.
$ac_objext conftest.
$ac_ext
4141 rm -f conftest.
$ac_objext conftest.
$ac_ext
4144 if test $bash_cv_struct_winsize_header = ioctl_h
; then
4145 echo "$as_me:4145: result: sys/ioctl.h" >&5
4146 echo "${ECHO_T}sys/ioctl.h" >&6
4147 cat >>confdefs.h
<<\EOF
4148 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
4151 elif test $bash_cv_struct_winsize_header = termios_h
; then
4152 echo "$as_me:4152: result: termios.h" >&5
4153 echo "${ECHO_T}termios.h" >&6
4154 cat >>confdefs.h
<<\EOF
4155 #define STRUCT_WINSIZE_IN_TERMIOS 1
4159 echo "$as_me:4159: result: not found" >&5
4160 echo "${ECHO_T}not found" >&6
4163 echo "$as_me:4163: checking if struct dirent has a d_ino member" >&5
4164 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
4165 if test "${bash_cv_dirent_has_dino+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 cat >conftest.
$ac_ext <<_ACEOF
4169 #line 4169 "configure"
4170 #include "confdefs.h"
4173 #include <sys/types.h>
4174 #ifdef HAVE_UNISTD_H
4175 # include <unistd.h>
4176 #endif /* HAVE_UNISTD_H */
4177 #if defined(HAVE_DIRENT_H)
4178 # include <dirent.h>
4180 # define dirent direct
4181 # ifdef HAVE_SYS_NDIR_H
4182 # include <sys/ndir.h>
4183 # endif /* SYSNDIR */
4184 # ifdef HAVE_SYS_DIR_H
4185 # include <sys/dir.h>
4186 # endif /* SYSDIR */
4190 #endif /* HAVE_DIRENT_H */
4196 struct dirent d; int z; z = d.d_ino;
4202 rm -f conftest.
$ac_objext
4203 if { (eval echo "$as_me:4203: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>&5
4206 echo "$as_me:4206: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try
='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:4209: \"$ac_try\"") >&5
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 bash_cv_dirent_has_dino
=yes
4216 echo "$as_me: failed program was:" >&5
4217 cat conftest.
$ac_ext >&5
4218 bash_cv_dirent_has_dino
=no
4220 rm -f conftest.
$ac_objext conftest.
$ac_ext
4223 echo "$as_me:4223: result: $bash_cv_dirent_has_dino" >&5
4224 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
4225 if test $bash_cv_dirent_has_dino = yes; then
4226 cat >>confdefs.h
<<\EOF
4227 #define STRUCT_DIRENT_HAS_D_INO 1
4232 echo "$as_me:4232: checking if struct dirent has a d_fileno member" >&5
4233 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
4234 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 cat >conftest.
$ac_ext <<_ACEOF
4238 #line 4238 "configure"
4239 #include "confdefs.h"
4242 #include <sys/types.h>
4243 #ifdef HAVE_UNISTD_H
4244 # include <unistd.h>
4245 #endif /* HAVE_UNISTD_H */
4246 #if defined(HAVE_DIRENT_H)
4247 # include <dirent.h>
4249 # define dirent direct
4250 # ifdef HAVE_SYS_NDIR_H
4251 # include <sys/ndir.h>
4252 # endif /* SYSNDIR */
4253 # ifdef HAVE_SYS_DIR_H
4254 # include <sys/dir.h>
4255 # endif /* SYSDIR */
4259 #endif /* HAVE_DIRENT_H */
4265 struct dirent d; int z; z = d.d_fileno;
4271 rm -f conftest.
$ac_objext
4272 if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try
='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 bash_cv_dirent_has_d_fileno
=yes
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4287 bash_cv_dirent_has_d_fileno
=no
4289 rm -f conftest.
$ac_objext conftest.
$ac_ext
4292 echo "$as_me:4292: result: $bash_cv_dirent_has_d_fileno" >&5
4293 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
4294 if test $bash_cv_dirent_has_d_fileno = yes; then
4295 cat >>confdefs.h
<<\EOF
4296 #define STRUCT_DIRENT_HAS_D_FILENO 1
4302 aix
*) prefer_curses
=yes ;;
4305 if test "X$bash_cv_termcap_lib" = "X"; then
4308 echo "$as_me:4308: checking which library has the termcap functions" >&5
4309 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4312 if test "${bash_cv_termcap_lib+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 echo "$as_me:4315: checking for tgetent in -ltermcap" >&5
4316 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4317 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 ac_check_lib_save_LIBS
=$LIBS
4321 LIBS
="-ltermcap $LIBS"
4322 cat >conftest.
$ac_ext <<_ACEOF
4323 #line 4323 "configure"
4324 #include "confdefs.h"
4326 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4341 rm -f conftest.
$ac_objext conftest
$ac_exeext
4342 if { (eval echo "$as_me:4342: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>&5
4345 echo "$as_me:4345: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try
='test -s conftest$ac_exeext'
4348 { (eval echo "$as_me:4348: \"$ac_try\"") >&5
4351 echo "$as_me:4351: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_lib_termcap_tgetent
=yes
4355 echo "$as_me: failed program was:" >&5
4356 cat conftest.
$ac_ext >&5
4357 ac_cv_lib_termcap_tgetent
=no
4359 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4360 LIBS
=$ac_check_lib_save_LIBS
4362 echo "$as_me:4362: result: $ac_cv_lib_termcap_tgetent" >&5
4363 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4364 if test $ac_cv_lib_termcap_tgetent = yes; then
4365 bash_cv_termcap_lib
=libtermcap
4367 echo "$as_me:4367: checking for tgetent in -ltinfo" >&5
4368 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4369 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_check_lib_save_LIBS
=$LIBS
4373 LIBS
="-ltinfo $LIBS"
4374 cat >conftest.
$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4393 rm -f conftest.
$ac_objext conftest
$ac_exeext
4394 if { (eval echo "$as_me:4394: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>&5
4397 echo "$as_me:4397: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try
='test -s conftest$ac_exeext'
4400 { (eval echo "$as_me:4400: \"$ac_try\"") >&5
4403 echo "$as_me:4403: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 ac_cv_lib_tinfo_tgetent
=yes
4407 echo "$as_me: failed program was:" >&5
4408 cat conftest.
$ac_ext >&5
4409 ac_cv_lib_tinfo_tgetent
=no
4411 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4412 LIBS
=$ac_check_lib_save_LIBS
4414 echo "$as_me:4414: result: $ac_cv_lib_tinfo_tgetent" >&5
4415 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4416 if test $ac_cv_lib_tinfo_tgetent = yes; then
4417 bash_cv_termcap_lib
=libtinfo
4419 echo "$as_me:4419: checking for tgetent in -lcurses" >&5
4420 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4421 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 ac_check_lib_save_LIBS
=$LIBS
4425 LIBS
="-lcurses $LIBS"
4426 cat >conftest.
$ac_ext <<_ACEOF
4427 #line 4427 "configure"
4428 #include "confdefs.h"
4430 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4445 rm -f conftest.
$ac_objext conftest
$ac_exeext
4446 if { (eval echo "$as_me:4446: \"$ac_link\"") >&5
4447 (eval $ac_link) 2>&5
4449 echo "$as_me:4449: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try
='test -s conftest$ac_exeext'
4452 { (eval echo "$as_me:4452: \"$ac_try\"") >&5
4455 echo "$as_me:4455: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 ac_cv_lib_curses_tgetent
=yes
4459 echo "$as_me: failed program was:" >&5
4460 cat conftest.
$ac_ext >&5
4461 ac_cv_lib_curses_tgetent
=no
4463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4464 LIBS
=$ac_check_lib_save_LIBS
4466 echo "$as_me:4466: result: $ac_cv_lib_curses_tgetent" >&5
4467 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4468 if test $ac_cv_lib_curses_tgetent = yes; then
4469 bash_cv_termcap_lib
=libcurses
4471 echo "$as_me:4471: checking for tgetent in -lncurses" >&5
4472 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4473 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_check_lib_save_LIBS
=$LIBS
4477 LIBS
="-lncurses $LIBS"
4478 cat >conftest.
$ac_ext <<_ACEOF
4479 #line 4479 "configure"
4480 #include "confdefs.h"
4482 /* Override any gcc2 internal prototype to avoid an error. */
4486 /* We use char because int might match the return type of a gcc2
4487 builtin and then its argument prototype would still apply. */
4497 rm -f conftest.
$ac_objext conftest
$ac_exeext
4498 if { (eval echo "$as_me:4498: \"$ac_link\"") >&5
4499 (eval $ac_link) 2>&5
4501 echo "$as_me:4501: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try
='test -s conftest$ac_exeext'
4504 { (eval echo "$as_me:4504: \"$ac_try\"") >&5
4507 echo "$as_me:4507: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_cv_lib_ncurses_tgetent
=yes
4511 echo "$as_me: failed program was:" >&5
4512 cat conftest.
$ac_ext >&5
4513 ac_cv_lib_ncurses_tgetent
=no
4515 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4516 LIBS
=$ac_check_lib_save_LIBS
4518 echo "$as_me:4518: result: $ac_cv_lib_ncurses_tgetent" >&5
4519 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4520 if test $ac_cv_lib_ncurses_tgetent = yes; then
4521 bash_cv_termcap_lib
=libncurses
4523 bash_cv_termcap_lib
=gnutermcap
4534 if test "X$_bash_needmsg" = "Xyes"; then
4535 echo "$as_me:4535: checking which library has the termcap functions" >&5
4536 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4538 echo "$as_me:4538: result: using $bash_cv_termcap_lib" >&5
4539 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4540 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
4541 LDFLAGS
="$LDFLAGS -L./lib/termcap"
4542 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
4543 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
4544 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
4545 TERMCAP_LIB
=-ltermcap
4547 elif test $bash_cv_termcap_lib = libtinfo
; then
4550 elif test $bash_cv_termcap_lib = libncurses
; then
4551 TERMCAP_LIB
=-lncurses
4554 TERMCAP_LIB
=-lcurses
4558 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
4559 if test "$prefer_curses" = yes; then
4560 TERMCAP_LIB
=-lcurses
4562 TERMCAP_LIB
=-ltermcap #default
4566 for ac_header
in wctype.h
4568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4569 echo "$as_me:4569: checking for $ac_header" >&5
4570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.
$ac_ext <<_ACEOF
4575 #line 4575 "configure"
4576 #include "confdefs.h"
4577 #include <$ac_header>
4579 if { (eval echo "$as_me:4579: \"$ac_cpp conftest.$ac_ext\"") >&5
4580 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4582 egrep -v '^ *\+' conftest.er1
>conftest.err
4584 cat conftest.err
>&5
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev
/null
; then
4587 if test -s conftest.err
; then
4588 ac_cpp_err
=$ac_c_preproc_warn_flag
4595 if test -z "$ac_cpp_err"; then
4596 eval "$as_ac_Header=yes"
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.
$ac_ext >&5
4600 eval "$as_ac_Header=no"
4602 rm -f conftest.err conftest.
$ac_ext
4604 echo "$as_me:4604: result: `eval echo '${'$as_ac_Header'}'`" >&5
4605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4607 cat >>confdefs.h
<<EOF
4608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4614 for ac_header
in wchar.h
4616 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617 echo "$as_me:4617: checking for $ac_header" >&5
4618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 cat >conftest.
$ac_ext <<_ACEOF
4623 #line 4623 "configure"
4624 #include "confdefs.h"
4625 #include <$ac_header>
4627 if { (eval echo "$as_me:4627: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4630 egrep -v '^ *\+' conftest.er1
>conftest.err
4632 cat conftest.err
>&5
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev
/null
; then
4635 if test -s conftest.err
; then
4636 ac_cpp_err
=$ac_c_preproc_warn_flag
4643 if test -z "$ac_cpp_err"; then
4644 eval "$as_ac_Header=yes"
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4648 eval "$as_ac_Header=no"
4650 rm -f conftest.err conftest.
$ac_ext
4652 echo "$as_me:4652: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4655 cat >>confdefs.h
<<EOF
4656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4662 for ac_header
in langinfo.h
4664 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4665 echo "$as_me:4665: checking for $ac_header" >&5
4666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 cat >conftest.
$ac_ext <<_ACEOF
4671 #line 4671 "configure"
4672 #include "confdefs.h"
4673 #include <$ac_header>
4675 if { (eval echo "$as_me:4675: \"$ac_cpp conftest.$ac_ext\"") >&5
4676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4678 egrep -v '^ *\+' conftest.er1
>conftest.err
4680 cat conftest.err
>&5
4681 echo "$as_me:4681: \$? = $ac_status" >&5
4682 (exit $ac_status); } >/dev
/null
; then
4683 if test -s conftest.err
; then
4684 ac_cpp_err
=$ac_c_preproc_warn_flag
4691 if test -z "$ac_cpp_err"; then
4692 eval "$as_ac_Header=yes"
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4696 eval "$as_ac_Header=no"
4698 rm -f conftest.err conftest.
$ac_ext
4700 echo "$as_me:4700: result: `eval echo '${'$as_ac_Header'}'`" >&5
4701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4703 cat >>confdefs.h
<<EOF
4704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 echo "$as_me:4710: checking for mbsrtowcs" >&5
4711 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
4712 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 cat >conftest.
$ac_ext <<_ACEOF
4716 #line 4716 "configure"
4717 #include "confdefs.h"
4718 /* System header to define __stub macros and hopefully few prototypes,
4719 which can conflict with char mbsrtowcs (); below. */
4721 /* Override any gcc2 internal prototype to avoid an error. */
4725 /* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4733 /* The GNU C library defines this for functions which it implements
4734 to always fail with ENOSYS. Some functions are actually named
4735 something starting with __ and the normal name is an alias. */
4736 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
4746 rm -f conftest.
$ac_objext conftest
$ac_exeext
4747 if { (eval echo "$as_me:4747: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>&5
4750 echo "$as_me:4750: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try
='test -s conftest$ac_exeext'
4753 { (eval echo "$as_me:4753: \"$ac_try\"") >&5
4756 echo "$as_me:4756: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_func_mbsrtowcs
=yes
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.
$ac_ext >&5
4762 ac_cv_func_mbsrtowcs
=no
4764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4766 echo "$as_me:4766: result: $ac_cv_func_mbsrtowcs" >&5
4767 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
4768 if test $ac_cv_func_mbsrtowcs = yes; then
4769 cat >>confdefs.h
<<\EOF
4770 #define HAVE_MBSRTOWCS 1
4775 echo "$as_me:4775: checking for wcwidth" >&5
4776 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
4777 if test "${ac_cv_func_wcwidth+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 cat >conftest.
$ac_ext <<_ACEOF
4781 #line 4781 "configure"
4782 #include "confdefs.h"
4783 /* System header to define __stub macros and hopefully few prototypes,
4784 which can conflict with char wcwidth (); below. */
4786 /* Override any gcc2 internal prototype to avoid an error. */
4790 /* We use char because int might match the return type of a gcc2
4791 builtin and then its argument prototype would still apply. */
4798 /* The GNU C library defines this for functions which it implements
4799 to always fail with ENOSYS. Some functions are actually named
4800 something starting with __ and the normal name is an alias. */
4801 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
4811 rm -f conftest.
$ac_objext conftest
$ac_exeext
4812 if { (eval echo "$as_me:4812: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
4815 echo "$as_me:4815: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try
='test -s conftest$ac_exeext'
4818 { (eval echo "$as_me:4818: \"$ac_try\"") >&5
4821 echo "$as_me:4821: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_func_wcwidth
=yes
4825 echo "$as_me: failed program was:" >&5
4826 cat conftest.
$ac_ext >&5
4827 ac_cv_func_wcwidth
=no
4829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4831 echo "$as_me:4831: result: $ac_cv_func_wcwidth" >&5
4832 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
4833 if test $ac_cv_func_wcwidth = yes; then
4834 cat >>confdefs.h
<<\EOF
4835 #define HAVE_WCWIDTH 1
4840 echo "$as_me:4840: checking for mbstate_t" >&5
4841 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
4842 if test "${bash_cv_have_mbstate_t+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 if test "$cross_compiling" = yes; then
4846 { { echo "$as_me:4846: error: cannot run test program while cross compiling" >&5
4847 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4848 { (exit 1); exit 1; }; }
4850 cat >conftest.
$ac_ext <<_ACEOF
4851 #line 4851 "configure"
4852 #include "confdefs.h"
4862 rm -f conftest
$ac_exeext
4863 if { (eval echo "$as_me:4863: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>&5
4866 echo "$as_me:4866: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4868 { (eval echo "$as_me:4868: \"$ac_try\"") >&5
4871 echo "$as_me:4871: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 bash_cv_have_mbstate_t
=yes
4875 echo "$as_me: program exited with status $ac_status" >&5
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4878 bash_cv_have_mbstate_t
=no
4880 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4883 echo "$as_me:4883: result: $bash_cv_have_mbstate_t" >&5
4884 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
4885 if test $bash_cv_have_mbstate_t = yes; then
4886 cat >>confdefs.h
<<\EOF
4887 #define HAVE_MBSTATE_T 1
4892 echo "$as_me:4892: checking for nl_langinfo and CODESET" >&5
4893 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4894 if test "${bash_cv_langinfo_codeset+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat >conftest.
$ac_ext <<_ACEOF
4898 #line 4898 "configure"
4899 #include "confdefs.h"
4900 #include <langinfo.h>
4904 char* cs = nl_langinfo(CODESET);
4909 rm -f conftest.
$ac_objext conftest
$ac_exeext
4910 if { (eval echo "$as_me:4910: \"$ac_link\"") >&5
4911 (eval $ac_link) 2>&5
4913 echo "$as_me:4913: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try
='test -s conftest$ac_exeext'
4916 { (eval echo "$as_me:4916: \"$ac_try\"") >&5
4919 echo "$as_me:4919: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 bash_cv_langinfo_codeset
=yes
4923 echo "$as_me: failed program was:" >&5
4924 cat conftest.
$ac_ext >&5
4925 bash_cv_langinfo_codeset
=no
4927 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4929 echo "$as_me:4929: result: $bash_cv_langinfo_codeset" >&5
4930 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
4931 if test $bash_cv_langinfo_codeset = yes; then
4932 cat >>confdefs.h
<<\EOF
4933 #define HAVE_LANGINFO_CODESET 1
4939 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
4940 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
4944 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
4947 # shared library configuration section
4949 # Shared object configuration section. These values are generated by
4950 # ${srcdir}/support/shobj-conf
4952 if test -f ${srcdir}/support
/shobj-conf
; then
4953 echo "$as_me:4953: checking configuration for building shared libraries" >&5
4954 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
4955 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
4957 echo "$as_me:4957: result: $SHLIB_STATUS" >&5
4958 echo "${ECHO_T}$SHLIB_STATUS" >&6
4960 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
4961 # `unsupported', turn off any default shared library building
4962 if test "$SHLIB_STATUS" = 'unsupported'; then
4966 # shared library versioning
4967 # quoted for m4 so I can use character classes
4968 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
4969 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
4973 if test "$opt_static_libs" = "yes"; then
4974 STATIC_TARGET
=static
4975 STATIC_INSTALL_TARGET
=install-static
4977 if test "$opt_shared_libs" = "yes"; then
4978 SHARED_TARGET
=shared
4979 SHARED_INSTALL_TARGET
=install-shared
4983 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
4984 *) BUILD_DIR
=`pwd` ;;
4987 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
4988 ac_config_commands
="$ac_config_commands default"
4989 cat >confcache
<<\_ACEOF
4990 # This file is a shell script that caches the results of configure
4991 # tests run on this system so they can be shared between configure
4992 # scripts and configure runs, see configure's option --config-cache.
4993 # It is not useful on other systems. If it contains results you don't
4994 # want to keep, you may remove or edit it.
4996 # config.status only pays attention to the cache file if you give it
4997 # the --recheck option to rerun configure.
4999 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5005 # The following way of writing the cache mishandles newlines in values,
5006 # but we know of no workaround that is simple, portable, and efficient.
5007 # So, don't put newlines in cache variables' values.
5008 # Ultrix sh set writes to stderr and can't be redirected directly,
5009 # and sets the high bit in the cache file unless we assign to the vars.
5012 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5014 # `set' does not quote correctly, so add quotes (double-quote
5015 # substitution turns \\\\ into \\, and sed turns \\ into \).
5018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5021 # `set' quotes correctly as required by POSIX, so do not add quotes.
5023 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5032 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5034 if cmp -s $cache_file confcache
; then :; else
5035 if test -w $cache_file; then
5036 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5037 cat confcache
>$cache_file
5039 echo "not updating unwritable cache $cache_file"
5044 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5045 # Let make expand exec_prefix.
5046 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5048 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5049 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5050 # trailing colons and then remove the whole line if VPATH becomes empty
5051 # (actually we leave an empty line to preserve line numbers).
5052 if test "x$srcdir" = x.
; then
5053 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5054 s/:*\$(srcdir):*/:/;
5055 s/:*\${srcdir}:*/:/;
5057 s/^\([^=]*=[ ]*\):*/\1/;
5063 DEFS
=-DHAVE_CONFIG_H
5065 : ${CONFIG_STATUS=./config.status}
5066 ac_clean_files_save
=$ac_clean_files
5067 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5068 { echo "$as_me:5068: creating $CONFIG_STATUS" >&5
5069 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5070 cat >$CONFIG_STATUS <<_ACEOF
5072 # Generated automatically by configure.
5073 # Run this file to recreate the current configuration.
5074 # Compiler output produced by configure, useful for debugging
5075 # configure, is in config.log if it exists.
5078 SHELL=\${CONFIG_SHELL-$SHELL}
5079 ac_cs_invocation="\$0 \$@"
5083 cat >>$CONFIG_STATUS <<\_ACEOF
5084 # Be Bourne compatible
5085 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5088 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5092 # Name of the executable.
5093 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
5095 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5101 rm -f conf$$ conf$$.exe conf$$.
file
5103 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5104 # We could just check for DJGPP; but this test a) works b) is more generic
5105 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5106 if test -f conf$$.exe
; then
5107 # Don't use ln at all; we don't have any links
5112 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5117 rm -f conf$$ conf$$.exe conf$$.
file
5119 as_executable_p
="test -f"
5121 # Support unset when possible.
5122 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
5129 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
5130 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
5131 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
5132 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
5133 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
5134 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
5135 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
5136 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
5139 # We need space, tab and new line, in precisely that order.
5145 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
5151 # Files that config.status was made for.
5152 if test -n "$ac_config_files"; then
5153 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5156 if test -n "$ac_config_headers"; then
5157 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5160 if test -n "$ac_config_links"; then
5161 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5164 if test -n "$ac_config_commands"; then
5165 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5168 cat >>$CONFIG_STATUS <<\EOF
5171 \`$as_me' instantiates files from templates according to the
5172 current configuration.
5174 Usage: $0 [OPTIONS] [FILE]...
5176 -h, --help print this help, then exit
5177 -V, --version print version number, then exit
5178 -d, --debug don't remove temporary files
5179 --recheck update $as_me by reconfiguring in the same conditions
5180 --file=FILE[:TEMPLATE]
5181 instantiate the configuration file FILE
5182 --header=FILE[:TEMPLATE]
5183 instantiate the configuration header FILE
5185 Configuration files:
5188 Configuration headers:
5191 Configuration commands:
5194 Report bugs to <bug-autoconf@gnu.org>."
5197 cat >>$CONFIG_STATUS <<EOF
5199 readline config.status 4.3
5200 configured by $0, generated by GNU Autoconf 2.52,
5201 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5203 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5204 Free Software Foundation, Inc.
5205 This config.status script is free software; the Free Software Foundation
5206 gives unlimited permission to copy, distribute and modify it."
5211 cat >>$CONFIG_STATUS <<\EOF
5212 # If no file are specified by the user, then we need to provide default
5213 # value. By we need to know if files were specified by the user.
5219 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5220 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5222 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
5226 *) # This is not an option, so the user has probably given explicit
5228 ac_need_defaults
=false
;;
5232 # Handling of the options.
5234 cat >>$CONFIG_STATUS <<EOF
5235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5236 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5237 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5239 cat >>$CONFIG_STATUS <<\EOF
5240 --version |
--vers* |
-V )
5241 echo "$ac_cs_version"; exit 0 ;;
5243 # Conflict between --help and --header
5244 { { echo "$as_me:5244: error: ambiguous option: $1
5245 Try \`$0 --help' for more information." >&5
5246 echo "$as_me: error: ambiguous option: $1
5247 Try \`$0 --help' for more information." >&2;}
5248 { (exit 1); exit 1; }; };;
5249 --help |
--hel |
-h )
5250 echo "$ac_cs_usage"; exit 0 ;;
5251 --debug |
--d* |
-d )
5253 --file |
--fil |
--fi |
--f )
5255 CONFIG_FILES
="$CONFIG_FILES $1"
5256 ac_need_defaults
=false
;;
5257 --header |
--heade |
--head |
--hea )
5259 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
5260 ac_need_defaults
=false
;;
5263 -*) { { echo "$as_me:5263: error: unrecognized option: $1
5264 Try \`$0 --help' for more information." >&5
5265 echo "$as_me: error: unrecognized option: $1
5266 Try \`$0 --help' for more information." >&2;}
5267 { (exit 1); exit 1; }; } ;;
5269 *) ac_config_targets
="$ac_config_targets $1" ;;
5278 ## ----------------------- ##
5279 ## Running config.status. ##
5280 ## ----------------------- ##
5282 This file was extended by $as_me (readline 4.3) 2.52, executed with
5283 CONFIG_FILES = $CONFIG_FILES
5284 CONFIG_HEADERS = $CONFIG_HEADERS
5285 CONFIG_LINKS = $CONFIG_LINKS
5286 CONFIG_COMMANDS = $CONFIG_COMMANDS
5288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5293 cat >>$CONFIG_STATUS <<\EOF
5294 for ac_config_target
in $ac_config_targets
5296 case "$ac_config_target" in
5297 # Handling of arguments.
5298 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5299 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
5300 "examples/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
5301 "shlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
5302 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5303 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5304 *) { { echo "$as_me:5304: error: invalid argument: $ac_config_target" >&5
5305 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5306 { (exit 1); exit 1; }; };;
5310 # If the user did not use the arguments to specify the items to instantiate,
5311 # then the envvar interface is used. Set only those that are not.
5312 # We use the long form for the default assignment because of an extremely
5313 # bizarre bug on SunOS 4.1.3.
5314 if $ac_need_defaults; then
5315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5320 # Create a temporary directory, and hook for its removal unless debugging.
5323 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5324 trap '{ (exit 1); exit 1; }' 1 2 13 15
5327 # Create a (secure) tmp directory for tmp files.
5330 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5331 test -n "$tmp" && test -d "$tmp"
5334 tmp
=$TMPDIR/cs$$
-$RANDOM
5335 (umask 077 && mkdir
$tmp)
5338 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5339 { (exit 1); exit 1; }
5344 cat >>$CONFIG_STATUS <<EOF
5347 # CONFIG_FILES section.
5350 # No need to generate the scripts if there are no CONFIG_FILES.
5351 # This happens for instance when ./config.status config.h
5352 if test -n "\$CONFIG_FILES"; then
5353 # Protect against being on the right side of a sed subst in config.status.
5354 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5355 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5356 s,@SHELL@,$SHELL,;t t
5357 s,@exec_prefix@,$exec_prefix,;t t
5358 s,@prefix@,$prefix,;t t
5359 s,@program_transform_name@,$program_transform_name,;t t
5360 s,@bindir@,$bindir,;t t
5361 s,@sbindir@,$sbindir,;t t
5362 s,@libexecdir@,$libexecdir,;t t
5363 s,@datadir@,$datadir,;t t
5364 s,@sysconfdir@,$sysconfdir,;t t
5365 s,@sharedstatedir@,$sharedstatedir,;t t
5366 s,@localstatedir@,$localstatedir,;t t
5367 s,@libdir@,$libdir,;t t
5368 s,@includedir@,$includedir,;t t
5369 s,@oldincludedir@,$oldincludedir,;t t
5370 s,@infodir@,$infodir,;t t
5371 s,@mandir@,$mandir,;t t
5372 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5373 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5374 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5375 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5376 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5377 s,@build_alias@,$build_alias,;t t
5378 s,@host_alias@,$host_alias,;t t
5379 s,@target_alias@,$target_alias,;t t
5380 s,@ECHO_C@,$ECHO_C,;t t
5381 s,@ECHO_N@,$ECHO_N,;t t
5382 s,@ECHO_T@,$ECHO_T,;t t
5383 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5386 s,@build@,$build,;t t
5387 s,@build_cpu@,$build_cpu,;t t
5388 s,@build_vendor@,$build_vendor,;t t
5389 s,@build_os@,$build_os,;t t
5391 s,@host_cpu@,$host_cpu,;t t
5392 s,@host_vendor@,$host_vendor,;t t
5393 s,@host_os@,$host_os,;t t
5394 s,@SET_MAKE@,$SET_MAKE,;t t
5396 s,@CFLAGS@,$CFLAGS,;t t
5397 s,@LDFLAGS@,$LDFLAGS,;t t
5398 s,@CPPFLAGS@,$CPPFLAGS,;t t
5399 s,@ac_ct_CC@,$ac_ct_CC,;t t
5400 s,@EXEEXT@,$EXEEXT,;t t
5401 s,@OBJEXT@,$OBJEXT,;t t
5403 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5404 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5405 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5407 s,@RANLIB@,$RANLIB,;t t
5408 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5409 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
5410 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
5411 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
5412 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
5413 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
5414 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
5415 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
5416 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
5417 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
5418 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
5419 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
5420 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
5421 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
5422 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
5423 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
5424 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
5425 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
5426 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
5427 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
5428 s,@BUILD_DIR@,$BUILD_DIR,;t t
5429 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
5430 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
5431 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
5432 s,@ARFLAGS@,$ARFLAGS,;t t
5433 s,@LIBVERSION@,$LIBVERSION,;t t
5434 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
5439 cat >>$CONFIG_STATUS <<\EOF
5440 # Split the substitutions into bite-sized pieces for seds with
5441 # small command number limits, like on Digital OSF/1 and HP-UX.
5443 ac_sed_frag
=1 # Number of current file.
5444 ac_beg
=1 # First line for current file.
5445 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5448 while $ac_more_lines; do
5449 if test $ac_beg -gt 1; then
5450 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5452 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5454 if test ! -s $tmp/subs.frag
; then
5457 # The purpose of the label and of the branching condition is to
5458 # speed up the sed processing (if there are no `@' at all, there
5459 # is no need to browse any of the substitutions).
5460 # These are the two extra sed commands mentioned above.
5462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5463 if test -z "$ac_sed_cmds"; then
5464 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5466 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5468 ac_sed_frag
=`expr $ac_sed_frag + 1`
5470 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5473 if test -z "$ac_sed_cmds"; then
5476 fi # test -n "$CONFIG_FILES"
5479 cat >>$CONFIG_STATUS <<\EOF
5480 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5483 - |
*:- |
*:-:* ) # input from stdin
5485 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5486 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5487 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5488 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5489 * ) ac_file_in
=$ac_file.
in ;;
5492 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5493 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5494 X"$ac_file" : 'X\(//\)[^/]' \| \
5495 X"$ac_file" : 'X\(//\)$' \| \
5496 X"$ac_file" : 'X\(/\)' \| \
5497 . : '\(.\)' 2>/dev/null ||
5499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5501 /^X\(\/\/\)$/{ s//\1/; q; }
5502 /^X\(\/\).*/{ s//\1/; q; }
5504 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5506 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
5510 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5511 case $as_mkdir_dir in
5512 # Skip DOS drivespec
5513 ?
:) as_incr_dir
=$as_mkdir_dir ;;
5515 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
5516 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
5521 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
5522 # A "../" for each directory in $ac_dir_suffix.
5523 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5525 ac_dir_suffix
= ac_dots
=
5530 if test -z "$ac_dots"; then
5533 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
5536 ac_srcdir
=$srcdir$ac_dir_suffix;
5537 ac_top_srcdir
=$srcdir ;;
5539 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
5540 ac_top_srcdir
=$ac_dots$srcdir ;;
5544 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5545 *) ac_INSTALL
=$ac_dots$INSTALL ;;
5548 if test x
"$ac_file" != x-
; then
5549 { echo "$as_me:5549: creating $ac_file" >&5
5550 echo "$as_me: creating $ac_file" >&6;}
5553 # Let's still pretend it is `configure' which instantiates (i.e., don't
5554 # use $as_me), people would be surprised to read:
5555 # /* config.h. Generated automatically by config.status. */
5556 configure_input
="Generated automatically from `echo $ac_file_in |
5557 sed 's,.*/,,'` by configure."
5559 # First look for the input files in the build tree, otherwise in the
5561 ac_file_inputs
=`IFS=:
5562 for f in $ac_file_in; do
5564 -) echo $tmp/stdin ;;
5566 # Absolute (can't be DOS-style, as IFS=:)
5567 test -f "$f" || { { echo "$as_me:5567: error: cannot find input file: $f" >&5
5568 echo "$as_me: error: cannot find input file: $f" >&2;}
5569 { (exit 1); exit 1; }; }
5572 if test -f "$f"; then
5575 elif test -f "$srcdir/$f"; then
5580 { { echo "$as_me:5580: error: cannot find input file: $f" >&5
5581 echo "$as_me: error: cannot find input file: $f" >&2;}
5582 { (exit 1); exit 1; }; }
5585 done` ||
{ (exit 1); exit 1; }
5587 cat >>$CONFIG_STATUS <<EOF
5591 cat >>$CONFIG_STATUS <<\EOF
5593 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5594 s
,@configure_input@
,$configure_input,;t t
5595 s
,@srcdir@
,$ac_srcdir,;t t
5596 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5597 s
,@INSTALL@
,$ac_INSTALL,;t t
5598 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5600 if test x"$ac_file" != x-; then
5601 mv $tmp/out $ac_file
5609 cat >>$CONFIG_STATUS <<\EOF
5612 # CONFIG_HEADER section.
5615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5618 # ac_d sets the value in "#define NAME VALUE" lines.
5619 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5620 ac_dB
='[ ].*$,\1#\2'
5623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5624 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5625 ac_uB
='$,\1#\2define\3'
5629 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5632 - |
*:- |
*:-:* ) # input from stdin
5634 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5635 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5636 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5637 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5638 * ) ac_file_in
=$ac_file.
in ;;
5641 test x
"$ac_file" != x-
&& { echo "$as_me:5641: creating $ac_file" >&5
5642 echo "$as_me: creating $ac_file" >&6;}
5644 # First look for the input files in the build tree, otherwise in the
5646 ac_file_inputs
=`IFS=:
5647 for f in $ac_file_in; do
5649 -) echo $tmp/stdin ;;
5651 # Absolute (can't be DOS-style, as IFS=:)
5652 test -f "$f" || { { echo "$as_me:5652: error: cannot find input file: $f" >&5
5653 echo "$as_me: error: cannot find input file: $f" >&2;}
5654 { (exit 1); exit 1; }; }
5657 if test -f "$f"; then
5660 elif test -f "$srcdir/$f"; then
5665 { { echo "$as_me:5665: error: cannot find input file: $f" >&5
5666 echo "$as_me: error: cannot find input file: $f" >&2;}
5667 { (exit 1); exit 1; }; }
5670 done` ||
{ (exit 1); exit 1; }
5671 # Remove the trailing spaces.
5672 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5677 # `conftest.undefs', that substitutes the proper values into
5678 # config.h.in to produce config.h. The first handles `#define'
5679 # templates, and the second `#undef' templates.
5680 # And first: Protect against being on the right side of a sed subst in
5681 # config.status. Protect against being in an unquoted here document
5683 rm -f conftest.defines conftest.undefs
5684 # Using a here document instead of a string reduces the quoting nightmare.
5685 # Putting comments in sed scripts is not portable.
5687 # `end' is used to avoid that the second main sed command (meant for
5688 # 0-ary CPP macros) applies to n-ary macro definitions.
5689 # See the Autoconf documentation for `clear'.
5690 cat >confdef2sed.
sed <<\EOF
5695 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5697 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5700 # If some macros were called several times there might be several times
5701 # the same #defines, which is useless. Nevertheless, we may not want to
5702 # sort them, since we want the *last* AC-DEFINE to be honored.
5703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5705 rm -f confdef2sed.sed
5707 # This sed command replaces #undef with comments. This is necessary, for
5708 # example, in the case of _POSIX_SOURCE, which is predefined and required
5709 # on some systems where configure will not decide to define it.
5710 cat >>conftest.undefs <<\EOF
5711 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5714 # Break up conftest.defines because some shells have a limit on the size
5715 # of here documents, and old seds have small limits too (100 cmds).
5716 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5717 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5718 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5719 echo ' :' >>$CONFIG_STATUS
5721 while grep . conftest.defines >/dev/null
5723 # Write a limited-size here document to $tmp/defines.sed.
5724 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5725 # Speed up: don't consider the non `#define' lines.
5726 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5727 # Work around the forget-to-reset-the-flag bug.
5728 echo 't clr' >>$CONFIG_STATUS
5729 echo ': clr' >>$CONFIG_STATUS
5730 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5732 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5736 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5737 rm -f conftest.defines
5738 mv conftest.
tail conftest.defines
5740 rm -f conftest.defines
5741 echo ' fi # egrep' >>$CONFIG_STATUS
5742 echo >>$CONFIG_STATUS
5744 # Break up conftest.undefs because some shells have a limit on the size
5745 # of here documents, and old seds have small limits too (100 cmds).
5746 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5748 while grep . conftest.undefs
>/dev
/null
5750 # Write a limited-size here document to $tmp/undefs.sed.
5751 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5752 # Speed up: don't consider the non
`#undef'
5753 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5754 # Work around the forget-to-reset-the-flag bug.
5755 echo 't clr' >>$CONFIG_STATUS
5756 echo ': clr' >>$CONFIG_STATUS
5757 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5759 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5763 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5764 rm -f conftest.undefs
5765 mv conftest.tail conftest.undefs
5767 rm -f conftest.undefs
5769 cat >>$CONFIG_STATUS <<\EOF
5770 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5771 # use $as_me), people would be surprised to read:
5772 # /* config.h. Generated automatically by config.status. */
5773 if test x
"$ac_file" = x-
; then
5774 echo "/* Generated automatically by configure. */" >$tmp/config.h
5776 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5778 cat $tmp/in >>$tmp/config.h
5780 if test x
"$ac_file" != x-
; then
5781 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
5782 { echo "$as_me:5782: $ac_file is unchanged" >&5
5783 echo "$as_me: $ac_file is unchanged" >&6;}
5785 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5786 X"$ac_file" : 'X\(//\)[^/]' \| \
5787 X"$ac_file" : 'X\(//\)$' \| \
5788 X"$ac_file" : 'X\(/\)' \| \
5789 . : '\(.\)' 2>/dev/null ||
5791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5793 /^X\(\/\/\)$/{ s//\1/; q; }
5794 /^X\(\/\).*/{ s//\1/; q; }
5796 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5798 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
5802 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5803 case $as_mkdir_dir in
5804 # Skip DOS drivespec
5805 ?
:) as_incr_dir
=$as_mkdir_dir ;;
5807 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
5808 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
5815 mv $tmp/config.h
$ac_file
5823 cat >>$CONFIG_STATUS <<\EOF
5826 # CONFIG_COMMANDS section.
5828 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5829 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5830 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5834 # Makefile uses this timestamp file to record whether config.h is up to date.
5841 cat >>$CONFIG_STATUS <<\EOF
5843 { (exit 0); exit 0; }
5845 chmod +x
$CONFIG_STATUS
5846 ac_clean_files
=$ac_clean_files_save
5848 # configure is writing to config.log, and then calls config.status.
5849 # config.status does its own redirection, appending to config.log.
5850 # Unfortunately, on DOS this fails, as config.log is still kept open
5851 # by configure, so config.status won't be able to write to it; its
5852 # output is simply discarded. So we exec the FD to /dev/null,
5853 # effectively closing config.log, so it can be properly (re)opened and
5854 # appended to by config.status. When coming back to configure, we
5855 # need to make the FD available again.
5856 if test "$no_create" != yes; then
5859 $SHELL $CONFIG_STATUS || ac_cs_success
=false
5861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5862 # would make configure fail if this is the last instruction.
5863 $ac_cs_success ||
{ (exit 1); exit 1; }