2 # From configure.in for Readline 5.1, version 2.59.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for readline 5.1-release.
6 # Report bugs to <bug-readline@gnu.org>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='readline'
272 PACKAGE_TARNAME
='readline'
273 PACKAGE_VERSION
='5.1-release'
274 PACKAGE_STRING
='readline 5.1-release'
275 PACKAGE_BUGREPORT
='bug-readline@gnu.org'
277 ac_unique_file
="readline.h"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CROSS_COMPILE SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_DOT SHLIB_LIBPREF SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_DLLVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET PURIFY BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures readline 5.1-release to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure
for building on BUILD
[guessed
]
839 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of readline 5.1-release:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-multibyte enable multibyte characters
if OS supports them
853 --enable-static build static libraries
[default
=YES
]
856 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
857 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
858 --with-curses use the curses library instead of the termcap
860 --with-purify configure to postprocess with purify
862 Some influential environment variables
:
863 CC C compiler
command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
866 nonstandard directory
<lib dir
>
867 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
868 headers
in a nonstandard directory
<include dir
>
871 Use these variables to override the choices made by
`configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 Report bugs to <bug-readline@gnu.org>.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo
&& pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .) ac_abs_builddir="$ac_dir";;
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
970 readline configure 5.1-release
971 generated by GNU Autoconf 2.59
973 Copyright (C) 2003 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by readline $as_me 5.1-release, which was
985 generated by GNU Autoconf 2.59. Invocation command line was
996 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
997 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
998 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
999 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1000 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1003 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1005 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1006 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1007 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1008 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1009 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1010 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1011 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_must_keep_next=false
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 -* ) ac_must_keep_next=true ;;
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close
' the trap.
1091 trap 'exit_status
=$?
1092 # Save into config.log some information that might help in debugging.
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1102 # The following way of writing the cache mishandles newlines in values,
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1125 for ac_var
in $ac_subst_vars
1127 eval ac_val
=$
`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -n "$ac_subst_files"; then
1139 for ac_var
in $ac_subst_files
1141 eval ac_val
=$
`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -s confdefs.h
; then
1154 sed "/^$/d" confdefs.h |
sort
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1161 rm -f core
*.core
&&
1162 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's
/^
/|
/' "$ac_site_file" >&5
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1237 # Check that the precious variables saved in the cache have kept the same
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1250 ac_cache_corrupted=: ;;
1252 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1259 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1284 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1291 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 ac_config_headers="$ac_config_headers config.h"
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1381 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1383 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1403 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1405 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1413 # Check whether --with-curses or --without-curses was given.
1414 if test "${with_curses+set}" = set; then
1415 withval="$with_curses"
1419 # Check whether --with-purify or --without-purify was given.
1420 if test "${with_purify+set}" = set; then
1421 withval="$with_purify"
1425 if test "$opt_curses" = "yes"; then
1429 if test "$opt_purify" = yes; then
1439 # Check whether --enable-multibyte or --disable-multibyte was given.
1440 if test "${enable_multibyte+set}" = set; then
1441 enableval="$enable_multibyte"
1442 opt_multibyte=$enableval
1444 # Check whether --enable-static or --disable-static was given.
1445 if test "${enable_static+set}" = set; then
1446 enableval="$enable_static"
1447 opt_static_libs=$enableval
1450 if test $opt_multibyte = no; then
1451 cat >>confdefs.h <<\_ACEOF
1452 #define NO_MULTIBYTE_SUPPORT 1
1459 if test "x$cross_compiling" = "xyes"; then
1462 cross_cache=${srcdir}/cross-build/cygwin.cache
1465 cross_cache=${srcdir}/cross-build/mingw.cache
1468 cross_cache=${srcdir}/cross-build/x86-beos.cache
1470 *) echo "configure: cross-compiling for $host is not supported" >&2
1473 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
1474 echo "loading cross-build cache file ${cross_cache}"
1478 CROSS_COMPILE='-DCROSS_COMPILING'
1483 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1486 # We want these before the checks, so the checks can modify their values.
1487 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1489 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1490 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1491 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y
,:.
/+-,___p_
,'`
1492 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 cat >conftest.make <<\_ACEOF
1497 @echo 'ac_maketemp
="$(MAKE)"'
1499 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1500 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1501 if test -n "$ac_maketemp"; then
1502 eval ac_cv_prog_make_${ac_make}_set=yes
1504 eval ac_cv_prog_make_${ac_make}_set=no
1508 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1509 echo "$as_me:$LINENO: result: yes" >&5
1510 echo "${ECHO_T}yes" >&6
1513 echo "$as_me:$LINENO: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1515 SET_MAKE="MAKE=${MAKE-make}"
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1521 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details.
" >&5
1829 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1830 See \
`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X
$ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1853 cat >conftest.$ac_ext <<_ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877 (eval $ac_link_default) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # Find the output, starting from the most likely. This scheme is
1882 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896 # This is the source file.
1899 # We found the default executable, but exeext='' is most
1903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904 # FIXME: I believe we export ac_cv_exeext for Libtool,
1905 # but it would be cool to find out if it's true. Does anybody
1906 # maintain Libtool? --akim.
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log
' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details.
" >&2;}
1921 { (exit 77); exit 77; }; }
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result
: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1928 # Check the compiler produces executables we can run. If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1931 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935 if { ac_try='./$ac_file'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 if test "$cross_compiling" = maybe; then
1946 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1947 If you meant to cross compile
, use \
`--host'.
1948 See \`config.log
' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \
`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971 (eval $ac_link) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1976 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 for ac_file
in conftest.exe conftest conftest.
*; do
1980 test -f "$ac_file" ||
continue
1982 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1983 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest
$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2001 rm -f conftest.
$ac_ext
2002 EXEEXT
=$ac_cv_exeext
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.
$ac_ext <<_ACEOF
2012 cat confdefs.h
>>conftest.
$ac_ext
2013 cat >>conftest.
$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2033 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.
$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2048 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT
=$ac_cv_objext
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.
$ac_ext <<_ACEOF
2062 cat confdefs.h
>>conftest.
$ac_ext
2063 cat >>conftest.
$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2077 rm -f conftest.
$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2081 grep -v '^ *+' conftest.er1
>conftest.err
2083 cat conftest.err
>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try
='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.
$ac_ext >&5
2105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2106 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS
=${CFLAGS+set}
2113 ac_save_CFLAGS
=$CFLAGS
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.
$ac_ext <<_ACEOF
2123 cat confdefs.h
>>conftest.
$ac_ext
2124 cat >>conftest.
$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.
$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2139 grep -v '^ *+' conftest.er1
>conftest.err
2141 cat conftest.err
>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try
='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.
$ac_ext >&5
2163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168 CFLAGS
=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170 if test "$GCC" = yes; then
2176 if test "$GCC" = yes; then
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 ac_cv_prog_cc_stdc
=no
2189 cat >conftest.
$ac_ext <<_ACEOF
2192 cat confdefs.h
>>conftest.
$ac_ext
2193 cat >>conftest.
$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2213 s = g (p, va_arg (v,int));
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2219 function prototypes and stuff, but not '\xHH' hex character constants.
2220 These don't provoke an error unfortunately, instead are silently treated
2221 as 'x'. The following induces an error, until -std1 is added to get
2222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2223 array size at least. It's necessary to write '\x00'==0 to get something
2224 that's true only with -std1. */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX -qlanglvl=ansi
2244 # Ultrix and OSF/1 -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions -Aa -D_HPUX_SOURCE
2247 # SVR4 -Xc -D__EXTENSIONS__
2248 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 CC
="$ac_save_CC $ac_arg"
2251 rm -f conftest.
$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1
>conftest.err
2257 cat conftest.err
>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try
='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc
=$ac_arg
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.
$ac_ext >&5
2279 rm -f conftest.err conftest.
$ac_objext
2281 rm -f conftest.
$ac_ext conftest.
$ac_objext
2286 case "x$ac_cv_prog_cc_stdc" in
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.
$ac_ext <<_ACEOF
2305 rm -f conftest.
$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1
>conftest.err
2311 cat conftest.err
>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try
='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 for ac_declaration
in \
2328 'extern "C" void std::exit (int) throw (); using std::exit;' \
2329 'extern "C" void std::exit (int); using std::exit;' \
2330 'extern "C" void exit (int) throw ();' \
2331 'extern "C" void exit (int);' \
2334 cat >conftest.
$ac_ext <<_ACEOF
2337 cat confdefs.h
>>conftest.
$ac_ext
2338 cat >>conftest.
$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2350 rm -f conftest.
$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1
>conftest.err
2356 cat conftest.err
>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try
='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.
$ac_ext >&5
2378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2379 cat >conftest.
$ac_ext <<_ACEOF
2382 cat confdefs.h
>>conftest.
$ac_ext
2383 cat >>conftest.
$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 rm -f conftest.
$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1
>conftest.err
2400 cat conftest.err
>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try
='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.
$ac_ext >&5
2421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2424 if test -n "$ac_declaration"; then
2425 echo '#ifdef __cplusplus' >>confdefs.h
2426 echo $ac_declaration >>confdefs.h
2427 echo '#endif' >>confdefs.h
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.
$ac_ext >&5
2435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2437 ac_cpp
='$CPP $CPPFLAGS'
2438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2444 ac_cpp
='$CPP $CPPFLAGS'
2445 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2448 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2450 # On Suns, sometimes $CPP names a directory.
2451 if test -n "$CPP" && test -d "$CPP"; then
2454 if test -z "$CPP"; then
2455 if test "${ac_cv_prog_CPP+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 # Double quotes because CPP needs to be expanded
2459 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2462 for ac_c_preproc_warn_flag
in '' yes
2464 # Use a header file that comes with gcc, so configuring glibc
2465 # with a fresh cross-compiler works.
2466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 # <limits.h> exists even on freestanding compilers.
2468 # On the NeXT, cc -E runs the code through the compiler's parser,
2469 # not just through cpp. "Syntax error" is here to catch this case.
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2477 # include <limits.h>
2479 # include <assert.h>
2483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2486 grep -v '^ *+' conftest.er1
>conftest.err
2488 cat conftest.err
>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } >/dev
/null
; then
2491 if test -s conftest.err
; then
2492 ac_cpp_err
=$ac_c_preproc_warn_flag
2493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2500 if test -z "$ac_cpp_err"; then
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.
$ac_ext >&5
2506 # Broken: fails on valid input.
2509 rm -f conftest.err conftest.
$ac_ext
2511 # OK, works on sane cases. Now check whether non-existent headers
2512 # can be detected and how.
2513 cat >conftest.
$ac_ext <<_ACEOF
2516 cat confdefs.h
>>conftest.
$ac_ext
2517 cat >>conftest.
$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #include <ac_nonexistent.h>
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1
>conftest.err
2526 cat conftest.err
>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } >/dev
/null
; then
2529 if test -s conftest.err
; then
2530 ac_cpp_err
=$ac_c_preproc_warn_flag
2531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2538 if test -z "$ac_cpp_err"; then
2539 # Broken: success on invalid input.
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.
$ac_ext >&5
2545 # Passes both tests.
2549 rm -f conftest.err conftest.
$ac_ext
2552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2553 rm -f conftest.err conftest.
$ac_ext
2554 if $ac_preproc_ok; then
2566 echo "$as_me:$LINENO: result: $CPP" >&5
2567 echo "${ECHO_T}$CPP" >&6
2569 for ac_c_preproc_warn_flag
in '' yes
2571 # Use a header file that comes with gcc, so configuring glibc
2572 # with a fresh cross-compiler works.
2573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2574 # <limits.h> exists even on freestanding compilers.
2575 # On the NeXT, cc -E runs the code through the compiler's parser,
2576 # not just through cpp. "Syntax error" is here to catch this case.
2577 cat >conftest.
$ac_ext <<_ACEOF
2580 cat confdefs.h
>>conftest.
$ac_ext
2581 cat >>conftest.
$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2584 # include <limits.h>
2586 # include <assert.h>
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1
>conftest.err
2595 cat conftest.err
>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } >/dev
/null
; then
2598 if test -s conftest.err
; then
2599 ac_cpp_err
=$ac_c_preproc_warn_flag
2600 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2607 if test -z "$ac_cpp_err"; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.
$ac_ext >&5
2613 # Broken: fails on valid input.
2616 rm -f conftest.err conftest.
$ac_ext
2618 # OK, works on sane cases. Now check whether non-existent headers
2619 # can be detected and how.
2620 cat >conftest.
$ac_ext <<_ACEOF
2623 cat confdefs.h
>>conftest.
$ac_ext
2624 cat >>conftest.
$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 #include <ac_nonexistent.h>
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2631 grep -v '^ *+' conftest.er1
>conftest.err
2633 cat conftest.err
>&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } >/dev
/null
; then
2636 if test -s conftest.err
; then
2637 ac_cpp_err
=$ac_c_preproc_warn_flag
2638 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2645 if test -z "$ac_cpp_err"; then
2646 # Broken: success on invalid input.
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.
$ac_ext >&5
2652 # Passes both tests.
2656 rm -f conftest.err conftest.
$ac_ext
2659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2660 rm -f conftest.err conftest.
$ac_ext
2661 if $ac_preproc_ok; then
2664 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2672 ac_cpp
='$CPP $CPPFLAGS'
2673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2684 then ac_cv_prog_egrep
='grep -E'
2685 else ac_cv_prog_egrep
='egrep'
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690 EGREP
=$ac_cv_prog_egrep
2693 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2695 if test "${ac_cv_header_stdc+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 cat >conftest.
$ac_ext <<_ACEOF
2701 cat confdefs.h
>>conftest.
$ac_ext
2702 cat >>conftest.
$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2717 rm -f conftest.
$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1
>conftest.err
2723 cat conftest.err
>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try
='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_header_stdc
=yes
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2743 ac_cv_header_stdc
=no
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 if test $ac_cv_header_stdc = yes; then
2748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2749 cat >conftest.
$ac_ext <<_ACEOF
2752 cat confdefs.h
>>conftest.
$ac_ext
2753 cat >>conftest.
$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 $EGREP "memchr" >/dev
/null
2>&1; then
2762 ac_cv_header_stdc
=no
2768 if test $ac_cv_header_stdc = yes; then
2769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2770 cat >conftest.
$ac_ext <<_ACEOF
2773 cat confdefs.h
>>conftest.
$ac_ext
2774 cat >>conftest.
$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2780 $EGREP "free" >/dev
/null
2>&1; then
2783 ac_cv_header_stdc
=no
2789 if test $ac_cv_header_stdc = yes; then
2790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2791 if test "$cross_compiling" = yes; then
2794 cat >conftest.
$ac_ext <<_ACEOF
2797 cat confdefs.h
>>conftest.
$ac_ext
2798 cat >>conftest.
$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2801 #if ((' ' & 0x0FF) == 0x020)
2802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2805 # define ISLOWER(c) \
2806 (('a' <= (c) && (c) <= 'i') \
2807 || ('j' <= (c) && (c) <= 'r') \
2808 || ('s' <= (c) && (c) <= 'z'))
2809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2817 for (i = 0; i < 256; i++)
2818 if (XOR (islower (i), ISLOWER (i))
2819 || toupper (i) != TOUPPER (i))
2824 rm -f conftest
$ac_exeext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2826 (eval $ac_link) 2>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2837 echo "$as_me: program exited with status $ac_status" >&5
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.
$ac_ext >&5
2842 ac_cv_header_stdc
=no
2844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2848 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2849 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2850 if test $ac_cv_header_stdc = yes; then
2852 cat >>confdefs.h
<<\_ACEOF
2853 #define STDC_HEADERS 1
2858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2868 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2869 inttypes.h stdint.h unistd.h
2871 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2872 echo "$as_me:$LINENO: checking for $ac_header" >&5
2873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 cat >conftest.
$ac_ext <<_ACEOF
2880 cat confdefs.h
>>conftest.
$ac_ext
2881 cat >>conftest.
$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 $ac_includes_default
2885 #include <$ac_header>
2887 rm -f conftest.
$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2891 grep -v '^ *+' conftest.er1
>conftest.err
2893 cat conftest.err
>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try
='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 eval "$as_ac_Header=yes"
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.
$ac_ext >&5
2913 eval "$as_ac_Header=no"
2915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2920 cat >>confdefs.h
<<_ACEOF
2921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2929 if test "${ac_cv_header_minix_config_h+set}" = set; then
2930 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2931 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2932 if test "${ac_cv_header_minix_config_h+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2936 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2938 # Is the header compilable?
2939 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2940 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2941 cat >conftest.
$ac_ext <<_ACEOF
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 $ac_includes_default
2948 #include <minix/config.h>
2950 rm -f conftest.
$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952 (eval $ac_compile) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1
>conftest.err
2956 cat conftest.err
>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try
='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_header_compiler
=yes
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 ac_header_compiler
=no
2978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2980 echo "${ECHO_T}$ac_header_compiler" >&6
2982 # Is the header present?
2983 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2984 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2985 cat >conftest.
$ac_ext <<_ACEOF
2988 cat confdefs.h
>>conftest.
$ac_ext
2989 cat >>conftest.
$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <minix/config.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1
>conftest.err
2998 cat conftest.err
>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev
/null
; then
3001 if test -s conftest.err
; then
3002 ac_cpp_err
=$ac_c_preproc_warn_flag
3003 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3010 if test -z "$ac_cpp_err"; then
3011 ac_header_preproc
=yes
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.
$ac_ext >&5
3016 ac_header_preproc
=no
3018 rm -f conftest.err conftest.
$ac_ext
3019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3020 echo "${ECHO_T}$ac_header_preproc" >&6
3022 # So? What about this header?
3023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3025 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3026 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3027 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3028 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3029 ac_header_preproc
=yes
3032 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3033 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3034 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3035 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3036 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3037 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3038 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3039 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3040 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3041 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3042 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3043 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3046 ## ----------------------------------- ##
3047 ## Report this to bug-readline@gnu.org ##
3048 ## ----------------------------------- ##
3051 sed "s/^/$as_me: WARNING: /" >&2
3054 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3055 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3056 if test "${ac_cv_header_minix_config_h+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 ac_cv_header_minix_config_h
=$ac_header_preproc
3061 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3062 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3065 if test $ac_cv_header_minix_config_h = yes; then
3072 if test "$MINIX" = yes; then
3074 cat >>confdefs.h
<<\_ACEOF
3075 #define _POSIX_SOURCE 1
3079 cat >>confdefs.h
<<\_ACEOF
3080 #define _POSIX_1_SOURCE 2
3084 cat >>confdefs.h
<<\_ACEOF
3092 if test "x$cross_compiling" = "xyes"; then
3095 cross_cache
=${srcdir}/cross-build
/cygwin.cache
3096 LOCAL_CFLAGS
="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
3099 cross_cache
=${srcdir}/cross-build
/mingw.cache
3101 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
3105 if test "x$cross_cache" != "x"; then
3106 if test -r "${cross_cache}"; then
3107 echo "loading cross-build cache file ${cross_cache}"
3114 if test -z "$CC_FOR_BUILD"; then
3115 if test "x$cross_compiling" = "xno"; then
3116 CC_FOR_BUILD
='$(CC)'
3124 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3125 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
3127 if test $ac_cv_c_compiler_gnu = yes; then
3128 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3129 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3130 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 ac_pattern
="Autoconf.*'x'"
3134 cat >conftest.
$ac_ext <<_ACEOF
3137 cat confdefs.h
>>conftest.
$ac_ext
3138 cat >>conftest.
$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3144 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3145 ac_cv_prog_gcc_traditional
=yes
3147 ac_cv_prog_gcc_traditional
=no
3152 if test $ac_cv_prog_gcc_traditional = no
; then
3153 cat >conftest.
$ac_ext <<_ACEOF
3156 cat confdefs.h
>>conftest.
$ac_ext
3157 cat >>conftest.
$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3164 ac_cv_prog_gcc_traditional
=yes
3170 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3171 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3172 if test $ac_cv_prog_gcc_traditional = yes; then
3173 CC
="$CC -traditional"
3177 # Find a good install program. We prefer a C program (faster),
3178 # so one script is as good as another. But avoid the broken or
3179 # incompatible versions:
3180 # SysV /etc/install, /usr/sbin/install
3181 # SunOS /usr/etc/install
3182 # IRIX /sbin/install
3184 # AmigaOS /C/install, which installs bootblocks on floppy discs
3185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3188 # OS/2's system install, which has a completely different semantic
3189 # ./install, which can be erroneously created by make from ./install.sh.
3190 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3191 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3192 if test -z "$INSTALL"; then
3193 if test "${ac_cv_path_install+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 # Account for people who put trailing slashes in PATH elements.
3203 .
/ | .
// |
/cC
/* | \
3204 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3205 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3208 # OSF1 and SCO ODT 3.0 have their own names for install.
3209 # Don't use installbsd from OSF since it installs stuff as root
3211 for ac_prog
in ginstall scoinst
install; do
3212 for ac_exec_ext
in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3214 if test $ac_prog = install &&
3215 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3216 # AIX install. It has an incompatible calling convention.
3218 elif test $ac_prog = install &&
3219 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3220 # program-specific install script used by HP pwplus--don't use.
3223 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3235 if test "${ac_cv_path_install+set}" = set; then
3236 INSTALL
=$ac_cv_path_install
3238 # As a last resort, use the slow shell script. We don't cache a
3239 # path for INSTALL within a source directory, because that will
3240 # break other packages using the cache if that directory is
3241 # removed, or if the path is relative.
3242 INSTALL
=$ac_install_sh
3245 echo "$as_me:$LINENO: result: $INSTALL" >&5
3246 echo "${ECHO_T}$INSTALL" >&6
3248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3249 # It thinks the first close brace ends the variable substitution.
3250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3254 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3256 # Extract the first word of "ar", so it can be a program name with args.
3257 set dummy
ar; ac_word
=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_AR+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 if test -n "$AR"; then
3264 ac_cv_prog_AR
="$AR" # Let the user override the test.
3266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir
=.
3271 for ac_exec_ext
in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3284 if test -n "$AR"; then
3285 echo "$as_me:$LINENO: result: $AR" >&5
3286 echo "${ECHO_T}$AR" >&6
3288 echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3292 test -n "$ARFLAGS" || ARFLAGS
="cr"
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3295 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_prog_RANLIB+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 if test -n "$RANLIB"; then
3302 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 RANLIB
=$ac_cv_prog_RANLIB
3321 if test -n "$RANLIB"; then
3322 echo "$as_me:$LINENO: result: $RANLIB" >&5
3323 echo "${ECHO_T}$RANLIB" >&6
3325 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3330 if test -z "$ac_cv_prog_RANLIB"; then
3331 ac_ct_RANLIB
=$RANLIB
3332 # Extract the first word of "ranlib", so it can be a program name with args.
3333 set dummy ranlib
; ac_word
=$2
3334 echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 if test -n "$ac_ct_RANLIB"; then
3340 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir
=.
3347 for ac_exec_ext
in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3359 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3360 if test -n "$ac_ct_RANLIB"; then
3361 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3362 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3364 echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3368 RANLIB
=$ac_ct_RANLIB
3370 RANLIB
="$ac_cv_prog_RANLIB"
3377 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3378 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3379 if test "${ac_cv_c_const+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 cat >conftest.
$ac_ext <<_ACEOF
3385 cat confdefs.h
>>conftest.
$ac_ext
3386 cat >>conftest.
$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3392 /* FIXME: Include the comments suggested by Paul. */
3394 /* Ultrix mips cc rejects this. */
3395 typedef int charset[2];
3397 /* SunOS 4.1.1 cc rejects this. */
3398 char const *const *ccp;
3400 /* NEC SVR4.0.2 mips cc rejects this. */
3401 struct point {int x, y;};
3402 static struct point const zero = {0,0};
3403 /* AIX XL C 1.02.0.0 rejects this.
3404 It does not let you subtract one const X* pointer from another in
3405 an arm of an if-expression whose if-part is not a constant
3407 const char *g = "string";
3408 ccp = &g + (g ? g-g : 0);
3409 /* HPUX 7.0 cc rejects these. */
3412 ccp = (char const *const *) p;
3413 { /* SCO 3.2v4 cc rejects this. */
3415 char const *s = 0 ? (char *) 0 : (char const *) 0;
3419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3421 const int *foo = &x[0];
3424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3425 typedef const int *iptr;
3429 { /* AIX XL C 1.02.0.0 rejects this saying
3430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3431 struct s { int j; const int *ap[3]; };
3432 struct s *b; b->j = 5;
3434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3443 rm -f conftest.
$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1
>conftest.err
3449 cat conftest.err
>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try
='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.
$ac_ext >&5
3471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3474 echo "${ECHO_T}$ac_cv_c_const" >&6
3475 if test $ac_cv_c_const = no
; then
3477 cat >>confdefs.h
<<\_ACEOF
3483 echo "$as_me:$LINENO: checking for function prototypes" >&5
3484 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3485 if test "$ac_cv_prog_cc_stdc" != no
; then
3486 echo "$as_me:$LINENO: result: yes" >&5
3487 echo "${ECHO_T}yes" >&6
3489 cat >>confdefs.h
<<\_ACEOF
3490 #define PROTOTYPES 1
3494 cat >>confdefs.h
<<\_ACEOF
3495 #define __PROTOTYPES 1
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3504 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3505 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3506 if test "${ac_cv_c_char_unsigned+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 cat >conftest.
$ac_ext <<_ACEOF
3512 cat confdefs.h
>>conftest.
$ac_ext
3513 cat >>conftest.
$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_includes_default
3519 static int test_array [1 - 2 * !(((char) -1) < 0)];
3526 rm -f conftest.
$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try
='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_c_char_unsigned
=no
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.
$ac_ext >&5
3552 ac_cv_c_char_unsigned
=yes
3554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3556 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3557 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3558 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3559 cat >>confdefs.h
<<\_ACEOF
3560 #define __CHAR_UNSIGNED__ 1
3566 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3567 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3568 if test "${ac_cv_type_signal+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.
$ac_ext <<_ACEOF
3574 cat confdefs.h
>>conftest.
$ac_ext
3575 cat >>conftest.
$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <sys/types.h>
3583 extern "C" void (*signal (int, void (*)(int)))(int);
3585 void (*signal ()) ();
3596 rm -f conftest.
$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1
>conftest.err
3602 cat conftest.err
>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try
='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_type_signal
=void
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.
$ac_ext >&5
3622 ac_cv_type_signal
=int
3624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3627 echo "${ECHO_T}$ac_cv_type_signal" >&6
3629 cat >>confdefs.h
<<_ACEOF
3630 #define RETSIGTYPE $ac_cv_type_signal
3635 echo "$as_me:$LINENO: checking for size_t" >&5
3636 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3637 if test "${ac_cv_type_size_t+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 cat >conftest.
$ac_ext <<_ACEOF
3643 cat confdefs.h
>>conftest.
$ac_ext
3644 cat >>conftest.
$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 $ac_includes_default
3652 if (sizeof (size_t))
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try
='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_type_size_t
=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3684 ac_cv_type_size_t
=no
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3689 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3690 if test $ac_cv_type_size_t = yes; then
3694 cat >>confdefs.h
<<_ACEOF
3695 #define size_t unsigned
3700 echo "$as_me:$LINENO: checking for ssize_t" >&5
3701 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3702 if test "${ac_cv_type_ssize_t+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 cat >conftest.
$ac_ext <<_ACEOF
3708 cat confdefs.h
>>conftest.
$ac_ext
3709 cat >>conftest.
$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 $ac_includes_default
3717 if (sizeof (ssize_t))
3723 rm -f conftest.
$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>conftest.er1
3727 grep -v '^ *+' conftest.er1
>conftest.err
3729 cat conftest.err
>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try
='test -s conftest.$ac_objext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_type_ssize_t
=yes
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.
$ac_ext >&5
3749 ac_cv_type_ssize_t
=no
3751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3753 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3754 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3755 if test $ac_cv_type_ssize_t = yes; then
3759 cat >>confdefs.h
<<_ACEOF
3766 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3767 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3768 if test "${ac_cv_header_stdc+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 cat >conftest.
$ac_ext <<_ACEOF
3774 cat confdefs.h
>>conftest.
$ac_ext
3775 cat >>conftest.
$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3790 rm -f conftest.
$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1
>conftest.err
3796 cat conftest.err
>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try
='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_header_stdc
=yes
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.
$ac_ext >&5
3816 ac_cv_header_stdc
=no
3818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3820 if test $ac_cv_header_stdc = yes; then
3821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "memchr" >/dev
/null
2>&1; then
3835 ac_cv_header_stdc
=no
3841 if test $ac_cv_header_stdc = yes; then
3842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "free" >/dev
/null
2>&1; then
3856 ac_cv_header_stdc
=no
3862 if test $ac_cv_header_stdc = yes; then
3863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3864 if test "$cross_compiling" = yes; then
3867 cat >conftest.
$ac_ext <<_ACEOF
3870 cat confdefs.h
>>conftest.
$ac_ext
3871 cat >>conftest.
$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3874 #if ((' ' & 0x0FF) == 0x020)
3875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3878 # define ISLOWER(c) \
3879 (('a' <= (c) && (c) <= 'i') \
3880 || ('j' <= (c) && (c) <= 'r') \
3881 || ('s' <= (c) && (c) <= 'z'))
3882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3890 for (i = 0; i < 256; i++)
3891 if (XOR (islower (i), ISLOWER (i))
3892 || toupper (i) != TOUPPER (i))
3897 rm -f conftest
$ac_exeext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3899 (eval $ac_link) 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3910 echo "$as_me: program exited with status $ac_status" >&5
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.
$ac_ext >&5
3915 ac_cv_header_stdc
=no
3917 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3921 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3922 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3923 if test $ac_cv_header_stdc = yes; then
3925 cat >>confdefs.h
<<\_ACEOF
3926 #define STDC_HEADERS 1
3932 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3933 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3934 if test "${ac_cv_header_stat_broken+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 cat >conftest.
$ac_ext <<_ACEOF
3940 cat confdefs.h
>>conftest.
$ac_ext
3941 cat >>conftest.
$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3946 #if defined(S_ISBLK) && defined(S_IFDIR)
3947 # if S_ISBLK (S_IFDIR)
3952 #if defined(S_ISBLK) && defined(S_IFCHR)
3953 # if S_ISBLK (S_IFCHR)
3958 #if defined(S_ISLNK) && defined(S_IFREG)
3959 # if S_ISLNK (S_IFREG)
3964 #if defined(S_ISSOCK) && defined(S_IFREG)
3965 # if S_ISSOCK (S_IFREG)
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 $EGREP "You lose" >/dev
/null
2>&1; then
3973 ac_cv_header_stat_broken
=yes
3975 ac_cv_header_stat_broken
=no
3980 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3981 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3982 if test $ac_cv_header_stat_broken = yes; then
3984 cat >>confdefs.h
<<\_ACEOF
3985 #define STAT_MACROS_BROKEN 1
3996 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
3997 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3998 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 cat >conftest.
$ac_ext <<_ACEOF
4006 cat confdefs.h
>>conftest.
$ac_ext
4007 cat >>conftest.
$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <sys/types.h>
4021 rm -f conftest.
$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1
>conftest.err
4027 cat conftest.err
>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try
='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 eval "$as_ac_Header=yes"
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.
$ac_ext >&5
4047 eval "$as_ac_Header=no"
4049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4054 cat >>confdefs.h
<<_ACEOF
4055 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4058 ac_header_dirent
=$ac_hdr; break
4062 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4063 if test $ac_header_dirent = dirent.h
; then
4064 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4065 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4066 if test "${ac_cv_search_opendir+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_func_search_save_LIBS
=$LIBS
4070 ac_cv_search_opendir
=no
4071 cat >conftest.
$ac_ext <<_ACEOF
4074 cat confdefs.h
>>conftest.
$ac_ext
4075 cat >>conftest.
$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4078 /* Override any gcc2 internal prototype to avoid an error. */
4082 /* We use char because int might match the return type of a gcc2
4083 builtin and then its argument prototype would still apply. */
4093 rm -f conftest.
$ac_objext conftest
$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>conftest.er1
4097 grep -v '^ *+' conftest.er1
>conftest.err
4099 cat conftest.err
>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try
='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_cv_search_opendir
="none required"
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.
$ac_ext >&5
4120 rm -f conftest.err conftest.
$ac_objext \
4121 conftest
$ac_exeext conftest.
$ac_ext
4122 if test "$ac_cv_search_opendir" = no
; then
4123 for ac_lib
in dir
; do
4124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4125 cat >conftest.
$ac_ext <<_ACEOF
4128 cat confdefs.h
>>conftest.
$ac_ext
4129 cat >>conftest.
$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4132 /* Override any gcc2 internal prototype to avoid an error. */
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4147 rm -f conftest.
$ac_objext conftest
$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4151 grep -v '^ *+' conftest.er1
>conftest.err
4153 cat conftest.err
>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try
='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_search_opendir
="-l$ac_lib"
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.
$ac_ext >&5
4175 rm -f conftest.err conftest.
$ac_objext \
4176 conftest
$ac_exeext conftest.
$ac_ext
4179 LIBS
=$ac_func_search_save_LIBS
4181 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4182 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4183 if test "$ac_cv_search_opendir" != no
; then
4184 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4189 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4190 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4191 if test "${ac_cv_search_opendir+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 ac_func_search_save_LIBS
=$LIBS
4195 ac_cv_search_opendir
=no
4196 cat >conftest.
$ac_ext <<_ACEOF
4199 cat confdefs.h
>>conftest.
$ac_ext
4200 cat >>conftest.
$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4203 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4218 rm -f conftest.
$ac_objext conftest
$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1
>conftest.err
4224 cat conftest.err
>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try
='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_search_opendir
="none required"
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.
$ac_ext >&5
4245 rm -f conftest.err conftest.
$ac_objext \
4246 conftest
$ac_exeext conftest.
$ac_ext
4247 if test "$ac_cv_search_opendir" = no
; then
4249 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4250 cat >conftest.
$ac_ext <<_ACEOF
4253 cat confdefs.h
>>conftest.
$ac_ext
4254 cat >>conftest.
$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4272 rm -f conftest.
$ac_objext conftest
$ac_exeext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4274 (eval $ac_link) 2>conftest.er1
4276 grep -v '^ *+' conftest.er1
>conftest.err
4278 cat conftest.err
>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try
='test -s conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_search_opendir
="-l$ac_lib"
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.
$ac_ext >&5
4300 rm -f conftest.err conftest.
$ac_objext \
4301 conftest
$ac_exeext conftest.
$ac_ext
4304 LIBS
=$ac_func_search_save_LIBS
4306 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4307 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4308 if test "$ac_cv_search_opendir" != no
; then
4309 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4319 for ac_func
in fcntl
kill lstat
4321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4322 echo "$as_me:$LINENO: checking for $ac_func" >&5
4323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_var+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4335 #define $ac_func innocuous_$ac_func
4337 /* System header to define __stub macros and hopefully few prototypes,
4338 which can conflict with char $ac_func (); below.
4339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 <limits.h> exists even on freestanding compilers. */
4343 # include <limits.h>
4345 # include <assert.h>
4350 /* Override any gcc2 internal prototype to avoid an error. */
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4358 /* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
4361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4364 char (*f) () = $ac_func;
4373 return f != $ac_func;
4378 rm -f conftest.
$ac_objext conftest
$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1
>conftest.err
4384 cat conftest.err
>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try
='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 eval "$as_ac_var=yes"
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.
$ac_ext >&5
4404 eval "$as_ac_var=no"
4406 rm -f conftest.err conftest.
$ac_objext \
4407 conftest
$ac_exeext conftest.
$ac_ext
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4411 if test `eval echo '${'$as_ac_var'}'` = yes; then
4412 cat >>confdefs.h
<<_ACEOF
4413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4428 for ac_func
in memmove putenv
select setenv setlocale \
4429 strcasecmp strpbrk tcgetattr vsnprintf
4431 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4432 echo "$as_me:$LINENO: checking for $ac_func" >&5
4433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4434 if eval "test \"\${$as_ac_var+set}\" = set"; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 cat >conftest.
$ac_ext <<_ACEOF
4440 cat confdefs.h
>>conftest.
$ac_ext
4441 cat >>conftest.
$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4445 #define $ac_func innocuous_$ac_func
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func (); below.
4449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4450 <limits.h> exists even on freestanding compilers. */
4453 # include <limits.h>
4455 # include <assert.h>
4460 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4468 /* The GNU C library defines this for functions which it implements
4469 to always fail with ENOSYS. Some functions are actually named
4470 something starting with __ and the normal name is an alias. */
4471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4474 char (*f) () = $ac_func;
4483 return f != $ac_func;
4488 rm -f conftest.
$ac_objext conftest
$ac_exeext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1
>conftest.err
4494 cat conftest.err
>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try
='test -s conftest$ac_exeext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 eval "$as_ac_var=yes"
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.
$ac_ext >&5
4514 eval "$as_ac_var=no"
4516 rm -f conftest.err conftest.
$ac_objext \
4517 conftest
$ac_exeext conftest.
$ac_ext
4519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4521 if test `eval echo '${'$as_ac_var'}'` = yes; then
4522 cat >>confdefs.h
<<_ACEOF
4523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4531 for ac_func
in isascii isxdigit
4533 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4534 echo "$as_me:$LINENO: checking for $ac_func" >&5
4535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4536 if eval "test \"\${$as_ac_var+set}\" = set"; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 cat >conftest.
$ac_ext <<_ACEOF
4542 cat confdefs.h
>>conftest.
$ac_ext
4543 cat >>conftest.
$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4547 #define $ac_func innocuous_$ac_func
4549 /* System header to define __stub macros and hopefully few prototypes,
4550 which can conflict with char $ac_func (); below.
4551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 <limits.h> exists even on freestanding compilers. */
4555 # include <limits.h>
4557 # include <assert.h>
4562 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4570 /* The GNU C library defines this for functions which it implements
4571 to always fail with ENOSYS. Some functions are actually named
4572 something starting with __ and the normal name is an alias. */
4573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4576 char (*f) () = $ac_func;
4585 return f != $ac_func;
4590 rm -f conftest.
$ac_objext conftest
$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
4594 grep -v '^ *+' conftest.er1
>conftest.err
4596 cat conftest.err
>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try
='test -s conftest$ac_exeext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 eval "$as_ac_var=yes"
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.
$ac_ext >&5
4616 eval "$as_ac_var=no"
4618 rm -f conftest.err conftest.
$ac_objext \
4619 conftest
$ac_exeext conftest.
$ac_ext
4621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4623 if test `eval echo '${'$as_ac_var'}'` = yes; then
4624 cat >>confdefs.h
<<_ACEOF
4625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4634 for ac_func
in getpwent getpwnam getpwuid
4636 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_func" >&5
4638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_var+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cat >conftest.
$ac_ext <<_ACEOF
4645 cat confdefs.h
>>conftest.
$ac_ext
4646 cat >>conftest.
$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4650 #define $ac_func innocuous_$ac_func
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char $ac_func (); below.
4654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 <limits.h> exists even on freestanding compilers. */
4658 # include <limits.h>
4660 # include <assert.h>
4665 /* Override any gcc2 internal prototype to avoid an error. */
4670 /* We use char because int might match the return type of a gcc2
4671 builtin and then its argument prototype would still apply. */
4673 /* The GNU C library defines this for functions which it implements
4674 to always fail with ENOSYS. Some functions are actually named
4675 something starting with __ and the normal name is an alias. */
4676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4679 char (*f) () = $ac_func;
4688 return f != $ac_func;
4693 rm -f conftest.
$ac_objext conftest
$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1
>conftest.err
4699 cat conftest.err
>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try
='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 eval "$as_ac_var=yes"
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.
$ac_ext >&5
4719 eval "$as_ac_var=no"
4721 rm -f conftest.err conftest.
$ac_objext \
4722 conftest
$ac_exeext conftest.
$ac_ext
4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4726 if test `eval echo '${'$as_ac_var'}'` = yes; then
4727 cat >>confdefs.h
<<_ACEOF
4728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735 echo "$as_me:$LINENO: checking for working strcoll" >&5
4736 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4737 if test "${ac_cv_func_strcoll_works+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test "$cross_compiling" = yes; then
4741 ac_cv_func_strcoll_works
=no
4743 cat >conftest.
$ac_ext <<_ACEOF
4746 cat confdefs.h
>>conftest.
$ac_ext
4747 cat >>conftest.
$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 $ac_includes_default
4753 exit (strcoll ("abc", "def") >= 0 ||
4754 strcoll ("ABC", "DEF") >= 0 ||
4755 strcoll ("123", "456") >= 0)
4760 rm -f conftest
$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_cv_func_strcoll_works
=yes
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4778 ac_cv_func_strcoll_works
=no
4780 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4783 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4784 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4785 if test $ac_cv_func_strcoll_works = yes; then
4787 cat >>confdefs.h
<<\_ACEOF
4788 #define HAVE_STRCOLL 1
4808 for ac_header
in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h
strings.h \
4809 limits.h locale.h
pwd.h memory.h termcap.h termios.h termio.h
4811 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4821 # Is the header compilable?
4822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4824 cat >conftest.
$ac_ext <<_ACEOF
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4837 grep -v '^ *+' conftest.er1
>conftest.err
4839 cat conftest.err
>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try
='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_header_compiler
=yes
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.
$ac_ext >&5
4859 ac_header_compiler
=no
4861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4863 echo "${ECHO_T}$ac_header_compiler" >&6
4865 # Is the header present?
4866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4868 cat >conftest.
$ac_ext <<_ACEOF
4871 cat confdefs.h
>>conftest.
$ac_ext
4872 cat >>conftest.
$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <$ac_header>
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev
/null
; then
4884 if test -s conftest.err
; then
4885 ac_cpp_err
=$ac_c_preproc_warn_flag
4886 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4893 if test -z "$ac_cpp_err"; then
4894 ac_header_preproc
=yes
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.
$ac_ext >&5
4899 ac_header_preproc
=no
4901 rm -f conftest.err conftest.
$ac_ext
4902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4903 echo "${ECHO_T}$ac_header_preproc" >&6
4905 # So? What about this header?
4906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4912 ac_header_preproc
=yes
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4929 ## ----------------------------------- ##
4930 ## Report this to bug-readline@gnu.org ##
4931 ## ----------------------------------- ##
4934 sed "s/^/$as_me: WARNING: /" >&2
4937 echo "$as_me:$LINENO: checking for $ac_header" >&5
4938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 eval "$as_ac_Header=\$ac_header_preproc"
4944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4949 cat >>confdefs.h
<<_ACEOF
4950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4961 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h
4963 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4965 echo "$as_me:$LINENO: checking for $ac_header" >&5
4966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4973 # Is the header compilable?
4974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4976 cat >conftest.
$ac_ext <<_ACEOF
4979 cat confdefs.h
>>conftest.
$ac_ext
4980 cat >>conftest.
$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 $ac_includes_default
4983 #include <$ac_header>
4985 rm -f conftest.
$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1
>conftest.err
4991 cat conftest.err
>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try
='test -s conftest.$ac_objext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_header_compiler
=yes
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.
$ac_ext >&5
5011 ac_header_compiler
=no
5013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6
5017 # Is the header present?
5018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5020 cat >conftest.
$ac_ext <<_ACEOF
5023 cat confdefs.h
>>conftest.
$ac_ext
5024 cat >>conftest.
$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <$ac_header>
5028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1
>conftest.err
5033 cat conftest.err
>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } >/dev
/null
; then
5036 if test -s conftest.err
; then
5037 ac_cpp_err
=$ac_c_preproc_warn_flag
5038 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5045 if test -z "$ac_cpp_err"; then
5046 ac_header_preproc
=yes
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.
$ac_ext >&5
5051 ac_header_preproc
=no
5053 rm -f conftest.err conftest.
$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055 echo "${ECHO_T}$ac_header_preproc" >&6
5057 # So? What about this header?
5058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5064 ac_header_preproc
=yes
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5081 ## ----------------------------------- ##
5082 ## Report this to bug-readline@gnu.org ##
5083 ## ----------------------------------- ##
5086 sed "s/^/$as_me: WARNING: /" >&2
5089 echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 eval "$as_ac_Header=\$ac_header_preproc"
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h
<<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 for ac_header
in sys
/ptem.h
5113 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5114 echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.
$ac_ext <<_ACEOF
5122 cat confdefs.h
>>conftest.
$ac_ext
5123 cat >>conftest.
$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5126 #if HAVE_SYS_STREAM_H
5127 # include <sys/stream.h>
5131 #include <$ac_header>
5133 rm -f conftest.
$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1
>conftest.err
5139 cat conftest.err
>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try
='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 eval "$as_ac_Header=yes"
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.
$ac_ext >&5
5159 eval "$as_ac_Header=no"
5161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5166 cat >>confdefs.h
<<_ACEOF
5167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176 echo "$as_me:$LINENO: checking for type of signal functions" >&5
5177 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
5178 if test "${bash_cv_signal_vintage+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 cat >conftest.
$ac_ext <<_ACEOF
5185 cat confdefs.h
>>conftest.
$ac_ext
5186 cat >>conftest.
$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5194 struct sigaction sa;
5195 sigemptyset(&ss); sigsuspend(&ss);
5196 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5197 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5203 rm -f conftest.
$ac_objext conftest
$ac_exeext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5205 (eval $ac_link) 2>conftest.er1
5207 grep -v '^ *+' conftest.er1
>conftest.err
5209 cat conftest.err
>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try
='test -s conftest$ac_exeext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 bash_cv_signal_vintage
=posix
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.
$ac_ext >&5
5230 cat >conftest.
$ac_ext <<_ACEOF
5233 cat confdefs.h
>>conftest.
$ac_ext
5234 cat >>conftest.
$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5241 int mask = sigmask(SIGINT);
5242 sigsetmask(mask); sigblock(mask); sigpause(mask);
5248 rm -f conftest.
$ac_objext conftest
$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>conftest.er1
5252 grep -v '^ *+' conftest.er1
>conftest.err
5254 cat conftest.err
>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try
='test -s conftest$ac_exeext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 bash_cv_signal_vintage
=4.2bsd
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.
$ac_ext >&5
5275 cat >conftest.
$ac_ext <<_ACEOF
5278 cat confdefs.h
>>conftest.
$ac_ext
5279 cat >>conftest.
$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5283 RETSIGTYPE foo() { }
5288 int mask = sigmask(SIGINT);
5289 sigset(SIGINT, foo); sigrelse(SIGINT);
5290 sighold(SIGINT); sigpause(SIGINT);
5296 rm -f conftest.
$ac_objext conftest
$ac_exeext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5300 grep -v '^ *+' conftest.er1
>conftest.err
5302 cat conftest.err
>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try
='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 bash_cv_signal_vintage
=svr3
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.
$ac_ext >&5
5322 bash_cv_signal_vintage
=v7
5325 rm -f conftest.err conftest.
$ac_objext \
5326 conftest
$ac_exeext conftest.
$ac_ext
5329 rm -f conftest.err conftest.
$ac_objext \
5330 conftest
$ac_exeext conftest.
$ac_ext
5333 rm -f conftest.err conftest.
$ac_objext \
5334 conftest
$ac_exeext conftest.
$ac_ext
5338 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
5339 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
5340 if test "$bash_cv_signal_vintage" = posix
; then
5341 cat >>confdefs.h
<<\_ACEOF
5342 #define HAVE_POSIX_SIGNALS 1
5345 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5346 cat >>confdefs.h
<<\_ACEOF
5347 #define HAVE_BSD_SIGNALS 1
5350 elif test "$bash_cv_signal_vintage" = svr3
; then
5351 cat >>confdefs.h
<<\_ACEOF
5352 #define HAVE_USG_SIGHOLD 1
5359 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
5360 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
5361 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 if test "$cross_compiling" = yes; then
5365 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5366 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5367 bash_cv_must_reinstall_sighandlers
=no
5370 cat >conftest.
$ac_ext <<_ACEOF
5373 cat confdefs.h
>>conftest.
$ac_ext
5374 cat >>conftest.
$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5378 #ifdef HAVE_UNISTD_H
5382 typedef RETSIGTYPE sigfunc();
5386 #ifdef HAVE_POSIX_SIGNALS
5388 set_signal_handler(sig, handler)
5392 struct sigaction act, oact;
5393 act.sa_handler = handler;
5395 sigemptyset (&act.sa_mask);
5396 sigemptyset (&oact.sa_mask);
5397 sigaction (sig, &act, &oact);
5398 return (oact.sa_handler);
5401 #define set_signal_handler(s, h) signal(s, h)
5414 set_signal_handler(SIGINT, sigint);
5415 kill((int)getpid(), SIGINT);
5416 kill((int)getpid(), SIGINT);
5421 rm -f conftest
$ac_exeext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5423 (eval $ac_link) 2>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 bash_cv_must_reinstall_sighandlers
=no
5434 echo "$as_me: program exited with status $ac_status" >&5
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.
$ac_ext >&5
5439 bash_cv_must_reinstall_sighandlers
=yes
5441 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5445 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
5446 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
5447 if test $bash_cv_must_reinstall_sighandlers = yes; then
5448 cat >>confdefs.h
<<\_ACEOF
5449 #define MUST_REINSTALL_SIGHANDLERS 1
5456 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5457 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
5458 if test "${bash_cv_func_sigsetjmp+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 if test "$cross_compiling" = yes; then
5462 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5463 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5464 bash_cv_func_sigsetjmp
=missing
5467 cat >conftest.
$ac_ext <<_ACEOF
5470 cat confdefs.h
>>conftest.
$ac_ext
5471 cat >>conftest.
$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 #ifdef HAVE_UNISTD_H
5477 #include <sys/types.h>
5483 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5494 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5495 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5498 code = sigsetjmp(xx, 1);
5500 exit(0); /* could get sigmask and compare to oset here. */
5503 sigaddset(&set, SIGINT);
5504 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5506 /* and siglongjmp */
5512 rm -f conftest
$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 bash_cv_func_sigsetjmp
=present
5525 echo "$as_me: program exited with status $ac_status" >&5
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.
$ac_ext >&5
5530 bash_cv_func_sigsetjmp
=missing
5532 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5536 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
5537 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
5538 if test $bash_cv_func_sigsetjmp = present
; then
5539 cat >>confdefs.h
<<\_ACEOF
5540 #define HAVE_POSIX_SIGSETJMP 1
5545 echo "$as_me:$LINENO: checking for lstat" >&5
5546 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
5547 if test "${bash_cv_func_lstat+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cat >conftest.
$ac_ext <<_ACEOF
5553 cat confdefs.h
>>conftest.
$ac_ext
5554 cat >>conftest.
$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5557 #include <sys/types.h>
5558 #include <sys/stat.h>
5563 lstat(".",(struct stat *)0);
5568 rm -f conftest.
$ac_objext conftest
$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>conftest.er1
5572 grep -v '^ *+' conftest.er1
>conftest.err
5574 cat conftest.err
>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try
='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 bash_cv_func_lstat
=yes
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.
$ac_ext >&5
5594 bash_cv_func_lstat
=no
5596 rm -f conftest.err conftest.
$ac_objext \
5597 conftest
$ac_exeext conftest.
$ac_ext
5599 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
5600 echo "${ECHO_T}$bash_cv_func_lstat" >&6
5601 if test $bash_cv_func_lstat = yes; then
5602 cat >>confdefs.h
<<\_ACEOF
5603 #define HAVE_LSTAT 1
5609 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
5610 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
5611 if test "${bash_cv_func_strcoll_broken+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 if test "$cross_compiling" = yes; then
5615 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5616 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5617 bash_cv_func_strcoll_broken
=no
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5628 #if defined (HAVE_LOCALE_H)
5637 char *deflocale, *defcoll;
5639 #ifdef HAVE_SETLOCALE
5640 deflocale = setlocale(LC_ALL, "");
5641 defcoll = setlocale(LC_COLLATE, "");
5645 /* These two values are taken from tests/glob-test. */
5646 r1 = strcoll("abd", "aXd");
5650 r2 = strcmp("abd", "aXd");
5652 /* These two should both be greater than 0. It is permissible for
5653 a system to return different values, as long as the sign is the
5656 /* Exit with 1 (failure) if these two values are both > 0, since
5657 this tests whether strcoll(3) is broken with respect to strcmp(3)
5658 in the default locale. */
5659 exit (r1 > 0 && r2 > 0);
5663 rm -f conftest
$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 bash_cv_func_strcoll_broken
=yes
5676 echo "$as_me: program exited with status $ac_status" >&5
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.
$ac_ext >&5
5681 bash_cv_func_strcoll_broken
=no
5683 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5687 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
5688 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
5689 if test $bash_cv_func_strcoll_broken = yes; then
5690 cat >>confdefs.h
<<\_ACEOF
5691 #define STRCOLL_BROKEN 1
5697 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
5698 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
5699 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 if test "$cross_compiling" = yes; then
5703 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5704 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5705 bash_cv_func_ctype_nonascii
=no
5708 cat >conftest.
$ac_ext <<_ACEOF
5711 cat confdefs.h
>>conftest.
$ac_ext
5712 cat >>conftest.
$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5715 #ifdef HAVE_LOCALE_H
5729 #ifdef HAVE_SETLOCALE
5730 /* We take a shot here. If that locale is not known, try the
5731 system default. We try this one because '\342' (226) is
5732 known to be a printable character in that locale. */
5733 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5735 deflocale = setlocale(LC_ALL, "");
5742 exit (r1 == 0 || r2 == 0);
5746 rm -f conftest
$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 bash_cv_func_ctype_nonascii
=yes
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.
$ac_ext >&5
5764 bash_cv_func_ctype_nonascii
=no
5766 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5770 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
5771 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
5772 if test $bash_cv_func_ctype_nonascii = yes; then
5773 cat >>confdefs.h
<<\_ACEOF
5774 #define CTYPE_NON_ASCII 1
5780 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
5781 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
5782 if test "${bash_cv_getpw_declared+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5792 #include <sys/types.h>
5793 #ifdef HAVE_UNISTD_H
5794 # include <unistd.h>
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800 $EGREP "getpwuid" >/dev
/null
2>&1; then
5801 bash_cv_getpw_declared
=yes
5803 bash_cv_getpw_declared
=no
5809 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
5810 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
5811 if test $bash_cv_getpw_declared = yes; then
5812 cat >>confdefs.h
<<\_ACEOF
5813 #define HAVE_GETPW_DECLS 1
5819 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5820 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
5821 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 cat >conftest.
$ac_ext <<_ACEOF
5827 cat confdefs.h
>>conftest.
$ac_ext
5828 cat >>conftest.
$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 #include <termios.h>
5837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5838 $EGREP "yes" >/dev
/null
2>&1; then
5839 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
5841 ac_cv_sys_tiocgwinsz_in_termios_h
=no
5846 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5847 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
5849 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5850 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5851 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
5852 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.
$ac_ext <<_ACEOF
5858 cat confdefs.h
>>conftest.
$ac_ext
5859 cat >>conftest.
$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 #include <sys/ioctl.h>
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869 $EGREP "yes" >/dev
/null
2>&1; then
5870 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
5872 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
5877 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5878 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
5880 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5882 cat >>confdefs.h
<<\_ACEOF
5883 #define GWINSZ_IN_SYS_IOCTL 1
5890 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
5891 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
5892 if test "${bash_cv_void_sighandler+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat >conftest.
$ac_ext <<_ACEOF
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <sys/types.h>
5909 void (*signal ()) ();
5918 rm -f conftest.
$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try
='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 bash_cv_void_sighandler
=yes
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.
$ac_ext >&5
5944 bash_cv_void_sighandler
=no
5946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5948 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
5949 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
5950 if test $bash_cv_void_sighandler = yes; then
5951 cat >>confdefs.h
<<\_ACEOF
5952 #define VOID_SIGHANDLER 1
5957 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
5958 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
5959 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <sys/types.h>
5969 #include <sys/ioctl.h>
5978 rm -f conftest.
$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try
='test -s conftest.$ac_objext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 bash_cv_tiocstat_in_ioctl
=yes
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.
$ac_ext >&5
6004 bash_cv_tiocstat_in_ioctl
=no
6006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6009 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
6010 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
6011 if test $bash_cv_tiocstat_in_ioctl = yes; then
6012 cat >>confdefs.h
<<\_ACEOF
6013 #define TIOCSTAT_IN_SYS_IOCTL 1
6018 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
6019 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
6020 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.
$ac_ext <<_ACEOF
6026 cat confdefs.h
>>conftest.
$ac_ext
6027 cat >>conftest.
$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #include <sys/types.h>
6030 #include <sys/ioctl.h>
6039 rm -f conftest.
$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>conftest.er1
6043 grep -v '^ *+' conftest.er1
>conftest.err
6045 cat conftest.err
>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try
='test -s conftest.$ac_objext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 bash_cv_fionread_in_ioctl
=yes
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.
$ac_ext >&5
6065 bash_cv_fionread_in_ioctl
=no
6067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6070 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
6071 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
6072 if test $bash_cv_fionread_in_ioctl = yes; then
6073 cat >>confdefs.h
<<\_ACEOF
6074 #define FIONREAD_IN_SYS_IOCTL 1
6079 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
6080 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
6081 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 cat >conftest.
$ac_ext <<_ACEOF
6087 cat confdefs.h
>>conftest.
$ac_ext
6088 cat >>conftest.
$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6099 rm -f conftest.
$ac_objext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101 (eval $ac_compile) 2>conftest.er1
6103 grep -v '^ *+' conftest.er1
>conftest.err
6105 cat conftest.err
>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try
='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 bash_cv_speed_t_in_sys_types
=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6125 bash_cv_speed_t_in_sys_types
=no
6127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6130 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
6131 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
6132 if test $bash_cv_speed_t_in_sys_types = yes; then
6133 cat >>confdefs.h
<<\_ACEOF
6134 #define SPEED_T_IN_SYS_TYPES 1
6139 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
6140 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
6141 if test "${bash_cv_struct_winsize_header+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.
$ac_ext <<_ACEOF
6147 cat confdefs.h
>>conftest.
$ac_ext
6148 cat >>conftest.
$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <sys/types.h>
6151 #include <sys/ioctl.h>
6160 rm -f conftest.
$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1
>conftest.err
6166 cat conftest.err
>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try
='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 bash_cv_struct_winsize_header
=ioctl_h
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <sys/types.h>
6193 #include <termios.h>
6202 rm -f conftest.
$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6206 grep -v '^ *+' conftest.er1
>conftest.err
6208 cat conftest.err
>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try
='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 bash_cv_struct_winsize_header
=termios_h
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.
$ac_ext >&5
6228 bash_cv_struct_winsize_header
=other
6230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6236 if test $bash_cv_struct_winsize_header = ioctl_h
; then
6237 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
6238 echo "${ECHO_T}sys/ioctl.h" >&6
6239 cat >>confdefs.h
<<\_ACEOF
6240 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
6243 elif test $bash_cv_struct_winsize_header = termios_h
; then
6244 echo "$as_me:$LINENO: result: termios.h" >&5
6245 echo "${ECHO_T}termios.h" >&6
6246 cat >>confdefs.h
<<\_ACEOF
6247 #define STRUCT_WINSIZE_IN_TERMIOS 1
6251 echo "$as_me:$LINENO: result: not found" >&5
6252 echo "${ECHO_T}not found" >&6
6256 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
6257 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
6258 if test "${bash_cv_dirent_has_dino+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6269 #include <sys/types.h>
6270 #ifdef HAVE_UNISTD_H
6271 # include <unistd.h>
6272 #endif /* HAVE_UNISTD_H */
6273 #if defined(HAVE_DIRENT_H)
6274 # include <dirent.h>
6276 # define dirent direct
6277 # ifdef HAVE_SYS_NDIR_H
6278 # include <sys/ndir.h>
6279 # endif /* SYSNDIR */
6280 # ifdef HAVE_SYS_DIR_H
6281 # include <sys/dir.h>
6282 # endif /* SYSDIR */
6286 #endif /* HAVE_DIRENT_H */
6292 struct dirent d; int z; z = d.d_ino;
6298 rm -f conftest.
$ac_objext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>conftest.er1
6302 grep -v '^ *+' conftest.er1
>conftest.err
6304 cat conftest.err
>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try
='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 bash_cv_dirent_has_dino
=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.
$ac_ext >&5
6324 bash_cv_dirent_has_dino
=no
6326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6329 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
6330 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
6331 if test $bash_cv_dirent_has_dino = yes; then
6332 cat >>confdefs.h
<<\_ACEOF
6333 #define HAVE_STRUCT_DIRENT_D_INO 1
6339 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
6340 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
6341 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 cat >conftest.
$ac_ext <<_ACEOF
6347 cat confdefs.h
>>conftest.
$ac_ext
6348 cat >>conftest.
$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6352 #include <sys/types.h>
6353 #ifdef HAVE_UNISTD_H
6354 # include <unistd.h>
6355 #endif /* HAVE_UNISTD_H */
6356 #if defined(HAVE_DIRENT_H)
6357 # include <dirent.h>
6359 # define dirent direct
6360 # ifdef HAVE_SYS_NDIR_H
6361 # include <sys/ndir.h>
6362 # endif /* SYSNDIR */
6363 # ifdef HAVE_SYS_DIR_H
6364 # include <sys/dir.h>
6365 # endif /* SYSDIR */
6369 #endif /* HAVE_DIRENT_H */
6375 struct dirent d; int z; z = d.d_fileno;
6381 rm -f conftest.
$ac_objext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383 (eval $ac_compile) 2>conftest.er1
6385 grep -v '^ *+' conftest.er1
>conftest.err
6387 cat conftest.err
>&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try
='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 bash_cv_dirent_has_d_fileno
=yes
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.
$ac_ext >&5
6407 bash_cv_dirent_has_d_fileno
=no
6409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
6413 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
6414 if test $bash_cv_dirent_has_d_fileno = yes; then
6415 cat >>confdefs.h
<<\_ACEOF
6416 #define HAVE_STRUCT_DIRENT_D_FILENO 1
6423 aix
*) prefer_curses
=yes ;;
6426 if test "X$bash_cv_termcap_lib" = "X"; then
6429 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
6430 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
6433 if test "${bash_cv_termcap_lib+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 echo "$as_me:$LINENO: checking for tgetent" >&5
6437 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
6438 if test "${ac_cv_func_tgetent+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 cat >conftest.
$ac_ext <<_ACEOF
6444 cat confdefs.h
>>conftest.
$ac_ext
6445 cat >>conftest.
$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
6448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6449 #define tgetent innocuous_tgetent
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char tgetent (); below.
6453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6454 <limits.h> exists even on freestanding compilers. */
6457 # include <limits.h>
6459 # include <assert.h>
6464 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6472 /* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
6475 #if defined (__stub_tgetent) || defined (__stub___tgetent)
6478 char (*f) () = tgetent;
6487 return f != tgetent;
6492 rm -f conftest.
$ac_objext conftest
$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>conftest.er1
6496 grep -v '^ *+' conftest.er1
>conftest.err
6498 cat conftest.err
>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; } &&
6507 { ac_try
='test -s conftest$ac_exeext'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 ac_cv_func_tgetent
=yes
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.
$ac_ext >&5
6518 ac_cv_func_tgetent
=no
6520 rm -f conftest.err conftest.
$ac_objext \
6521 conftest
$ac_exeext conftest.
$ac_ext
6523 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
6524 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
6525 if test $ac_cv_func_tgetent = yes; then
6526 bash_cv_termcap_lib
=libc
6528 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
6529 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
6530 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_check_lib_save_LIBS
=$LIBS
6534 LIBS
="-ltermcap $LIBS"
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6542 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6557 rm -f conftest.
$ac_objext conftest
$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1
>conftest.err
6563 cat conftest.err
>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; } &&
6572 { ac_try
='test -s conftest$ac_exeext'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6578 ac_cv_lib_termcap_tgetent
=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.
$ac_ext >&5
6583 ac_cv_lib_termcap_tgetent
=no
6585 rm -f conftest.err conftest.
$ac_objext \
6586 conftest
$ac_exeext conftest.
$ac_ext
6587 LIBS
=$ac_check_lib_save_LIBS
6589 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
6590 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
6591 if test $ac_cv_lib_termcap_tgetent = yes; then
6592 bash_cv_termcap_lib
=libtermcap
6594 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
6595 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
6596 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 ac_check_lib_save_LIBS
=$LIBS
6600 LIBS
="-ltinfo $LIBS"
6601 cat >conftest.
$ac_ext <<_ACEOF
6604 cat confdefs.h
>>conftest.
$ac_ext
6605 cat >>conftest.
$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6608 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6623 rm -f conftest.
$ac_objext conftest
$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>conftest.er1
6627 grep -v '^ *+' conftest.er1
>conftest.err
6629 cat conftest.err
>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try
='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_lib_tinfo_tgetent
=yes
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.
$ac_ext >&5
6649 ac_cv_lib_tinfo_tgetent
=no
6651 rm -f conftest.err conftest.
$ac_objext \
6652 conftest
$ac_exeext conftest.
$ac_ext
6653 LIBS
=$ac_check_lib_save_LIBS
6655 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
6656 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
6657 if test $ac_cv_lib_tinfo_tgetent = yes; then
6658 bash_cv_termcap_lib
=libtinfo
6660 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6661 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6662 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 ac_check_lib_save_LIBS
=$LIBS
6666 LIBS
="-lcurses $LIBS"
6667 cat >conftest.
$ac_ext <<_ACEOF
6670 cat confdefs.h
>>conftest.
$ac_ext
6671 cat >>conftest.
$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6689 rm -f conftest.
$ac_objext conftest
$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1
>conftest.err
6695 cat conftest.err
>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try
='test -s conftest$ac_exeext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_lib_curses_tgetent
=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.
$ac_ext >&5
6715 ac_cv_lib_curses_tgetent
=no
6717 rm -f conftest.err conftest.
$ac_objext \
6718 conftest
$ac_exeext conftest.
$ac_ext
6719 LIBS
=$ac_check_lib_save_LIBS
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6722 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6723 if test $ac_cv_lib_curses_tgetent = yes; then
6724 bash_cv_termcap_lib
=libcurses
6726 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
6727 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
6728 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_check_lib_save_LIBS
=$LIBS
6732 LIBS
="-lncurses $LIBS"
6733 cat >conftest.
$ac_ext <<_ACEOF
6736 cat confdefs.h
>>conftest.
$ac_ext
6737 cat >>conftest.
$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6755 rm -f conftest.
$ac_objext conftest
$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1
>conftest.err
6761 cat conftest.err
>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try
='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_lib_ncurses_tgetent
=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.
$ac_ext >&5
6781 ac_cv_lib_ncurses_tgetent
=no
6783 rm -f conftest.err conftest.
$ac_objext \
6784 conftest
$ac_exeext conftest.
$ac_ext
6785 LIBS
=$ac_check_lib_save_LIBS
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
6788 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
6789 if test $ac_cv_lib_ncurses_tgetent = yes; then
6790 bash_cv_termcap_lib
=libncurses
6792 bash_cv_termcap_lib
=gnutermcap
6805 if test "X$_bash_needmsg" = "Xyes"; then
6806 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
6807 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
6809 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
6810 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
6811 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
6812 LDFLAGS
="$LDFLAGS -L./lib/termcap"
6813 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
6814 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
6815 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
6816 TERMCAP_LIB
=-ltermcap
6818 elif test $bash_cv_termcap_lib = libtinfo
; then
6821 elif test $bash_cv_termcap_lib = libncurses
; then
6822 TERMCAP_LIB
=-lncurses
6824 elif test $bash_cv_termcap_lib = libc
; then
6828 TERMCAP_LIB
=-lcurses
6832 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6833 if test "$prefer_curses" = yes; then
6834 TERMCAP_LIB
=-lcurses
6836 TERMCAP_LIB
=-ltermcap #default
6842 for ac_header
in wctype.h
6844 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6854 # Is the header compilable?
6855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6857 cat >conftest.
$ac_ext <<_ACEOF
6860 cat confdefs.h
>>conftest.
$ac_ext
6861 cat >>conftest.
$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 $ac_includes_default
6864 #include <$ac_header>
6866 rm -f conftest.
$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>conftest.er1
6870 grep -v '^ *+' conftest.er1
>conftest.err
6872 cat conftest.err
>&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try
='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_header_compiler
=yes
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.
$ac_ext >&5
6892 ac_header_compiler
=no
6894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6896 echo "${ECHO_T}$ac_header_compiler" >&6
6898 # Is the header present?
6899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6901 cat >conftest.
$ac_ext <<_ACEOF
6904 cat confdefs.h
>>conftest.
$ac_ext
6905 cat >>conftest.
$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <$ac_header>
6909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6910 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6912 grep -v '^ *+' conftest.er1
>conftest.err
6914 cat conftest.err
>&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } >/dev
/null
; then
6917 if test -s conftest.err
; then
6918 ac_cpp_err
=$ac_c_preproc_warn_flag
6919 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6926 if test -z "$ac_cpp_err"; then
6927 ac_header_preproc
=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.
$ac_ext >&5
6932 ac_header_preproc
=no
6934 rm -f conftest.err conftest.
$ac_ext
6935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6936 echo "${ECHO_T}$ac_header_preproc" >&6
6938 # So? What about this header?
6939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6945 ac_header_preproc
=yes
6948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6962 ## ----------------------------------- ##
6963 ## Report this to bug-readline@gnu.org ##
6964 ## ----------------------------------- ##
6967 sed "s/^/$as_me: WARNING: /" >&2
6970 echo "$as_me:$LINENO: checking for $ac_header" >&5
6971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 eval "$as_ac_Header=\$ac_header_preproc"
6977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h
<<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6991 for ac_header
in wchar.h
6993 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7003 # Is the header compilable?
7004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7006 cat >conftest.
$ac_ext <<_ACEOF
7009 cat confdefs.h
>>conftest.
$ac_ext
7010 cat >>conftest.
$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7013 #include <$ac_header>
7015 rm -f conftest.
$ac_objext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017 (eval $ac_compile) 2>conftest.er1
7019 grep -v '^ *+' conftest.er1
>conftest.err
7021 cat conftest.err
>&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try
='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 ac_header_compiler
=yes
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.
$ac_ext >&5
7041 ac_header_compiler
=no
7043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7053 cat confdefs.h
>>conftest.
$ac_ext
7054 cat >>conftest.
$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <$ac_header>
7058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1
>conftest.err
7063 cat conftest.err
>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } >/dev
/null
; then
7066 if test -s conftest.err
; then
7067 ac_cpp_err
=$ac_c_preproc_warn_flag
7068 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7075 if test -z "$ac_cpp_err"; then
7076 ac_header_preproc
=yes
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.
$ac_ext >&5
7081 ac_header_preproc
=no
7083 rm -f conftest.err conftest.
$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085 echo "${ECHO_T}$ac_header_preproc" >&6
7087 # So? What about this header?
7088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7094 ac_header_preproc
=yes
7097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7111 ## ----------------------------------- ##
7112 ## Report this to bug-readline@gnu.org ##
7113 ## ----------------------------------- ##
7116 sed "s/^/$as_me: WARNING: /" >&2
7119 echo "$as_me:$LINENO: checking for $ac_header" >&5
7120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 eval "$as_ac_Header=\$ac_header_preproc"
7126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131 cat >>confdefs.h
<<_ACEOF
7132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 for ac_header
in langinfo.h
7142 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7144 echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7152 # Is the header compilable?
7153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 #include <$ac_header>
7164 rm -f conftest.
$ac_objext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166 (eval $ac_compile) 2>conftest.er1
7168 grep -v '^ *+' conftest.er1
>conftest.err
7170 cat conftest.err
>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try
='test -s conftest.$ac_objext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_header_compiler
=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.
$ac_ext >&5
7190 ac_header_compiler
=no
7192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7194 echo "${ECHO_T}$ac_header_compiler" >&6
7196 # Is the header present?
7197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7199 cat >conftest.
$ac_ext <<_ACEOF
7202 cat confdefs.h
>>conftest.
$ac_ext
7203 cat >>conftest.
$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include <$ac_header>
7207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7210 grep -v '^ *+' conftest.er1
>conftest.err
7212 cat conftest.err
>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } >/dev
/null
; then
7215 if test -s conftest.err
; then
7216 ac_cpp_err
=$ac_c_preproc_warn_flag
7217 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7224 if test -z "$ac_cpp_err"; then
7225 ac_header_preproc
=yes
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.
$ac_ext >&5
7230 ac_header_preproc
=no
7232 rm -f conftest.err conftest.
$ac_ext
7233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7234 echo "${ECHO_T}$ac_header_preproc" >&6
7236 # So? What about this header?
7237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7243 ac_header_preproc
=yes
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7260 ## ----------------------------------- ##
7261 ## Report this to bug-readline@gnu.org ##
7262 ## ----------------------------------- ##
7265 sed "s/^/$as_me: WARNING: /" >&2
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 eval "$as_ac_Header=\$ac_header_preproc"
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h
<<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
7290 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
7291 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 cat >conftest.
$ac_ext <<_ACEOF
7297 cat confdefs.h
>>conftest.
$ac_ext
7298 cat >>conftest.
$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
7301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7302 #define mbsrtowcs innocuous_mbsrtowcs
7304 /* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char mbsrtowcs (); below.
7306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 <limits.h> exists even on freestanding compilers. */
7310 # include <limits.h>
7312 # include <assert.h>
7317 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7325 /* The GNU C library defines this for functions which it implements
7326 to always fail with ENOSYS. Some functions are actually named
7327 something starting with __ and the normal name is an alias. */
7328 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7331 char (*f) () = mbsrtowcs;
7340 return f != mbsrtowcs;
7345 rm -f conftest.
$ac_objext conftest
$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347 (eval $ac_link) 2>conftest.er1
7349 grep -v '^ *+' conftest.er1
>conftest.err
7351 cat conftest.err
>&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try
='test -s conftest$ac_exeext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_func_mbsrtowcs
=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 ac_cv_func_mbsrtowcs
=no
7373 rm -f conftest.err conftest.
$ac_objext \
7374 conftest
$ac_exeext conftest.
$ac_ext
7376 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
7377 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7378 if test $ac_cv_func_mbsrtowcs = yes; then
7379 cat >>confdefs.h
<<\_ACEOF
7380 #define HAVE_MBSRTOWCS 1
7385 echo "$as_me:$LINENO: checking for mbrtowc" >&5
7386 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
7387 if test "${ac_cv_func_mbrtowc+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 cat >conftest.
$ac_ext <<_ACEOF
7393 cat confdefs.h
>>conftest.
$ac_ext
7394 cat >>conftest.
$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
7397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7398 #define mbrtowc innocuous_mbrtowc
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char mbrtowc (); below.
7402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 <limits.h> exists even on freestanding compilers. */
7406 # include <limits.h>
7408 # include <assert.h>
7413 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
7427 char (*f) () = mbrtowc;
7436 return f != mbrtowc;
7441 rm -f conftest.
$ac_objext conftest
$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1
>conftest.err
7447 cat conftest.err
>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try
='test -s conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_func_mbrtowc
=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.
$ac_ext >&5
7467 ac_cv_func_mbrtowc
=no
7469 rm -f conftest.err conftest.
$ac_objext \
7470 conftest
$ac_exeext conftest.
$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
7473 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
7474 if test $ac_cv_func_mbrtowc = yes; then
7475 cat >>confdefs.h
<<\_ACEOF
7476 #define HAVE_MBRTOWC 1
7481 echo "$as_me:$LINENO: checking for mbrlen" >&5
7482 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
7483 if test "${ac_cv_func_mbrlen+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 cat >conftest.
$ac_ext <<_ACEOF
7489 cat confdefs.h
>>conftest.
$ac_ext
7490 cat >>conftest.
$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
7493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7494 #define mbrlen innocuous_mbrlen
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char mbrlen (); below.
7498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499 <limits.h> exists even on freestanding compilers. */
7502 # include <limits.h>
7504 # include <assert.h>
7509 /* Override any gcc2 internal prototype to avoid an error. */
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
7523 char (*f) () = mbrlen;
7537 rm -f conftest.
$ac_objext conftest
$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7541 grep -v '^ *+' conftest.er1
>conftest.err
7543 cat conftest.err
>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try
='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_cv_func_mbrlen
=yes
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.
$ac_ext >&5
7563 ac_cv_func_mbrlen
=no
7565 rm -f conftest.err conftest.
$ac_objext \
7566 conftest
$ac_exeext conftest.
$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
7569 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
7570 if test $ac_cv_func_mbrlen = yes; then
7571 cat >>confdefs.h
<<\_ACEOF
7572 #define HAVE_MBRLEN 1
7577 echo "$as_me:$LINENO: checking for wctomb" >&5
7578 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
7579 if test "${ac_cv_func_wctomb+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 cat >conftest.
$ac_ext <<_ACEOF
7585 cat confdefs.h
>>conftest.
$ac_ext
7586 cat >>conftest.
$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
7589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7590 #define wctomb innocuous_wctomb
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char wctomb (); below.
7594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595 <limits.h> exists even on freestanding compilers. */
7598 # include <limits.h>
7600 # include <assert.h>
7605 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7613 /* The GNU C library defines this for functions which it implements
7614 to always fail with ENOSYS. Some functions are actually named
7615 something starting with __ and the normal name is an alias. */
7616 #if defined (__stub_wctomb) || defined (__stub___wctomb)
7619 char (*f) () = wctomb;
7633 rm -f conftest.
$ac_objext conftest
$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1
>conftest.err
7639 cat conftest.err
>&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try
='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_func_wctomb
=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7659 ac_cv_func_wctomb
=no
7661 rm -f conftest.err conftest.
$ac_objext \
7662 conftest
$ac_exeext conftest.
$ac_ext
7664 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
7665 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
7666 if test $ac_cv_func_wctomb = yes; then
7667 cat >>confdefs.h
<<\_ACEOF
7668 #define HAVE_WCTOMB 1
7673 echo "$as_me:$LINENO: checking for wcwidth" >&5
7674 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7675 if test "${ac_cv_func_wcwidth+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 cat >conftest.
$ac_ext <<_ACEOF
7681 cat confdefs.h
>>conftest.
$ac_ext
7682 cat >>conftest.
$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
7685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7686 #define wcwidth innocuous_wcwidth
7688 /* System header to define __stub macros and hopefully few prototypes,
7689 which can conflict with char wcwidth (); below.
7690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7691 <limits.h> exists even on freestanding compilers. */
7694 # include <limits.h>
7696 # include <assert.h>
7701 /* Override any gcc2 internal prototype to avoid an error. */
7706 /* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */
7709 /* The GNU C library defines this for functions which it implements
7710 to always fail with ENOSYS. Some functions are actually named
7711 something starting with __ and the normal name is an alias. */
7712 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7715 char (*f) () = wcwidth;
7724 return f != wcwidth;
7729 rm -f conftest.
$ac_objext conftest
$ac_exeext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7731 (eval $ac_link) 2>conftest.er1
7733 grep -v '^ *+' conftest.er1
>conftest.err
7735 cat conftest.err
>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; } &&
7744 { ac_try
='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_func_wcwidth
=yes
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.
$ac_ext >&5
7755 ac_cv_func_wcwidth
=no
7757 rm -f conftest.err conftest.
$ac_objext \
7758 conftest
$ac_exeext conftest.
$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
7761 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7762 if test $ac_cv_func_wcwidth = yes; then
7763 cat >>confdefs.h
<<\_ACEOF
7764 #define HAVE_WCWIDTH 1
7769 echo "$as_me:$LINENO: checking for wcsdup" >&5
7770 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
7771 if test "${ac_cv_func_wcsdup+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.
$ac_ext <<_ACEOF
7777 cat confdefs.h
>>conftest.
$ac_ext
7778 cat >>conftest.
$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
7781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7782 #define wcsdup innocuous_wcsdup
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char wcsdup (); below.
7786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787 <limits.h> exists even on freestanding compilers. */
7790 # include <limits.h>
7792 # include <assert.h>
7797 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7805 /* The GNU C library defines this for functions which it implements
7806 to always fail with ENOSYS. Some functions are actually named
7807 something starting with __ and the normal name is an alias. */
7808 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
7811 char (*f) () = wcsdup;
7825 rm -f conftest.
$ac_objext conftest
$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7829 grep -v '^ *+' conftest.er1
>conftest.err
7831 cat conftest.err
>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try
='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_func_wcsdup
=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.
$ac_ext >&5
7851 ac_cv_func_wcsdup
=no
7853 rm -f conftest.err conftest.
$ac_objext \
7854 conftest
$ac_exeext conftest.
$ac_ext
7856 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
7857 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
7858 if test $ac_cv_func_wcsdup = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_WCSDUP 1
7866 if test "$ac_cv_func_wcwidth" = no
&& test "$ac_cv_header_wchar_h" = yes; then
7867 WCWIDTH_OBJ
=wcwidth.o
7873 echo "$as_me:$LINENO: checking for mbstate_t" >&5
7874 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7875 if test "${bash_cv_have_mbstate_t+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 cat >conftest.
$ac_ext <<_ACEOF
7881 cat confdefs.h
>>conftest.
$ac_ext
7882 cat >>conftest.
$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7892 psp = (mbstate_t *)0;
7898 rm -f conftest.
$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>conftest.er1
7902 grep -v '^ *+' conftest.er1
>conftest.err
7904 cat conftest.err
>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try
='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 bash_cv_have_mbstate_t
=yes
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.
$ac_ext >&5
7924 bash_cv_have_mbstate_t
=no
7926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7928 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
7929 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
7930 if test $bash_cv_have_mbstate_t = yes; then
7931 cat >>confdefs.h
<<\_ACEOF
7932 #define HAVE_MBSTATE_T 1
7937 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7938 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7939 if test "${bash_cv_langinfo_codeset+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 cat >conftest.
$ac_ext <<_ACEOF
7945 cat confdefs.h
>>conftest.
$ac_ext
7946 cat >>conftest.
$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <langinfo.h>
7952 char* cs = nl_langinfo(CODESET);
7957 rm -f conftest.
$ac_objext conftest
$ac_exeext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>conftest.er1
7961 grep -v '^ *+' conftest.er1
>conftest.err
7963 cat conftest.err
>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try
='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 bash_cv_langinfo_codeset
=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.
$ac_ext >&5
7983 bash_cv_langinfo_codeset
=no
7985 rm -f conftest.err conftest.
$ac_objext \
7986 conftest
$ac_exeext conftest.
$ac_ext
7988 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
7989 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
7990 if test $bash_cv_langinfo_codeset = yes; then
7991 cat >>confdefs.h
<<\_ACEOF
7992 #define HAVE_LANGINFO_CODESET 1
8000 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
8001 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
8005 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
8008 # shared library configuration section
8010 # Shared object configuration section. These values are generated by
8011 # ${srcdir}/support/shobj-conf
8013 if test -f ${srcdir}/support
/shobj-conf
; then
8014 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
8015 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
8016 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
8018 # case "$SHLIB_LIBS" in
8019 # *curses*|*termcap*|*termlib*) ;;
8020 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
8038 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
8039 echo "${ECHO_T}$SHLIB_STATUS" >&6
8041 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
8042 # `unsupported', turn off any default shared library building
8043 if test "$SHLIB_STATUS" = 'unsupported'; then
8047 # shared library versioning
8048 # quoted for m4 so I can use character classes
8049 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
8050 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
8055 if test "$opt_static_libs" = "yes"; then
8056 STATIC_TARGET
=static
8057 STATIC_INSTALL_TARGET
=install-static
8059 if test "$opt_shared_libs" = "yes"; then
8060 SHARED_TARGET
=shared
8061 SHARED_INSTALL_TARGET
=install-shared
8070 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
8071 *) BUILD_DIR
=`pwd` ;;
8074 case "$BUILD_DIR" in
8075 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
8097 ac_config_files
="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
8098 ac_config_commands
="$ac_config_commands default"
8099 cat >confcache
<<\_ACEOF
8100 # This file is a shell script that caches the results of configure
8101 # tests run on this system so they can be shared between configure
8102 # scripts and configure runs, see configure's option --config-cache.
8103 # It is not useful on other systems. If it contains results you don't
8104 # want to keep, you may remove or edit it.
8106 # config.status only pays attention to the cache file if you give it
8107 # the --recheck option to rerun configure.
8109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8115 # The following way of writing the cache mishandles newlines in values,
8116 # but we know of no workaround that is simple, portable, and efficient.
8117 # So, don't put newlines in cache variables' values.
8118 # Ultrix sh set writes to stderr and can't be redirected directly,
8119 # and sets the high bit in the cache file unless we assign to the vars.
8122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8124 # `set' does not quote correctly, so add quotes (double-quote
8125 # substitution turns \\\\ into \\, and sed turns \\ into \).
8128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8131 # `set' quotes correctly as required by POSIX, so do not add quotes.
8133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8144 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8145 if test -w $cache_file; then
8146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8147 cat confcache
>$cache_file
8149 echo "not updating unwritable cache $cache_file"
8154 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8155 # Let make expand exec_prefix.
8156 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8160 # trailing colons and then remove the whole line if VPATH becomes empty
8161 # (actually we leave an empty line to preserve line numbers).
8162 if test "x$srcdir" = x.
; then
8163 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8164 s/:*\$(srcdir):*/:/;
8165 s/:*\${srcdir}:*/:/;
8167 s/^\([^=]*=[ ]*\):*/\1/;
8173 DEFS
=-DHAVE_CONFIG_H
8177 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8178 # 1. Remove the extension, and $U if already installed.
8179 ac_i
=`echo "$ac_i" |
8180 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8182 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8183 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8187 LTLIBOBJS
=$ac_ltlibobjs
8191 : ${CONFIG_STATUS=./config.status}
8192 ac_clean_files_save
=$ac_clean_files
8193 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8196 cat >$CONFIG_STATUS <<_ACEOF
8198 # Generated by $as_me.
8199 # Run this file to recreate the current configuration.
8200 # Compiler output produced by configure, useful for debugging
8201 # configure, is in config.log if it exists.
8206 SHELL=\${CONFIG_SHELL-$SHELL}
8209 cat >>$CONFIG_STATUS <<\_ACEOF
8210 ## --------------------- ##
8211 ## M4sh Initialization. ##
8212 ## --------------------- ##
8214 # Be Bourne compatible
8215 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8219 # is contrary to our usage. Disable this feature.
8220 alias -g '${1+"$@"}'='"$@"'
8221 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8224 DUALCASE
=1; export DUALCASE
# for MKS sh
8226 # Support unset when possible.
8227 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8234 # Work around bugs in pre-3.0 UWIN ksh.
8235 $as_unset ENV MAIL MAILPATH
8242 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8243 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8244 LC_TELEPHONE LC_TIME
8246 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8247 eval $as_var=C
; export $as_var
8253 # Required to use basename.
8254 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8260 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8261 as_basename
=basename
8267 # Name of the executable.
8268 as_me
=`$as_basename "$0" ||
8269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8270 X"$0" : 'X\(//\)$' \| \
8271 X"$0" : 'X\(/\)$' \| \
8272 . : '\(.\)' 2>/dev/null ||
8274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8275 /^X\/\(\/\/\)$/{ s//\1/; q; }
8276 /^X\/\(\/\).*/{ s//\1/; q; }
8280 # PATH needs CR, and LINENO needs CR and PATH.
8281 # Avoid depending upon Character Ranges.
8282 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8283 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8284 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8285 as_cr_digits
='0123456789'
8286 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8288 # The user is always right.
8289 if test "${PATH_SEPARATOR+set}" != set; then
8290 echo "#! /bin/sh" >conf$$.sh
8291 echo "exit 0" >>conf$$.sh
8293 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8304 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8305 test "x$as_lineno_1" != "x$as_lineno_2" &&
8306 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8307 # Find who we are. Look in the path if we contain no path at all
8310 *[\\/]* ) as_myself
=$0 ;;
8311 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir
=.
8316 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8321 # We did not find ourselves, most probably we were run as `sh COMMAND'
8322 # in which case we are not to be found in the path.
8323 if test "x$as_myself" = x
; then
8326 if test ! -f "$as_myself"; then
8327 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8328 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8329 { (exit 1); exit 1; }; }
8331 case $CONFIG_SHELL in
8333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8334 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8337 test -z "$as_dir" && as_dir
=.
8338 for as_base
in sh bash ksh sh5
; do
8341 if ("$as_dir/$as_base" -c '
8344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8345 test "x$as_lineno_1" != "x$as_lineno_2" &&
8346 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8347 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8348 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8349 CONFIG_SHELL
=$as_dir/$as_base
8351 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8360 # uniformly replaced by the line number. The first 'sed' inserts a
8361 # line-number line before each line; the second 'sed' does the real
8362 # work. The second script uses 'N' to pair each line-number line
8363 # with the numbered line, and appends trailing '-' during
8364 # substitution so that $LINENO is not a special case at line end.
8365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8366 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8367 sed '=' <$as_myself |
8372 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8375 s,^['$as_cr_digits']*\n,,
8377 chmod +x
$as_me.lineno ||
8378 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8379 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8380 { (exit 1); exit 1; }; }
8382 # Don't try to exec as it changes $[0], causing all sort of problems
8383 # (the dirname of $[0] is not the place where we might find the
8384 # original and so on. Autoconf is especially sensible to this).
8386 # Exit status is that of the last command.
8391 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8392 *c
*,-n*) ECHO_N
= ECHO_C
='
8394 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8395 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8398 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8404 rm -f conf$$ conf$$.exe conf$$.
file
8406 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8407 # We could just check for DJGPP; but this test a) works b) is more generic
8408 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8409 if test -f conf$$.exe
; then
8410 # Don't use ln at all; we don't have any links
8415 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8420 rm -f conf$$ conf$$.exe conf$$.
file
8422 if mkdir
-p .
2>/dev
/null
; then
8425 test -d .
/-p && rmdir .
/-p
8429 as_executable_p
="test -f"
8431 # Sed expression to map a string onto a valid CPP name.
8432 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8434 # Sed expression to map a string onto a valid variable name.
8435 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8439 # We need space, tab and new line, in precisely that order.
8449 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8450 # report actual input values of CONFIG_FILES etc. instead of their
8451 # values after options handling. Logging --version etc. is OK.
8455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8456 ## Running $as_me. ##
8461 This file was extended by readline $as_me 5.1-release, which was
8462 generated by GNU Autoconf 2.59. Invocation command line was
8464 CONFIG_FILES = $CONFIG_FILES
8465 CONFIG_HEADERS = $CONFIG_HEADERS
8466 CONFIG_LINKS = $CONFIG_LINKS
8467 CONFIG_COMMANDS = $CONFIG_COMMANDS
8471 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8475 # Files that config.status was made for.
8476 if test -n "$ac_config_files"; then
8477 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8480 if test -n "$ac_config_headers"; then
8481 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8484 if test -n "$ac_config_links"; then
8485 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8488 if test -n "$ac_config_commands"; then
8489 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8492 cat >>$CONFIG_STATUS <<\_ACEOF
8495 \`$as_me' instantiates files from templates according to the
8496 current configuration.
8498 Usage: $0 [OPTIONS] [FILE]...
8500 -h, --help print this help, then exit
8501 -V, --version print version number, then exit
8502 -q, --quiet do not print progress messages
8503 -d, --debug don't remove temporary files
8504 --recheck update $as_me by reconfiguring in the same conditions
8505 --file=FILE[:TEMPLATE]
8506 instantiate the configuration file FILE
8507 --header=FILE[:TEMPLATE]
8508 instantiate the configuration header FILE
8510 Configuration files:
8513 Configuration headers:
8516 Configuration commands:
8519 Report bugs to <bug-autoconf@gnu.org>."
8522 cat >>$CONFIG_STATUS <<_ACEOF
8524 readline config.status 5.1-release
8525 configured by $0, generated by GNU Autoconf 2.59,
8526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8528 Copyright (C) 2003 Free Software Foundation, Inc.
8529 This config.status script is free software; the Free Software Foundation
8530 gives unlimited permission to copy, distribute and modify it."
8535 cat >>$CONFIG_STATUS <<\_ACEOF
8536 # If no file are specified by the user, then we need to provide default
8537 # value. By we need to know if files were specified by the user.
8543 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8544 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8552 *) # This is not an option, so the user has probably given explicit
8555 ac_need_defaults
=false
;;
8559 # Handling of the options.
8561 cat >>$CONFIG_STATUS <<\_ACEOF
8562 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8564 --version |
--vers* |
-V )
8565 echo "$ac_cs_version"; exit 0 ;;
8567 # Conflict between --help and --header
8568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8569 Try \`$0 --help' for more information." >&5
8570 echo "$as_me: error: ambiguous option: $1
8571 Try \`$0 --help' for more information." >&2;}
8572 { (exit 1); exit 1; }; };;
8573 --help |
--hel |
-h )
8574 echo "$ac_cs_usage"; exit 0 ;;
8575 --debug |
--d* |
-d )
8577 --file |
--fil |
--fi |
--f )
8579 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8580 ac_need_defaults
=false
;;
8581 --header |
--heade |
--head |
--hea )
8583 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8584 ac_need_defaults
=false
;;
8585 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8586 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8591 Try \`$0 --help' for more information." >&5
8592 echo "$as_me: error: unrecognized option: $1
8593 Try \`$0 --help' for more information." >&2;}
8594 { (exit 1); exit 1; }; } ;;
8596 *) ac_config_targets
="$ac_config_targets $1" ;;
8602 ac_configure_extra_args
=
8604 if $ac_cs_silent; then
8606 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8610 cat >>$CONFIG_STATUS <<_ACEOF
8611 if \$ac_cs_recheck; then
8612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8622 cat >>$CONFIG_STATUS <<\_ACEOF
8623 for ac_config_target
in $ac_config_targets
8625 case "$ac_config_target" in
8626 # Handling of arguments.
8627 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8628 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8629 "examples/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
8630 "shlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES shlib/Makefile" ;;
8631 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8632 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8634 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8635 { (exit 1); exit 1; }; };;
8639 # If the user did not use the arguments to specify the items to instantiate,
8640 # then the envvar interface is used. Set only those that are not.
8641 # We use the long form for the default assignment because of an extremely
8642 # bizarre bug on SunOS 4.1.3.
8643 if $ac_need_defaults; then
8644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8649 # Have a temporary directory for convenience. Make it in the build tree
8650 # simply because there is no reason to put it here, and in addition,
8651 # creating and moving files from /tmp can sometimes cause problems.
8652 # Create a temporary directory, and hook for its removal unless debugging.
8655 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8656 trap '{ (exit 1); exit 1; }' 1 2 13 15
8659 # Create a (secure) tmp directory for tmp files.
8662 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8663 test -n "$tmp" && test -d "$tmp"
8666 tmp
=.
/confstat$$
-$RANDOM
8667 (umask 077 && mkdir
$tmp)
8670 echo "$me: cannot create a temporary directory in ." >&2
8671 { (exit 1); exit 1; }
8676 cat >>$CONFIG_STATUS <<_ACEOF
8679 # CONFIG_FILES section.
8682 # No need to generate the scripts if there are no CONFIG_FILES.
8683 # This happens for instance when ./config.status config.h
8684 if test -n "\$CONFIG_FILES"; then
8685 # Protect against being on the right side of a sed subst in config.status.
8686 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8687 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8688 s,@SHELL@,$SHELL,;t t
8689 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8690 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8691 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8692 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8693 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8694 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8695 s,@exec_prefix@,$exec_prefix,;t t
8696 s,@prefix@,$prefix,;t t
8697 s,@program_transform_name@,$program_transform_name,;t t
8698 s,@bindir@,$bindir,;t t
8699 s,@sbindir@,$sbindir,;t t
8700 s,@libexecdir@,$libexecdir,;t t
8701 s,@datadir@,$datadir,;t t
8702 s,@sysconfdir@,$sysconfdir,;t t
8703 s,@sharedstatedir@,$sharedstatedir,;t t
8704 s,@localstatedir@,$localstatedir,;t t
8705 s,@libdir@,$libdir,;t t
8706 s,@includedir@,$includedir,;t t
8707 s,@oldincludedir@,$oldincludedir,;t t
8708 s,@infodir@,$infodir,;t t
8709 s,@mandir@,$mandir,;t t
8710 s,@build_alias@,$build_alias,;t t
8711 s,@host_alias@,$host_alias,;t t
8712 s,@target_alias@,$target_alias,;t t
8714 s,@ECHO_C@,$ECHO_C,;t t
8715 s,@ECHO_N@,$ECHO_N,;t t
8716 s,@ECHO_T@,$ECHO_T,;t t
8718 s,@build@,$build,;t t
8719 s,@build_cpu@,$build_cpu,;t t
8720 s,@build_vendor@,$build_vendor,;t t
8721 s,@build_os@,$build_os,;t t
8723 s,@host_cpu@,$host_cpu,;t t
8724 s,@host_vendor@,$host_vendor,;t t
8725 s,@host_os@,$host_os,;t t
8726 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
8727 s,@SET_MAKE@,$SET_MAKE,;t t
8729 s,@CFLAGS@,$CFLAGS,;t t
8730 s,@LDFLAGS@,$LDFLAGS,;t t
8731 s,@CPPFLAGS@,$CPPFLAGS,;t t
8732 s,@ac_ct_CC@,$ac_ct_CC,;t t
8733 s,@EXEEXT@,$EXEEXT,;t t
8734 s,@OBJEXT@,$OBJEXT,;t t
8736 s,@EGREP@,$EGREP,;t t
8737 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8738 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8739 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8740 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8742 s,@RANLIB@,$RANLIB,;t t
8743 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8744 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
8745 s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
8746 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
8747 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
8748 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
8749 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
8750 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
8751 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
8752 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
8753 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
8754 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
8755 s,@SHLIB_DOT@,$SHLIB_DOT,;t t
8756 s,@SHLIB_LIBPREF@,$SHLIB_LIBPREF,;t t
8757 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
8758 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
8759 s,@SHLIB_DLLVERSION@,$SHLIB_DLLVERSION,;t t
8760 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
8761 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
8762 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
8763 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
8764 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
8765 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
8766 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
8767 s,@PURIFY@,$PURIFY,;t t
8768 s,@BUILD_DIR@,$BUILD_DIR,;t t
8769 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
8770 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
8771 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
8772 s,@ARFLAGS@,$ARFLAGS,;t t
8773 s,@LIBVERSION@,$LIBVERSION,;t t
8774 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
8775 s,@LIBOBJS@,$LIBOBJS,;t t
8776 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8781 cat >>$CONFIG_STATUS <<\_ACEOF
8782 # Split the substitutions into bite-sized pieces for seds with
8783 # small command number limits, like on Digital OSF/1 and HP-UX.
8785 ac_sed_frag
=1 # Number of current file.
8786 ac_beg
=1 # First line for current file.
8787 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8790 while $ac_more_lines; do
8791 if test $ac_beg -gt 1; then
8792 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8794 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8796 if test ! -s $tmp/subs.frag
; then
8799 # The purpose of the label and of the branching condition is to
8800 # speed up the sed processing (if there are no `@' at all, there
8801 # is no need to browse any of the substitutions).
8802 # These are the two extra sed commands mentioned above.
8804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8805 if test -z "$ac_sed_cmds"; then
8806 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8808 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8810 ac_sed_frag
=`expr $ac_sed_frag + 1`
8812 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8815 if test -z "$ac_sed_cmds"; then
8818 fi # test -n "$CONFIG_FILES"
8821 cat >>$CONFIG_STATUS <<\_ACEOF
8822 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8825 - |
*:- |
*:-:* ) # input from stdin
8827 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8828 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8829 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8830 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8831 * ) ac_file_in
=$ac_file.
in ;;
8834 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8835 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8837 X"$ac_file" : 'X\(//\)[^/]' \| \
8838 X"$ac_file" : 'X\(//\)$' \| \
8839 X"$ac_file" : 'X\(/\)' \| \
8840 . : '\(.\)' 2>/dev/null ||
8842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8844 /^X\(\/\/\)$/{ s//\1/; q; }
8845 /^X\(\/\).*/{ s//\1/; q; }
8847 { if $as_mkdir_p; then
8852 while test ! -d "$as_dir"; do
8853 as_dirs
="$as_dir $as_dirs"
8854 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8856 X"$as_dir" : 'X\(//\)[^/]' \| \
8857 X"$as_dir" : 'X\(//\)$' \| \
8858 X"$as_dir" : 'X\(/\)' \| \
8859 . : '\(.\)' 2>/dev/null ||
8861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8863 /^X\(\/\/\)$/{ s//\1/; q; }
8864 /^X\(\/\).*/{ s//\1/; q; }
8867 test ! -n "$as_dirs" || mkdir
$as_dirs
8868 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8870 { (exit 1); exit 1; }; }; }
8874 if test "$ac_dir" != .
; then
8875 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8876 # A "../" for each directory in $ac_dir_suffix.
8877 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8879 ac_dir_suffix
= ac_top_builddir
=
8883 .
) # No --srcdir option. We are building in place.
8885 if test -z "$ac_top_builddir"; then
8888 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8890 [\\/]* | ?
:[\\/]* ) # Absolute path.
8891 ac_srcdir
=$srcdir$ac_dir_suffix;
8892 ac_top_srcdir
=$srcdir ;;
8894 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8895 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8898 # Do not use `cd foo && pwd` to compute absolute paths, because
8899 # the directories may not exist.
8901 .
) ac_abs_builddir
="$ac_dir";;
8904 .
) ac_abs_builddir
=`pwd`;;
8905 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8906 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8909 case $ac_abs_builddir in
8910 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8912 case ${ac_top_builddir}.
in
8913 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8914 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8915 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8918 case $ac_abs_builddir in
8919 .
) ac_abs_srcdir
=$ac_srcdir;;
8922 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8923 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8924 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8927 case $ac_abs_builddir in
8928 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8930 case $ac_top_srcdir in
8931 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8932 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8933 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8939 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8940 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8943 # Let's still pretend it is `configure' which instantiates (i.e., don't
8944 # use $as_me), people would be surprised to read:
8945 # /* config.h. Generated by config.status. */
8946 if test x
"$ac_file" = x-
; then
8949 configure_input
="$ac_file. "
8951 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8952 sed 's,.*/,,'` by configure."
8954 # First look for the input files in the build tree, otherwise in the
8956 ac_file_inputs
=`IFS=:
8957 for f in $ac_file_in; do
8959 -) echo $tmp/stdin ;;
8961 # Absolute (can't be DOS-style, as IFS=:)
8962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8963 echo "$as_me: error: cannot find input file: $f" >&2;}
8964 { (exit 1); exit 1; }; }
8967 if test -f "$f"; then
8970 elif test -f "$srcdir/$f"; then
8975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8976 echo "$as_me: error: cannot find input file: $f" >&2;}
8977 { (exit 1); exit 1; }; }
8980 done` ||
{ (exit 1); exit 1; }
8982 if test x
"$ac_file" != x-
; then
8983 { echo "$as_me:$LINENO: creating $ac_file" >&5
8984 echo "$as_me: creating $ac_file" >&6;}
8988 cat >>$CONFIG_STATUS <<_ACEOF
8992 cat >>$CONFIG_STATUS <<\_ACEOF
8994 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8995 s
,@configure_input@
,$configure_input,;t t
8996 s
,@srcdir@
,$ac_srcdir,;t t
8997 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8998 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8999 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9000 s
,@builddir@
,$ac_builddir,;t t
9001 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9002 s
,@top_builddir@
,$ac_top_builddir,;t t
9003 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9004 s
,@INSTALL@
,$ac_INSTALL,;t t
9005 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9007 if test x"$ac_file" != x-; then
9008 mv $tmp/out $ac_file
9016 cat >>$CONFIG_STATUS <<\_ACEOF
9019 # CONFIG_HEADER section.
9022 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9023 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9025 # ac_d sets the value in "#define NAME VALUE" lines.
9026 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9027 ac_dB
='[ ].*$,\1#\2'
9030 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9031 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9032 ac_uB
='$,\1#\2define\3'
9036 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9039 - |
*:- |
*:-:* ) # input from stdin
9041 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9042 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9043 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9044 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9045 * ) ac_file_in
=$ac_file.
in ;;
9048 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9049 echo "$as_me: creating $ac_file" >&6;}
9051 # First look for the input files in the build tree, otherwise in the
9053 ac_file_inputs
=`IFS=:
9054 for f in $ac_file_in; do
9056 -) echo $tmp/stdin ;;
9058 # Absolute (can't be DOS-style, as IFS=:)
9059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9060 echo "$as_me: error: cannot find input file: $f" >&2;}
9061 { (exit 1); exit 1; }; }
9062 # Do quote $f, to prevent DOS paths from being IFS'd.
9065 if test -f "$f"; then
9068 elif test -f "$srcdir/$f"; then
9073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9074 echo "$as_me: error: cannot find input file: $f" >&2;}
9075 { (exit 1); exit 1; }; }
9078 done` ||
{ (exit 1); exit 1; }
9079 # Remove the trailing spaces.
9080 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9084 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9085 # `conftest.undefs', that substitutes the proper values into
9086 # config.h.in to produce config.h. The first handles `#define'
9087 # templates, and the second `#undef' templates.
9088 # And first: Protect against being on the right side of a sed subst in
9089 # config.status. Protect against being in an unquoted here document
9091 rm -f conftest.defines conftest.undefs
9092 # Using a here document instead of a string reduces the quoting nightmare.
9093 # Putting comments in sed scripts is not portable.
9095 # `end' is used to avoid that the second main sed command (meant for
9096 # 0-ary CPP macros) applies to n-ary macro definitions.
9097 # See the Autoconf documentation for `clear'.
9098 cat >confdef2sed.
sed <<\_ACEOF
9103 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9105 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9108 # If some macros were called several times there might be several times
9109 # the same #defines, which is useless. Nevertheless, we may not want to
9110 # sort them, since we want the *last* AC-DEFINE to be honored.
9111 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9112 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9113 rm -f confdef2sed.sed
9115 # This sed command replaces #undef with comments. This is necessary, for
9116 # example, in the case of _POSIX_SOURCE, which is predefined and required
9117 # on some systems where configure will not decide to define it.
9118 cat >>conftest.undefs <<\_ACEOF
9119 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9122 # Break up conftest.defines because some shells have a limit on the size
9123 # of here documents, and old seds have small limits too (100 cmds).
9124 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9125 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9126 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9127 echo ' :' >>$CONFIG_STATUS
9129 while grep . conftest.defines >/dev/null
9131 # Write a limited-size here document to $tmp/defines.sed.
9132 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9133 # Speed up: don't consider the non `#define' lines.
9134 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9135 # Work around the forget-to-reset-the-flag bug.
9136 echo 't clr' >>$CONFIG_STATUS
9137 echo ': clr' >>$CONFIG_STATUS
9138 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9140 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9144 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9145 rm -f conftest.defines
9146 mv conftest.
tail conftest.defines
9148 rm -f conftest.defines
9149 echo ' fi # grep' >>$CONFIG_STATUS
9150 echo >>$CONFIG_STATUS
9152 # Break up conftest.undefs because some shells have a limit on the size
9153 # of here documents, and old seds have small limits too (100 cmds).
9154 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9156 while grep . conftest.undefs
>/dev
/null
9158 # Write a limited-size here document to $tmp/undefs.sed.
9159 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9160 # Speed up: don't consider the non
`#undef'
9161 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9162 # Work around the forget-to-reset-the-flag bug.
9163 echo 't clr' >>$CONFIG_STATUS
9164 echo ': clr' >>$CONFIG_STATUS
9165 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9167 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9171 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9172 rm -f conftest.undefs
9173 mv conftest.tail conftest.undefs
9175 rm -f conftest.undefs
9177 cat >>$CONFIG_STATUS <<\_ACEOF
9178 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9179 # use $as_me), people would be surprised to read:
9180 # /* config.h. Generated by config.status. */
9181 if test x
"$ac_file" = x-
; then
9182 echo "/* Generated by configure. */" >$tmp/config.h
9184 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9186 cat $tmp/in >>$tmp/config.h
9188 if test x
"$ac_file" != x-
; then
9189 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9190 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9191 echo "$as_me: $ac_file is unchanged" >&6;}
9193 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9195 X"$ac_file" : 'X\(//\)[^/]' \| \
9196 X"$ac_file" : 'X\(//\)$' \| \
9197 X"$ac_file" : 'X\(/\)' \| \
9198 . : '\(.\)' 2>/dev/null ||
9200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9202 /^X\(\/\/\)$/{ s//\1/; q; }
9203 /^X\(\/\).*/{ s//\1/; q; }
9205 { if $as_mkdir_p; then
9210 while test ! -d "$as_dir"; do
9211 as_dirs
="$as_dir $as_dirs"
9212 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9214 X"$as_dir" : 'X\(//\)[^/]' \| \
9215 X"$as_dir" : 'X\(//\)$' \| \
9216 X"$as_dir" : 'X\(/\)' \| \
9217 . : '\(.\)' 2>/dev/null ||
9219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9221 /^X\(\/\/\)$/{ s//\1/; q; }
9222 /^X\(\/\).*/{ s//\1/; q; }
9225 test ! -n "$as_dirs" || mkdir
$as_dirs
9226 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9228 { (exit 1); exit 1; }; }; }
9231 mv $tmp/config.h
$ac_file
9239 cat >>$CONFIG_STATUS <<\_ACEOF
9242 # CONFIG_COMMANDS section.
9244 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9245 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9246 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9247 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9248 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9249 X"$ac_dest" : 'X\(//\)[^/]' \| \
9250 X"$ac_dest" : 'X\(//\)$' \| \
9251 X"$ac_dest" : 'X\(/\)' \| \
9252 . : '\(.\)' 2>/dev/null ||
9254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9256 /^X\(\/\/\)$/{ s//\1/; q; }
9257 /^X\(\/\).*/{ s//\1/; q; }
9259 { if $as_mkdir_p; then
9264 while test ! -d "$as_dir"; do
9265 as_dirs
="$as_dir $as_dirs"
9266 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9268 X"$as_dir" : 'X\(//\)[^/]' \| \
9269 X"$as_dir" : 'X\(//\)$' \| \
9270 X"$as_dir" : 'X\(/\)' \| \
9271 . : '\(.\)' 2>/dev/null ||
9273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9275 /^X\(\/\/\)$/{ s//\1/; q; }
9276 /^X\(\/\).*/{ s//\1/; q; }
9279 test ! -n "$as_dirs" || mkdir
$as_dirs
9280 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9281 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9282 { (exit 1); exit 1; }; }; }
9286 if test "$ac_dir" != .
; then
9287 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9288 # A "../" for each directory in $ac_dir_suffix.
9289 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9291 ac_dir_suffix
= ac_top_builddir
=
9295 .
) # No --srcdir option. We are building in place.
9297 if test -z "$ac_top_builddir"; then
9300 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9302 [\\/]* | ?
:[\\/]* ) # Absolute path.
9303 ac_srcdir
=$srcdir$ac_dir_suffix;
9304 ac_top_srcdir
=$srcdir ;;
9306 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9307 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9310 # Do not use `cd foo && pwd` to compute absolute paths, because
9311 # the directories may not exist.
9313 .
) ac_abs_builddir
="$ac_dir";;
9316 .
) ac_abs_builddir
=`pwd`;;
9317 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9318 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9321 case $ac_abs_builddir in
9322 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9324 case ${ac_top_builddir}.
in
9325 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9326 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9327 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9330 case $ac_abs_builddir in
9331 .
) ac_abs_srcdir
=$ac_srcdir;;
9334 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9335 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9336 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9339 case $ac_abs_builddir in
9340 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9342 case $ac_top_srcdir in
9343 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9344 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9345 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9350 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9351 echo "$as_me: executing $ac_dest commands" >&6;}
9354 # Makefile uses this timestamp file to record whether config.h is up to date.
9361 cat >>$CONFIG_STATUS <<\_ACEOF
9363 { (exit 0); exit 0; }
9365 chmod +x
$CONFIG_STATUS
9366 ac_clean_files
=$ac_clean_files_save
9369 # configure is writing to config.log, and then calls config.status.
9370 # config.status does its own redirection, appending to config.log.
9371 # Unfortunately, on DOS this fails, as config.log is still kept open
9372 # by configure, so config.status won't be able to write to it; its
9373 # output is simply discarded. So we exec the FD to /dev/null,
9374 # effectively closing config.log, so it can be properly (re)opened and
9375 # appended to by config.status. When coming back to configure, we
9376 # need to make the FD available again.
9377 if test "$no_create" != yes; then
9379 ac_config_status_args
=
9380 test "$silent" = yes &&
9381 ac_config_status_args
="$ac_config_status_args --quiet"
9383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9386 # would make configure fail if this is the last instruction.
9387 $ac_cs_success ||
{ (exit 1); exit 1; }