2 # From configure.ac for Bash 5.0, version 5.005.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for bash 5.0-release.
6 # Report bugs to <bug-bash@gnu.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print
-rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
56 as_echo_n='/usr
/ucb
/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
69 as_echo_n='sh
-c $as_echo_n_body as_echo
'
72 as_echo='sh
-c $as_echo_body as_echo
'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
141 _as_can_reexec
=no
; export _as_can_reexec
;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
150 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec
=; unset _as_can_reexec
;}
163 if test "x$CONFIG_SHELL" = x
; then
164 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required
="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev
/null
; then :
208 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
213 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir
=.
220 for as_base
in sh bash ksh sh5
; do
221 # Try only shells that exist, to save several forks.
222 as_shell
=$as_dir/$as_base
223 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
225 CONFIG_SHELL
=$as_shell as_have_required
=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
234 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
236 CONFIG_SHELL
=$SHELL as_have_required
=yes
241 if test "x$CONFIG_SHELL" != x
; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
251 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x
$as_have_required = xno
; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x
${ZSH_VERSION+set} = xset
; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Create "$as_dir" as a directory, including parents if necessary.
323 -*) as_dir
=.
/$as_dir;;
325 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
329 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs
="'$as_qdir' $as_dirs"
333 as_dir
=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
359 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p
()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
378 eval 'as_fn_append ()
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
402 as_val
=`expr "$@" || test $? -eq 1`
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
414 as_status
=$1; test $as_status -eq 0 && as_status
=1
416 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit
$as_status
423 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
430 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
442 as_me
=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits
='0123456789'
466 as_cr_alnum
=$as_cr_Letters$as_cr_digits
469 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
470 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x
"$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec
=no
; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C
= ECHO_N
= ECHO_T
=
505 case `echo -n x` in #(((((
507 case `echo 'xy\c'` in
508 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
517 rm -f conf$$ conf$$.exe conf$$.
file
518 if test -d conf$$.dir
; then
519 rm -f conf$$.dir
/conf$$.
file
522 mkdir conf$$.dir
2>/dev
/null
524 if (echo >conf$$.
file) 2>/dev
/null
; then
525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
541 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
542 rmdir conf$$.dir
2>/dev
/null
544 if mkdir
-p .
2>/dev
/null
; then
545 as_mkdir_p
='mkdir -p "$as_dir"'
547 test -d .
/-p && rmdir .
/-p
552 as_executable_p
=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix
=/usr
/local
574 ac_config_libobj_dir
=.
581 # Identity of this package.
583 PACKAGE_TARNAME
='bash'
584 PACKAGE_VERSION
='5.0-release'
585 PACKAGE_STRING
='bash 5.0-release'
586 PACKAGE_BUGREPORT
='bug-bash@gnu.org'
589 ac_unique_file
="shell.h"
590 # Factoring default headers for most tests.
591 ac_includes_default
="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
628 ac_subst_vars
='LTLIBOBJS
654 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
655 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
656 TIME_H_DEFINES_STRUCT_TIMESPEC
665 INTL_LIBTOOL_SUFFIX_PREFIX
672 BUILD_INCLUDED_LIBINTL
773 program_transform_name
786 enable_option_checking
791 with_installed_readline
792 enable_minimal_config
794 enable_arith_for_command
795 enable_array_variables
797 enable_brace_expansion
798 enable_casemod_attributes
799 enable_casemod_expansions
800 enable_command_timing
805 enable_dev_fd_stat_broken
806 enable_direxpand_default
807 enable_directory_stack
808 enable_disabled_builtins
809 enable_dparen_arithmetic
811 enable_extended_glob_default
812 enable_function_import
813 enable_glob_asciiranges_default
818 enable_net_redirections
819 enable_process_substitution
821 enable_prompt_string_decoding
825 enable_separate_helpfiles
826 enable_single_help_strings
827 enable_strict_posix_default
828 enable_usg_echo_default
829 enable_xpg_echo_default
838 with_included_gettext
841 ac_precious_vars
='build_alias
859 # Initialize some variables set by options.
861 ac_init_version
=false
862 ac_unrecognized_opts
=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
873 program_transform_name
=s
,x
,x
,
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir
='${exec_prefix}/bin'
888 sbindir
='${exec_prefix}/sbin'
889 libexecdir
='${exec_prefix}/libexec'
890 datarootdir
='${prefix}/share'
891 datadir
='${datarootdir}'
892 sysconfdir
='${prefix}/etc'
893 sharedstatedir
='${prefix}/com'
894 localstatedir
='${prefix}/var'
895 includedir
='${prefix}/include'
896 oldincludedir
='/usr/include'
897 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir
='${datarootdir}/info'
903 libdir
='${exec_prefix}/lib'
904 localedir
='${datarootdir}/locale'
905 mandir
='${datarootdir}/man'
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\
$ac_option
919 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
930 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
932 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
935 -build |
--build |
--buil |
--bui |
--bu)
936 ac_prev
=build_alias
;;
937 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
938 build_alias
=$ac_optarg ;;
940 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
941 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
942 ac_prev
=cache_file
;;
943 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
944 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
945 cache_file
=$ac_optarg ;;
948 cache_file
=config.cache
;;
950 -datadir |
--datadir |
--datadi |
--datad)
952 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
953 datadir
=$ac_optarg ;;
955 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
956 |
--dataroo |
--dataro |
--datar)
957 ac_prev
=datarootdir
;;
958 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
959 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
960 datarootdir
=$ac_optarg ;;
962 -disable-* |
--disable-*)
963 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
966 as_fn_error $?
"invalid feature name: $ac_useropt"
967 ac_useropt_orig
=$ac_useropt
968 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep
=', ';;
976 eval enable_
$ac_useropt=no
;;
978 -docdir |
--docdir |
--docdi |
--doc |
--do)
980 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
983 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
985 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
988 -enable-* |
--enable-*)
989 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
992 as_fn_error $?
"invalid feature name: $ac_useropt"
993 ac_useropt_orig
=$ac_useropt
994 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
999 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep
=', ';;
1002 eval enable_
$ac_useropt=\
$ac_optarg ;;
1004 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1005 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1006 |
--exec |
--exe |
--ex)
1007 ac_prev
=exec_prefix
;;
1008 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1009 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1010 |
--exec=* |
--exe=* |
--ex=*)
1011 exec_prefix
=$ac_optarg ;;
1013 -gas |
--gas |
--ga |
--g)
1014 # Obsolete; use --with-gas.
1017 -help |
--help |
--hel |
--he |
-h)
1018 ac_init_help
=long
;;
1019 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1020 ac_init_help
=recursive
;;
1021 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1022 ac_init_help
=short
;;
1024 -host |
--host |
--hos |
--ho)
1025 ac_prev
=host_alias
;;
1026 -host=* |
--host=* |
--hos=* |
--ho=*)
1027 host_alias
=$ac_optarg ;;
1029 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1031 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1033 htmldir
=$ac_optarg ;;
1035 -includedir |
--includedir |
--includedi |
--included |
--include \
1036 |
--includ |
--inclu |
--incl |
--inc)
1037 ac_prev
=includedir
;;
1038 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1039 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1040 includedir
=$ac_optarg ;;
1042 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1044 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1045 infodir
=$ac_optarg ;;
1047 -libdir |
--libdir |
--libdi |
--libd)
1049 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1050 libdir
=$ac_optarg ;;
1052 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1053 |
--libexe |
--libex |
--libe)
1054 ac_prev
=libexecdir
;;
1055 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1056 |
--libexe=* |
--libex=* |
--libe=*)
1057 libexecdir
=$ac_optarg ;;
1059 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1060 ac_prev
=localedir
;;
1061 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1062 localedir
=$ac_optarg ;;
1064 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1065 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1066 ac_prev
=localstatedir
;;
1067 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1068 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1069 localstatedir
=$ac_optarg ;;
1071 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1073 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1074 mandir
=$ac_optarg ;;
1076 -nfp |
--nfp |
--nf)
1077 # Obsolete; use --without-fp.
1080 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1081 |
--no-cr |
--no-c |
-n)
1084 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1085 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1088 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1089 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1090 |
--oldin |
--oldi |
--old |
--ol |
--o)
1091 ac_prev
=oldincludedir
;;
1092 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1093 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1094 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1095 oldincludedir
=$ac_optarg ;;
1097 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1099 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1100 prefix
=$ac_optarg ;;
1102 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1103 |
--program-pre |
--program-pr |
--program-p)
1104 ac_prev
=program_prefix
;;
1105 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1106 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1107 program_prefix
=$ac_optarg ;;
1109 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1110 |
--program-suf |
--program-su |
--program-s)
1111 ac_prev
=program_suffix
;;
1112 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1113 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1114 program_suffix
=$ac_optarg ;;
1116 -program-transform-name |
--program-transform-name \
1117 |
--program-transform-nam |
--program-transform-na \
1118 |
--program-transform-n |
--program-transform- \
1119 |
--program-transform |
--program-transfor \
1120 |
--program-transfo |
--program-transf \
1121 |
--program-trans |
--program-tran \
1122 |
--progr-tra |
--program-tr |
--program-t)
1123 ac_prev
=program_transform_name
;;
1124 -program-transform-name=* |
--program-transform-name=* \
1125 |
--program-transform-nam=* |
--program-transform-na=* \
1126 |
--program-transform-n=* |
--program-transform-=* \
1127 |
--program-transform=* |
--program-transfor=* \
1128 |
--program-transfo=* |
--program-transf=* \
1129 |
--program-trans=* |
--program-tran=* \
1130 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1131 program_transform_name
=$ac_optarg ;;
1133 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1135 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1136 pdfdir
=$ac_optarg ;;
1138 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1140 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1143 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1144 |
-silent |
--silent |
--silen |
--sile |
--sil)
1147 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1149 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1151 sbindir
=$ac_optarg ;;
1153 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1154 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1155 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1157 ac_prev
=sharedstatedir
;;
1158 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1159 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1160 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1162 sharedstatedir
=$ac_optarg ;;
1164 -site |
--site |
--sit)
1166 -site=* |
--site=* |
--sit=*)
1169 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1171 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1172 srcdir
=$ac_optarg ;;
1174 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1175 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1176 ac_prev
=sysconfdir
;;
1177 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1178 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1179 sysconfdir
=$ac_optarg ;;
1181 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1182 ac_prev
=target_alias
;;
1183 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1184 target_alias
=$ac_optarg ;;
1186 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1189 -version |
--version |
--versio |
--versi |
--vers |
-V)
1190 ac_init_version
=: ;;
1193 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 as_fn_error $?
"invalid package name: $ac_useropt"
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval with_
$ac_useropt=\
$ac_optarg ;;
1208 -without-* |
--without-*)
1209 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1212 as_fn_error $?
"invalid package name: $ac_useropt"
1213 ac_useropt_orig
=$ac_useropt
1214 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep
=', ';;
1222 eval with_
$ac_useropt=no
;;
1225 # Obsolete; use --with-x.
1228 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1229 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1230 ac_prev
=x_includes
;;
1231 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1232 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1233 x_includes
=$ac_optarg ;;
1235 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1236 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1237 ac_prev
=x_libraries
;;
1238 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1239 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1240 x_libraries
=$ac_optarg ;;
1242 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1247 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1251 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1253 eval $ac_envvar=\
$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 if test -n "$ac_prev"; then
1268 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $?
"missing argument to $ac_option"
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1275 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 # Check all directory arguments for consistency.
1281 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val
=\$
$ac_var
1287 # Remove trailing slashes.
1290 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\
$ac_val;;
1293 # Be sure to have absolute directory names.
1295 [\\/$
]* | ?
:[\\/]* ) continue;;
1296 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1298 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target
=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x
; then
1310 if test "x$build_alias" = x
; then
1311 cross_compiling
=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1318 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1320 test "$silent" = yes && exec 6>/dev
/null
1323 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di
=`ls -di .` &&
1325 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $?
"working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $?
"pwd does not report name of working directory"
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted
=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir
=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted
=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1367 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1369 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var
in $ac_precious_vars; do
1384 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1386 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures bash 5.0-release to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --build=BUILD configure
for building on BUILD
[guessed
]
1456 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive
) echo "Configuration of bash 5.0-release:";;
1467 --disable-option-checking ignore unrecognized
--enable/--with options
1468 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1469 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1470 --enable-minimal-config a minimal sh-like configuration
1471 --enable-alias enable shell aliases
1472 --enable-arith-for-command
1473 enable arithmetic
for command
1474 --enable-array-variables
1475 include shell array variables
1476 --enable-bang-history turn on csh-style
history substitution
1477 --enable-brace-expansion
1478 include brace expansion
1479 --enable-casemod-attributes
1480 include case-modifying variable attributes
1481 --enable-casemod-expansions
1482 include case-modifying word expansions
1483 --enable-command-timing enable the
time reserved word and
command timing
1484 --enable-cond-command enable the conditional
command
1485 --enable-cond-regexp enable extended regular expression matching
in
1486 conditional commands
1487 --enable-coprocesses enable coprocess support and the coproc reserved
1489 --enable-debugger enable support
for bash debugger
1490 --enable-dev-fd-stat-broken
1491 enable this option
if stat on
/dev
/fd
/N and fstat on
1492 file descriptor N don
't return the same results
1493 --enable-direxpand-default
1494 enable the direxpand shell option by default
1495 --enable-directory-stack
1496 enable builtins pushd/popd/dirs
1497 --enable-disabled-builtins
1498 allow disabled builtins to still be invoked
1499 --enable-dparen-arithmetic
1500 include ((...)) command
1501 --enable-extended-glob include ksh-style extended pattern matching
1502 --enable-extended-glob-default
1503 force extended pattern matching to be enabled by
1505 --enable-function-import
1506 allow bash to import exported function definitions
1508 --enable-glob-asciiranges-default
1509 force bracket range expressions in pattern matching
1510 to use the C locale by default
1511 --enable-help-builtin include the help builtin
1512 --enable-history turn on command history
1513 --enable-job-control enable job control features
1514 --enable-multibyte enable multibyte characters if OS supports them
1515 --enable-net-redirections
1516 enable /dev/tcp/host/port redirection
1517 --enable-process-substitution
1518 enable process substitution
1519 --enable-progcomp enable programmable completion and the complete
1521 --enable-prompt-string-decoding
1522 turn on escape character decoding in prompts
1523 --enable-readline turn on command line editing
1524 --enable-restricted enable a restricted shell
1525 --enable-select include select command
1526 --enable-separate-helpfiles
1527 use external files for help builtin documentation
1528 --enable-single-help-strings
1529 store help documentation as a single string to ease
1531 --enable-strict-posix-default
1532 configure bash to be posix-conformant by default
1533 --enable-usg-echo-default
1534 a synonym for --enable-xpg-echo-default
1535 --enable-xpg-echo-default
1536 make the echo builtin expand escape sequences by
1538 --enable-mem-scramble scramble memory on calls to malloc and free
1539 --enable-profiling allow profiling with gprof
1540 --enable-static-link link bash statically, for use as a root shell
1541 --disable-largefile omit support for large files
1542 --disable-nls do not use Native Language Support
1543 --disable-rpath do not hardcode runtime library paths
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-afs if you are running AFS
1549 --with-bash-malloc use the Bash version of malloc
1550 --with-curses use the curses library instead of the termcap
1552 --with-gnu-malloc synonym for --with-bash-malloc
1553 --with-installed-readline
1554 use a version of the readline library that is
1556 --with-gnu-ld assume the C compiler uses GNU ld default=no
1557 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1558 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1559 --with-included-gettext use the GNU
gettext library included here
1560 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1561 --without-libintl-prefix don
't search for libintl in includedir and libdir
1563 Some influential environment variables:
1565 location of bash debugger initialization file
1567 C compiler used when compiling binaries used only at build time
1569 Compilation options (CFLAGS) used when compiling binaries used
1572 Linker options (LDFLAGS) used when compiling binaries used only
1575 C preprocessor options (CPPFLAGS) used when compiling binaries
1576 used only at build time
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1585 YACC The `Yet Another Compiler Compiler' implementation to use.
1586 Defaults to the first program found out of
: `bison -y', `byacc
',
1588 YFLAGS The list of arguments that will be passed by default to
$YACC.
1589 This
script will default YFLAGS to the empty string to avoid a
1590 default value of
`-d' given by some make applications.
1592 Use these variables to override the choices made by `configure
' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1595 Report bugs to <bug-bash@gnu.org>.
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1625 .) # We are building in place.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1658 bash configure 5.0-release
1659 generated by GNU Autoconf 2.69
1661 Copyright (C) 2012 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^
*+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's
/^
/|
/' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_compile
1710 # ac_fn_c_try_link LINENO
1711 # -----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^
*+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's
/^
/|
/' conftest.$ac_ext >&5
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We
do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status
$ac_retval
1754 } # ac_fn_c_try_link
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1798 ac_fn_c_check_header_mongrel ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if eval \${$3+:} false; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1822 ac_header_compiler=no
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1838 ac_header_preproc=no
1840 rm -f conftest.err conftest.i conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ( $as_echo "## ------------------------------- ##
1864 ## Report this to bug-bash@gnu.org ##
1865 ## ------------------------------- ##"
1866 ) | sed "s/^/$as_me: WARNING: /" >&2
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1874 eval "$3=\$ac_header_compiler"
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_mongrel
1884 # ac_fn_c_try_run LINENO
1885 # ----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887 # that executables *can* be run.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1894 *) ac_try_echo
=$ac_try;;
1896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=$ac_status
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1926 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists and can be compiled using the include files in
1929 # INCLUDES, setting the cache variable VAR accordingly.
1930 ac_fn_c_check_header_compile ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 } # ac_fn_c_check_header_compile
1957 # ac_fn_c_check_func LINENO FUNC VAR
1958 # ----------------------------------
1959 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1960 ac_fn_c_check_func ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1972 #define $2 innocuous_$2
1974 /* System header to define __stub macros and hopefully few prototypes,
1975 which can conflict with char $2 (); below.
1976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1977 <limits.h> exists even on freestanding compilers. */
1980 # include <limits.h>
1982 # include <assert.h>
1987 /* Override any GCC internal prototype to avoid an error.
1988 Use char because int might match the return type of a GCC
1989 builtin and then its argument prototype would still apply. */
1994 /* The GNU C library defines this for functions which it implements
1995 to always fail with ENOSYS. Some functions are actually named
1996 something starting with __ and the normal name is an alias. */
1997 #if defined __stub_$2 || defined __stub___$2
2009 if ac_fn_c_try_link "$LINENO"; then :
2014 rm -f core conftest.err conftest.$ac_objext \
2015 conftest$ac_exeext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_func
2024 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025 # -------------------------------------------
2026 # Tests whether TYPE exists after having included INCLUDES, setting cache
2027 # variable VAR accordingly.
2028 ac_fn_c_check_type ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_type
2078 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2079 # ---------------------------------------------
2080 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2082 ac_fn_c_check_decl ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2086 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2088 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2089 if eval \${$3+:} false; then :
2090 $as_echo_n "(cached) " >&6
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2098 #ifndef $as_decl_name
2100 (void) $as_decl_use;
2102 (void) $as_decl_name;
2110 if ac_fn_c_try_compile "$LINENO"; then :
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 } # ac_fn_c_check_decl
2124 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2125 # --------------------------------------------
2126 # Tries to find the compile-time value of EXPR in a program that includes
2127 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2129 ac_fn_c_compute_int ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 if test "$cross_compiling" = yes; then
2133 # Depending upon the size, compute the lo and hi bounds.
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2140 static int test_array [1 - 2 * !(($2) >= 0)];
2142 return test_array [0];
2148 if ac_fn_c_try_compile "$LINENO"; then :
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2159 return test_array [0];
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_hi=$ac_mid; break
2168 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2169 if test $ac_lo -le $ac_mid; then
2173 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2184 static int test_array [1 - 2 * !(($2) < 0)];
2186 return test_array [0];
2192 if ac_fn_c_try_compile "$LINENO"; then :
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2201 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2203 return test_array [0];
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_lo=$ac_mid; break
2212 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2213 if test $ac_mid -le $ac_hi; then
2217 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 # Binary search between lo and hi bounds.
2228 while test "x$ac_lo" != "x$ac_hi"; do
2229 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2238 return test_array [0];
2244 if ac_fn_c_try_compile "$LINENO"; then :
2247 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2259 static long int longval () { return $2; }
2260 static unsigned long int ulongval () { return $2; }
2267 FILE *f = fopen ("conftest.val", "w");
2272 long int i = longval ();
2275 fprintf (f, "%ld", i);
2279 unsigned long int i = ulongval ();
2282 fprintf (f, "%lu", i);
2284 /* Do not output a trailing newline, as this causes \r\n confusion
2285 on some platforms. */
2286 return ferror (f) || fclose (f) != 0;
2292 if ac_fn_c_try_run "$LINENO"; then :
2293 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2298 conftest.$ac_objext conftest.beam conftest.$ac_ext
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 as_fn_set_status $ac_retval
2305 } # ac_fn_c_compute_int
2307 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2308 # ----------------------------------------------------
2309 # Tries to find if the field MEMBER exists in type AGGR, after including
2310 # INCLUDES, setting cache variable VAR accordingly.
2311 ac_fn_c_check_member ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2315 $as_echo_n "checking for $2.$3... " >&6; }
2316 if eval \${$4+:} false; then :
2317 $as_echo_n "(cached) " >&6
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2332 if ac_fn_c_try_compile "$LINENO"; then :
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2342 if (sizeof ac_aggr.$3)
2348 if ac_fn_c_try_compile "$LINENO"; then :
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362 } # ac_fn_c_check_member
2363 cat >config.log <<_ACEOF
2364 This file contains any messages produced by compilers while
2365 running configure, to aid debugging if configure makes a mistake.
2367 It was created by bash $as_me 5.0-release, which was
2368 generated by GNU Autoconf 2.69. Invocation command line was
2380 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2381 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2382 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2383 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2384 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2386 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2387 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2389 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2390 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2391 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2392 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2393 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2394 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2395 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 $as_echo "PATH: $as_dir"
2420 # Keep a trace of the command line.
2421 # Strip out --no-create and --no-recursion so they do not pile up.
2422 # Strip out --silent because we don't want to record it for future runs.
2423 # Also quote any args containing shell meta-characters.
2424 # Make two passes to allow for proper duplicate-argument suppression.
2428 ac_must_keep_next=false
2434 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436 | -silent | --silent | --silen | --sile | --sil)
2439 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2442 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444 as_fn_append ac_configure_args1 " '$ac_arg'"
2445 if test $ac_must_keep_next = true; then
2446 ac_must_keep_next=false # Got value, back to normal.
2449 *=* | --config-cache | -C | -disable-* | --disable-* \
2450 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452 | -with-* | --with-* | -without-* | --without-* | --x)
2453 case "$ac_configure_args0 " in
2454 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457 -* ) ac_must_keep_next=true ;;
2460 as_fn_append ac_configure_args " '$ac_arg'"
2465 { ac_configure_args0=; unset ac_configure_args0;}
2466 { ac_configure_args1=; unset ac_configure_args1;}
2468 # When interrupted or exit'd, cleanup temporary files, and complete
2469 # config.log. We remove comments because anyway the quotes in there
2470 # would cause problems or look ugly.
2471 # WARNING: Use '\'' to represent an apostrophe within the trap.
2472 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473 trap 'exit_status=$?
2474 # Save into config.log some information that might help in debugging.
2478 $as_echo "## ---------------- ##
2479 ## Cache variables. ##
2480 ## ---------------- ##"
2482 # The following way of writing the cache mishandles newlines in values,
2484 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2485 eval ac_val=\$$ac_var
2489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2493 _ | IFS | as_nl) ;; #(
2494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495 *) { eval $ac_var=; unset $ac_var;} ;;
2500 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2501 *${as_nl}ac_space=\ *)
2503 "s/'\''/'\''\\\\'\'''\''/g;
2504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514 $as_echo "## ----------------- ##
2515 ## Output variables. ##
2516 ## ----------------- ##"
2518 for ac_var in $ac_subst_vars
2520 eval ac_val=\$$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -n "$ac_subst_files"; then
2529 $as_echo "## ------------------- ##
2530 ## File substitutions. ##
2531 ## ------------------- ##"
2533 for ac_var in $ac_subst_files
2535 eval ac_val=\$$ac_var
2537 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539 $as_echo "$ac_var='\''$ac_val'\''"
2544 if test -s confdefs.h; then
2545 $as_echo "## ----------- ##
2552 test "$ac_signal" != 0 &&
2553 $as_echo "$as_me: caught signal $ac_signal"
2554 $as_echo "$as_me: exit $exit_status"
2556 rm -f core *.core core.conftest.* &&
2557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2560 for ac_signal in 1 2 13 15; do
2561 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2566 rm -f -r conftest* confdefs.h
2568 $as_echo "/* confdefs.h */" > confdefs.h
2570 # Predefined preprocessor variables.
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_NAME "$PACKAGE_NAME"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_STRING "$PACKAGE_STRING"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_URL "$PACKAGE_URL"
2597 # Let the site file select an alternate cache file if it wants to.
2598 # Prefer an explicitly selected file to automatically selected ones.
2601 if test -n "$CONFIG_SITE"; then
2602 # We do not want a PATH search for config.site.
2603 case $CONFIG_SITE in #((
2604 -*) ac_site_file1=./$CONFIG_SITE;;
2605 */*) ac_site_file1=$CONFIG_SITE;;
2606 *) ac_site_file1=./$CONFIG_SITE;;
2608 elif test "x$prefix" != xNONE; then
2609 ac_site_file1=$prefix/share/config.site
2610 ac_site_file2=$prefix/etc/config.site
2612 ac_site_file1=$ac_default_prefix/share/config.site
2613 ac_site_file2=$ac_default_prefix/etc/config.site
2615 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617 test "x$ac_site_file" = xNONE && continue
2618 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621 sed 's/^/| /' "$ac_site_file" >&5
2623 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 as_fn_error $? "failed to load site
script $ac_site_file
2626 See \
`config.log' for more details" "$LINENO" 5; }
2630 if test -r "$cache_file"; then
2631 # Some versions of bash will fail to source /dev/null (special files
2632 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2633 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635 $as_echo "$as_me: loading cache $cache_file" >&6;}
2637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638 *) . "./$cache_file";;
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643 $as_echo "$as_me: creating cache $cache_file" >&6;}
2647 as_fn_append ac_header_list " stdlib.h"
2648 as_fn_append ac_header_list " unistd.h"
2649 as_fn_append ac_header_list " sys/param.h"
2650 as_fn_append ac_header_list " sys/time.h"
2651 as_fn_append ac_func_list " alarm"
2652 as_fn_append ac_func_list " sbrk"
2653 as_fn_append ac_func_list " fpurge"
2654 as_fn_append ac_func_list " __fpurge"
2655 as_fn_append ac_func_list " snprintf"
2656 as_fn_append ac_func_list " vsnprintf"
2657 # Check that the precious variables saved in the cache have kept the same
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2668 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2672 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x
$ac_old_val`
2679 ac_new_val_w=`echo x
$ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2683 ac_cache_corrupted=:
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 for ac_dir in ./support "$srcdir"/./support; do
2731 if test -f "$ac_dir/install-sh"; then
2733 ac_install_sh="$ac_aux_dir/install-sh -c"
2735 elif test -f "$ac_dir/install.sh"; then
2737 ac_install_sh="$ac_aux_dir/install.sh -c"
2739 elif test -f "$ac_dir/shtool"; then
2741 ac_install_sh="$ac_aux_dir/shtool install -c"
2745 if test -z "$ac_aux_dir"; then
2746 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2749 # These three variables are undocumented and unsupported,
2750 # and are intended to be withdrawn in a future Autoconf release.
2751 # They can cause serious problems if a builder's source tree is in a directory
2752 # whose full name contains unusual characters.
2753 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2754 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2755 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2758 ac_config_headers="$ac_config_headers config.h"
2764 case "$RELSTATUS" in
2765 alp*|bet*|dev*|rc*|releng*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2766 *) DEBUG= MALLOC_DEBUG= ;;
2769 # Make sure we can run config.sub.
2770 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2771 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2774 $as_echo_n "checking build system type... " >&6; }
2775 if ${ac_cv_build+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 ac_build_alias=$build_alias
2779 test "x$ac_build_alias" = x &&
2780 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2781 test "x$ac_build_alias" = x &&
2782 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2783 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2788 $as_echo "$ac_cv_build" >&6; }
2789 case $ac_cv_build in
2791 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2794 ac_save_IFS=$IFS; IFS='-'
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2804 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2808 $as_echo_n "checking host system type... " >&6; }
2809 if ${ac_cv_host+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 if test "x$host_alias" = x; then
2813 ac_cv_host=$ac_cv_build
2815 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2821 $as_echo "$ac_cv_host" >&6; }
2824 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2827 ac_save_IFS=$IFS; IFS='-'
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2837 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2845 opt_with_installed_readline=no
2849 case "${host_cpu}-${host_os}" in
2850 # mostly obsolete platforms
2851 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2852 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2853 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2854 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2855 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2856 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2857 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2858 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2859 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2860 # These need additional investigation
2861 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2862 *-aix*) opt_bash_malloc=no ;; # AIX machines
2863 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2864 # Mach-derived systems have a ton of extra malloc functions and lack sbrk(2)
2865 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2866 *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep
2867 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2868 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2869 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2870 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2871 # Niche or non-mainstream-shell-user systems
2872 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX [67].x
2873 *-nsk*) opt_bash_malloc=no ;; # HP NonStop
2874 *-haiku*) opt_bash_malloc=no ;; # Haiku OS
2875 # Deprecated -- bash malloc is suitable
2876 #sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2877 #mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2878 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2879 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2880 #*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2881 #*-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2884 # memory scrambling on free()
2885 case "${host_os}" in
2886 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2887 *) opt_memscramble=yes ;;
2893 # Check whether --with-afs was given.
2894 if test "${with_afs+set}" = set; then :
2895 withval=$with_afs; opt_afs=$withval
2899 # Check whether --with-bash-malloc was given.
2900 if test "${with_bash_malloc+set}" = set; then :
2901 withval=$with_bash_malloc; opt_bash_malloc=$withval
2905 # Check whether --with-curses was given.
2906 if test "${with_curses+set}" = set; then :
2907 withval=$with_curses; opt_curses=$withval
2911 # Check whether --with-gnu-malloc was given.
2912 if test "${with_gnu_malloc+set}" = set; then :
2913 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2917 # Check whether --with-installed-readline was given.
2918 if test "${with_installed_readline+set}" = set; then :
2919 withval=$with_installed_readline; opt_with_installed_readline=$withval
2923 if test "$opt_bash_malloc" = yes; then
2924 MALLOC_TARGET=malloc
2927 MALLOC_LIB='-lmalloc'
2928 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2929 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2930 MALLOC_DEP='$(MALLOC_LIBRARY)'
2932 $as_echo "#define USING_BASH_MALLOC 1" >>confdefs.h
2941 if test "$opt_afs" = yes; then
2942 $as_echo "#define AFS 1" >>confdefs.h
2946 if test "$opt_curses" = yes; then
2950 if test -z "${DEBUGGER_START_FILE}"; then
2951 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2954 opt_minimal_config=no
2960 opt_bang_history=yes
2963 opt_process_subst=yes
2964 opt_prompt_decoding=yes
2967 opt_array_variables=yes
2968 opt_dparen_arith=yes
2969 opt_extended_glob=yes
2970 opt_brace_expansion=yes
2971 opt_disabled_builtins=no
2972 opt_command_timing=yes
2975 opt_cond_command=yes
2978 opt_arith_for_command=yes
2981 opt_separate_help=no
2984 opt_single_longdoc_strings=yes
2985 opt_casemod_attrs=yes
2986 opt_casemod_expansions=yes
2987 opt_extglob_default=no
2988 opt_dircomplete_expand_default=no
2989 opt_globascii_default=yes
2990 opt_function_import=yes
2991 opt_dev_fd_stat_broken=no
2996 # Check whether --enable-minimal-config was given.
2997 if test "${enable_minimal_config+set}" = set; then :
2998 enableval=$enable_minimal_config; opt_minimal_config=$enableval
3002 if test $opt_minimal_config = yes; then
3003 opt_job_control=no opt_alias=no opt_readline=no
3004 opt_history=no opt_bang_history=no opt_dirstack=no
3005 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
3006 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
3007 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
3008 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
3009 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3010 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3011 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3012 opt_globascii_default=yes
3015 # Check whether --enable-alias was given.
3016 if test "${enable_alias+set}" = set; then :
3017 enableval=$enable_alias; opt_alias=$enableval
3020 # Check whether --enable-arith-for-command was given.
3021 if test "${enable_arith_for_command+set}" = set; then :
3022 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3025 # Check whether --enable-array-variables was given.
3026 if test "${enable_array_variables+set}" = set; then :
3027 enableval=$enable_array_variables; opt_array_variables=$enableval
3030 # Check whether --enable-bang-history was given.
3031 if test "${enable_bang_history+set}" = set; then :
3032 enableval=$enable_bang_history; opt_bang_history=$enableval
3035 # Check whether --enable-brace-expansion was given.
3036 if test "${enable_brace_expansion+set}" = set; then :
3037 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3040 # Check whether --enable-casemod-attributes was given.
3041 if test "${enable_casemod_attributes+set}" = set; then :
3042 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3045 # Check whether --enable-casemod-expansions was given.
3046 if test "${enable_casemod_expansions+set}" = set; then :
3047 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3050 # Check whether --enable-command-timing was given.
3051 if test "${enable_command_timing+set}" = set; then :
3052 enableval=$enable_command_timing; opt_command_timing=$enableval
3055 # Check whether --enable-cond-command was given.
3056 if test "${enable_cond_command+set}" = set; then :
3057 enableval=$enable_cond_command; opt_cond_command=$enableval
3060 # Check whether --enable-cond-regexp was given.
3061 if test "${enable_cond_regexp+set}" = set; then :
3062 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3065 # Check whether --enable-coprocesses was given.
3066 if test "${enable_coprocesses+set}" = set; then :
3067 enableval=$enable_coprocesses; opt_coproc=$enableval
3070 # Check whether --enable-debugger was given.
3071 if test "${enable_debugger+set}" = set; then :
3072 enableval=$enable_debugger; opt_debugger=$enableval
3075 # Check whether --enable-dev-fd-stat-broken was given.
3076 if test "${enable_dev_fd_stat_broken+set}" = set; then :
3077 enableval=$enable_dev_fd_stat_broken; opt_dev_fd_stat_broken=$enableval
3080 # Check whether --enable-direxpand-default was given.
3081 if test "${enable_direxpand_default+set}" = set; then :
3082 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3085 # Check whether --enable-directory-stack was given.
3086 if test "${enable_directory_stack+set}" = set; then :
3087 enableval=$enable_directory_stack; opt_dirstack=$enableval
3090 # Check whether --enable-disabled-builtins was given.
3091 if test "${enable_disabled_builtins+set}" = set; then :
3092 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3095 # Check whether --enable-dparen-arithmetic was given.
3096 if test "${enable_dparen_arithmetic+set}" = set; then :
3097 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3100 # Check whether --enable-extended-glob was given.
3101 if test "${enable_extended_glob+set}" = set; then :
3102 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3105 # Check whether --enable-extended-glob-default was given.
3106 if test "${enable_extended_glob_default+set}" = set; then :
3107 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3110 # Check whether --enable-function-import was given.
3111 if test "${enable_function_import+set}" = set; then :
3112 enableval=$enable_function_import; opt_function_import=$enableval
3115 # Check whether --enable-glob-asciiranges-default was given.
3116 if test "${enable_glob_asciiranges_default+set}" = set; then :
3117 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3120 # Check whether --enable-help-builtin was given.
3121 if test "${enable_help_builtin+set}" = set; then :
3122 enableval=$enable_help_builtin; opt_help=$enableval
3125 # Check whether --enable-history was given.
3126 if test "${enable_history+set}" = set; then :
3127 enableval=$enable_history; opt_history=$enableval
3130 # Check whether --enable-job-control was given.
3131 if test "${enable_job_control+set}" = set; then :
3132 enableval=$enable_job_control; opt_job_control=$enableval
3135 # Check whether --enable-multibyte was given.
3136 if test "${enable_multibyte+set}" = set; then :
3137 enableval=$enable_multibyte; opt_multibyte=$enableval
3140 # Check whether --enable-net-redirections was given.
3141 if test "${enable_net_redirections+set}" = set; then :
3142 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3145 # Check whether --enable-process-substitution was given.
3146 if test "${enable_process_substitution+set}" = set; then :
3147 enableval=$enable_process_substitution; opt_process_subst=$enableval
3150 # Check whether --enable-progcomp was given.
3151 if test "${enable_progcomp+set}" = set; then :
3152 enableval=$enable_progcomp; opt_progcomp=$enableval
3155 # Check whether --enable-prompt-string-decoding was given.
3156 if test "${enable_prompt_string_decoding+set}" = set; then :
3157 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3160 # Check whether --enable-readline was given.
3161 if test "${enable_readline+set}" = set; then :
3162 enableval=$enable_readline; opt_readline=$enableval
3165 # Check whether --enable-restricted was given.
3166 if test "${enable_restricted+set}" = set; then :
3167 enableval=$enable_restricted; opt_restricted=$enableval
3170 # Check whether --enable-select was given.
3171 if test "${enable_select+set}" = set; then :
3172 enableval=$enable_select; opt_select=$enableval
3175 # Check whether --enable-separate-helpfiles was given.
3176 if test "${enable_separate_helpfiles+set}" = set; then :
3177 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3180 # Check whether --enable-single-help-strings was given.
3181 if test "${enable_single_help_strings+set}" = set; then :
3182 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3185 # Check whether --enable-strict-posix-default was given.
3186 if test "${enable_strict_posix_default+set}" = set; then :
3187 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3190 # Check whether --enable-usg-echo-default was given.
3191 if test "${enable_usg_echo_default+set}" = set; then :
3192 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3195 # Check whether --enable-xpg-echo-default was given.
3196 if test "${enable_xpg_echo_default+set}" = set; then :
3197 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3201 # Check whether --enable-mem-scramble was given.
3202 if test "${enable_mem_scramble+set}" = set; then :
3203 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3206 # Check whether --enable-profiling was given.
3207 if test "${enable_profiling+set}" = set; then :
3208 enableval=$enable_profiling; opt_profiling=$enableval
3211 # Check whether --enable-static-link was given.
3212 if test "${enable_static_link+set}" = set; then :
3213 enableval=$enable_static_link; opt_static_link=$enableval
3224 if test $opt_alias = yes; then
3225 $as_echo "#define ALIAS 1" >>confdefs.h
3228 if test $opt_dirstack = yes; then
3229 $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h
3232 if test $opt_restricted = yes; then
3233 $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h
3236 if test $opt_process_subst = yes; then
3237 $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3240 if test $opt_prompt_decoding = yes; then
3241 $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3244 if test $opt_select = yes; then
3245 $as_echo "#define SELECT_COMMAND 1" >>confdefs.h
3248 if test $opt_help = yes; then
3249 $as_echo "#define HELP_BUILTIN 1" >>confdefs.h
3252 if test $opt_array_variables = yes; then
3253 $as_echo "#define ARRAY_VARS 1" >>confdefs.h
3256 if test $opt_dparen_arith = yes; then
3257 $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3260 if test $opt_brace_expansion = yes; then
3261 $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h
3264 if test $opt_disabled_builtins = yes; then
3265 $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h
3268 if test $opt_command_timing = yes; then
3269 $as_echo "#define COMMAND_TIMING 1" >>confdefs.h
3272 if test $opt_xpg_echo = yes ; then
3273 $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3276 if test $opt_strict_posix = yes; then
3277 $as_echo "#define STRICT_POSIX 1" >>confdefs.h
3280 if test $opt_extended_glob = yes ; then
3281 $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h
3284 if test $opt_extglob_default = yes; then
3285 $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3288 $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3291 if test $opt_cond_command = yes ; then
3292 $as_echo "#define COND_COMMAND 1" >>confdefs.h
3295 if test $opt_cond_regexp = yes ; then
3296 $as_echo "#define COND_REGEXP 1" >>confdefs.h
3299 if test $opt_coproc = yes; then
3300 $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h
3303 if test $opt_arith_for_command = yes; then
3304 $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3307 if test $opt_net_redirs = yes; then
3308 $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3311 if test $opt_progcomp = yes; then
3312 $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3315 if test $opt_multibyte = no; then
3316 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3319 if test $opt_debugger = yes; then
3320 $as_echo "#define DEBUGGER 1" >>confdefs.h
3323 if test $opt_casemod_attrs = yes; then
3324 $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h
3327 if test $opt_casemod_expansions = yes; then
3328 $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3331 if test $opt_dircomplete_expand_default = yes; then
3332 $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3335 if test $opt_globascii_default = yes; then
3336 $as_echo "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3339 $as_echo "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3342 if test $opt_function_import = yes; then
3343 $as_echo "#define FUNCTION_IMPORT 1" >>confdefs.h
3346 if test $opt_dev_fd_stat_broken = yes; then
3347 $as_echo "#define DEV_FD_STAT_BROKEN 1" >>confdefs.h
3351 if test $opt_memscramble = yes; then
3352 $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h
3356 if test "$opt_minimal_config" = yes; then
3357 TESTSCRIPT=run-minimal
3362 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3363 if test "$opt_separate_help" != no; then
3364 if test "$opt_separate_help" = "yes" ; then
3365 HELPDIR='${datadir}/bash'
3367 HELPDIR=$opt_separate_help
3369 HELPDIRDEFINE='-H ${HELPDIR}'
3370 HELPINSTALL='install-help'
3371 HELPFILES_TARGET='helpdoc'
3374 if test "$opt_single_longdoc_strings" != "yes"; then
3395 if test -z "$CFLAGS"; then
3396 AUTO_CFLAGS="-g ${GCC+-O2} ${GCC+-Wno-parentheses}"
3397 AUTO_LDFLAGS="-g ${GCC+-O2}"
3399 AUTO_CFLAGS= AUTO_LDFLAGS=
3403 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 $as_echo "$CC" >&6; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3450 if test -z "$ac_cv_prog_CC"; then
3452 # Extract the first word of "gcc", so it can be a program name with args.
3453 set dummy gcc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_ac_ct_CC="gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3488 if test "x$ac_ct_CC" = x; then
3491 case $cross_compiling:$ac_tool_warned in
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495 ac_tool_warned=yes ;;
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}cc; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_CC="${ac_tool_prefix}cc"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535 $as_echo "$CC" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3544 if test -z "$CC"; then
3545 # Extract the first word of "cc", so it can be a program name with args.
3546 set dummy cc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3564 ac_prog_rejected=yes
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 if test $ac_prog_rejected = yes; then
3576 # We found a bogon in the path, so make sure we never use it.
3577 set dummy $ac_cv_prog_CC
3579 if test $# != 0; then
3580 # We chose a different compiler from the bogus one.
3581 # However, it has the same basename, so the bogon will be chosen
3582 # first if we set CC to just the basename; use the full file name.
3584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in cl.exe
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3641 test -n "$CC" && break
3644 if test -z "$CC"; then
3646 for ac_prog in cl.exe
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_ac_ct_CC="$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3685 test -n "$ac_ct_CC" && break
3688 if test "x$ac_ct_CC" = x; then
3691 case $cross_compiling:$ac_tool_warned in
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3695 ac_tool_warned=yes ;;
3704 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3707 See \
`config.log' for more details" "$LINENO" 5; }
3709 # Provide some information about the compiler.
3710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3713 for ac_option in --version -v -V -qversion; do
3714 { { ac_try="$ac_compiler $ac_option >&5"
3716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3717 *) ac_try_echo
=$ac_try;;
3719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723 if test -s conftest.err
; then
3725 ... rest of stderr output deleted ...
3726 10q' conftest.err
>conftest.er1
3727 cat conftest.er1
>&5
3729 rm -f conftest.er1 conftest.err
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }
3734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 ac_clean_files_save
=$ac_clean_files
3746 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3747 # Try to create an executable without -o first, disregard a.out.
3748 # It will help us diagnose broken compilers, and finding out an intuition
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3751 $as_echo_n "checking whether the C compiler works... " >&6; }
3752 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3754 # The possible output files:
3755 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3758 for ac_file
in $ac_files
3761 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3762 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3767 if { { ac_try
="$ac_link_default"
3769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_link_default") 2>&5
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; then :
3778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3779 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3781 # so that the user can short-circuit this test for compilers unknown to
3783 for ac_file in $ac_files ''
3785 test -f "$ac_file" || continue
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3790 # We found the default executable, but exeext='' is most
3794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798 # We set ac_cv_exeext here because the later test for it is not
3799 # safe: cross compilers may not add the suffix if given an `-o'
3800 # argument, so we may need to know it at that point already.
3801 # Even if this section looks crufty: it has the advantage of
3808 test "$ac_cv_exeext" = no && ac_cv_exeext=
3813 if test -z "$ac_file"; then :
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 $as_echo "$as_me: failed program was:" >&5
3817 sed 's
/^
/|
/' conftest.$ac_ext >&5
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3821 as_fn_error 77 "C compiler cannot create executables
3822 See \`config.log
' for more details" "$LINENO" 5; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3825 $as_echo "yes" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3828 $as_echo_n "checking for C compiler default output file name... " >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3830 $as_echo "$ac_file" >&6; }
3831 ac_exeext=$ac_cv_exeext
3833 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3834 ac_clean_files=$ac_clean_files_save
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3836 $as_echo_n "checking for suffix of executables... " >&6; }
3837 if { { ac_try="$ac_link"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_link") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3849 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3850 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3852 for ac_file
in conftest.exe conftest conftest.
*; do
3853 test -f "$ac_file" ||
continue
3855 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3856 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3865 See \`config.log' for more details" "$LINENO" 5; }
3867 rm -f conftest conftest
$ac_cv_exeext
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3869 $as_echo "$ac_cv_exeext" >&6; }
3871 rm -f conftest.
$ac_ext
3872 EXEEXT
=$ac_cv_exeext
3874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3880 FILE *f = fopen ("conftest.out", "w");
3881 return ferror (f) || fclose (f) != 0;
3887 ac_clean_files
="$ac_clean_files conftest.out"
3888 # Check that the compiler produces executables we can run. If not, either
3889 # the compiler is broken, or we cross compile.
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3891 $as_echo_n "checking whether we are cross compiling... " >&6; }
3892 if test "$cross_compiling" != yes; then
3893 { { ac_try
="$ac_link"
3895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link") 2>&5
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }
3904 if { ac_try='./conftest$ac_cv_exeext'
3905 { { case "(($ac_try" in
3906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3907 *) ac_try_echo
=$ac_try;;
3909 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_try") 2>&5
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; }; then
3917 if test "$cross_compiling" = maybe
; then
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error $?
"cannot run C compiled programs.
3923 If you meant to cross compile, use \`--host'.
3924 See \`config.log' for more details" "$LINENO" 5; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3929 $as_echo "$cross_compiling" >&6; }
3931 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3932 ac_clean_files
=$ac_clean_files_save
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3934 $as_echo_n "checking for suffix of object files... " >&6; }
3935 if ${ac_cv_objext+:} false
; then :
3936 $as_echo_n "(cached) " >&6
3938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3949 rm -f conftest.o conftest.obj
3950 if { { ac_try
="$ac_compile"
3952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_compile") 2>&5
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 for ac_file in conftest.o conftest.obj conftest.*; do
3962 test -f "$ac_file" || continue;
3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3965 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3970 $as_echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3976 See \
`config.log' for more details" "$LINENO" 5; }
3978 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3981 $as_echo "$ac_cv_objext" >&6; }
3982 OBJEXT=$ac_cv_objext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3985 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3986 if ${ac_cv_c_compiler_gnu+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4003 if ac_fn_c_try_compile "$LINENO"; then :
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4013 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4014 if test $ac_compiler_gnu = yes; then
4019 ac_test_CFLAGS=${CFLAGS+set}
4020 ac_save_CFLAGS=$CFLAGS
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4022 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4023 if ${ac_cv_prog_cc_g+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 ac_save_c_werror_flag=$ac_c_werror_flag
4027 ac_c_werror_flag=yes
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4041 if ac_fn_c_try_compile "$LINENO"; then :
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 if ac_fn_c_try_compile "$LINENO"; then :
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4083 $as_echo "$ac_cv_prog_cc_g" >&6; }
4084 if test "$ac_test_CFLAGS" = set; then
4085 CFLAGS=$ac_save_CFLAGS
4086 elif test $ac_cv_prog_cc_g = yes; then
4087 if test "$GCC" = yes; then
4093 if test "$GCC" = yes; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4100 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4101 if ${ac_cv_prog_cc_c89+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 ac_cv_prog_cc_c89=no
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4112 struct buf { int x; };
4113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4114 static char *e (p, i)
4120 static char *f (char * (*g) (char **, int), char **p, ...)
4125 s = g (p, va_arg (v,int));
4130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4131 function prototypes and stuff, but not '\xHH' hex character constants.
4132 These don't provoke an error unfortunately, instead are silently treated
4133 as 'x'. The following induces an error, until -std is added to get
4134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4135 array size at least. It's necessary to write '\x00'==0 to get something
4136 that's true only with -std. */
4137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4140 inside strings and character constants. */
4142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4144 int test (int i, double x);
4145 struct s1 {int (*f) (int a);};
4146 struct s2 {int (*f) (double a);};
4147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4161 CC="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_c89=$ac_arg
4165 rm -f core conftest.err conftest.$ac_objext
4166 test "x$ac_cv_prog_cc_c89" != "xno" && break
4168 rm -f conftest.$ac_ext
4173 case "x$ac_cv_prog_cc_c89" in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176 $as_echo "none needed" >&6; } ;;
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179 $as_echo "unsupported" >&6; } ;;
4181 CC="$CC $ac_cv_prog_cc_c89"
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4183 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4185 if test "x$ac_cv_prog_cc_c89" != xno; then :
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4199 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4200 if ${ac_cv_lib_cposix_strerror+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 ac_check_lib_save_LIBS=$LIBS
4204 LIBS="-lcposix $LIBS"
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4208 /* Override any GCC internal prototype to avoid an error.
4209 Use char because int might match the return type of a GCC
4210 builtin and then its argument prototype would still apply. */
4223 if ac_fn_c_try_link "$LINENO"; then :
4224 ac_cv_lib_cposix_strerror=yes
4226 ac_cv_lib_cposix_strerror=no
4228 rm -f core conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
4230 LIBS=$ac_check_lib_save_LIBS
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4233 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4234 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
4235 LIBS="$LIBS -lcposix"
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4247 # On Suns, sometimes $CPP names a directory.
4248 if test -n "$CPP" && test -d "$CPP"; then
4251 if test -z "$CPP"; then
4252 if ${ac_cv_prog_CPP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 # Double quotes because CPP needs to be expanded
4256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4259 for ac_c_preproc_warn_flag in '' yes
4261 # Use a header file that comes with gcc, so configuring glibc
4262 # with a fresh cross-compiler works.
4263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264 # <limits.h> exists even on freestanding compilers.
4265 # On the NeXT, cc -E runs the code through the compiler's parser,
4266 # not just through cpp. "Syntax error" is here to catch this case.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4270 # include <limits.h>
4272 # include <assert.h>
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: fails on valid input.
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4284 # OK, works on sane cases. Now check whether nonexistent headers
4285 # can be detected and how.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <ac_nonexistent.h>
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291 # Broken: success on invalid input.
4294 # Passes both tests.
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.
$ac_ext
4303 if $ac_preproc_ok; then :
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4316 $as_echo "$CPP" >&6; }
4318 for ac_c_preproc_warn_flag
in '' yes
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4329 # include <limits.h>
4331 # include <assert.h>
4335 if ac_fn_c_try_cpp
"$LINENO"; then :
4338 # Broken: fails on valid input.
4341 rm -f conftest.err conftest.i conftest.
$ac_ext
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4349 if ac_fn_c_try_cpp
"$LINENO"; then :
4350 # Broken: success on invalid input.
4353 # Passes both tests.
4357 rm -f conftest.err conftest.i conftest.
$ac_ext
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.
$ac_ext
4362 if $ac_preproc_ok; then :
4365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details" "$LINENO" 5; }
4372 ac_cpp
='$CPP $CPPFLAGS'
4373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4380 if ${ac_cv_path_GREP+:} false
; then :
4381 $as_echo_n "(cached) " >&6
4383 if test -z "$GREP"; then
4384 ac_path_GREP_found
=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4387 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4390 test -z "$as_dir" && as_dir
=.
4391 for ac_prog
in grep ggrep
; do
4392 for ac_exec_ext
in '' $ac_executable_extensions; do
4393 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p
"$ac_path_GREP" ||
continue
4395 # Check for GNU ac_path_GREP and select it if it is found.
4396 # Check for GNU $ac_path_GREP
4397 case `"$ac_path_GREP" --version 2>&1` in
4399 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4402 $as_echo_n 0123456789 >"conftest.in"
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'GREP' >> "conftest.nl"
4409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4410 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4411 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_GREP
="$ac_path_GREP"
4415 ac_path_GREP_max
=$ac_count
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4420 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4423 $ac_path_GREP_found && break 3
4428 if test -z "$ac_cv_path_GREP"; then
4429 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432 ac_cv_path_GREP
=$GREP
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4437 $as_echo "$ac_cv_path_GREP" >&6; }
4438 GREP
="$ac_cv_path_GREP"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4442 $as_echo_n "checking for egrep... " >&6; }
4443 if ${ac_cv_path_EGREP+:} false
; then :
4444 $as_echo_n "(cached) " >&6
4446 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4447 then ac_cv_path_EGREP
="$GREP -E"
4449 if test -z "$EGREP"; then
4450 ac_path_EGREP_found
=false
4451 # Loop through the user's path and test for each of PROGNAME-LIST
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_prog
in egrep; do
4458 for ac_exec_ext
in '' $ac_executable_extensions; do
4459 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4460 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4461 # Check for GNU ac_path_EGREP and select it if it is found.
4462 # Check for GNU $ac_path_EGREP
4463 case `"$ac_path_EGREP" --version 2>&1` in
4465 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4468 $as_echo_n 0123456789 >"conftest.in"
4471 cat "conftest.in" "conftest.in" >"conftest.tmp"
4472 mv "conftest.tmp" "conftest.in"
4473 cp "conftest.in" "conftest.nl"
4474 $as_echo 'EGREP' >> "conftest.nl"
4475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4476 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4477 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4479 # Best one so far, save it but keep looking for a better one
4480 ac_cv_path_EGREP
="$ac_path_EGREP"
4481 ac_path_EGREP_max
=$ac_count
4483 # 10*(2^10) chars as input seems more than enough
4484 test $ac_count -gt 10 && break
4486 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4489 $ac_path_EGREP_found && break 3
4494 if test -z "$ac_cv_path_EGREP"; then
4495 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498 ac_cv_path_EGREP
=$EGREP
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4504 $as_echo "$ac_cv_path_EGREP" >&6; }
4505 EGREP
="$ac_cv_path_EGREP"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4509 $as_echo_n "checking for ANSI C header files... " >&6; }
4510 if ${ac_cv_header_stdc+:} false
; then :
4511 $as_echo_n "(cached) " >&6
4513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4528 if ac_fn_c_try_compile
"$LINENO"; then :
4529 ac_cv_header_stdc
=yes
4531 ac_cv_header_stdc
=no
4533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4535 if test $ac_cv_header_stdc = yes; then
4536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4543 $EGREP "memchr" >/dev
/null
2>&1; then :
4546 ac_cv_header_stdc
=no
4552 if test $ac_cv_header_stdc = yes; then
4553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 $EGREP "free" >/dev
/null
2>&1; then :
4563 ac_cv_header_stdc
=no
4569 if test $ac_cv_header_stdc = yes; then
4570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4571 if test "$cross_compiling" = yes; then :
4574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 #if ((' ' & 0x0FF) == 0x020)
4579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4582 # define ISLOWER(c) \
4583 (('a' <= (c) && (c) <= 'i') \
4584 || ('j' <= (c) && (c) <= 'r') \
4585 || ('s' <= (c) && (c) <= 'z'))
4586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4594 for (i = 0; i < 256; i++)
4595 if (XOR (islower (i), ISLOWER (i))
4596 || toupper (i) != TOUPPER (i))
4601 if ac_fn_c_try_run
"$LINENO"; then :
4604 ac_cv_header_stdc
=no
4606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4613 $as_echo "$ac_cv_header_stdc" >&6; }
4614 if test $ac_cv_header_stdc = yes; then
4616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4621 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4622 inttypes.h stdint.h unistd.h
4624 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4627 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4628 cat >>confdefs.h
<<_ACEOF
4629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4639 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4646 if test "$MINIX" = yes; then
4648 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4651 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4654 $as_echo "#define _MINIX 1" >>confdefs.h
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4660 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4661 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4662 $as_echo_n "(cached) " >&6
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4667 # define __EXTENSIONS__ 1
4668 $ac_includes_default
4677 if ac_fn_c_try_compile
"$LINENO"; then :
4678 ac_cv_safe_to_define___extensions__
=yes
4680 ac_cv_safe_to_define___extensions__
=no
4682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4685 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4686 test $ac_cv_safe_to_define___extensions__ = yes &&
4687 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4689 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4691 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4693 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4695 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4700 # Check whether --enable-largefile was given.
4701 if test "${enable_largefile+set}" = set; then :
4702 enableval
=$enable_largefile;
4705 if test "$enable_largefile" != no
; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4708 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4709 if ${ac_cv_sys_largefile_CC+:} false
; then :
4710 $as_echo_n "(cached) " >&6
4712 ac_cv_sys_largefile_CC
=no
4713 if test "$GCC" != yes; then
4716 # IRIX 6.2 and later do not support large files by default,
4717 # so use the C compiler's -n32 option if that helps.
4718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 #include <sys/types.h>
4721 /* Check that off_t can represent 2**63 - 1 correctly.
4722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4723 since some C++ compilers masquerading as C compilers
4724 incorrectly reject 9223372036854775807. */
4725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4727 && LARGE_OFF_T % 2147483647 == 1)
4737 if ac_fn_c_try_compile
"$LINENO"; then :
4740 rm -f core conftest.err conftest.
$ac_objext
4742 if ac_fn_c_try_compile
"$LINENO"; then :
4743 ac_cv_sys_largefile_CC
=' -n32'; break
4745 rm -f core conftest.err conftest.
$ac_objext
4749 rm -f conftest.
$ac_ext
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4753 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4754 if test "$ac_cv_sys_largefile_CC" != no
; then
4755 CC
=$CC$ac_cv_sys_largefile_CC
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4759 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4760 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4761 $as_echo_n "(cached) " >&6
4764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #include <sys/types.h>
4767 /* Check that off_t can represent 2**63 - 1 correctly.
4768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4769 since some C++ compilers masquerading as C compilers
4770 incorrectly reject 9223372036854775807. */
4771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4773 && LARGE_OFF_T % 2147483647 == 1)
4783 if ac_fn_c_try_compile
"$LINENO"; then :
4784 ac_cv_sys_file_offset_bits
=no
; break
4786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #define _FILE_OFFSET_BITS 64
4790 #include <sys/types.h>
4791 /* Check that off_t can represent 2**63 - 1 correctly.
4792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4793 since some C++ compilers masquerading as C compilers
4794 incorrectly reject 9223372036854775807. */
4795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4797 && LARGE_OFF_T % 2147483647 == 1)
4807 if ac_fn_c_try_compile
"$LINENO"; then :
4808 ac_cv_sys_file_offset_bits
=64; break
4810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4811 ac_cv_sys_file_offset_bits
=unknown
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4816 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4817 case $ac_cv_sys_file_offset_bits in #(
4820 cat >>confdefs.h
<<_ACEOF
4821 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4826 if test $ac_cv_sys_file_offset_bits = unknown
; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4828 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4829 if ${ac_cv_sys_large_files+:} false
; then :
4830 $as_echo_n "(cached) " >&6
4833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <sys/types.h>
4836 /* Check that off_t can represent 2**63 - 1 correctly.
4837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4838 since some C++ compilers masquerading as C compilers
4839 incorrectly reject 9223372036854775807. */
4840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4842 && LARGE_OFF_T % 2147483647 == 1)
4852 if ac_fn_c_try_compile
"$LINENO"; then :
4853 ac_cv_sys_large_files
=no
; break
4855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 #define _LARGE_FILES 1
4859 #include <sys/types.h>
4860 /* Check that off_t can represent 2**63 - 1 correctly.
4861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4862 since some C++ compilers masquerading as C compilers
4863 incorrectly reject 9223372036854775807. */
4864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4866 && LARGE_OFF_T % 2147483647 == 1)
4876 if ac_fn_c_try_compile
"$LINENO"; then :
4877 ac_cv_sys_large_files
=1; break
4879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4880 ac_cv_sys_large_files
=unknown
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4885 $as_echo "$ac_cv_sys_large_files" >&6; }
4886 case $ac_cv_sys_large_files in #(
4889 cat >>confdefs.h
<<_ACEOF
4890 #define _LARGE_FILES $ac_cv_sys_large_files
4903 SIGNAMES_H
=lsignames.h
4908 if test "x$cross_compiling" = "xyes"; then
4911 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4914 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4917 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
4920 cross_cache
=${srcdir}/cross-build
/qnx.cache
4922 *) echo "configure: cross-compiling for $host is not supported" >&2
4925 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4926 echo "loading cross-build cache file ${cross_cache}"
4930 SIGNAMES_O
='signames.o'
4931 CROSS_COMPILE
='-DCROSS_COMPILING'
4938 CFLAGS
=${CFLAGS-"$AUTO_CFLAGS"}
4939 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
4941 if test "$opt_profiling" = "yes"; then
4944 solaris2
*|linux
*) ;;
4945 *) opt_static_link
=yes ;;
4947 DEBUG
= MALLOC_DEBUG
=
4953 if test "$opt_static_link" = yes; then
4956 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4957 if test -n "$GCC" ||
test "$ac_cv_c_compiler_gnu" = "yes"; then
4960 solaris2
*|linux
*) ;;
4961 *) LDFLAGS
="$LDFLAGS -static" ;; # XXX experimental
4966 # set the appropriate make variables for building the "build tools"
4967 # modify defaults based on whether or not we are cross compiling, since the
4968 # options for the target host may not be appropriate for the build host
4969 if test "X$cross_compiling" = "Xno"; then
4970 CC_FOR_BUILD
=${CC_FOR_BUILD-'$(CC)'}
4971 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
4972 if test X
"$opt_profiling" = Xyes
; then
4973 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-'$(BASE_LDFLAGS)'}
4975 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4977 # CFLAGS set above to default value if not passed in environment
4978 CFLAGS_FOR_BUILD
=${CFLAGS-'$(CFLAGS)'}
4979 LIBS_FOR_BUILD
=${LIBS_FOR_BUILD-'$(LIBS)'}
4981 CC_FOR_BUILD
=${CC_FOR_BUILD-"gcc"}
4982 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-""}
4983 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-""}
4984 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD="-g"}
4985 LIBS_FOR_BUILD
=${LIBS_FOR_BUILD-""}
4999 if test $ac_cv_c_compiler_gnu = yes; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5001 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5002 if ${ac_cv_prog_gcc_traditional+:} false
; then :
5003 $as_echo_n "(cached) " >&6
5005 ac_pattern
="Autoconf.*'x'"
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
5013 ac_cv_prog_gcc_traditional
=yes
5015 ac_cv_prog_gcc_traditional
=no
5020 if test $ac_cv_prog_gcc_traditional = no
; then
5021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
5028 ac_cv_prog_gcc_traditional
=yes
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5035 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5036 if test $ac_cv_prog_gcc_traditional = yes; then
5037 CC
="$CC -traditional"
5043 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5045 # If the user specified --with-installed-readline=PREFIX and PREFIX
5046 # is not `yes', set ac_cv_rl_prefix to PREFIX
5047 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5050 if test "X$bash_cv_termcap_lib" = "X"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5054 $as_echo_n "checking which library has the termcap functions... " >&6; }
5057 if ${bash_cv_termcap_lib+:} false
; then :
5058 $as_echo_n "(cached) " >&6
5060 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5061 if test "x$ac_cv_func_tgetent" = xyes
; then :
5062 bash_cv_termcap_lib
=libc
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5065 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5066 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
5067 $as_echo_n "(cached) " >&6
5069 ac_check_lib_save_LIBS
=$LIBS
5070 LIBS
="-ltermcap $LIBS"
5071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5074 /* Override any GCC internal prototype to avoid an error.
5075 Use char because int might match the return type of a GCC
5076 builtin and then its argument prototype would still apply. */
5089 if ac_fn_c_try_link
"$LINENO"; then :
5090 ac_cv_lib_termcap_tgetent
=yes
5092 ac_cv_lib_termcap_tgetent
=no
5094 rm -f core conftest.err conftest.
$ac_objext \
5095 conftest
$ac_exeext conftest.
$ac_ext
5096 LIBS
=$ac_check_lib_save_LIBS
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5099 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5100 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
5101 bash_cv_termcap_lib
=libtermcap
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5104 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5105 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_check_lib_save_LIBS
=$LIBS
5109 LIBS
="-ltinfo $LIBS"
5110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 /* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5128 if ac_fn_c_try_link
"$LINENO"; then :
5129 ac_cv_lib_tinfo_tgetent
=yes
5131 ac_cv_lib_tinfo_tgetent
=no
5133 rm -f core conftest.err conftest.
$ac_objext \
5134 conftest
$ac_exeext conftest.
$ac_ext
5135 LIBS
=$ac_check_lib_save_LIBS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5138 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5139 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
5140 bash_cv_termcap_lib
=libtinfo
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5143 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5144 if ${ac_cv_lib_curses_tgetent+:} false
; then :
5145 $as_echo_n "(cached) " >&6
5147 ac_check_lib_save_LIBS
=$LIBS
5148 LIBS
="-lcurses $LIBS"
5149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5152 /* Override any GCC internal prototype to avoid an error.
5153 Use char because int might match the return type of a GCC
5154 builtin and then its argument prototype would still apply. */
5167 if ac_fn_c_try_link
"$LINENO"; then :
5168 ac_cv_lib_curses_tgetent
=yes
5170 ac_cv_lib_curses_tgetent
=no
5172 rm -f core conftest.err conftest.
$ac_objext \
5173 conftest
$ac_exeext conftest.
$ac_ext
5174 LIBS
=$ac_check_lib_save_LIBS
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5177 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5178 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
5179 bash_cv_termcap_lib
=libcurses
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5182 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5183 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
5184 $as_echo_n "(cached) " >&6
5186 ac_check_lib_save_LIBS
=$LIBS
5187 LIBS
="-lncurses $LIBS"
5188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5191 /* Override any GCC internal prototype to avoid an error.
5192 Use char because int might match the return type of a GCC
5193 builtin and then its argument prototype would still apply. */
5206 if ac_fn_c_try_link
"$LINENO"; then :
5207 ac_cv_lib_ncurses_tgetent
=yes
5209 ac_cv_lib_ncurses_tgetent
=no
5211 rm -f core conftest.err conftest.
$ac_objext \
5212 conftest
$ac_exeext conftest.
$ac_ext
5213 LIBS
=$ac_check_lib_save_LIBS
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5216 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5217 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
5218 bash_cv_termcap_lib
=libncurses
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
5221 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
5222 if ${ac_cv_lib_ncursesw_tgetent+:} false
; then :
5223 $as_echo_n "(cached) " >&6
5225 ac_check_lib_save_LIBS
=$LIBS
5226 LIBS
="-lncursesw $LIBS"
5227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5230 /* Override any GCC internal prototype to avoid an error.
5231 Use char because int might match the return type of a GCC
5232 builtin and then its argument prototype would still apply. */
5245 if ac_fn_c_try_link
"$LINENO"; then :
5246 ac_cv_lib_ncursesw_tgetent
=yes
5248 ac_cv_lib_ncursesw_tgetent
=no
5250 rm -f core conftest.err conftest.
$ac_objext \
5251 conftest
$ac_exeext conftest.
$ac_ext
5252 LIBS
=$ac_check_lib_save_LIBS
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
5255 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
5256 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
; then :
5257 bash_cv_termcap_lib
=libncursesw
5259 bash_cv_termcap_lib
=gnutermcap
5274 if test "X$_bash_needmsg" = "Xyes"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5276 $as_echo_n "checking which library has the termcap functions... " >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5279 $as_echo "using $bash_cv_termcap_lib" >&6; }
5280 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5281 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5282 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5283 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5284 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5285 TERMCAP_LIB
=-ltermcap
5287 elif test $bash_cv_termcap_lib = libtinfo
; then
5290 elif test $bash_cv_termcap_lib = libncurses
; then
5291 TERMCAP_LIB
=-lncurses
5293 elif test $bash_cv_termcap_lib = libc
; then
5297 TERMCAP_LIB
=-lcurses
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5305 $as_echo_n "checking version of installed readline library... " >&6; }
5307 # What a pain in the ass this is.
5309 # save cpp and ld options
5310 _save_CFLAGS
="$CFLAGS"
5311 _save_LDFLAGS
="$LDFLAGS"
5314 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5315 # allows the caller to do something like $_rl_prefix=$withval if the user
5316 # specifies --with-installed-readline=PREFIX as an argument to configure
5318 if test -z "$ac_cv_rl_prefix"; then
5319 test "x$prefix" = xNONE
&& ac_cv_rl_prefix
=$ac_default_prefix || ac_cv_rl_prefix
=${prefix}
5322 eval ac_cv_rl_includedir
=${ac_cv_rl_prefix}/include
5323 eval ac_cv_rl_libdir
=${ac_cv_rl_prefix}/lib
5325 LIBS
="$LIBS -lreadline ${TERMCAP_LIB}"
5326 CFLAGS
="$CFLAGS -I${ac_cv_rl_includedir}"
5327 LDFLAGS
="$LDFLAGS -L${ac_cv_rl_libdir}"
5329 if ${ac_cv_rl_version+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 if test "$cross_compiling" = yes; then :
5333 ac_cv_rl_version
='8.0'
5335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5339 #include <readline/readline.h>
5341 extern int rl_gnu_readline_p;
5346 fp = fopen("conftest.rlv", "w");
5349 if (rl_gnu_readline_p != 1)
5350 fprintf(fp, "0.0\n");
5352 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5358 if ac_fn_c_try_run
"$LINENO"; then :
5359 ac_cv_rl_version
=`cat conftest.rlv`
5361 ac_cv_rl_version
='0.0'
5363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5364 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5370 CFLAGS
="$_save_CFLAGS"
5371 LDFLAGS
="$_save_LDFLAGS"
5378 case "$ac_cv_rl_version" in
5379 2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*)
5380 RL_MAJOR
=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5381 RL_MINOR
=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5387 [0-9][0-9]) _RL_MAJOR
=$RL_MAJOR ;;
5388 [0-9]) _RL_MAJOR
=0$RL_MAJOR ;;
5394 [0-9][0-9]) _RL_MINOR
=$RL_MINOR ;;
5395 [0-9]) _RL_MINOR
=0$RL_MINOR ;;
5399 RL_VERSION
="0x${_RL_MAJOR}${_RL_MINOR}"
5401 # Readline versions greater than 4.2 have these defines in readline.h
5403 if test $ac_cv_rl_version = '0.0' ; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5405 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5406 elif test $RL_MAJOR -gt 4 ||
{ test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5407 # set these for use by the caller
5408 RL_PREFIX
=$ac_cv_rl_prefix
5409 RL_LIBDIR
=$ac_cv_rl_libdir
5410 RL_INCLUDEDIR
=$ac_cv_rl_includedir
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5412 $as_echo "$ac_cv_rl_version" >&6; }
5416 cat >>confdefs.h
<<_ACEOF
5417 #define RL_READLINE_VERSION $RL_VERSION
5421 cat >>confdefs.h
<<_ACEOF
5422 #define RL_VERSION_MAJOR $RL_MAJOR
5426 cat >>confdefs.h
<<_ACEOF
5427 #define RL_VERSION_MINOR $RL_MINOR
5435 # set these for use by the caller
5436 RL_PREFIX
=$ac_cv_rl_prefix
5437 RL_LIBDIR
=$ac_cv_rl_libdir
5438 RL_INCLUDEDIR
=$ac_cv_rl_includedir
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5441 $as_echo "$ac_cv_rl_version" >&6; }
5446 case "$ac_cv_rl_version" in
5448 *) opt_with_installed_readline
=no
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
5450 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
5452 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5458 if test $opt_readline = yes; then
5459 $as_echo "#define READLINE 1" >>confdefs.h
5461 if test "$opt_with_installed_readline" != "no" ; then
5462 case "$opt_with_installed_readline" in
5464 *) case "$RL_INCLUDEDIR" in
5466 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
5471 READLINE_LIB
=-lreadline
5472 # section for OS versions that don't allow unresolved symbols
5473 # to be compiled into dynamic libraries.
5475 cygwin
*) TILDE_LIB
= ;;
5478 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5479 READLINE_DEP
='$(READLINE_LIBRARY)'
5480 # section for OS versions that ship an older/broken version of
5481 # readline as a standard dynamic library and don't allow a
5482 # static version specified as -llibname to override the
5484 case "${host_os}" in
5485 darwin
[89]*|darwin10
*) READLINE_LIB
='${READLINE_LIBRARY}' ;;
5486 *) READLINE_LIB
=-lreadline ;;
5490 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5491 READLINE_LIB
= READLINE_DEP
=
5493 if test $opt_history = yes ||
test $opt_bang_history = yes; then
5494 if test $opt_history = yes; then
5495 $as_echo "#define HISTORY 1" >>confdefs.h
5498 if test $opt_bang_history = yes; then
5499 $as_echo "#define BANG_HISTORY 1" >>confdefs.h
5502 if test "$opt_with_installed_readline" != "no"; then
5503 HIST_LIBDIR
=$RL_LIBDIR
5505 HISTORY_LIB
=-lhistory
5506 case "$opt_with_installed_readline" in
5508 *) case "$RL_INCLUDEDIR" in
5510 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
5515 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5516 HISTORY_DEP
='$(HISTORY_LIBRARY)'
5517 # section for OS versions that ship an older version of
5518 # readline as a standard dynamic library and don't allow a
5519 # static version specified as -llibname to override the
5521 case "${host_os}" in
5522 darwin
[89]*|darwin10
*) HISTORY_LIB
='${HISTORY_LIBRARY}' ;;
5523 *) HISTORY_LIB
=-lhistory ;;
5527 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
5528 HISTORY_LIB
= HISTORY_DEP
=
5541 # Find a good install program. We prefer a C program (faster),
5542 # so one script is as good as another. But avoid the broken or
5543 # incompatible versions:
5544 # SysV /etc/install, /usr/sbin/install
5545 # SunOS /usr/etc/install
5546 # IRIX /sbin/install
5548 # AmigaOS /C/install, which installs bootblocks on floppy discs
5549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5552 # OS/2's system install, which has a completely different semantic
5553 # ./install, which can be erroneously created by make from ./install.sh.
5554 # Reject install programs that cannot install multiple files.
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5556 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5557 if test -z "$INSTALL"; then
5558 if ${ac_cv_path_install+:} false
; then :
5559 $as_echo_n "(cached) " >&6
5561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5565 test -z "$as_dir" && as_dir
=.
5566 # Account for people who put trailing slashes in PATH elements.
5567 case $as_dir/ in #((
5568 .
/ | .
// |
/[cC
]/* | \
5569 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5570 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5573 # OSF1 and SCO ODT 3.0 have their own names for install.
5574 # Don't use installbsd from OSF since it installs stuff as root
5576 for ac_prog
in ginstall scoinst
install; do
5577 for ac_exec_ext
in '' $ac_executable_extensions; do
5578 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
5579 if test $ac_prog = install &&
5580 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5581 # AIX install. It has an incompatible calling convention.
5583 elif test $ac_prog = install &&
5584 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5585 # program-specific install script used by HP pwplus--don't use.
5588 rm -rf conftest.one conftest.two conftest.dir
5589 echo one
> conftest.one
5590 echo two
> conftest.two
5592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5593 test -s conftest.one
&& test -s conftest.two
&&
5594 test -s conftest.dir
/conftest.one
&&
5595 test -s conftest.dir
/conftest.two
5597 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5610 rm -rf conftest.one conftest.two conftest.dir
5613 if test "${ac_cv_path_install+set}" = set; then
5614 INSTALL
=$ac_cv_path_install
5616 # As a last resort, use the slow shell script. Don't cache a
5617 # value for INSTALL within a source directory, because that will
5618 # break other packages using the cache if that directory is
5619 # removed, or if the value is a relative name.
5620 INSTALL
=$ac_install_sh
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5624 $as_echo "$INSTALL" >&6; }
5626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5627 # It thinks the first close brace ends the variable substitution.
5628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5630 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5632 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5634 if test -n "$ac_tool_prefix"; then
5635 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5636 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_AR+:} false
; then :
5640 $as_echo_n "(cached) " >&6
5642 if test -n "$AR"; then
5643 ac_cv_prog_AR
="$AR" # Let the user override the test.
5645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir
=.
5650 for ac_exec_ext
in '' $ac_executable_extensions; do
5651 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 if test -n "$AR"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5665 $as_echo "$AR" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5673 if test -z "$ac_cv_prog_AR"; then
5675 # Extract the first word of "ar", so it can be a program name with args.
5676 set dummy
ar; ac_word
=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 if test -n "$ac_ct_AR"; then
5683 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir
=.
5690 for ac_exec_ext
in '' $ac_executable_extensions; do
5691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ac_ct_AR
="ar"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5703 if test -n "$ac_ct_AR"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5705 $as_echo "$ac_ct_AR" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5711 if test "x$ac_ct_AR" = x
; then
5714 case $cross_compiling:$ac_tool_warned in
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718 ac_tool_warned
=yes ;;
5726 test -n "$ARFLAGS" || ARFLAGS
="cr"
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_RANLIB+:} false
; then :
5733 $as_echo_n "(cached) " >&6
5735 if test -n "$RANLIB"; then
5736 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir
=.
5743 for ac_exec_ext
in '' $ac_executable_extensions; do
5744 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 RANLIB
=$ac_cv_prog_RANLIB
5756 if test -n "$RANLIB"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5758 $as_echo "$RANLIB" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5766 if test -z "$ac_cv_prog_RANLIB"; then
5767 ac_ct_RANLIB
=$RANLIB
5768 # Extract the first word of "ranlib", so it can be a program name with args.
5769 set dummy ranlib
; ac_word
=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5773 $as_echo_n "(cached) " >&6
5775 if test -n "$ac_ct_RANLIB"; then
5776 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir
=.
5783 for ac_exec_ext
in '' $ac_executable_extensions; do
5784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5796 if test -n "$ac_ct_RANLIB"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5798 $as_echo "$ac_ct_RANLIB" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5804 if test "x$ac_ct_RANLIB" = x
; then
5807 case $cross_compiling:$ac_tool_warned in
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned
=yes ;;
5813 RANLIB
=$ac_ct_RANLIB
5816 RANLIB
="$ac_cv_prog_RANLIB"
5819 for ac_prog
in 'bison -y' byacc
5821 # Extract the first word of "$ac_prog", so it can be a program name with args.
5822 set dummy
$ac_prog; ac_word
=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_prog_YACC+:} false
; then :
5826 $as_echo_n "(cached) " >&6
5828 if test -n "$YACC"; then
5829 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir
=.
5836 for ac_exec_ext
in '' $ac_executable_extensions; do
5837 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_YACC
="$ac_prog"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 YACC
=$ac_cv_prog_YACC
5849 if test -n "$YACC"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5851 $as_echo "$YACC" >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5858 test -n "$YACC" && break
5860 test -n "$YACC" || YACC
="yacc"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5863 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5865 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5866 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5867 $as_echo_n "(cached) " >&6
5869 cat >conftest.
make <<\_ACEOF
5872 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5874 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5875 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5877 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5879 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5883 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5885 $as_echo "yes" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 SET_MAKE
="MAKE=${MAKE-make}"
5894 case "$ac_cv_prog_YACC" in
5896 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
5897 $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
5901 opennt
*|interix
*) MAKE_SHELL
="$INTERIX_ROOT/bin/sh" ;;
5902 *) MAKE_SHELL
=/bin
/sh
;;
5906 if test x
$SIZE = x
; then
5907 if test x
$ac_tool_prefix = x
; then
5910 SIZE
=${ac_tool_prefix}size
5911 save_IFS
=$IFS ; IFS
=:
5913 for dir
in $PATH; do
5914 if test -x $dir/$SIZE ; then
5919 if test $size_found -eq 0; then
5927 # Checks for stat-related time functions.
5929 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
5932 # This file is free software; the Free Software Foundation
5933 # gives unlimited permission to copy and/or distribute it,
5934 # with or without modifications, as long as this notice is preserved.
5937 # st_atim.tv_nsec - Linux, Solaris, Cygwin
5938 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
5939 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
5940 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
5942 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
5943 # st_birthtim - Cygwin 1.7.0+
5947 # Configure checks for struct timespec
5949 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
5951 # This file is free software; the Free Software Foundation
5952 # gives unlimited permission to copy and/or distribute it,
5953 # with or without modifications, as long as this notice is preserved.
5955 # Original written by Paul Eggert and Jim Meyering.
5956 # Modified by Chet Ramey for bash
5962 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5966 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5967 if ${ac_cv_c_const+:} false
; then :
5968 $as_echo_n "(cached) " >&6
5970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5978 /* Ultrix mips cc rejects this sort of thing. */
5979 typedef int charset[2];
5980 const charset cs = { 0, 0 };
5981 /* SunOS 4.1.1 cc rejects this. */
5982 char const *const *pcpcc;
5984 /* NEC SVR4.0.2 mips cc rejects this. */
5985 struct point {int x, y;};
5986 static struct point const zero = {0,0};
5987 /* AIX XL C 1.02.0.0 rejects this.
5988 It does not let you subtract one const X* pointer from another in
5989 an arm of an if-expression whose if-part is not a constant
5991 const char *g = "string";
5992 pcpcc = &g + (g ? g-g : 0);
5993 /* HPUX 7.0 cc rejects these. */
5995 ppc = (char**) pcpcc;
5996 pcpcc = (char const *const *) ppc;
5997 { /* SCO 3.2v4 cc rejects this sort of thing. */
6000 char const *s = 0 ? (char *) 0 : (char const *) 0;
6005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6007 const int *foo = &x[0];
6010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6011 typedef const int *iptr;
6015 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6017 struct s { int j; const int *ap[3]; } bx;
6018 struct s *b = &bx; b->j = 5;
6020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6024 return !cs[0] && !zero.x;
6031 if ac_fn_c_try_compile
"$LINENO"; then :
6036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6039 $as_echo "$ac_cv_c_const" >&6; }
6040 if test $ac_cv_c_const = no
; then
6042 $as_echo "#define const /**/" >>confdefs.h
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6047 $as_echo_n "checking for inline... " >&6; }
6048 if ${ac_cv_c_inline+:} false
; then :
6049 $as_echo_n "(cached) " >&6
6052 for ac_kw
in inline __inline__ __inline
; do
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6057 static $ac_kw foo_t static_foo () {return 0; }
6058 $ac_kw foo_t foo () {return 0; }
6062 if ac_fn_c_try_compile
"$LINENO"; then :
6063 ac_cv_c_inline
=$ac_kw
6065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6066 test "$ac_cv_c_inline" != no
&& break
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6071 $as_echo "$ac_cv_c_inline" >&6; }
6073 case $ac_cv_c_inline in
6076 case $ac_cv_c_inline in
6078 *) ac_val
=$ac_cv_c_inline;;
6080 cat >>confdefs.h
<<_ACEOF
6082 #define inline $ac_val
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6089 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6090 if ${ac_cv_c_bigendian+:} false
; then :
6091 $as_echo_n "(cached) " >&6
6093 ac_cv_c_bigendian
=unknown
6094 # See if we're dealing with a universal compiler.
6095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 #ifndef __APPLE_CC__
6098 not a universal capable compiler
6103 if ac_fn_c_try_compile
"$LINENO"; then :
6105 # Check for potential -arch flags. It is not universal unless
6106 # there are at least two -arch flags with different values.
6109 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6110 if test -n "$ac_prev"; then
6112 i?
86 | x86_64 | ppc | ppc64
)
6113 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6116 ac_cv_c_bigendian
=universal
6122 elif test "x$ac_word" = "x-arch"; then
6127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6128 if test $ac_cv_c_bigendian = unknown
; then
6129 # See if sys/param.h defines the BYTE_ORDER macro.
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6133 #include <sys/param.h>
6138 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6139 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6148 if ac_fn_c_try_compile
"$LINENO"; then :
6149 # It does; now see whether it defined to BIG_ENDIAN or not.
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #include <sys/types.h>
6153 #include <sys/param.h>
6158 #if BYTE_ORDER != BIG_ENDIAN
6166 if ac_fn_c_try_compile
"$LINENO"; then :
6167 ac_cv_c_bigendian
=yes
6169 ac_cv_c_bigendian
=no
6171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6175 if test $ac_cv_c_bigendian = unknown
; then
6176 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6184 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6192 if ac_fn_c_try_compile
"$LINENO"; then :
6193 # It does; now see whether it defined to _BIG_ENDIAN or not.
6194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6209 if ac_fn_c_try_compile
"$LINENO"; then :
6210 ac_cv_c_bigendian
=yes
6212 ac_cv_c_bigendian
=no
6214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 if test $ac_cv_c_bigendian = unknown
; then
6219 # Compile a test program.
6220 if test "$cross_compiling" = yes; then :
6221 # Try to guess by grepping values from an object file.
6222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 short int ascii_mm[] =
6225 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6226 short int ascii_ii[] =
6227 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6228 int use_ascii (int i) {
6229 return ascii_mm[i] + ascii_ii[i];
6231 short int ebcdic_ii[] =
6232 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6233 short int ebcdic_mm[] =
6234 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6235 int use_ebcdic (int i) {
6236 return ebcdic_mm[i] + ebcdic_ii[i];
6243 return use_ascii (foo) == use_ebcdic (foo);
6248 if ac_fn_c_try_compile
"$LINENO"; then :
6249 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6250 ac_cv_c_bigendian
=yes
6252 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6253 if test "$ac_cv_c_bigendian" = unknown
; then
6254 ac_cv_c_bigendian
=no
6256 # finding both strings is unlikely to happen, but who knows?
6257 ac_cv_c_bigendian
=unknown
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 $ac_includes_default
6270 /* Are we little or big endian? From Harbison&Steele. */
6274 char c[sizeof (long int)];
6277 return u.c[sizeof (long int) - 1] == 1;
6283 if ac_fn_c_try_run
"$LINENO"; then :
6284 ac_cv_c_bigendian
=no
6286 ac_cv_c_bigendian
=yes
6288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6295 $as_echo "$ac_cv_c_bigendian" >&6; }
6296 case $ac_cv_c_bigendian in #(
6298 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6304 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6308 as_fn_error $?
"unknown endianness
6309 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6313 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6314 if ${ac_cv_c_stringize+:} false
; then :
6315 $as_echo_n "(cached) " >&6
6317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6321 char *s = x(teststring);
6323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324 $EGREP "#teststring" >/dev
/null
2>&1; then :
6325 ac_cv_c_stringize
=no
6327 ac_cv_c_stringize
=yes
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6333 $as_echo "$ac_cv_c_stringize" >&6; }
6334 if test $ac_cv_c_stringize = yes; then
6336 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6343 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6344 if ${ac_cv_type_long_double_wider+:} false
; then :
6345 $as_echo_n "(cached) " >&6
6347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6350 long double const a[] =
6352 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6353 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6358 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6359 + (x ? f (x) : 'c'));
6365 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6366 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6367 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6368 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6369 && (int) LDBL_EPSILON == 0
6372 return test_array [0];
6378 if ac_fn_c_try_compile
"$LINENO"; then :
6379 ac_cv_type_long_double_wider
=yes
6381 ac_cv_type_long_double_wider
=no
6383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6386 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6387 if test $ac_cv_type_long_double_wider = yes; then
6389 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6393 ac_cv_c_long_double
=$ac_cv_type_long_double_wider
6394 if test $ac_cv_c_long_double = yes; then
6396 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6401 $as_echo_n "checking for function prototypes... " >&6; }
6402 if test "$ac_cv_prog_cc_c89" != no
; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6404 $as_echo "yes" >&6; }
6406 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6409 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6417 $as_echo_n "checking whether char is unsigned... " >&6; }
6418 if ${ac_cv_c_char_unsigned+:} false
; then :
6419 $as_echo_n "(cached) " >&6
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 $ac_includes_default
6427 static int test_array [1 - 2 * !(((char) -1) < 0)];
6429 return test_array [0];
6435 if ac_fn_c_try_compile
"$LINENO"; then :
6436 ac_cv_c_char_unsigned
=no
6438 ac_cv_c_char_unsigned
=yes
6440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6443 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6444 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6445 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6450 $as_echo_n "checking for working volatile... " >&6; }
6451 if ${ac_cv_c_volatile+:} false
; then :
6452 $as_echo_n "(cached) " >&6
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6462 int * volatile y = (int *) 0;
6468 if ac_fn_c_try_compile
"$LINENO"; then :
6469 ac_cv_c_volatile
=yes
6473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6476 $as_echo "$ac_cv_c_volatile" >&6; }
6477 if test $ac_cv_c_volatile = no
; then
6479 $as_echo "#define volatile /**/" >>confdefs.h
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6484 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6485 if ${ac_cv_c_restrict+:} false
; then :
6486 $as_echo_n "(cached) " >&6
6489 # The order here caters to the fact that C++ does not require restrict.
6490 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
6491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 typedef int * int_ptr;
6494 int foo (int_ptr $ac_kw ip) {
6508 if ac_fn_c_try_compile
"$LINENO"; then :
6509 ac_cv_c_restrict
=$ac_kw
6511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6512 test "$ac_cv_c_restrict" != no
&& break
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6517 $as_echo "$ac_cv_c_restrict" >&6; }
6519 case $ac_cv_c_restrict in
6521 no
) $as_echo "#define restrict /**/" >>confdefs.h
6523 *) cat >>confdefs.h
<<_ACEOF
6524 #define restrict $ac_cv_c_restrict
6532 if test -n "$ac_aux_dir"; then
6533 case "$ac_aux_dir" in
6534 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6535 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6538 if test -z "$MKINSTALLDIRS"; then
6539 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6545 $as_echo_n "checking whether NLS is requested... " >&6; }
6546 # Check whether --enable-nls was given.
6547 if test "${enable_nls+set}" = set; then :
6548 enableval
=$enable_nls; USE_NLS
=$enableval
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6554 $as_echo "$USE_NLS" >&6; }
6561 # Prepare PATH_SEPARATOR.
6562 # The user is always right.
6563 if test "${PATH_SEPARATOR+set}" != set; then
6564 echo "#! /bin/sh" >conf$$.sh
6565 echo "exit 0" >>conf$$.sh
6567 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6575 # Find out how to test for executable files. Don't use a zero-byte file,
6576 # as systems may use methods other than mode bits to determine executability.
6577 cat >conf$$.
file <<_ASEOF
6581 chmod +x conf$$.
file
6582 if test -x conf$$.
file >/dev
/null
2>&1; then
6583 ac_executable_p
="test -x"
6585 ac_executable_p
="test -f"
6589 # Extract the first word of "msgfmt", so it can be a program name with args.
6590 set dummy msgfmt
; ac_word
=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_path_MSGFMT+:} false
; then :
6594 $as_echo_n "(cached) " >&6
6598 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6601 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6602 for ac_dir
in $PATH; do
6604 test -z "$ac_dir" && ac_dir
=.
6605 for ac_exec_ext
in '' $ac_executable_extensions; do
6606 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6607 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6608 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6609 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6616 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6620 MSGFMT
="$ac_cv_path_MSGFMT"
6621 if test "$MSGFMT" != ":"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6623 $as_echo "$MSGFMT" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6629 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6630 set dummy gmsgfmt
; ac_word
=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_path_GMSGFMT+:} false
; then :
6634 $as_echo_n "(cached) " >&6
6638 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir
=.
6646 for ac_exec_ext
in '' $ac_executable_extensions; do
6647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6660 GMSGFMT
=$ac_cv_path_GMSGFMT
6661 if test -n "$GMSGFMT"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6663 $as_echo "$GMSGFMT" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6672 # Prepare PATH_SEPARATOR.
6673 # The user is always right.
6674 if test "${PATH_SEPARATOR+set}" != set; then
6675 echo "#! /bin/sh" >conf$$.sh
6676 echo "exit 0" >>conf$$.sh
6678 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6686 # Find out how to test for executable files. Don't use a zero-byte file,
6687 # as systems may use methods other than mode bits to determine executability.
6688 cat >conf$$.
file <<_ASEOF
6692 chmod +x conf$$.
file
6693 if test -x conf$$.
file >/dev
/null
2>&1; then
6694 ac_executable_p
="test -x"
6696 ac_executable_p
="test -f"
6700 # Extract the first word of "xgettext", so it can be a program name with args.
6701 set dummy xgettext
; ac_word
=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_path_XGETTEXT+:} false
; then :
6705 $as_echo_n "(cached) " >&6
6709 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6712 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6713 for ac_dir
in $PATH; do
6715 test -z "$ac_dir" && ac_dir
=.
6716 for ac_exec_ext
in '' $ac_executable_extensions; do
6717 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6718 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6719 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6720 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6727 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6731 XGETTEXT
="$ac_cv_path_XGETTEXT"
6732 if test "$XGETTEXT" != ":"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6734 $as_echo "$XGETTEXT" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746 echo "#! /bin/sh" >conf$$.sh
6747 echo "exit 0" >>conf$$.sh
6749 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.
file <<_ASEOF
6763 chmod +x conf$$.
file
6764 if test -x conf$$.
file >/dev
/null
2>&1; then
6765 ac_executable_p
="test -x"
6767 ac_executable_p
="test -f"
6771 # Extract the first word of "msgmerge", so it can be a program name with args.
6772 set dummy msgmerge
; ac_word
=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_path_MSGMERGE+:} false
; then :
6776 $as_echo_n "(cached) " >&6
6780 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6783 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6784 for ac_dir
in $PATH; do
6786 test -z "$ac_dir" && ac_dir
=.
6787 for ac_exec_ext
in '' $ac_executable_extensions; do
6788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
6790 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6797 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6801 MSGMERGE
="$ac_cv_path_MSGMERGE"
6802 if test "$MSGMERGE" != ":"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6804 $as_echo "$MSGMERGE" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6811 if test "$GMSGFMT" != ":"; then
6812 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
6813 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6816 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6818 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6823 if test "$XGETTEXT" != ":"; then
6824 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6825 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6829 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6835 ac_config_commands
="$ac_config_commands default-1"
6838 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6839 if test "x$ac_cv_type_off_t" = xyes
; then :
6843 cat >>confdefs.h
<<_ACEOF
6844 #define off_t long int
6849 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6850 if test "x$ac_cv_type_size_t" = xyes
; then :
6854 cat >>confdefs.h
<<_ACEOF
6855 #define size_t unsigned int
6860 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6861 # for constant arguments. Useless!
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6863 $as_echo_n "checking for working alloca.h... " >&6; }
6864 if ${ac_cv_working_alloca_h+:} false
; then :
6865 $as_echo_n "(cached) " >&6
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6873 char *p = (char *) alloca (2 * sizeof (int));
6879 if ac_fn_c_try_link
"$LINENO"; then :
6880 ac_cv_working_alloca_h
=yes
6882 ac_cv_working_alloca_h
=no
6884 rm -f core conftest.err conftest.
$ac_objext \
6885 conftest
$ac_exeext conftest.
$ac_ext
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6888 $as_echo "$ac_cv_working_alloca_h" >&6; }
6889 if test $ac_cv_working_alloca_h = yes; then
6891 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6896 $as_echo_n "checking for alloca... " >&6; }
6897 if ${ac_cv_func_alloca_works+:} false
; then :
6898 $as_echo_n "(cached) " >&6
6900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6903 # define alloca __builtin_alloca
6906 # include <malloc.h>
6907 # define alloca _alloca
6909 # ifdef HAVE_ALLOCA_H
6910 # include <alloca.h>
6915 # ifndef alloca /* predefined by HP cc +Olibcalls */
6916 void *alloca (size_t);
6926 char *p = (char *) alloca (1);
6932 if ac_fn_c_try_link
"$LINENO"; then :
6933 ac_cv_func_alloca_works
=yes
6935 ac_cv_func_alloca_works
=no
6937 rm -f core conftest.err conftest.
$ac_objext \
6938 conftest
$ac_exeext conftest.
$ac_ext
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6941 $as_echo "$ac_cv_func_alloca_works" >&6; }
6943 if test $ac_cv_func_alloca_works = yes; then
6945 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6949 # that cause trouble. Some versions do not even contain alloca or
6950 # contain a buggy version. If you still want to use their alloca,
6951 # use ar to extract alloca.o from them instead of compiling alloca.c.
6953 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6955 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6959 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6960 if ${ac_cv_os_cray+:} false
; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 #if defined CRAY && ! defined CRAY2
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973 $EGREP "webecray" >/dev
/null
2>&1; then :
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6982 $as_echo "$ac_cv_os_cray" >&6; }
6983 if test $ac_cv_os_cray = yes; then
6984 for ac_func
in _getb67 GETB67 getb67
; do
6985 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6987 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6989 cat >>confdefs.h
<<_ACEOF
6990 #define CRAY_STACKSEG_END $ac_func
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7000 $as_echo_n "checking stack direction for C alloca... " >&6; }
7001 if ${ac_cv_c_stack_direction+:} false
; then :
7002 $as_echo_n "(cached) " >&6
7004 if test "$cross_compiling" = yes; then :
7005 ac_cv_c_stack_direction
=0
7007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 $ac_includes_default
7011 find_stack_direction (int *addr, int depth)
7016 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7017 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7022 main (int argc, char **argv)
7024 return find_stack_direction (0, argc + !argv + 20) < 0;
7027 if ac_fn_c_try_run
"$LINENO"; then :
7028 ac_cv_c_stack_direction
=1
7030 ac_cv_c_stack_direction
=-1
7032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7033 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7038 $as_echo "$ac_cv_c_stack_direction" >&6; }
7039 cat >>confdefs.h
<<_ACEOF
7040 #define STACK_DIRECTION $ac_cv_c_stack_direction
7049 for ac_header
in $ac_header_list
7051 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7052 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7054 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7055 cat >>confdefs.h
<<_ACEOF
7056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7070 for ac_func
in getpagesize
7072 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7073 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define HAVE_GETPAGESIZE 1
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7082 $as_echo_n "checking for working mmap... " >&6; }
7083 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7084 $as_echo_n "(cached) " >&6
7086 if test "$cross_compiling" = yes; then :
7087 ac_cv_func_mmap_fixed_mapped
=no
7089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 $ac_includes_default
7092 /* malloc might have been renamed as rpl_malloc. */
7095 /* Thanks to Mike Haertel and Jim Avera for this test.
7096 Here is a matrix of mmap possibilities:
7097 mmap private not fixed
7098 mmap private fixed at somewhere currently unmapped
7099 mmap private fixed at somewhere already mapped
7100 mmap shared not fixed
7101 mmap shared fixed at somewhere currently unmapped
7102 mmap shared fixed at somewhere already mapped
7103 For private mappings, we should verify that changes cannot be read()
7104 back from the file, nor mmap's back from the file at a different
7105 address. (There have been systems where private was not correctly
7106 implemented like the infamous i386 svr4.0, and systems where the
7107 VM page cache was not coherent with the file system buffer cache
7108 like early versions of FreeBSD and possibly contemporary NetBSD.)
7109 For shared mappings, we should conversely verify that changes get
7110 propagated back to all the places they're supposed to be.
7112 Grep wants private fixed already mapped.
7113 The main things grep needs to know about mmap are:
7114 * does it exist and is it safe to write into the mmap'd area
7115 * how to use it (BSD variants) */
7118 #include <sys/mman.h>
7120 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7124 /* This mess was copied from the GNU getpagesize.h. */
7125 #ifndef HAVE_GETPAGESIZE
7126 # ifdef _SC_PAGESIZE
7127 # define getpagesize() sysconf(_SC_PAGESIZE)
7128 # else /* no _SC_PAGESIZE */
7129 # ifdef HAVE_SYS_PARAM_H
7130 # include <sys/param.h>
7131 # ifdef EXEC_PAGESIZE
7132 # define getpagesize() EXEC_PAGESIZE
7133 # else /* no EXEC_PAGESIZE */
7135 # define getpagesize() NBPG * CLSIZE
7138 # endif /* no CLSIZE */
7139 # else /* no NBPG */
7141 # define getpagesize() NBPC
7142 # else /* no NBPC */
7144 # define getpagesize() PAGESIZE
7145 # endif /* PAGESIZE */
7146 # endif /* no NBPC */
7147 # endif /* no NBPG */
7148 # endif /* no EXEC_PAGESIZE */
7149 # else /* no HAVE_SYS_PARAM_H */
7150 # define getpagesize() 8192 /* punt totally */
7151 # endif /* no HAVE_SYS_PARAM_H */
7152 # endif /* no _SC_PAGESIZE */
7154 #endif /* no HAVE_GETPAGESIZE */
7159 char *data, *data2, *data3;
7164 pagesize = getpagesize ();
7166 /* First, make a file with some known garbage in it. */
7167 data = (char *) malloc (pagesize);
7170 for (i = 0; i < pagesize; ++i)
7171 *(data + i) = rand ();
7173 fd = creat ("conftest.mmap", 0600);
7176 if (write (fd, data, pagesize) != pagesize)
7180 /* Next, check that the tail of a page is zero-filled. File must have
7181 non-zero length, otherwise we risk SIGBUS for entire page. */
7182 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7186 if (write (fd2, cdata2, 1) != 1)
7188 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7189 if (data2 == MAP_FAILED)
7191 for (i = 0; i < pagesize; ++i)
7195 if (munmap (data2, pagesize))
7198 /* Next, try to mmap the file at a fixed address which already has
7199 something else allocated at it. If we can, also make sure that
7200 we see the same garbage. */
7201 fd = open ("conftest.mmap", O_RDWR);
7204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7207 for (i = 0; i < pagesize; ++i)
7208 if (*(data + i) != *(data2 + i))
7211 /* Finally, make sure that changes to the mapped area do not
7212 percolate back to the file as seen by read(). (This is a bug on
7213 some variants of i386 svr4.0.) */
7214 for (i = 0; i < pagesize; ++i)
7215 *(data2 + i) = *(data2 + i) + 1;
7216 data3 = (char *) malloc (pagesize);
7219 if (read (fd, data3, pagesize) != pagesize)
7221 for (i = 0; i < pagesize; ++i)
7222 if (*(data + i) != *(data3 + i))
7228 if ac_fn_c_try_run
"$LINENO"; then :
7229 ac_cv_func_mmap_fixed_mapped
=yes
7231 ac_cv_func_mmap_fixed_mapped
=no
7233 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7234 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7239 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7242 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7245 rm -f conftest.mmap conftest.txt
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7249 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7250 if ${ac_cv_gnu_library_2_1+:} false
; then :
7251 $as_echo_n "(cached) " >&6
7253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7256 #include <features.h>
7257 #ifdef __GNU_LIBRARY__
7258 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
7266 ac_cv_gnu_library_2_1
=yes
7268 ac_cv_gnu_library_2_1
=no
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7276 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7278 GLIBC21
="$ac_cv_gnu_library_2_1"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7284 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7285 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
7286 $as_echo_n "(cached) " >&6
7289 if test "$cross_compiling" = yes; then :
7291 # Guess based on the CPU.
7293 alpha
* | i3456786 | m68k | s390
*)
7294 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7296 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7308 sigfpe_handler (int sig)
7310 sigfpe_handler (sig) int sig;
7313 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7314 exit (sig != SIGFPE);
7324 signal (SIGFPE, sigfpe_handler);
7325 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7326 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7327 signal (SIGTRAP, sigfpe_handler);
7329 /* Linux/SPARC yields signal SIGILL. */
7330 #if defined (__sparc__) && defined (__linux__)
7331 signal (SIGILL, sigfpe_handler);
7340 if ac_fn_c_try_run
"$LINENO"; then :
7341 gt_cv_int_divbyzero_sigfpe
=yes
7343 gt_cv_int_divbyzero_sigfpe
=no
7345 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7346 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7352 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7353 case "$gt_cv_int_divbyzero_sigfpe" in
7358 cat >>confdefs.h
<<_ACEOF
7359 #define INTDIV0_RAISES_SIGFPE $value
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7365 $as_echo_n "checking for inttypes.h... " >&6; }
7366 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
7367 $as_echo_n "(cached) " >&6
7369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #include <sys/types.h>
7372 #include <inttypes.h>
7376 uintmax_t i = (uintmax_t) -1;
7381 if ac_fn_c_try_compile
"$LINENO"; then :
7382 jm_ac_cv_header_inttypes_h
=yes
7384 jm_ac_cv_header_inttypes_h
=no
7386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7389 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
7390 if test $jm_ac_cv_header_inttypes_h = yes; then
7392 cat >>confdefs.h
<<_ACEOF
7393 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7400 $as_echo_n "checking for stdint.h... " >&6; }
7401 if ${jm_ac_cv_header_stdint_h+:} false
; then :
7402 $as_echo_n "(cached) " >&6
7404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7411 uintmax_t i = (uintmax_t) -1;
7416 if ac_fn_c_try_compile
"$LINENO"; then :
7417 jm_ac_cv_header_stdint_h
=yes
7419 jm_ac_cv_header_stdint_h
=no
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7424 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
7425 if test $jm_ac_cv_header_stdint_h = yes; then
7427 cat >>confdefs.h
<<_ACEOF
7428 #define HAVE_STDINT_H_WITH_UINTMAX 1
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7435 $as_echo_n "checking for unsigned long long... " >&6; }
7436 if ${ac_cv_type_unsigned_long_long+:} false
; then :
7437 $as_echo_n "(cached) " >&6
7439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 unsigned long long ull = 1; int i = 63;
7445 unsigned long long ullmax = (unsigned long long) -1;
7446 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7451 if ac_fn_c_try_link
"$LINENO"; then :
7452 ac_cv_type_unsigned_long_long
=yes
7454 ac_cv_type_unsigned_long_long
=no
7456 rm -f core conftest.err conftest.
$ac_objext \
7457 conftest
$ac_exeext conftest.
$ac_ext
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7460 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7461 if test $ac_cv_type_unsigned_long_long = yes; then
7463 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7470 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
7472 test $ac_cv_type_unsigned_long_long = yes \
7473 && ac_type
='unsigned long long' \
7474 || ac_type
='unsigned long'
7476 cat >>confdefs.h
<<_ACEOF
7477 #define uintmax_t $ac_type
7482 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7488 $as_echo_n "checking for inttypes.h... " >&6; }
7489 if ${gt_cv_header_inttypes_h+:} false
; then :
7490 $as_echo_n "(cached) " >&6
7493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <sys/types.h>
7496 #include <inttypes.h>
7505 if ac_fn_c_try_compile
"$LINENO"; then :
7506 gt_cv_header_inttypes_h
=yes
7508 gt_cv_header_inttypes_h
=no
7510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7514 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7515 if test $gt_cv_header_inttypes_h = yes; then
7517 cat >>confdefs.h
<<_ACEOF
7518 #define HAVE_INTTYPES_H 1
7525 if test $gt_cv_header_inttypes_h = yes; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7527 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7528 if ${gt_cv_inttypes_pri_broken+:} false
; then :
7529 $as_echo_n "(cached) " >&6
7532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <inttypes.h>
7547 if ac_fn_c_try_compile
"$LINENO"; then :
7548 gt_cv_inttypes_pri_broken
=no
7550 gt_cv_inttypes_pri_broken
=yes
7552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7556 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7558 if test "$gt_cv_inttypes_pri_broken" = yes; then
7560 cat >>confdefs.h
<<_ACEOF
7561 #define PRI_MACROS_BROKEN 1
7567 if test "X$prefix" = "XNONE"; then
7568 acl_final_prefix
="$ac_default_prefix"
7570 acl_final_prefix
="$prefix"
7572 if test "X$exec_prefix" = "XNONE"; then
7573 acl_final_exec_prefix
='${prefix}'
7575 acl_final_exec_prefix
="$exec_prefix"
7577 acl_save_prefix
="$prefix"
7578 prefix
="$acl_final_prefix"
7579 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7580 prefix
="$acl_save_prefix"
7583 # Check whether --with-gnu-ld was given.
7584 if test "${with_gnu_ld+set}" = set; then :
7585 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7590 # Prepare PATH_SEPARATOR.
7591 # The user is always right.
7592 if test "${PATH_SEPARATOR+set}" != set; then
7593 echo "#! /bin/sh" >conf$$.sh
7594 echo "exit 0" >>conf$$.sh
7596 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7604 if test "$GCC" = yes; then
7605 # Check if gcc -print-prog-name=ld gives a path.
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7607 $as_echo_n "checking for ld used by GCC... " >&6; }
7610 # gcc leaves a trailing carriage return which upsets mingw
7611 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7613 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7616 # Accept absolute paths.
7617 [\\/]* |
[A-Za-z
]:[\\/]*)
7618 re_direlt
='/[^/][^/]*/\.\./'
7619 # Canonicalize the path of ld
7620 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7621 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7622 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7624 test -z "$LD" && LD
="$ac_prog"
7627 # If it fails, then pretend we aren't using GCC.
7631 # If it is relative, then search for the first ld in PATH.
7635 elif test "$with_gnu_ld" = yes; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7637 $as_echo_n "checking for GNU ld... " >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7640 $as_echo_n "checking for non-GNU ld... " >&6; }
7642 if ${acl_cv_path_LD+:} false
; then :
7643 $as_echo_n "(cached) " >&6
7645 if test -z "$LD"; then
7646 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7647 for ac_dir
in $PATH; do
7648 test -z "$ac_dir" && ac_dir
=.
7649 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7650 acl_cv_path_LD
="$ac_dir/$ac_prog"
7651 # Check to see if the program is GNU ld. I'd rather use --version,
7652 # but apparently some GNU ld's only accept -v.
7653 # Break only if it was the GNU/non-GNU ld that we prefer.
7654 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7655 test "$with_gnu_ld" != no
&& break
7657 test "$with_gnu_ld" != yes && break
7663 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7667 LD
="$acl_cv_path_LD"
7668 if test -n "$LD"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7670 $as_echo "$LD" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7675 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7678 if ${acl_cv_prog_gnu_ld+:} false
; then :
7679 $as_echo_n "(cached) " >&6
7681 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7682 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7683 acl_cv_prog_gnu_ld
=yes
7685 acl_cv_prog_gnu_ld
=no
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7689 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7690 with_gnu_ld
=$acl_cv_prog_gnu_ld
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7695 $as_echo_n "checking for shared library run path origin... " >&6; }
7696 if ${acl_cv_rpath+:} false
; then :
7697 $as_echo_n "(cached) " >&6
7700 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7701 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7708 $as_echo "$acl_cv_rpath" >&6; }
7710 libext
="$acl_cv_libext"
7711 shlibext
="$acl_cv_shlibext"
7712 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7713 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7714 hardcode_direct
="$acl_cv_hardcode_direct"
7715 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7716 # Check whether --enable-rpath was given.
7717 if test "${enable_rpath+set}" = set; then :
7718 enableval
=$enable_rpath; :
7732 acl_save_prefix
="$prefix"
7733 prefix
="$acl_final_prefix"
7734 acl_save_exec_prefix
="$exec_prefix"
7735 exec_prefix
="$acl_final_exec_prefix"
7737 eval additional_includedir
=\"$includedir\"
7738 eval additional_libdir
=\"$libdir\"
7740 exec_prefix
="$acl_save_exec_prefix"
7741 prefix
="$acl_save_prefix"
7744 # Check whether --with-libiconv-prefix was given.
7745 if test "${with_libiconv_prefix+set}" = set; then :
7746 withval
=$with_libiconv_prefix;
7747 if test "X$withval" = "Xno"; then
7750 if test "X$withval" = "X"; then
7752 acl_save_prefix
="$prefix"
7753 prefix
="$acl_final_prefix"
7754 acl_save_exec_prefix
="$exec_prefix"
7755 exec_prefix
="$acl_final_exec_prefix"
7757 eval additional_includedir
=\"$includedir\"
7758 eval additional_libdir
=\"$libdir\"
7760 exec_prefix
="$acl_save_exec_prefix"
7761 prefix
="$acl_save_prefix"
7764 additional_includedir
="$withval/include"
7765 additional_libdir
="$withval/lib"
7776 names_already_handled
=
7777 names_next_round
='iconv '
7778 while test -n "$names_next_round"; do
7779 names_this_round
="$names_next_round"
7781 for name
in $names_this_round; do
7783 for n
in $names_already_handled; do
7784 if test "$n" = "$name"; then
7789 if test -z "$already_handled"; then
7790 names_already_handled
="$names_already_handled $name"
7791 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7792 eval value
=\"\
$HAVE_LIB$uppername\"
7793 if test -n "$value"; then
7794 if test "$value" = yes; then
7795 eval value
=\"\
$LIB$uppername\"
7796 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7797 eval value
=\"\
$LTLIB$uppername\"
7798 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7807 if test $use_additional = yes; then
7808 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7809 found_dir
="$additional_libdir"
7810 found_so
="$additional_libdir/lib$name.$shlibext"
7811 if test -f "$additional_libdir/lib$name.la"; then
7812 found_la
="$additional_libdir/lib$name.la"
7815 if test -f "$additional_libdir/lib$name.$libext"; then
7816 found_dir
="$additional_libdir"
7817 found_a
="$additional_libdir/lib$name.$libext"
7818 if test -f "$additional_libdir/lib$name.la"; then
7819 found_la
="$additional_libdir/lib$name.la"
7824 if test "X$found_dir" = "X"; then
7825 for x
in $LDFLAGS $LTLIBICONV; do
7827 acl_save_prefix
="$prefix"
7828 prefix
="$acl_final_prefix"
7829 acl_save_exec_prefix
="$exec_prefix"
7830 exec_prefix
="$acl_final_exec_prefix"
7832 exec_prefix
="$acl_save_exec_prefix"
7833 prefix
="$acl_save_prefix"
7837 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7838 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7840 found_so
="$dir/lib$name.$shlibext"
7841 if test -f "$dir/lib$name.la"; then
7842 found_la
="$dir/lib$name.la"
7845 if test -f "$dir/lib$name.$libext"; then
7847 found_a
="$dir/lib$name.$libext"
7848 if test -f "$dir/lib$name.la"; then
7849 found_la
="$dir/lib$name.la"
7855 if test "X$found_dir" != "X"; then
7860 if test "X$found_dir" != "X"; then
7861 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7862 if test "X$found_so" != "X"; then
7863 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7864 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7867 for x
in $ltrpathdirs; do
7868 if test "X$x" = "X$found_dir"; then
7873 if test -z "$haveit"; then
7874 ltrpathdirs
="$ltrpathdirs $found_dir"
7876 if test "$hardcode_direct" = yes; then
7877 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7879 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7880 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7882 for x
in $rpathdirs; do
7883 if test "X$x" = "X$found_dir"; then
7888 if test -z "$haveit"; then
7889 rpathdirs
="$rpathdirs $found_dir"
7893 for x
in $LDFLAGS $LIBICONV; do
7895 acl_save_prefix
="$prefix"
7896 prefix
="$acl_final_prefix"
7897 acl_save_exec_prefix
="$exec_prefix"
7898 exec_prefix
="$acl_final_exec_prefix"
7900 exec_prefix
="$acl_save_exec_prefix"
7901 prefix
="$acl_save_prefix"
7903 if test "X$x" = "X-L$found_dir"; then
7908 if test -z "$haveit"; then
7909 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7911 if test "$hardcode_minus_L" != no
; then
7912 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7914 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7920 if test "X$found_a" != "X"; then
7921 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7923 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7926 additional_includedir
=
7927 case "$found_dir" in
7929 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7930 additional_includedir
="$basedir/include"
7933 if test "X$additional_includedir" != "X"; then
7934 if test "X$additional_includedir" != "X/usr/include"; then
7936 if test "X$additional_includedir" = "X/usr/local/include"; then
7937 if test -n "$GCC"; then
7939 linux
*) haveit
=yes;;
7943 if test -z "$haveit"; then
7944 for x
in $CPPFLAGS $INCICONV; do
7946 acl_save_prefix
="$prefix"
7947 prefix
="$acl_final_prefix"
7948 acl_save_exec_prefix
="$exec_prefix"
7949 exec_prefix
="$acl_final_exec_prefix"
7951 exec_prefix
="$acl_save_exec_prefix"
7952 prefix
="$acl_save_prefix"
7954 if test "X$x" = "X-I$additional_includedir"; then
7959 if test -z "$haveit"; then
7960 if test -d "$additional_includedir"; then
7961 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7967 if test -n "$found_la"; then
7968 save_libdir
="$libdir"
7970 */* |
*\\*) .
"$found_la" ;;
7971 *) .
"./$found_la" ;;
7973 libdir
="$save_libdir"
7974 for dep
in $dependency_libs; do
7977 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7978 if test "X$additional_libdir" != "X/usr/lib"; then
7980 if test "X$additional_libdir" = "X/usr/local/lib"; then
7981 if test -n "$GCC"; then
7983 linux
*) haveit
=yes;;
7987 if test -z "$haveit"; then
7989 for x
in $LDFLAGS $LIBICONV; do
7991 acl_save_prefix
="$prefix"
7992 prefix
="$acl_final_prefix"
7993 acl_save_exec_prefix
="$exec_prefix"
7994 exec_prefix
="$acl_final_exec_prefix"
7996 exec_prefix
="$acl_save_exec_prefix"
7997 prefix
="$acl_save_prefix"
7999 if test "X$x" = "X-L$additional_libdir"; then
8004 if test -z "$haveit"; then
8005 if test -d "$additional_libdir"; then
8006 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8010 for x
in $LDFLAGS $LTLIBICONV; do
8012 acl_save_prefix
="$prefix"
8013 prefix
="$acl_final_prefix"
8014 acl_save_exec_prefix
="$exec_prefix"
8015 exec_prefix
="$acl_final_exec_prefix"
8017 exec_prefix
="$acl_save_exec_prefix"
8018 prefix
="$acl_save_prefix"
8020 if test "X$x" = "X-L$additional_libdir"; then
8025 if test -z "$haveit"; then
8026 if test -d "$additional_libdir"; then
8027 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8034 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8035 if test "$enable_rpath" != no
; then
8037 for x
in $rpathdirs; do
8038 if test "X$x" = "X$dir"; then
8043 if test -z "$haveit"; then
8044 rpathdirs
="$rpathdirs $dir"
8047 for x
in $ltrpathdirs; do
8048 if test "X$x" = "X$dir"; then
8053 if test -z "$haveit"; then
8054 ltrpathdirs
="$ltrpathdirs $dir"
8059 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8062 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8065 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8066 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8072 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8073 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8079 if test "X$rpathdirs" != "X"; then
8080 if test -n "$hardcode_libdir_separator"; then
8082 for found_dir
in $rpathdirs; do
8083 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8085 acl_save_libdir
="$libdir"
8087 eval flag
=\"$hardcode_libdir_flag_spec\"
8088 libdir
="$acl_save_libdir"
8089 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8091 for found_dir
in $rpathdirs; do
8092 acl_save_libdir
="$libdir"
8094 eval flag
=\"$hardcode_libdir_flag_spec\"
8095 libdir
="$acl_save_libdir"
8096 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8100 if test "X$ltrpathdirs" != "X"; then
8101 for found_dir
in $ltrpathdirs; do
8102 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8109 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8110 stdlib.h string.h unistd.h sys
/param.h
8112 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8114 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8115 cat >>confdefs.h
<<_ACEOF
8116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8123 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8124 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
8125 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8128 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8129 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8130 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8131 cat >>confdefs.h
<<_ACEOF
8132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8144 am_save_CPPFLAGS
="$CPPFLAGS"
8146 for element
in $INCICONV; do
8148 for x
in $CPPFLAGS; do
8150 acl_save_prefix
="$prefix"
8151 prefix
="$acl_final_prefix"
8152 acl_save_exec_prefix
="$exec_prefix"
8153 exec_prefix
="$acl_final_exec_prefix"
8155 exec_prefix
="$acl_save_exec_prefix"
8156 prefix
="$acl_save_prefix"
8158 if test "X$x" = "X$element"; then
8163 if test -z "$haveit"; then
8164 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8170 $as_echo_n "checking for iconv... " >&6; }
8171 if ${am_cv_func_iconv+:} false
; then :
8172 $as_echo_n "(cached) " >&6
8175 am_cv_func_iconv
="no, consider installing GNU libiconv"
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8184 iconv_t cd = iconv_open("","");
8185 iconv(cd,NULL,NULL,NULL,NULL);
8191 if ac_fn_c_try_link
"$LINENO"; then :
8192 am_cv_func_iconv
=yes
8194 rm -f core conftest.err conftest.
$ac_objext \
8195 conftest
$ac_exeext conftest.
$ac_ext
8196 if test "$am_cv_func_iconv" != yes; then
8197 am_save_LIBS
="$LIBS"
8198 LIBS
="$LIBS $LIBICONV"
8199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8206 iconv_t cd = iconv_open("","");
8207 iconv(cd,NULL,NULL,NULL,NULL);
8213 if ac_fn_c_try_link
"$LINENO"; then :
8215 am_cv_func_iconv
=yes
8217 rm -f core conftest.err conftest.
$ac_objext \
8218 conftest
$ac_exeext conftest.
$ac_ext
8219 LIBS
="$am_save_LIBS"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8224 $as_echo "$am_cv_func_iconv" >&6; }
8225 if test "$am_cv_func_iconv" = yes; then
8227 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8230 if test "$am_cv_lib_iconv" = yes; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8232 $as_echo_n "checking how to link with libiconv... " >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8234 $as_echo "$LIBICONV" >&6; }
8236 CPPFLAGS
="$am_save_CPPFLAGS"
8243 if test "$am_cv_func_iconv" = yes; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8245 $as_echo_n "checking for iconv declaration... " >&6; }
8246 if ${am_cv_proto_iconv+:} false
; then :
8247 $as_echo_n "(cached) " >&6
8250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8259 #if defined(__STDC__) || defined(__cplusplus)
8260 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8273 if ac_fn_c_try_compile
"$LINENO"; then :
8274 am_cv_proto_iconv_arg1
=""
8276 am_cv_proto_iconv_arg1
="const"
8278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8282 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8284 }$am_cv_proto_iconv" >&5
8286 }$am_cv_proto_iconv" >&6; }
8288 cat >>confdefs.h
<<_ACEOF
8289 #define ICONV_CONST $am_cv_proto_iconv_arg1
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8296 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8297 if ${am_cv_langinfo_codeset+:} false
; then :
8298 $as_echo_n "(cached) " >&6
8300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 #include <langinfo.h>
8306 char* cs = nl_langinfo(CODESET);
8311 if ac_fn_c_try_link
"$LINENO"; then :
8312 am_cv_langinfo_codeset
=yes
8314 am_cv_langinfo_codeset
=no
8316 rm -f core conftest.err conftest.
$ac_objext \
8317 conftest
$ac_exeext conftest.
$ac_ext
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8321 $as_echo "$am_cv_langinfo_codeset" >&6; }
8322 if test $am_cv_langinfo_codeset = yes; then
8324 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8328 if test $ac_cv_header_locale_h = yes; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8331 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8332 if ${am_cv_val_LC_MESSAGES+:} false
; then :
8333 $as_echo_n "(cached) " >&6
8335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8346 if ac_fn_c_try_link
"$LINENO"; then :
8347 am_cv_val_LC_MESSAGES
=yes
8349 am_cv_val_LC_MESSAGES
=no
8351 rm -f core conftest.err conftest.
$ac_objext \
8352 conftest
$ac_exeext conftest.
$ac_ext
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8355 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8356 if test $am_cv_val_LC_MESSAGES = yes; then
8358 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8364 for ac_prog
in bison
8366 # Extract the first word of "$ac_prog", so it can be a program name with args.
8367 set dummy
$ac_prog; ac_word
=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if ${ac_cv_prog_INTLBISON+:} false
; then :
8371 $as_echo_n "(cached) " >&6
8373 if test -n "$INTLBISON"; then
8374 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir
=.
8381 for ac_exec_ext
in '' $ac_executable_extensions; do
8382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_INTLBISON
="$ac_prog"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 INTLBISON
=$ac_cv_prog_INTLBISON
8394 if test -n "$INTLBISON"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8396 $as_echo "$INTLBISON" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8403 test -n "$INTLBISON" && break
8406 if test -z "$INTLBISON"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8410 $as_echo_n "checking version of bison... " >&6; }
8411 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8412 case $ac_prog_version in
8413 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8414 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
8415 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8416 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8419 $as_echo "$ac_prog_version" >&6; }
8421 if test $ac_verc_fail = yes; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8441 $as_echo_n "checking whether NLS is requested... " >&6; }
8442 # Check whether --enable-nls was given.
8443 if test "${enable_nls+set}" = set; then :
8444 enableval
=$enable_nls; USE_NLS
=$enableval
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8450 $as_echo "$USE_NLS" >&6; }
8455 BUILD_INCLUDED_LIBINTL
=no
8456 USE_INCLUDED_LIBINTL
=no
8462 if test "$USE_NLS" = "yes"; then
8463 gt_use_preinstalled_gnugettext
=no
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8466 $as_echo_n "checking whether included gettext is requested... " >&6; }
8468 # Check whether --with-included-gettext was given.
8469 if test "${with_included_gettext+set}" = set; then :
8470 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
8472 nls_cv_force_use_gnu_gettext
=no
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8476 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8478 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8479 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8487 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8488 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
8489 $as_echo_n "(cached) " >&6
8491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #include <libintl.h>
8494 extern int _nl_msg_cat_cntr;
8495 extern int *_nl_domain_bindings;
8499 bindtextdomain ("", "");
8500 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8505 if ac_fn_c_try_link
"$LINENO"; then :
8506 gt_cv_func_gnugettext2_libc
=yes
8508 gt_cv_func_gnugettext2_libc
=no
8510 rm -f core conftest.err conftest.
$ac_objext \
8511 conftest
$ac_exeext conftest.
$ac_ext
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
8514 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
8516 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8522 acl_save_prefix
="$prefix"
8523 prefix
="$acl_final_prefix"
8524 acl_save_exec_prefix
="$exec_prefix"
8525 exec_prefix
="$acl_final_exec_prefix"
8527 eval additional_includedir
=\"$includedir\"
8528 eval additional_libdir
=\"$libdir\"
8530 exec_prefix
="$acl_save_exec_prefix"
8531 prefix
="$acl_save_prefix"
8534 # Check whether --with-libintl-prefix was given.
8535 if test "${with_libintl_prefix+set}" = set; then :
8536 withval
=$with_libintl_prefix;
8537 if test "X$withval" = "Xno"; then
8540 if test "X$withval" = "X"; then
8542 acl_save_prefix
="$prefix"
8543 prefix
="$acl_final_prefix"
8544 acl_save_exec_prefix
="$exec_prefix"
8545 exec_prefix
="$acl_final_exec_prefix"
8547 eval additional_includedir
=\"$includedir\"
8548 eval additional_libdir
=\"$libdir\"
8550 exec_prefix
="$acl_save_exec_prefix"
8551 prefix
="$acl_save_prefix"
8554 additional_includedir
="$withval/include"
8555 additional_libdir
="$withval/lib"
8566 names_already_handled
=
8567 names_next_round
='intl '
8568 while test -n "$names_next_round"; do
8569 names_this_round
="$names_next_round"
8571 for name
in $names_this_round; do
8573 for n
in $names_already_handled; do
8574 if test "$n" = "$name"; then
8579 if test -z "$already_handled"; then
8580 names_already_handled
="$names_already_handled $name"
8581 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8582 eval value
=\"\
$HAVE_LIB$uppername\"
8583 if test -n "$value"; then
8584 if test "$value" = yes; then
8585 eval value
=\"\
$LIB$uppername\"
8586 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8587 eval value
=\"\
$LTLIB$uppername\"
8588 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8597 if test $use_additional = yes; then
8598 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8599 found_dir
="$additional_libdir"
8600 found_so
="$additional_libdir/lib$name.$shlibext"
8601 if test -f "$additional_libdir/lib$name.la"; then
8602 found_la
="$additional_libdir/lib$name.la"
8605 if test -f "$additional_libdir/lib$name.$libext"; then
8606 found_dir
="$additional_libdir"
8607 found_a
="$additional_libdir/lib$name.$libext"
8608 if test -f "$additional_libdir/lib$name.la"; then
8609 found_la
="$additional_libdir/lib$name.la"
8614 if test "X$found_dir" = "X"; then
8615 for x
in $LDFLAGS $LTLIBINTL; do
8617 acl_save_prefix
="$prefix"
8618 prefix
="$acl_final_prefix"
8619 acl_save_exec_prefix
="$exec_prefix"
8620 exec_prefix
="$acl_final_exec_prefix"
8622 exec_prefix
="$acl_save_exec_prefix"
8623 prefix
="$acl_save_prefix"
8627 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8628 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8630 found_so
="$dir/lib$name.$shlibext"
8631 if test -f "$dir/lib$name.la"; then
8632 found_la
="$dir/lib$name.la"
8635 if test -f "$dir/lib$name.$libext"; then
8637 found_a
="$dir/lib$name.$libext"
8638 if test -f "$dir/lib$name.la"; then
8639 found_la
="$dir/lib$name.la"
8645 if test "X$found_dir" != "X"; then
8650 if test "X$found_dir" != "X"; then
8651 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8652 if test "X$found_so" != "X"; then
8653 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8654 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8657 for x
in $ltrpathdirs; do
8658 if test "X$x" = "X$found_dir"; then
8663 if test -z "$haveit"; then
8664 ltrpathdirs
="$ltrpathdirs $found_dir"
8666 if test "$hardcode_direct" = yes; then
8667 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8669 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8670 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8672 for x
in $rpathdirs; do
8673 if test "X$x" = "X$found_dir"; then
8678 if test -z "$haveit"; then
8679 rpathdirs
="$rpathdirs $found_dir"
8683 for x
in $LDFLAGS $LIBINTL; do
8685 acl_save_prefix
="$prefix"
8686 prefix
="$acl_final_prefix"
8687 acl_save_exec_prefix
="$exec_prefix"
8688 exec_prefix
="$acl_final_exec_prefix"
8690 exec_prefix
="$acl_save_exec_prefix"
8691 prefix
="$acl_save_prefix"
8693 if test "X$x" = "X-L$found_dir"; then
8698 if test -z "$haveit"; then
8699 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8701 if test "$hardcode_minus_L" != no
; then
8702 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8704 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8710 if test "X$found_a" != "X"; then
8711 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
8713 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8716 additional_includedir
=
8717 case "$found_dir" in
8719 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8720 additional_includedir
="$basedir/include"
8723 if test "X$additional_includedir" != "X"; then
8724 if test "X$additional_includedir" != "X/usr/include"; then
8726 if test "X$additional_includedir" = "X/usr/local/include"; then
8727 if test -n "$GCC"; then
8729 linux
*) haveit
=yes;;
8733 if test -z "$haveit"; then
8734 for x
in $CPPFLAGS $INCINTL; do
8736 acl_save_prefix
="$prefix"
8737 prefix
="$acl_final_prefix"
8738 acl_save_exec_prefix
="$exec_prefix"
8739 exec_prefix
="$acl_final_exec_prefix"
8741 exec_prefix
="$acl_save_exec_prefix"
8742 prefix
="$acl_save_prefix"
8744 if test "X$x" = "X-I$additional_includedir"; then
8749 if test -z "$haveit"; then
8750 if test -d "$additional_includedir"; then
8751 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8757 if test -n "$found_la"; then
8758 save_libdir
="$libdir"
8760 */* |
*\\*) .
"$found_la" ;;
8761 *) .
"./$found_la" ;;
8763 libdir
="$save_libdir"
8764 for dep
in $dependency_libs; do
8767 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8768 if test "X$additional_libdir" != "X/usr/lib"; then
8770 if test "X$additional_libdir" = "X/usr/local/lib"; then
8771 if test -n "$GCC"; then
8773 linux
*) haveit
=yes;;
8777 if test -z "$haveit"; then
8779 for x
in $LDFLAGS $LIBINTL; do
8781 acl_save_prefix
="$prefix"
8782 prefix
="$acl_final_prefix"
8783 acl_save_exec_prefix
="$exec_prefix"
8784 exec_prefix
="$acl_final_exec_prefix"
8786 exec_prefix
="$acl_save_exec_prefix"
8787 prefix
="$acl_save_prefix"
8789 if test "X$x" = "X-L$additional_libdir"; then
8794 if test -z "$haveit"; then
8795 if test -d "$additional_libdir"; then
8796 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8800 for x
in $LDFLAGS $LTLIBINTL; do
8802 acl_save_prefix
="$prefix"
8803 prefix
="$acl_final_prefix"
8804 acl_save_exec_prefix
="$exec_prefix"
8805 exec_prefix
="$acl_final_exec_prefix"
8807 exec_prefix
="$acl_save_exec_prefix"
8808 prefix
="$acl_save_prefix"
8810 if test "X$x" = "X-L$additional_libdir"; then
8815 if test -z "$haveit"; then
8816 if test -d "$additional_libdir"; then
8817 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8824 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8825 if test "$enable_rpath" != no
; then
8827 for x
in $rpathdirs; do
8828 if test "X$x" = "X$dir"; then
8833 if test -z "$haveit"; then
8834 rpathdirs
="$rpathdirs $dir"
8837 for x
in $ltrpathdirs; do
8838 if test "X$x" = "X$dir"; then
8843 if test -z "$haveit"; then
8844 ltrpathdirs
="$ltrpathdirs $dir"
8849 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8852 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8855 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
8856 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8862 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8863 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8869 if test "X$rpathdirs" != "X"; then
8870 if test -n "$hardcode_libdir_separator"; then
8872 for found_dir
in $rpathdirs; do
8873 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8875 acl_save_libdir
="$libdir"
8877 eval flag
=\"$hardcode_libdir_flag_spec\"
8878 libdir
="$acl_save_libdir"
8879 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8881 for found_dir
in $rpathdirs; do
8882 acl_save_libdir
="$libdir"
8884 eval flag
=\"$hardcode_libdir_flag_spec\"
8885 libdir
="$acl_save_libdir"
8886 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8890 if test "X$ltrpathdirs" != "X"; then
8891 for found_dir
in $ltrpathdirs; do
8892 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8897 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8898 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
8899 $as_echo_n "(cached) " >&6
8901 gt_save_CPPFLAGS
="$CPPFLAGS"
8902 CPPFLAGS
="$CPPFLAGS $INCINTL"
8903 gt_save_LIBS
="$LIBS"
8904 LIBS
="$LIBS $LIBINTL"
8905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #include <libintl.h>
8908 extern int _nl_msg_cat_cntr;
8913 const char *_nl_expand_alias ();
8917 bindtextdomain ("", "");
8918 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8923 if ac_fn_c_try_link
"$LINENO"; then :
8924 gt_cv_func_gnugettext2_libintl
=yes
8926 gt_cv_func_gnugettext2_libintl
=no
8928 rm -f core conftest.err conftest.
$ac_objext \
8929 conftest
$ac_exeext conftest.
$ac_ext
8930 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8931 LIBS
="$LIBS $LIBICONV"
8932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934 #include <libintl.h>
8935 extern int _nl_msg_cat_cntr;
8940 const char *_nl_expand_alias ();
8944 bindtextdomain ("", "");
8945 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8950 if ac_fn_c_try_link
"$LINENO"; then :
8951 LIBINTL
="$LIBINTL $LIBICONV"
8952 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
8953 gt_cv_func_gnugettext2_libintl
=yes
8956 rm -f core conftest.err conftest.
$ac_objext \
8957 conftest
$ac_exeext conftest.
$ac_ext
8959 CPPFLAGS
="$gt_save_CPPFLAGS"
8960 LIBS
="$gt_save_LIBS"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
8963 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
8966 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8967 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8968 && test "$PACKAGE" != gettext-runtime \
8969 && test "$PACKAGE" != gettext-tools
; }; then
8970 gt_use_preinstalled_gnugettext
=yes
8978 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8979 nls_cv_use_gnu_gettext
=yes
8983 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8984 BUILD_INCLUDED_LIBINTL
=yes
8985 USE_INCLUDED_LIBINTL
=yes
8986 LIBINTL
="lib/intl/libintl.a $LIBICONV"
8987 LTLIBINTL
="lib/intl/libintl.a $LTLIBICONV"
8988 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8991 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8992 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8997 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8998 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9000 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9008 $as_echo_n "checking whether to use NLS... " >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9010 $as_echo "$USE_NLS" >&6; }
9011 if test "$USE_NLS" = "yes"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9013 $as_echo_n "checking where the gettext function comes from... " >&6; }
9014 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9015 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9016 gt_source
="external libintl"
9021 gt_source
="included intl directory"
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9024 $as_echo "$gt_source" >&6; }
9027 if test "$USE_NLS" = "yes"; then
9029 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9030 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9032 $as_echo_n "checking how to link with libintl... " >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9034 $as_echo "$LIBINTL" >&6; }
9036 for element
in $INCINTL; do
9038 for x
in $CPPFLAGS; do
9040 acl_save_prefix
="$prefix"
9041 prefix
="$acl_final_prefix"
9042 acl_save_exec_prefix
="$exec_prefix"
9043 exec_prefix
="$acl_final_exec_prefix"
9045 exec_prefix
="$acl_save_exec_prefix"
9046 prefix
="$acl_save_prefix"
9048 if test "X$x" = "X$element"; then
9053 if test -z "$haveit"; then
9054 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9061 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9064 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9072 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
9073 BUILD_INCLUDED_LIBINTL
=yes
9081 nls_cv_header_libgt
=
9092 if test "$USE_INCLUDED_LIBINTL" = yes; then
9093 INTLOBJS
="\$(GETTOBJS)"
9097 INTL_LIBTOOL_SUFFIX_PREFIX
=
9110 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9111 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9113 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9114 if eval \
${$as_ac_Header+:} false
; then :
9115 $as_echo_n "(cached) " >&6
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #include <sys/types.h>
9131 if ac_fn_c_try_compile
"$LINENO"; then :
9132 eval "$as_ac_Header=yes"
9134 eval "$as_ac_Header=no"
9136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9138 eval ac_res
=\$
$as_ac_Header
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9140 $as_echo "$ac_res" >&6; }
9141 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9142 cat >>confdefs.h
<<_ACEOF
9143 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9146 ac_header_dirent
=$ac_hdr; break
9150 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9151 if test $ac_header_dirent = dirent.h
; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9153 $as_echo_n "checking for library containing opendir... " >&6; }
9154 if ${ac_cv_search_opendir+:} false
; then :
9155 $as_echo_n "(cached) " >&6
9157 ac_func_search_save_LIBS
=$LIBS
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9176 for ac_lib
in '' dir
; do
9177 if test -z "$ac_lib"; then
9178 ac_res
="none required"
9181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9183 if ac_fn_c_try_link
"$LINENO"; then :
9184 ac_cv_search_opendir
=$ac_res
9186 rm -f core conftest.err conftest.
$ac_objext \
9188 if ${ac_cv_search_opendir+:} false
; then :
9192 if ${ac_cv_search_opendir+:} false
; then :
9195 ac_cv_search_opendir
=no
9198 LIBS
=$ac_func_search_save_LIBS
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9201 $as_echo "$ac_cv_search_opendir" >&6; }
9202 ac_res
=$ac_cv_search_opendir
9203 if test "$ac_res" != no
; then :
9204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9210 $as_echo_n "checking for library containing opendir... " >&6; }
9211 if ${ac_cv_search_opendir+:} false
; then :
9212 $as_echo_n "(cached) " >&6
9214 ac_func_search_save_LIBS
=$LIBS
9215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9233 for ac_lib
in '' x
; do
9234 if test -z "$ac_lib"; then
9235 ac_res
="none required"
9238 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9240 if ac_fn_c_try_link
"$LINENO"; then :
9241 ac_cv_search_opendir
=$ac_res
9243 rm -f core conftest.err conftest.
$ac_objext \
9245 if ${ac_cv_search_opendir+:} false
; then :
9249 if ${ac_cv_search_opendir+:} false
; then :
9252 ac_cv_search_opendir
=no
9255 LIBS
=$ac_func_search_save_LIBS
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9258 $as_echo "$ac_cv_search_opendir" >&6; }
9259 ac_res
=$ac_cv_search_opendir
9260 if test "$ac_res" != no
; then :
9261 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9268 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9269 if ${ac_cv_header_time+:} false
; then :
9270 $as_echo_n "(cached) " >&6
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 #include <sys/types.h>
9275 #include <sys/time.h>
9281 if ((struct tm *) 0)
9287 if ac_fn_c_try_compile
"$LINENO"; then :
9288 ac_cv_header_time
=yes
9290 ac_cv_header_time
=no
9292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9295 $as_echo "$ac_cv_header_time" >&6; }
9296 if test $ac_cv_header_time = yes; then
9298 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9304 for ac_header
in inttypes.h
9306 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9307 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
9308 cat >>confdefs.h
<<_ACEOF
9309 #define HAVE_INTTYPES_H 1
9318 for ac_header
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9319 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9320 stdbool.h stddef.h stdint.h netdb.h
pwd.h grp.h
strings.h \
9321 regex.h syslog.h
ulimit.h
9323 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9325 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9326 cat >>confdefs.h
<<_ACEOF
9327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9334 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h sys
/ioctl.h \
9335 sys
/mman.h sys
/param.h sys
/socket.h sys
/stat.h \
9336 sys
/time.h sys
/times.h sys
/types.h sys
/wait.h
9338 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9339 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9340 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9341 cat >>confdefs.h
<<_ACEOF
9342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9349 for ac_header
in netinet
/in.h arpa
/inet.h
9351 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9352 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9353 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9354 cat >>confdefs.h
<<_ACEOF
9355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9363 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
9364 #if HAVE_SYS_STREAM_H
9365 # include <sys/stream.h>
9369 if test "x$ac_cv_header_sys_ptem_h" = xyes
; then :
9375 ac_fn_c_check_header_compile
"$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
9377 # include <sys/time.h>
9381 if test "x$ac_cv_header_sys_resource_h" = xyes
; then :
9382 $as_echo "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments. Useless!
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9391 $as_echo_n "checking for working alloca.h... " >&6; }
9392 if ${ac_cv_working_alloca_h+:} false
; then :
9393 $as_echo_n "(cached) " >&6
9395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9401 char *p = (char *) alloca (2 * sizeof (int));
9407 if ac_fn_c_try_link
"$LINENO"; then :
9408 ac_cv_working_alloca_h
=yes
9410 ac_cv_working_alloca_h
=no
9412 rm -f core conftest.err conftest.
$ac_objext \
9413 conftest
$ac_exeext conftest.
$ac_ext
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9416 $as_echo "$ac_cv_working_alloca_h" >&6; }
9417 if test $ac_cv_working_alloca_h = yes; then
9419 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9424 $as_echo_n "checking for alloca... " >&6; }
9425 if ${ac_cv_func_alloca_works+:} false
; then :
9426 $as_echo_n "(cached) " >&6
9428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9431 # define alloca __builtin_alloca
9434 # include <malloc.h>
9435 # define alloca _alloca
9437 # ifdef HAVE_ALLOCA_H
9438 # include <alloca.h>
9443 # ifndef alloca /* predefined by HP cc +Olibcalls */
9444 void *alloca (size_t);
9454 char *p = (char *) alloca (1);
9460 if ac_fn_c_try_link
"$LINENO"; then :
9461 ac_cv_func_alloca_works
=yes
9463 ac_cv_func_alloca_works
=no
9465 rm -f core conftest.err conftest.
$ac_objext \
9466 conftest
$ac_exeext conftest.
$ac_ext
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9469 $as_echo "$ac_cv_func_alloca_works" >&6; }
9471 if test $ac_cv_func_alloca_works = yes; then
9473 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9477 # that cause trouble. Some versions do not even contain alloca or
9478 # contain a buggy version. If you still want to use their alloca,
9479 # use ar to extract alloca.o from them instead of compiling alloca.c.
9481 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9483 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9487 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9488 if ${ac_cv_os_cray+:} false
; then :
9489 $as_echo_n "(cached) " >&6
9491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #if defined CRAY && ! defined CRAY2
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "webecray" >/dev
/null
2>&1; then :
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9510 $as_echo "$ac_cv_os_cray" >&6; }
9511 if test $ac_cv_os_cray = yes; then
9512 for ac_func
in _getb67 GETB67 getb67
; do
9513 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9514 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9515 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9517 cat >>confdefs.h
<<_ACEOF
9518 #define CRAY_STACKSEG_END $ac_func
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9528 $as_echo_n "checking stack direction for C alloca... " >&6; }
9529 if ${ac_cv_c_stack_direction+:} false
; then :
9530 $as_echo_n "(cached) " >&6
9532 if test "$cross_compiling" = yes; then :
9533 ac_cv_c_stack_direction
=0
9535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 $ac_includes_default
9539 find_stack_direction (int *addr, int depth)
9544 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9545 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9550 main (int argc, char **argv)
9552 return find_stack_direction (0, argc + !argv + 20) < 0;
9555 if ac_fn_c_try_run
"$LINENO"; then :
9556 ac_cv_c_stack_direction
=1
9558 ac_cv_c_stack_direction
=-1
9560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9566 $as_echo "$ac_cv_c_stack_direction" >&6; }
9567 cat >>confdefs.h
<<_ACEOF
9568 #define STACK_DIRECTION $ac_cv_c_stack_direction
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9575 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9576 if ${ac_cv_type_uid_t+:} false
; then :
9577 $as_echo_n "(cached) " >&6
9579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 #include <sys/types.h>
9584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9585 $EGREP "uid_t" >/dev
/null
2>&1; then :
9586 ac_cv_type_uid_t
=yes
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9594 $as_echo "$ac_cv_type_uid_t" >&6; }
9595 if test $ac_cv_type_uid_t = no
; then
9597 $as_echo "#define uid_t int" >>confdefs.h
9600 $as_echo "#define gid_t int" >>confdefs.h
9604 for ac_header
in unistd.h
9606 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9607 if test "x$ac_cv_header_unistd_h" = xyes
; then :
9608 cat >>confdefs.h
<<_ACEOF
9609 #define HAVE_UNISTD_H 1
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
9617 $as_echo_n "checking for working chown... " >&6; }
9618 if ${ac_cv_func_chown_works+:} false
; then :
9619 $as_echo_n "(cached) " >&6
9621 if test "$cross_compiling" = yes; then :
9622 ac_cv_func_chown_works
=no
9624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 $ac_includes_default
9632 char *f = "conftest.chown";
9633 struct stat before, after;
9635 if (creat (f, 0600) < 0)
9637 if (stat (f, &before) < 0)
9639 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9641 if (stat (f, &after) < 0)
9643 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9649 if ac_fn_c_try_run
"$LINENO"; then :
9650 ac_cv_func_chown_works
=yes
9652 ac_cv_func_chown_works
=no
9654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9655 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9658 rm -f conftest.chown
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
9662 $as_echo "$ac_cv_func_chown_works" >&6; }
9663 if test $ac_cv_func_chown_works = yes; then
9665 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9670 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9671 if ${ac_cv_func_getpgrp_void+:} false
; then :
9672 $as_echo_n "(cached) " >&6
9674 # Use it with a single arg.
9675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 $ac_includes_default
9686 if ac_fn_c_try_compile
"$LINENO"; then :
9687 ac_cv_func_getpgrp_void
=no
9689 ac_cv_func_getpgrp_void
=yes
9691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9695 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9696 if test $ac_cv_func_getpgrp_void = yes; then
9698 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9702 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
9703 $as_echo_n "(cached) " >&6
9705 ac_cv_func_setvbuf_reversed
=no
9709 for ac_func
in vprintf
9711 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
9712 if test "x$ac_cv_func_vprintf" = xyes
; then :
9713 cat >>confdefs.h
<<_ACEOF
9714 #define HAVE_VPRINTF 1
9717 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
9718 if test "x$ac_cv_func__doprnt" = xyes
; then :
9720 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9729 $as_echo_n "checking for working strcoll... " >&6; }
9730 if ${ac_cv_func_strcoll_works+:} false
; then :
9731 $as_echo_n "(cached) " >&6
9733 if test "$cross_compiling" = yes; then :
9734 ac_cv_func_strcoll_works
=no
9736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 $ac_includes_default
9742 return (strcoll ("abc", "def") >= 0 ||
9743 strcoll ("ABC", "DEF") >= 0 ||
9744 strcoll ("123", "456") >= 0)
9749 if ac_fn_c_try_run
"$LINENO"; then :
9750 ac_cv_func_strcoll_works
=yes
9752 ac_cv_func_strcoll_works
=no
9754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9760 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9761 if test $ac_cv_func_strcoll_works = yes; then
9763 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9769 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
9770 MALLOC_TARGET
=alloca
9773 MALLOC_LIB
='-lmalloc'
9774 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
9775 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
9776 MALLOC_DEP
='$(MALLOC_LIBRARY)'
9779 if test "$ac_cv_func_vprintf" = no
; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
9781 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
9782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9788 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then :
9789 ac_cv_func_vprintf
=yes
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
9794 $as_echo "$ac_cv_func_vprintf" >&6; }
9795 if test $ac_cv_func_vprintf = yes; then
9796 $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h
9801 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
9802 case " $LIBOBJS " in
9803 *" vprint.$ac_objext "* ) ;;
9804 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9811 $as_echo_n "checking return type of signal handlers... " >&6; }
9812 if ${ac_cv_type_signal+:} false
; then :
9813 $as_echo_n "(cached) " >&6
9815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 #include <sys/types.h>
9823 return *(signal (0, 0)) (0) == 1;
9828 if ac_fn_c_try_compile
"$LINENO"; then :
9829 ac_cv_type_signal
=int
9831 ac_cv_type_signal
=void
9833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9836 $as_echo "$ac_cv_type_signal" >&6; }
9838 cat >>confdefs.h
<<_ACEOF
9839 #define RETSIGTYPE $ac_cv_type_signal
9844 ac_fn_c_check_func
"$LINENO" "__setostype" "ac_cv_func___setostype"
9845 if test "x$ac_cv_func___setostype" = xyes
; then :
9846 $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h
9850 ac_fn_c_check_func
"$LINENO" "wait3" "ac_cv_func_wait3"
9851 if test "x$ac_cv_func_wait3" = xyes
; then :
9852 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
9857 ac_fn_c_check_func
"$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9858 if test "x$ac_cv_func_mkfifo" = xyes
; then :
9859 $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h
9862 $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h
9867 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
9868 getpagesize getpeername getrlimit getrusage gettimeofday \
9869 kill killpg lstat pselect readlink
select setdtablesize \
9870 setitimer tcgetpgrp uname
ulimit waitpid
9872 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9873 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9874 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9875 cat >>confdefs.h
<<_ACEOF
9876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9882 ac_fn_c_check_func
"$LINENO" "rename" "ac_cv_func_rename"
9883 if test "x$ac_cv_func_rename" = xyes
; then :
9884 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
9887 case " $LIBOBJS " in
9888 *" rename.$ac_objext "* ) ;;
9889 *) LIBOBJS
="$LIBOBJS rename.$ac_objext"
9897 for ac_func
in bcopy bzero confstr faccessat fnmatch \
9898 getaddrinfo gethostbyname getservbyname getservent inet_aton \
9899 imaxdiv memmove pathconf putenv raise random regcomp regexec \
9900 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
9901 sysconf syslog tcgetattr
times ttyname tzset unsetenv
9903 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9904 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9905 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9906 cat >>confdefs.h
<<_ACEOF
9907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9914 for ac_func
in vasprintf asprintf
9916 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9917 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9918 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9919 cat >>confdefs.h
<<_ACEOF
9920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9926 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
9928 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9929 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9930 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9931 cat >>confdefs.h
<<_ACEOF
9932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 for ac_func
in getpwent getpwnam getpwuid
9940 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9941 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9942 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9943 cat >>confdefs.h
<<_ACEOF
9944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9950 for ac_func
in mkstemp
9952 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
9953 if test "x$ac_cv_func_mkstemp" = xyes
; then :
9954 cat >>confdefs.h
<<_ACEOF
9955 #define HAVE_MKSTEMP 1
9961 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
9962 if test "x$ac_cv_func_getcwd" = xyes
; then :
9963 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
9966 case " $LIBOBJS " in
9967 *" getcwd.$ac_objext "* ) ;;
9968 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
9974 ac_fn_c_check_func
"$LINENO" "memset" "ac_cv_func_memset"
9975 if test "x$ac_cv_func_memset" = xyes
; then :
9976 $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
9979 case " $LIBOBJS " in
9980 *" memset.$ac_objext "* ) ;;
9981 *) LIBOBJS
="$LIBOBJS memset.$ac_objext"
9988 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9989 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
9990 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
9993 case " $LIBOBJS " in
9994 *" strcasecmp.$ac_objext "* ) ;;
9995 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
10001 ac_fn_c_check_func
"$LINENO" "strcasestr" "ac_cv_func_strcasestr"
10002 if test "x$ac_cv_func_strcasestr" = xyes
; then :
10003 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
10006 case " $LIBOBJS " in
10007 *" strcasestr.$ac_objext "* ) ;;
10008 *) LIBOBJS
="$LIBOBJS strcasestr.$ac_objext"
10014 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
10015 if test "x$ac_cv_func_strerror" = xyes
; then :
10016 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
10019 case " $LIBOBJS " in
10020 *" strerror.$ac_objext "* ) ;;
10021 *) LIBOBJS
="$LIBOBJS strerror.$ac_objext"
10027 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
10028 if test "x$ac_cv_func_strftime" = xyes
; then :
10029 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10032 case " $LIBOBJS " in
10033 *" strftime.$ac_objext "* ) ;;
10034 *) LIBOBJS
="$LIBOBJS strftime.$ac_objext"
10040 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
10041 if test "x$ac_cv_func_strnlen" = xyes
; then :
10042 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
10045 case " $LIBOBJS " in
10046 *" strnlen.$ac_objext "* ) ;;
10047 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
10053 ac_fn_c_check_func
"$LINENO" "strpbrk" "ac_cv_func_strpbrk"
10054 if test "x$ac_cv_func_strpbrk" = xyes
; then :
10055 $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h
10058 case " $LIBOBJS " in
10059 *" strpbrk.$ac_objext "* ) ;;
10060 *) LIBOBJS
="$LIBOBJS strpbrk.$ac_objext"
10066 ac_fn_c_check_func
"$LINENO" "strstr" "ac_cv_func_strstr"
10067 if test "x$ac_cv_func_strstr" = xyes
; then :
10068 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
10071 case " $LIBOBJS " in
10072 *" strstr.$ac_objext "* ) ;;
10073 *) LIBOBJS
="$LIBOBJS strstr.$ac_objext"
10080 ac_fn_c_check_func
"$LINENO" "strtod" "ac_cv_func_strtod"
10081 if test "x$ac_cv_func_strtod" = xyes
; then :
10082 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
10085 case " $LIBOBJS " in
10086 *" strtod.$ac_objext "* ) ;;
10087 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
10093 ac_fn_c_check_func
"$LINENO" "strtol" "ac_cv_func_strtol"
10094 if test "x$ac_cv_func_strtol" = xyes
; then :
10095 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
10098 case " $LIBOBJS " in
10099 *" strtol.$ac_objext "* ) ;;
10100 *) LIBOBJS
="$LIBOBJS strtol.$ac_objext"
10106 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
10107 if test "x$ac_cv_func_strtoul" = xyes
; then :
10108 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
10111 case " $LIBOBJS " in
10112 *" strtoul.$ac_objext "* ) ;;
10113 *) LIBOBJS
="$LIBOBJS strtoul.$ac_objext"
10119 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
10120 if test "x$ac_cv_func_strtoll" = xyes
; then :
10121 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10124 case " $LIBOBJS " in
10125 *" strtoll.$ac_objext "* ) ;;
10126 *) LIBOBJS
="$LIBOBJS strtoll.$ac_objext"
10132 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
10133 if test "x$ac_cv_func_strtoull" = xyes
; then :
10134 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
10137 case " $LIBOBJS " in
10138 *" strtoull.$ac_objext "* ) ;;
10139 *) LIBOBJS
="$LIBOBJS strtoull.$ac_objext"
10145 ac_fn_c_check_func
"$LINENO" "strtoimax" "ac_cv_func_strtoimax"
10146 if test "x$ac_cv_func_strtoimax" = xyes
; then :
10147 $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h
10150 case " $LIBOBJS " in
10151 *" strtoimax.$ac_objext "* ) ;;
10152 *) LIBOBJS
="$LIBOBJS strtoimax.$ac_objext"
10158 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
10159 if test "x$ac_cv_func_strtoumax" = xyes
; then :
10160 $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h
10163 case " $LIBOBJS " in
10164 *" strtoumax.$ac_objext "* ) ;;
10165 *) LIBOBJS
="$LIBOBJS strtoumax.$ac_objext"
10172 ac_fn_c_check_func
"$LINENO" "dprintf" "ac_cv_func_dprintf"
10173 if test "x$ac_cv_func_dprintf" = xyes
; then :
10174 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
10177 case " $LIBOBJS " in
10178 *" dprintf.$ac_objext "* ) ;;
10179 *) LIBOBJS
="$LIBOBJS dprintf.$ac_objext"
10186 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
10187 if test "x$ac_cv_func_strchrnul" = xyes
; then :
10188 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
10191 case " $LIBOBJS " in
10192 *" strchrnul.$ac_objext "* ) ;;
10193 *) LIBOBJS
="$LIBOBJS strchrnul.$ac_objext"
10200 ac_fn_c_check_func
"$LINENO" "strdup" "ac_cv_func_strdup"
10201 if test "x$ac_cv_func_strdup" = xyes
; then :
10202 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
10205 case " $LIBOBJS " in
10206 *" strdup.$ac_objext "* ) ;;
10207 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
10215 for ac_header
in libaudit.h
10217 ac_fn_c_check_header_mongrel
"$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10218 if test "x$ac_cv_header_libaudit_h" = xyes
; then :
10219 cat >>confdefs.h
<<_ACEOF
10220 #define HAVE_LIBAUDIT_H 1
10227 ac_fn_c_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
10229 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
; then :
10235 cat >>confdefs.h
<<_ACEOF
10236 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
10240 ac_fn_c_check_decl
"$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
10241 if test "x$ac_cv_have_decl_confstr" = xyes
; then :
10247 cat >>confdefs.h
<<_ACEOF
10248 #define HAVE_DECL_CONFSTR $ac_have_decl
10251 ac_fn_c_check_decl
"$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
10252 if test "x$ac_cv_have_decl_printf" = xyes
; then :
10258 cat >>confdefs.h
<<_ACEOF
10259 #define HAVE_DECL_PRINTF $ac_have_decl
10262 ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
10263 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
10269 cat >>confdefs.h
<<_ACEOF
10270 #define HAVE_DECL_SBRK $ac_have_decl
10273 ac_fn_c_check_decl
"$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
10274 if test "x$ac_cv_have_decl_setregid" = xyes
; then :
10280 cat >>confdefs.h
<<_ACEOF
10281 #define HAVE_DECL_SETREGID $ac_have_decl
10284 ac_fn_c_check_decl
"$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
10285 if test "x$ac_cv_have_decl_strcpy" = xyes
; then :
10291 cat >>confdefs.h
<<_ACEOF
10292 #define HAVE_DECL_STRCPY $ac_have_decl
10295 ac_fn_c_check_decl
"$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
10296 if test "x$ac_cv_have_decl_strsignal" = xyes
; then :
10302 cat >>confdefs.h
<<_ACEOF
10303 #define HAVE_DECL_STRSIGNAL $ac_have_decl
10307 ac_fn_c_check_decl
"$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
10308 if test "x$ac_cv_have_decl_strtold" = xyes
; then :
10314 cat >>confdefs.h
<<_ACEOF
10315 #define HAVE_DECL_STRTOLD $ac_have_decl
10317 if test $ac_have_decl = 1; then :
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
10320 $as_echo_n "checking for broken strtold... " >&6; }
10321 if ${bash_cv_strtold_broken+:} false
; then :
10322 $as_echo_n "(cached) " >&6
10324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <stdlib.h>
10330 long double r; char *foo, bar; r = strtold(foo, &bar);
10335 if ac_fn_c_try_compile
"$LINENO"; then :
10336 bash_cv_strtold_broken
=no
10338 bash_cv_strtold_broken
=yes
10340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
10346 $as_echo "$bash_cv_strtold_broken" >&6; }
10347 if test "$bash_cv_strtold_broken" = "yes" ; then
10348 $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
10359 $as_echo_n "checking for declaration of strtoimax... " >&6; }
10360 if ${bash_cv_decl_strtoimax+:} false
; then :
10361 $as_echo_n "(cached) " >&6
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10367 # include <stdlib.h>
10369 #if HAVE_INTTYPES_H
10370 # include <inttypes.h>
10381 if ac_fn_c_try_link
"$LINENO"; then :
10382 bash_cv_decl_strtoimax
=yes
10384 bash_cv_decl_strtoimax
=no
10386 rm -f core conftest.err conftest.
$ac_objext \
10387 conftest
$ac_exeext conftest.
$ac_ext
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5
10390 $as_echo "$bash_cv_decl_strtoimax" >&6; }
10391 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10392 if test $bash_cv_decl_strtoimax = yes; then
10393 cat >>confdefs.h
<<_ACEOF
10394 #define $bash_tr_func 1
10398 cat >>confdefs.h
<<_ACEOF
10399 #define $bash_tr_func 0
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
10408 $as_echo_n "checking for declaration of strtol... " >&6; }
10409 if ${bash_cv_decl_strtol+:} false
; then :
10410 $as_echo_n "(cached) " >&6
10412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10416 # include <stdlib.h>
10418 #if HAVE_INTTYPES_H
10419 # include <inttypes.h>
10430 if ac_fn_c_try_link
"$LINENO"; then :
10431 bash_cv_decl_strtol
=yes
10433 bash_cv_decl_strtol
=no
10435 rm -f core conftest.err conftest.
$ac_objext \
10436 conftest
$ac_exeext conftest.
$ac_ext
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5
10439 $as_echo "$bash_cv_decl_strtol" >&6; }
10440 bash_tr_func
=HAVE_DECL_
`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10441 if test $bash_cv_decl_strtol = yes; then
10442 cat >>confdefs.h
<<_ACEOF
10443 #define $bash_tr_func 1
10447 cat >>confdefs.h
<<_ACEOF
10448 #define $bash_tr_func 0
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
10457 $as_echo_n "checking for declaration of strtoll... " >&6; }
10458 if ${bash_cv_decl_strtoll+:} false
; then :
10459 $as_echo_n "(cached) " >&6
10461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10465 # include <stdlib.h>
10467 #if HAVE_INTTYPES_H
10468 # include <inttypes.h>
10479 if ac_fn_c_try_link
"$LINENO"; then :
10480 bash_cv_decl_strtoll
=yes
10482 bash_cv_decl_strtoll
=no
10484 rm -f core conftest.err conftest.
$ac_objext \
10485 conftest
$ac_exeext conftest.
$ac_ext
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5
10488 $as_echo "$bash_cv_decl_strtoll" >&6; }
10489 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10490 if test $bash_cv_decl_strtoll = yes; then
10491 cat >>confdefs.h
<<_ACEOF
10492 #define $bash_tr_func 1
10496 cat >>confdefs.h
<<_ACEOF
10497 #define $bash_tr_func 0
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
10506 $as_echo_n "checking for declaration of strtoul... " >&6; }
10507 if ${bash_cv_decl_strtoul+:} false
; then :
10508 $as_echo_n "(cached) " >&6
10510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10514 # include <stdlib.h>
10516 #if HAVE_INTTYPES_H
10517 # include <inttypes.h>
10528 if ac_fn_c_try_link
"$LINENO"; then :
10529 bash_cv_decl_strtoul
=yes
10531 bash_cv_decl_strtoul
=no
10533 rm -f core conftest.err conftest.
$ac_objext \
10534 conftest
$ac_exeext conftest.
$ac_ext
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5
10537 $as_echo "$bash_cv_decl_strtoul" >&6; }
10538 bash_tr_func
=HAVE_DECL_
`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10539 if test $bash_cv_decl_strtoul = yes; then
10540 cat >>confdefs.h
<<_ACEOF
10541 #define $bash_tr_func 1
10545 cat >>confdefs.h
<<_ACEOF
10546 #define $bash_tr_func 0
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
10555 $as_echo_n "checking for declaration of strtoull... " >&6; }
10556 if ${bash_cv_decl_strtoull+:} false
; then :
10557 $as_echo_n "(cached) " >&6
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10563 # include <stdlib.h>
10565 #if HAVE_INTTYPES_H
10566 # include <inttypes.h>
10577 if ac_fn_c_try_link
"$LINENO"; then :
10578 bash_cv_decl_strtoull
=yes
10580 bash_cv_decl_strtoull
=no
10582 rm -f core conftest.err conftest.
$ac_objext \
10583 conftest
$ac_exeext conftest.
$ac_ext
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5
10586 $as_echo "$bash_cv_decl_strtoull" >&6; }
10587 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10588 if test $bash_cv_decl_strtoull = yes; then
10589 cat >>confdefs.h
<<_ACEOF
10590 #define $bash_tr_func 1
10594 cat >>confdefs.h
<<_ACEOF
10595 #define $bash_tr_func 0
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
10604 $as_echo_n "checking for declaration of strtoumax... " >&6; }
10605 if ${bash_cv_decl_strtoumax+:} false
; then :
10606 $as_echo_n "(cached) " >&6
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10612 # include <stdlib.h>
10614 #if HAVE_INTTYPES_H
10615 # include <inttypes.h>
10626 if ac_fn_c_try_link
"$LINENO"; then :
10627 bash_cv_decl_strtoumax
=yes
10629 bash_cv_decl_strtoumax
=no
10631 rm -f core conftest.err conftest.
$ac_objext \
10632 conftest
$ac_exeext conftest.
$ac_ext
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5
10635 $as_echo "$bash_cv_decl_strtoumax" >&6; }
10636 bash_tr_func
=HAVE_DECL_
`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10637 if test $bash_cv_decl_strtoumax = yes; then
10638 cat >>confdefs.h
<<_ACEOF
10639 #define $bash_tr_func 1
10643 cat >>confdefs.h
<<_ACEOF
10644 #define $bash_tr_func 0
10655 for ac_func
in $ac_func_list
10657 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10658 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10659 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10660 cat >>confdefs.h
<<_ACEOF
10661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10672 $as_echo_n "checking for working mktime... " >&6; }
10673 if ${ac_cv_func_working_mktime+:} false
; then :
10674 $as_echo_n "(cached) " >&6
10676 if test "$cross_compiling" = yes; then :
10677 ac_cv_func_working_mktime
=no
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 /* Test program from Paul Eggert and Tony Leneis. */
10682 #ifdef TIME_WITH_SYS_TIME
10683 # include <sys/time.h>
10686 # ifdef HAVE_SYS_TIME_H
10687 # include <sys/time.h>
10693 #include <limits.h>
10694 #include <stdlib.h>
10696 #ifdef HAVE_UNISTD_H
10697 # include <unistd.h>
10701 # define alarm(X) /* empty */
10704 /* Work around redefinition to rpl_putenv by other config tests. */
10707 static time_t time_t_max;
10708 static time_t time_t_min;
10710 /* Values we'll use to set the TZ environment variable. */
10711 static const char *tz_strings[] = {
10712 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10713 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10715 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10717 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10718 Based on a problem report from Andreas Jaeger. */
10720 spring_forward_gap ()
10722 /* glibc (up to about 1998-10-07) failed this test. */
10725 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10726 instead of "TZ=America/Vancouver" in order to detect the bug even
10727 on systems that don't support the Olson extension, or don't have the
10728 full zoneinfo tables installed. */
10729 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10738 return mktime (&tm) != (time_t) -1;
10742 mktime_test1 (time_t now)
10745 return ! (lt = localtime (&now)) || mktime (lt) == now;
10749 mktime_test (time_t now)
10751 return (mktime_test1 (now)
10752 && mktime_test1 ((time_t) (time_t_max - now))
10753 && mktime_test1 ((time_t) (time_t_min + now)));
10759 /* Based on code from Ariel Faigon. */
10769 return tm.tm_mon == 2 && tm.tm_mday == 31;
10773 bigtime_test (int j)
10777 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10778 now = mktime (&tm);
10779 if (now != (time_t) -1)
10781 struct tm *lt = localtime (&now);
10783 && lt->tm_year == tm.tm_year
10784 && lt->tm_mon == tm.tm_mon
10785 && lt->tm_mday == tm.tm_mday
10786 && lt->tm_hour == tm.tm_hour
10787 && lt->tm_min == tm.tm_min
10788 && lt->tm_sec == tm.tm_sec
10789 && lt->tm_yday == tm.tm_yday
10790 && lt->tm_wday == tm.tm_wday
10791 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10792 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10801 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10802 ignoring leap seconds. */
10803 unsigned long int answer = 2527315200UL;
10807 tm.tm_year = 2050 - 1900;
10810 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10813 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10814 instead of "TZ=America/Vancouver" in order to detect the bug even
10815 on systems that don't support the Olson extension, or don't have the
10816 full zoneinfo tables installed. */
10817 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10821 /* Check that the result is either a failure, or close enough
10822 to the correct answer that we can assume the discrepancy is
10823 due to leap seconds. */
10824 return (t == (time_t) -1
10825 || (0 < t && answer - 120 <= t && t <= answer + 120));
10834 /* This test makes some buggy mktime implementations loop.
10835 Give up after 60 seconds; a mktime slower than that
10836 isn't worth using anyway. */
10841 t = (time_t_max << 1) + 1;
10842 if (t <= time_t_max)
10846 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10848 delta = time_t_max / 997; /* a suitable prime number */
10849 for (i = 0; i < N_STRINGS; i++)
10852 putenv ((char*) tz_strings[i]);
10854 for (t = 0; t <= time_t_max - delta; t += delta)
10855 if (! mktime_test (t))
10857 if (! (mktime_test ((time_t) 1)
10858 && mktime_test ((time_t) (60 * 60))
10859 && mktime_test ((time_t) (60 * 60 * 24))))
10862 for (j = 1; ; j <<= 1)
10863 if (! bigtime_test (j))
10865 else if (INT_MAX / 2 < j)
10867 if (! bigtime_test (INT_MAX))
10870 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10873 if ac_fn_c_try_run
"$LINENO"; then :
10874 ac_cv_func_working_mktime
=yes
10876 ac_cv_func_working_mktime
=no
10878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10884 $as_echo "$ac_cv_func_working_mktime" >&6; }
10885 if test $ac_cv_func_working_mktime = no
; then
10886 case " $LIBOBJS " in
10887 *" mktime.$ac_objext "* ) ;;
10888 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10896 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
10898 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10899 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10900 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10901 cat >>confdefs.h
<<_ACEOF
10902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10911 for ac_func
in getpagesize
10913 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10914 if test "x$ac_cv_func_getpagesize" = xyes
; then :
10915 cat >>confdefs.h
<<_ACEOF
10916 #define HAVE_GETPAGESIZE 1
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10923 $as_echo_n "checking for working mmap... " >&6; }
10924 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
10925 $as_echo_n "(cached) " >&6
10927 if test "$cross_compiling" = yes; then :
10928 ac_cv_func_mmap_fixed_mapped
=no
10930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10932 $ac_includes_default
10933 /* malloc might have been renamed as rpl_malloc. */
10936 /* Thanks to Mike Haertel and Jim Avera for this test.
10937 Here is a matrix of mmap possibilities:
10938 mmap private not fixed
10939 mmap private fixed at somewhere currently unmapped
10940 mmap private fixed at somewhere already mapped
10941 mmap shared not fixed
10942 mmap shared fixed at somewhere currently unmapped
10943 mmap shared fixed at somewhere already mapped
10944 For private mappings, we should verify that changes cannot be read()
10945 back from the file, nor mmap's back from the file at a different
10946 address. (There have been systems where private was not correctly
10947 implemented like the infamous i386 svr4.0, and systems where the
10948 VM page cache was not coherent with the file system buffer cache
10949 like early versions of FreeBSD and possibly contemporary NetBSD.)
10950 For shared mappings, we should conversely verify that changes get
10951 propagated back to all the places they're supposed to be.
10953 Grep wants private fixed already mapped.
10954 The main things grep needs to know about mmap are:
10955 * does it exist and is it safe to write into the mmap'd area
10956 * how to use it (BSD variants) */
10959 #include <sys/mman.h>
10961 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10965 /* This mess was copied from the GNU getpagesize.h. */
10966 #ifndef HAVE_GETPAGESIZE
10967 # ifdef _SC_PAGESIZE
10968 # define getpagesize() sysconf(_SC_PAGESIZE)
10969 # else /* no _SC_PAGESIZE */
10970 # ifdef HAVE_SYS_PARAM_H
10971 # include <sys/param.h>
10972 # ifdef EXEC_PAGESIZE
10973 # define getpagesize() EXEC_PAGESIZE
10974 # else /* no EXEC_PAGESIZE */
10976 # define getpagesize() NBPG * CLSIZE
10979 # endif /* no CLSIZE */
10980 # else /* no NBPG */
10982 # define getpagesize() NBPC
10983 # else /* no NBPC */
10985 # define getpagesize() PAGESIZE
10986 # endif /* PAGESIZE */
10987 # endif /* no NBPC */
10988 # endif /* no NBPG */
10989 # endif /* no EXEC_PAGESIZE */
10990 # else /* no HAVE_SYS_PARAM_H */
10991 # define getpagesize() 8192 /* punt totally */
10992 # endif /* no HAVE_SYS_PARAM_H */
10993 # endif /* no _SC_PAGESIZE */
10995 #endif /* no HAVE_GETPAGESIZE */
11000 char *data, *data2, *data3;
11001 const char *cdata2;
11005 pagesize = getpagesize ();
11007 /* First, make a file with some known garbage in it. */
11008 data = (char *) malloc (pagesize);
11011 for (i = 0; i < pagesize; ++i)
11012 *(data + i) = rand ();
11014 fd = creat ("conftest.mmap", 0600);
11017 if (write (fd, data, pagesize) != pagesize)
11021 /* Next, check that the tail of a page is zero-filled. File must have
11022 non-zero length, otherwise we risk SIGBUS for entire page. */
11023 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11027 if (write (fd2, cdata2, 1) != 1)
11029 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11030 if (data2 == MAP_FAILED)
11032 for (i = 0; i < pagesize; ++i)
11036 if (munmap (data2, pagesize))
11039 /* Next, try to mmap the file at a fixed address which already has
11040 something else allocated at it. If we can, also make sure that
11041 we see the same garbage. */
11042 fd = open ("conftest.mmap", O_RDWR);
11045 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11048 for (i = 0; i < pagesize; ++i)
11049 if (*(data + i) != *(data2 + i))
11052 /* Finally, make sure that changes to the mapped area do not
11053 percolate back to the file as seen by read(). (This is a bug on
11054 some variants of i386 svr4.0.) */
11055 for (i = 0; i < pagesize; ++i)
11056 *(data2 + i) = *(data2 + i) + 1;
11057 data3 = (char *) malloc (pagesize);
11060 if (read (fd, data3, pagesize) != pagesize)
11062 for (i = 0; i < pagesize; ++i)
11063 if (*(data + i) != *(data3 + i))
11069 if ac_fn_c_try_run
"$LINENO"; then :
11070 ac_cv_func_mmap_fixed_mapped
=yes
11072 ac_cv_func_mmap_fixed_mapped
=no
11074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11080 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11083 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11086 rm -f conftest.mmap conftest.txt
11088 for ac_func
in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
11089 munmap mremap stpcpy strcspn
11091 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11092 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11093 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11094 cat >>confdefs.h
<<_ACEOF
11095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11102 INTL_DEP
= INTL_INC
= LIBINTL_H
=
11103 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
11104 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
11105 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
11106 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
11114 for ac_header
in wctype.h
11116 ac_fn_c_check_header_mongrel
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
11117 if test "x$ac_cv_header_wctype_h" = xyes
; then :
11118 cat >>confdefs.h
<<_ACEOF
11119 #define HAVE_WCTYPE_H 1
11126 for ac_header
in wchar.h
11128 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11129 if test "x$ac_cv_header_wchar_h" = xyes
; then :
11130 cat >>confdefs.h
<<_ACEOF
11131 #define HAVE_WCHAR_H 1
11138 for ac_header
in langinfo.h
11140 ac_fn_c_check_header_mongrel
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_langinfo_h" = xyes
; then :
11142 cat >>confdefs.h
<<_ACEOF
11143 #define HAVE_LANGINFO_H 1
11151 for ac_header
in mbstr.h
11153 ac_fn_c_check_header_mongrel
"$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
11154 if test "x$ac_cv_header_mbstr_h" = xyes
; then :
11155 cat >>confdefs.h
<<_ACEOF
11156 #define HAVE_MBSTR_H 1
11164 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
11165 if test "x$ac_cv_func_mbrlen" = xyes
; then :
11166 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
11170 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
11171 if test "x$ac_cv_func_mbscasecmp" = xyes
; then :
11172 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
11176 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
11177 if test "x$ac_cv_func_mbscmp" = xyes
; then :
11178 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
11182 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
11183 if test "x$ac_cv_func_mbsnrtowcs" = xyes
; then :
11184 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
11188 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
11189 if test "x$ac_cv_func_mbsrtowcs" = xyes
; then :
11190 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
11195 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
11196 if test "x$ac_cv_func_mbschr" = xyes
; then :
11197 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
11200 case " $LIBOBJS " in
11201 *" mbschr.$ac_objext "* ) ;;
11202 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
11210 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
11211 if test "x$ac_cv_func_wcrtomb" = xyes
; then :
11212 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
11216 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
11217 if test "x$ac_cv_func_wcscoll" = xyes
; then :
11218 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
11222 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
11223 if test "x$ac_cv_func_wcsdup" = xyes
; then :
11224 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
11228 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
11229 if test "x$ac_cv_func_wcwidth" = xyes
; then :
11230 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
11234 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
11235 if test "x$ac_cv_func_wctype" = xyes
; then :
11236 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
11241 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
11242 if test "x$ac_cv_func_wcswidth" = xyes
; then :
11243 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
11246 case " $LIBOBJS " in
11247 *" wcswidth.$ac_objext "* ) ;;
11248 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11258 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11259 if ${ac_cv_func_mbrtowc+:} false
; then :
11260 $as_echo_n "(cached) " >&6
11262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11269 char const s[] = "";
11272 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11277 if ac_fn_c_try_link
"$LINENO"; then :
11278 ac_cv_func_mbrtowc
=yes
11280 ac_cv_func_mbrtowc
=no
11282 rm -f core conftest.err conftest.
$ac_objext \
11283 conftest
$ac_exeext conftest.
$ac_ext
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11286 $as_echo "$ac_cv_func_mbrtowc" >&6; }
11287 if test $ac_cv_func_mbrtowc = yes; then
11289 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
11293 if test $ac_cv_func_mbrtowc = yes; then
11294 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11298 for ac_func
in iswlower iswupper towlower towupper iswctype
11300 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11301 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11302 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11303 cat >>confdefs.h
<<_ACEOF
11304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11312 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11313 if ${bash_cv_langinfo_codeset+:} false
; then :
11314 $as_echo_n "(cached) " >&6
11316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 #include <langinfo.h>
11322 char* cs = nl_langinfo(CODESET);
11327 if ac_fn_c_try_link
"$LINENO"; then :
11328 bash_cv_langinfo_codeset
=yes
11330 bash_cv_langinfo_codeset
=no
11332 rm -f core conftest.err conftest.
$ac_objext \
11333 conftest
$ac_exeext conftest.
$ac_ext
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
11336 $as_echo "$bash_cv_langinfo_codeset" >&6; }
11337 if test $bash_cv_langinfo_codeset = yes; then
11338 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
11343 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
11344 if ${bash_cv_type_wchar_t+:} false
; then :
11345 $as_echo_n "(cached) " >&6
11347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11362 if ac_fn_c_try_compile
"$LINENO"; then :
11363 bash_cv_type_wchar_t
=yes
11365 bash_cv_type_wchar_t
=no
11367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
11370 $as_echo "$bash_cv_type_wchar_t" >&6; }
11371 if test $bash_cv_type_wchar_t = yes; then
11373 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
11378 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
11379 if ${bash_cv_type_wctype_t+:} false
; then :
11380 $as_echo_n "(cached) " >&6
11382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384 #include <wctype.h>
11396 if ac_fn_c_try_compile
"$LINENO"; then :
11397 bash_cv_type_wctype_t
=yes
11399 bash_cv_type_wctype_t
=no
11401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
11404 $as_echo "$bash_cv_type_wctype_t" >&6; }
11405 if test $bash_cv_type_wctype_t = yes; then
11407 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
11412 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
11413 if ${bash_cv_type_wint_t+:} false
; then :
11414 $as_echo_n "(cached) " >&6
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418 #include <wctype.h>
11430 if ac_fn_c_try_compile
"$LINENO"; then :
11431 bash_cv_type_wint_t
=yes
11433 bash_cv_type_wint_t
=no
11435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
11438 $as_echo "$bash_cv_type_wint_t" >&6; }
11439 if test $bash_cv_type_wint_t = yes; then
11441 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
11446 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
11447 if ${bash_cv_wcwidth_broken+:} false
; then :
11448 $as_echo_n "(cached) " >&6
11450 if test "$cross_compiling" = yes; then :
11451 bash_cv_wcwidth_broken
=no
11453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11456 #include <unistd.h>
11457 #include <stdlib.h>
11460 #include <locale.h>
11469 setlocale(LC_ALL, "en_US.UTF-8");
11470 w = wcwidth (0x0301);
11471 exit (w == 0); /* exit 0 if wcwidth broken */
11475 if ac_fn_c_try_run
"$LINENO"; then :
11476 bash_cv_wcwidth_broken
=yes
11478 bash_cv_wcwidth_broken
=no
11480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
11486 $as_echo "$bash_cv_wcwidth_broken" >&6; }
11487 if test "$bash_cv_wcwidth_broken" = yes; then
11489 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
11493 if test "$am_cv_func_iconv" = yes; then
11495 LIBS
="$LIBS $LIBINTL $LIBICONV"
11496 for ac_func
in locale_charset
11498 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11499 if test "x$ac_cv_func_locale_charset" = xyes
; then :
11500 cat >>confdefs.h
<<_ACEOF
11501 #define HAVE_LOCALE_CHARSET 1
11510 # The cast to long int works around a bug in the HP C Compiler
11511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11513 # This bug is HP SR number 8606223364.
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
11515 $as_echo_n "checking size of wchar_t... " >&6; }
11516 if ${ac_cv_sizeof_wchar_t+:} false
; then :
11517 $as_echo_n "(cached) " >&6
11519 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
11522 if test "$ac_cv_type_wchar_t" = yes; then
11523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11525 as_fn_error
77 "cannot compute sizeof (wchar_t)
11526 See \`config.log' for more details" "$LINENO" 5; }
11528 ac_cv_sizeof_wchar_t
=0
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
11534 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
11538 cat >>confdefs.h
<<_ACEOF
11539 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
11546 if test "$opt_static_link" != yes; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11549 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11550 $as_echo_n "(cached) " >&6
11552 ac_check_lib_save_LIBS
=$LIBS
11554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11572 if ac_fn_c_try_link
"$LINENO"; then :
11573 ac_cv_lib_dl_dlopen
=yes
11575 ac_cv_lib_dl_dlopen
=no
11577 rm -f core conftest.err conftest.
$ac_objext \
11578 conftest
$ac_exeext conftest.
$ac_ext
11579 LIBS
=$ac_check_lib_save_LIBS
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11583 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11584 cat >>confdefs.h
<<_ACEOF
11585 #define HAVE_LIBDL 1
11592 for ac_func
in dlopen dlclose dlsym
11594 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11596 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11597 cat >>confdefs.h
<<_ACEOF
11598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11606 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11607 /* NetBSD declares sys_siglist in unistd.h. */
11608 #ifdef HAVE_UNISTD_H
11609 # include <unistd.h>
11613 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
11619 cat >>confdefs.h
<<_ACEOF
11620 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11625 if test "$ac_cv_func_inet_aton" != 'yes'; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11628 $as_echo_n "checking for inet_aton... " >&6; }
11629 if ${bash_cv_func_inet_aton+:} false
; then :
11630 $as_echo_n "(cached) " >&6
11632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 #include <sys/types.h>
11636 #include <netinet/in.h>
11637 #include <arpa/inet.h>
11642 inet_aton("127.0.0.1", &ap);
11647 if ac_fn_c_try_link
"$LINENO"; then :
11648 bash_cv_func_inet_aton
=yes
11650 bash_cv_func_inet_aton
=no
11652 rm -f core conftest.err conftest.
$ac_objext \
11653 conftest
$ac_exeext conftest.
$ac_ext
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
11656 $as_echo "$bash_cv_func_inet_aton" >&6; }
11657 if test $bash_cv_func_inet_aton = yes; then
11658 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11661 case " $LIBOBJS " in
11662 *" inet_aton.$ac_objext "* ) ;;
11663 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
11672 irix4
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
11673 $as_echo_n "checking for getpwent in -lsun... " >&6; }
11674 if ${ac_cv_lib_sun_getpwent+:} false
; then :
11675 $as_echo_n "(cached) " >&6
11677 ac_check_lib_save_LIBS
=$LIBS
11679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11692 return getpwent ();
11697 if ac_fn_c_try_link
"$LINENO"; then :
11698 ac_cv_lib_sun_getpwent
=yes
11700 ac_cv_lib_sun_getpwent
=no
11702 rm -f core conftest.err conftest.
$ac_objext \
11703 conftest
$ac_exeext conftest.
$ac_ext
11704 LIBS
=$ac_check_lib_save_LIBS
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
11707 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
11708 if test "x$ac_cv_lib_sun_getpwent" = xyes
; then :
11709 cat >>confdefs.h
<<_ACEOF
11710 #define HAVE_LIBSUN 1
11719 if test "$ac_cv_func_getpeername" = no
; then
11721 if test "X$bash_cv_have_socklib" = "X"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
11725 $as_echo_n "checking for socket library... " >&6; }
11728 if ${bash_cv_have_socklib+:} false
; then :
11729 $as_echo_n "(cached) " >&6
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
11732 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
11733 if ${ac_cv_lib_socket_getpeername+:} false
; then :
11734 $as_echo_n "(cached) " >&6
11736 ac_check_lib_save_LIBS
=$LIBS
11737 LIBS
="-lsocket -lnsl $LIBS"
11738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11741 /* Override any GCC internal prototype to avoid an error.
11742 Use char because int might match the return type of a GCC
11743 builtin and then its argument prototype would still apply. */
11747 char getpeername ();
11751 return getpeername ();
11756 if ac_fn_c_try_link
"$LINENO"; then :
11757 ac_cv_lib_socket_getpeername
=yes
11759 ac_cv_lib_socket_getpeername
=no
11761 rm -f core conftest.err conftest.
$ac_objext \
11762 conftest
$ac_exeext conftest.
$ac_ext
11763 LIBS
=$ac_check_lib_save_LIBS
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
11766 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
11767 if test "x$ac_cv_lib_socket_getpeername" = xyes
; then :
11768 bash_cv_have_socklib
=yes
11770 bash_cv_have_socklib
=no
11775 if test "X$_bash_needmsg" = Xyes
; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
11777 $as_echo "$bash_cv_have_socklib" >&6; }
11780 if test $bash_cv_have_socklib = yes; then
11781 # check for libnsl, add it to LIBS if present
11782 if test "X$bash_cv_have_libnsl" = "X"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
11786 $as_echo_n "checking for libnsl... " >&6; }
11789 if ${bash_cv_have_libnsl+:} false
; then :
11790 $as_echo_n "(cached) " >&6
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
11793 $as_echo_n "checking for t_open in -lnsl... " >&6; }
11794 if ${ac_cv_lib_nsl_t_open+:} false
; then :
11795 $as_echo_n "(cached) " >&6
11797 ac_check_lib_save_LIBS
=$LIBS
11799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11817 if ac_fn_c_try_link
"$LINENO"; then :
11818 ac_cv_lib_nsl_t_open
=yes
11820 ac_cv_lib_nsl_t_open
=no
11822 rm -f core conftest.err conftest.
$ac_objext \
11823 conftest
$ac_exeext conftest.
$ac_ext
11824 LIBS
=$ac_check_lib_save_LIBS
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
11827 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
11828 if test "x$ac_cv_lib_nsl_t_open" = xyes
; then :
11829 bash_cv_have_libnsl
=yes
11831 bash_cv_have_libnsl
=no
11836 if test "X$_bash_needmsg" = Xyes
; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
11838 $as_echo "$bash_cv_have_libnsl" >&6; }
11841 if test $bash_cv_have_libnsl = yes; then
11842 LIBS
="-lsocket -lnsl $LIBS"
11844 LIBS
="-lsocket $LIBS"
11846 $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
11848 $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h
11853 if test "$ac_cv_func_gethostbyname" = no
; then
11854 if test "X$bash_cv_have_gethostbyname" = "X"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11858 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11861 if ${bash_cv_have_gethostbyname+:} false
; then :
11862 $as_echo_n "(cached) " >&6
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11870 struct hostent *hp;
11871 hp = gethostbyname("localhost");
11877 if ac_fn_c_try_link
"$LINENO"; then :
11878 bash_cv_have_gethostbyname
=yes
11880 bash_cv_have_gethostbyname
=no
11882 rm -f core conftest.err conftest.
$ac_objext \
11883 conftest
$ac_exeext conftest.
$ac_ext
11887 if test "X$_bash_needmsg" = Xyes
; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
11889 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
11892 $as_echo "$bash_cv_have_gethostbyname" >&6; }
11893 if test "$bash_cv_have_gethostbyname" = yes; then
11894 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11901 $as_echo_n "checking type of array argument to getgroups... " >&6; }
11902 if ${ac_cv_type_getgroups+:} false
; then :
11903 $as_echo_n "(cached) " >&6
11905 if test "$cross_compiling" = yes; then :
11906 ac_cv_type_getgroups
=cross
11908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11910 /* Thanks to Mike Rendell for this test. */
11911 $ac_includes_default
11914 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11919 gid_t gidset[NGID];
11921 union { gid_t gval; long int lval; } val;
11924 for (i = 0; i < NGID; i++)
11925 gidset[i] = val.gval;
11926 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11928 /* Exit non-zero if getgroups seems to require an array of ints. This
11929 happens when gid_t is short int but getgroups modifies an array
11931 return n > 0 && gidset[n] != val.gval;
11934 if ac_fn_c_try_run
"$LINENO"; then :
11935 ac_cv_type_getgroups
=gid_t
11937 ac_cv_type_getgroups
=int
11939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11940 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11943 if test $ac_cv_type_getgroups = cross
; then
11944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946 #include <unistd.h>
11949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11950 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
11951 ac_cv_type_getgroups
=gid_t
11953 ac_cv_type_getgroups
=int
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11960 $as_echo "$ac_cv_type_getgroups" >&6; }
11962 cat >>confdefs.h
<<_ACEOF
11963 #define GETGROUPS_T $ac_cv_type_getgroups
11967 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11968 if test "x$ac_cv_type_off_t" = xyes
; then :
11972 cat >>confdefs.h
<<_ACEOF
11973 #define off_t long int
11978 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11979 if test "x$ac_cv_type_mode_t" = xyes
; then :
11983 cat >>confdefs.h
<<_ACEOF
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11990 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11991 if ${ac_cv_type_uid_t+:} false
; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <sys/types.h>
11999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12000 $EGREP "uid_t" >/dev
/null
2>&1; then :
12001 ac_cv_type_uid_t
=yes
12003 ac_cv_type_uid_t
=no
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12009 $as_echo "$ac_cv_type_uid_t" >&6; }
12010 if test $ac_cv_type_uid_t = no
; then
12012 $as_echo "#define uid_t int" >>confdefs.h
12015 $as_echo "#define gid_t int" >>confdefs.h
12019 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12020 if test "x$ac_cv_type_pid_t" = xyes
; then :
12024 cat >>confdefs.h
<<_ACEOF
12030 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12031 if test "x$ac_cv_type_size_t" = xyes
; then :
12035 cat >>confdefs.h
<<_ACEOF
12036 #define size_t unsigned int
12042 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12043 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
12045 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
12048 for ac_type
in 'unsigned int' 'unsigned long int' \
12049 'unsigned long long int'; do
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 $ac_includes_default
12056 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12057 test_array [0] = 0;
12058 return test_array [0];
12064 if ac_fn_c_try_compile
"$LINENO"; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define uintptr_t $ac_type
12072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12073 test -z "$ac_type" && break
12079 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12080 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12084 cat >>confdefs.h
<<_ACEOF
12085 #define ssize_t int
12090 ac_fn_c_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
12091 if test "x$ac_cv_type_time_t" = xyes
; then :
12095 cat >>confdefs.h
<<_ACEOF
12096 #define time_t long
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
12104 $as_echo_n "checking for long long... " >&6; }
12105 if ${bash_cv_type_long_long+:} false
; then :
12106 $as_echo_n "(cached) " >&6
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12111 long long ll = 1; int i = 63;
12116 long long llm = (long long) -1;
12117 return ll << i | ll >> i | llm / ll | llm % ll;
12123 if ac_fn_c_try_link
"$LINENO"; then :
12124 bash_cv_type_long_long
='long long'
12126 bash_cv_type_long_long
='long'
12128 rm -f core conftest.err conftest.
$ac_objext \
12129 conftest
$ac_exeext conftest.
$ac_ext
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5
12132 $as_echo "$bash_cv_type_long_long" >&6; }
12133 if test "$bash_cv_type_long_long" = 'long long'; then
12134 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12140 $as_echo_n "checking for unsigned long long... " >&6; }
12141 if ${bash_cv_type_unsigned_long_long+:} false
; then :
12142 $as_echo_n "(cached) " >&6
12144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12147 unsigned long long ull = 1; int i = 63;
12152 unsigned long long ullmax = (unsigned long long) -1;
12153 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12159 if ac_fn_c_try_link
"$LINENO"; then :
12160 bash_cv_type_unsigned_long_long
='unsigned long long'
12162 bash_cv_type_unsigned_long_long
='unsigned long'
12164 rm -f core conftest.err conftest.
$ac_objext \
12165 conftest
$ac_exeext conftest.
$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5
12168 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
12169 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
12170 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12176 $as_echo_n "checking return type of signal handlers... " >&6; }
12177 if ${ac_cv_type_signal+:} false
; then :
12178 $as_echo_n "(cached) " >&6
12180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #include <sys/types.h>
12183 #include <signal.h>
12188 return *(signal (0, 0)) (0) == 1;
12193 if ac_fn_c_try_compile
"$LINENO"; then :
12194 ac_cv_type_signal
=int
12196 ac_cv_type_signal
=void
12198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12201 $as_echo "$ac_cv_type_signal" >&6; }
12203 cat >>confdefs.h
<<_ACEOF
12204 #define RETSIGTYPE $ac_cv_type_signal
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
12209 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
12210 if ${ac_cv_have_sig_atomic_t+:} false
; then :
12211 $as_echo_n "(cached) " >&6
12213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12216 #include <signal.h>
12226 if ac_fn_c_try_link
"$LINENO"; then :
12227 ac_cv_have_sig_atomic_t
=yes
12229 ac_cv_have_sig_atomic_t
=no
12231 rm -f core conftest.err conftest.
$ac_objext \
12232 conftest
$ac_exeext conftest.
$ac_ext
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
12235 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
12236 if test "$ac_cv_have_sig_atomic_t" = "no"
12238 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
12239 if test "x$ac_cv_type_sig_atomic_t" = xyes
; then :
12243 cat >>confdefs.h
<<_ACEOF
12244 #define sig_atomic_t int
12252 # The cast to long int works around a bug in the HP C Compiler
12253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12255 # This bug is HP SR number 8606223364.
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12257 $as_echo_n "checking size of char... " >&6; }
12258 if ${ac_cv_sizeof_char+:} false
; then :
12259 $as_echo_n "(cached) " >&6
12261 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12264 if test "$ac_cv_type_char" = yes; then
12265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12267 as_fn_error
77 "cannot compute sizeof (char)
12268 See \`config.log' for more details" "$LINENO" 5; }
12270 ac_cv_sizeof_char
=0
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12276 $as_echo "$ac_cv_sizeof_char" >&6; }
12280 cat >>confdefs.h
<<_ACEOF
12281 #define SIZEOF_CHAR $ac_cv_sizeof_char
12285 # The cast to long int works around a bug in the HP C Compiler
12286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12288 # This bug is HP SR number 8606223364.
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12290 $as_echo_n "checking size of short... " >&6; }
12291 if ${ac_cv_sizeof_short+:} false
; then :
12292 $as_echo_n "(cached) " >&6
12294 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12297 if test "$ac_cv_type_short" = yes; then
12298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12300 as_fn_error
77 "cannot compute sizeof (short)
12301 See \`config.log' for more details" "$LINENO" 5; }
12303 ac_cv_sizeof_short
=0
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12309 $as_echo "$ac_cv_sizeof_short" >&6; }
12313 cat >>confdefs.h
<<_ACEOF
12314 #define SIZEOF_SHORT $ac_cv_sizeof_short
12318 # The cast to long int works around a bug in the HP C Compiler
12319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12321 # This bug is HP SR number 8606223364.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12323 $as_echo_n "checking size of int... " >&6; }
12324 if ${ac_cv_sizeof_int+:} false
; then :
12325 $as_echo_n "(cached) " >&6
12327 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12330 if test "$ac_cv_type_int" = yes; then
12331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error
77 "cannot compute sizeof (int)
12334 See \`config.log' for more details" "$LINENO" 5; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12342 $as_echo "$ac_cv_sizeof_int" >&6; }
12346 cat >>confdefs.h
<<_ACEOF
12347 #define SIZEOF_INT $ac_cv_sizeof_int
12351 # The cast to long int works around a bug in the HP C Compiler
12352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12354 # This bug is HP SR number 8606223364.
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12356 $as_echo_n "checking size of long... " >&6; }
12357 if ${ac_cv_sizeof_long+:} false
; then :
12358 $as_echo_n "(cached) " >&6
12360 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12363 if test "$ac_cv_type_long" = yes; then
12364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12366 as_fn_error
77 "cannot compute sizeof (long)
12367 See \`config.log' for more details" "$LINENO" 5; }
12369 ac_cv_sizeof_long
=0
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12375 $as_echo "$ac_cv_sizeof_long" >&6; }
12379 cat >>confdefs.h
<<_ACEOF
12380 #define SIZEOF_LONG $ac_cv_sizeof_long
12384 # The cast to long int works around a bug in the HP C Compiler
12385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12387 # This bug is HP SR number 8606223364.
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
12389 $as_echo_n "checking size of char *... " >&6; }
12390 if ${ac_cv_sizeof_char_p+:} false
; then :
12391 $as_echo_n "(cached) " >&6
12393 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
12396 if test "$ac_cv_type_char_p" = yes; then
12397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12399 as_fn_error
77 "cannot compute sizeof (char *)
12400 See \`config.log' for more details" "$LINENO" 5; }
12402 ac_cv_sizeof_char_p
=0
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
12408 $as_echo "$ac_cv_sizeof_char_p" >&6; }
12412 cat >>confdefs.h
<<_ACEOF
12413 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
12417 # The cast to long int works around a bug in the HP C Compiler
12418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12420 # This bug is HP SR number 8606223364.
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12422 $as_echo_n "checking size of double... " >&6; }
12423 if ${ac_cv_sizeof_double+:} false
; then :
12424 $as_echo_n "(cached) " >&6
12426 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12429 if test "$ac_cv_type_double" = yes; then
12430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12432 as_fn_error
77 "cannot compute sizeof (double)
12433 See \`config.log' for more details" "$LINENO" 5; }
12435 ac_cv_sizeof_double
=0
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12441 $as_echo "$ac_cv_sizeof_double" >&6; }
12445 cat >>confdefs.h
<<_ACEOF
12446 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12450 # The cast to long int works around a bug in the HP C Compiler
12451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12453 # This bug is HP SR number 8606223364.
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12455 $as_echo_n "checking size of long long... " >&6; }
12456 if ${ac_cv_sizeof_long_long+:} false
; then :
12457 $as_echo_n "(cached) " >&6
12459 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12462 if test "$ac_cv_type_long_long" = yes; then
12463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12465 as_fn_error
77 "cannot compute sizeof (long long)
12466 See \`config.log' for more details" "$LINENO" 5; }
12468 ac_cv_sizeof_long_long
=0
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12474 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12478 cat >>confdefs.h
<<_ACEOF
12479 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12484 ac_fn_c_check_type
"$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12485 if test "x$ac_cv_type_u_int" = xyes
; then :
12489 cat >>confdefs.h
<<_ACEOF
12490 #define u_int unsigned int
12495 ac_fn_c_check_type
"$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12496 if test "x$ac_cv_type_u_long" = xyes
; then :
12500 cat >>confdefs.h
<<_ACEOF
12501 #define u_long unsigned long
12508 if test "$ac_cv_sizeof_short" = 2; then
12509 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12510 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12514 cat >>confdefs.h
<<_ACEOF
12515 #define bits16_t short
12520 elif test "$ac_cv_sizeof_char" = 2; then
12521 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12522 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12526 cat >>confdefs.h
<<_ACEOF
12527 #define bits16_t char
12533 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
12534 if test "x$ac_cv_type_bits16_t" = xyes
; then :
12538 cat >>confdefs.h
<<_ACEOF
12539 #define bits16_t short
12547 if test "$ac_cv_sizeof_short" = 2; then
12548 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12549 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12553 cat >>confdefs.h
<<_ACEOF
12554 #define u_bits16_t unsigned short
12559 elif test "$ac_cv_sizeof_char" = 2; then
12560 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12561 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12565 cat >>confdefs.h
<<_ACEOF
12566 #define u_bits16_t unsigned char
12572 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
12573 if test "x$ac_cv_type_u_bits16_t" = xyes
; then :
12577 cat >>confdefs.h
<<_ACEOF
12578 #define u_bits16_t unsigned short
12586 if test "$ac_cv_sizeof_int" = 4; then
12587 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12588 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12592 cat >>confdefs.h
<<_ACEOF
12593 #define bits32_t int
12598 elif test "$ac_cv_sizeof_long" = 4; then
12599 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12600 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12604 cat >>confdefs.h
<<_ACEOF
12605 #define bits32_t long
12611 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
12612 if test "x$ac_cv_type_bits32_t" = xyes
; then :
12616 cat >>confdefs.h
<<_ACEOF
12617 #define bits32_t int
12625 if test "$ac_cv_sizeof_int" = 4; then
12626 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12627 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12631 cat >>confdefs.h
<<_ACEOF
12632 #define u_bits32_t unsigned int
12637 elif test "$ac_cv_sizeof_long" = 4; then
12638 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12639 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12643 cat >>confdefs.h
<<_ACEOF
12644 #define u_bits32_t unsigned long
12650 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
12651 if test "x$ac_cv_type_u_bits32_t" = xyes
; then :
12655 cat >>confdefs.h
<<_ACEOF
12656 #define u_bits32_t unsigned int
12664 if test "$ac_cv_sizeof_char_p" = 8; then
12665 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12666 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12670 cat >>confdefs.h
<<_ACEOF
12671 #define bits64_t char *
12676 elif test "$ac_cv_sizeof_double" = 8; then
12677 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12678 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12682 cat >>confdefs.h
<<_ACEOF
12683 #define bits64_t double
12688 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
12689 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12690 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12694 cat >>confdefs.h
<<_ACEOF
12695 #define bits64_t long long
12700 elif test "$ac_cv_sizeof_long" = 8; then
12701 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12702 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12706 cat >>confdefs.h
<<_ACEOF
12707 #define bits64_t long
12713 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
12714 if test "x$ac_cv_type_bits64_t" = xyes
; then :
12718 cat >>confdefs.h
<<_ACEOF
12719 #define bits64_t double
12728 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
12729 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12730 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12734 cat >>confdefs.h
<<_ACEOF
12735 #define ptrdiff_t int
12740 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
12741 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12742 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12746 cat >>confdefs.h
<<_ACEOF
12747 #define ptrdiff_t long
12752 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
12753 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12754 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12758 cat >>confdefs.h
<<_ACEOF
12759 #define ptrdiff_t long long
12765 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12766 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
12770 cat >>confdefs.h
<<_ACEOF
12771 #define ptrdiff_t int
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12780 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12781 if ${ac_cv_header_stat_broken+:} false
; then :
12782 $as_echo_n "(cached) " >&6
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <sys/types.h>
12787 #include <sys/stat.h>
12789 #if defined S_ISBLK && defined S_IFDIR
12790 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12793 #if defined S_ISBLK && defined S_IFCHR
12794 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12797 #if defined S_ISLNK && defined S_IFREG
12798 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12801 #if defined S_ISSOCK && defined S_IFREG
12802 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12806 if ac_fn_c_try_compile
"$LINENO"; then :
12807 ac_cv_header_stat_broken
=no
12809 ac_cv_header_stat_broken
=yes
12811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12814 $as_echo "$ac_cv_header_stat_broken" >&6; }
12815 if test $ac_cv_header_stat_broken = yes; then
12817 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
12823 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
12824 if ${ac_cv_sys_interpreter+:} false
; then :
12825 $as_echo_n "(cached) " >&6
12831 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
12832 if test $?
-ne 69; then
12833 ac_cv_sys_interpreter
=yes
12835 ac_cv_sys_interpreter
=no
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
12840 $as_echo "$ac_cv_sys_interpreter" >&6; }
12841 interpval
=$ac_cv_sys_interpreter
12843 if test $ac_cv_sys_interpreter = yes; then
12844 $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
12848 if test "$ac_cv_func_lstat" = "no"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
12850 $as_echo_n "checking for lstat... " >&6; }
12851 if ${bash_cv_func_lstat+:} false
; then :
12852 $as_echo_n "(cached) " >&6
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 #include <sys/types.h>
12858 #include <sys/stat.h>
12863 lstat(".",(struct stat *)0);
12868 if ac_fn_c_try_link
"$LINENO"; then :
12869 bash_cv_func_lstat
=yes
12871 bash_cv_func_lstat
=no
12873 rm -f core conftest.err conftest.
$ac_objext \
12874 conftest
$ac_exeext conftest.
$ac_ext
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
12877 $as_echo "$bash_cv_func_lstat" >&6; }
12878 if test $bash_cv_func_lstat = yes; then
12879 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
12887 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
12888 if ${bash_cv_func_ctype_nonascii+:} false
; then :
12889 $as_echo_n "(cached) " >&6
12891 if test "$cross_compiling" = yes; then :
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
12893 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
12894 bash_cv_func_ctype_nonascii
=no
12897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12900 #ifdef HAVE_LOCALE_H
12901 #include <locale.h>
12914 #ifdef HAVE_SETLOCALE
12915 /* We take a shot here. If that locale is not known, try the
12916 system default. We try this one because '\342' (226) is
12917 known to be a printable character in that locale. */
12918 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
12919 if (deflocale == 0)
12920 deflocale = setlocale(LC_ALL, "");
12927 exit (r1 == 0 || r2 == 0);
12931 if ac_fn_c_try_run
"$LINENO"; then :
12932 bash_cv_func_ctype_nonascii
=yes
12934 bash_cv_func_ctype_nonascii
=no
12936 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12937 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
12943 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
12944 if test $bash_cv_func_ctype_nonascii = yes; then
12945 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
12950 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
12951 if ${bash_cv_dup2_broken+:} false
; then :
12952 $as_echo_n "(cached) " >&6
12954 if test "$cross_compiling" = yes; then :
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12956 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12957 bash_cv_dup2_broken
=no
12959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12962 #include <sys/types.h>
12967 fd1 = open("/dev/null", 2);
12968 if (fcntl(fd1, 2, 1) < 0)
12970 fd2 = dup2(fd1, 1);
12973 fl = fcntl(fd2, 1, 0);
12974 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12979 if ac_fn_c_try_run
"$LINENO"; then :
12980 bash_cv_dup2_broken
=yes
12982 bash_cv_dup2_broken
=no
12984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
12992 $as_echo "$bash_cv_dup2_broken" >&6; }
12993 if test $bash_cv_dup2_broken = yes; then
12994 $as_echo "#define DUP2_BROKEN 1" >>confdefs.h
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
13000 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
13001 if ${bash_cv_pgrp_pipe+:} false
; then :
13002 $as_echo_n "(cached) " >&6
13004 if test "$cross_compiling" = yes; then :
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
13006 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
13007 bash_cv_pgrp_pipe
=no
13009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13012 #ifdef HAVE_UNISTD_H
13013 # include <unistd.h>
13017 # ifdef GETPGRP_VOID
13018 # define getpgID() getpgrp()
13020 # define getpgID() getpgrp(0)
13021 # define setpgid(x,y) setpgrp(x,y)
13023 int pid1, pid2, fds[2];
13027 switch (pid1 = fork()) {
13031 setpgid(0, getpid());
13034 setpgid(pid1, pid1);
13036 sleep(2); /* let first child die */
13041 switch (pid2 = fork()) {
13046 ok = getpgID() == pid1;
13047 write(fds[1], &ok, 1);
13050 setpgid(pid2, pid1);
13053 if (read(fds[0], &ok, 1) != 1)
13061 if ac_fn_c_try_run
"$LINENO"; then :
13062 bash_cv_pgrp_pipe
=no
13064 bash_cv_pgrp_pipe
=yes
13066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
13074 $as_echo "$bash_cv_pgrp_pipe" >&6; }
13075 if test $bash_cv_pgrp_pipe = yes; then
13076 $as_echo "#define PGRP_PIPE 1" >>confdefs.h
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
13082 $as_echo_n "checking for type of signal functions... " >&6; }
13083 if ${bash_cv_signal_vintage+:} false
; then :
13084 $as_echo_n "(cached) " >&6
13087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #include <signal.h>
13095 struct sigaction sa;
13096 sigemptyset(&ss); sigsuspend(&ss);
13097 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13098 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13104 if ac_fn_c_try_link
"$LINENO"; then :
13105 bash_cv_signal_vintage
=posix
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 #include <signal.h>
13115 int mask = sigmask(SIGINT);
13116 sigsetmask(mask); sigblock(mask); sigpause(mask);
13122 if ac_fn_c_try_link
"$LINENO"; then :
13123 bash_cv_signal_vintage
=4.2bsd
13126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13129 #include <signal.h>
13130 RETSIGTYPE foo() { }
13135 int mask = sigmask(SIGINT);
13136 sigset(SIGINT, foo); sigrelse(SIGINT);
13137 sighold(SIGINT); sigpause(SIGINT);
13143 if ac_fn_c_try_link
"$LINENO"; then :
13144 bash_cv_signal_vintage
=svr3
13146 bash_cv_signal_vintage
=v7
13149 rm -f core conftest.err conftest.
$ac_objext \
13150 conftest
$ac_exeext conftest.
$ac_ext
13153 rm -f core conftest.err conftest.
$ac_objext \
13154 conftest
$ac_exeext conftest.
$ac_ext
13157 rm -f core conftest.err conftest.
$ac_objext \
13158 conftest
$ac_exeext conftest.
$ac_ext
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
13163 $as_echo "$bash_cv_signal_vintage" >&6; }
13164 if test "$bash_cv_signal_vintage" = posix
; then
13165 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13167 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13168 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
13170 elif test "$bash_cv_signal_vintage" = svr3
; then
13171 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
13177 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
13178 if ${bash_cv_sys_errlist+:} false
; then :
13179 $as_echo_n "(cached) " >&6
13181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13187 extern char *sys_errlist[];
13188 extern int sys_nerr;
13189 char *msg = sys_errlist[sys_nerr - 1];
13194 if ac_fn_c_try_link
"$LINENO"; then :
13195 bash_cv_sys_errlist
=yes
13197 bash_cv_sys_errlist
=no
13199 rm -f core conftest.err conftest.
$ac_objext \
13200 conftest
$ac_exeext conftest.
$ac_ext
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
13203 $as_echo "$bash_cv_sys_errlist" >&6; }
13204 if test $bash_cv_sys_errlist = yes; then
13205 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
13211 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
13212 if ${bash_cv_sys_siglist+:} false
; then :
13213 $as_echo_n "(cached) " >&6
13215 if test "$cross_compiling" = yes; then :
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
13217 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
13218 bash_cv_sys_siglist
=no
13220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 #include <sys/types.h>
13224 #include <signal.h>
13225 #ifdef HAVE_UNISTD_H
13226 #include <unistd.h>
13228 #if !HAVE_DECL_SYS_SIGLIST
13229 extern char *sys_siglist[];
13233 char *msg = sys_siglist[2];
13237 if ac_fn_c_try_run
"$LINENO"; then :
13238 bash_cv_sys_siglist
=yes
13240 bash_cv_sys_siglist
=no
13242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
13249 $as_echo "$bash_cv_sys_siglist" >&6; }
13250 if test $bash_cv_sys_siglist = yes; then
13251 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
13256 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
13257 if ${bash_cv_decl_under_sys_siglist+:} false
; then :
13258 $as_echo_n "(cached) " >&6
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 #include <sys/types.h>
13264 #include <signal.h>
13265 #ifdef HAVE_UNISTD_H
13266 #include <unistd.h>
13271 char *msg = _sys_siglist[2];
13276 if ac_fn_c_try_compile
"$LINENO"; then :
13277 bash_cv_decl_under_sys_siglist
=yes
13279 bash_cv_decl_under_sys_siglist
=no
13281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
13284 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
13285 if test $bash_cv_decl_under_sys_siglist = yes; then
13286 $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
13292 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
13293 if ${bash_cv_under_sys_siglist+:} false
; then :
13294 $as_echo_n "(cached) " >&6
13296 if test "$cross_compiling" = yes; then :
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
13298 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
13299 bash_cv_under_sys_siglist
=no
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13304 #include <sys/types.h>
13305 #include <signal.h>
13306 #ifdef HAVE_UNISTD_H
13307 #include <unistd.h>
13309 #ifndef UNDER_SYS_SIGLIST_DECLARED
13310 extern char *_sys_siglist[];
13314 char *msg = (char *)_sys_siglist[2];
13318 if ac_fn_c_try_run
"$LINENO"; then :
13319 bash_cv_under_sys_siglist
=yes
13321 bash_cv_under_sys_siglist
=no
13323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
13330 $as_echo "$bash_cv_under_sys_siglist" >&6; }
13331 if test $bash_cv_under_sys_siglist = yes; then
13332 $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
13338 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
13339 if ${bash_cv_void_sighandler+:} false
; then :
13340 $as_echo_n "(cached) " >&6
13342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13344 #include <sys/types.h>
13345 #include <signal.h>
13352 void (*signal ()) ();
13361 if ac_fn_c_try_compile
"$LINENO"; then :
13362 bash_cv_void_sighandler
=yes
13364 bash_cv_void_sighandler
=no
13366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
13369 $as_echo "$bash_cv_void_sighandler" >&6; }
13370 if test $bash_cv_void_sighandler = yes; then
13371 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
13378 $as_echo_n "checking for clock_t... " >&6; }
13379 if ${bash_cv_type_clock_t+:} false
; then :
13380 $as_echo_n "(cached) " >&6
13382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 #include <sys/types.h>
13386 #include <stdlib.h>
13387 #include <stddef.h>
13389 #if HAVE_INTTYPES_H
13390 #include <inttypes.h>
13393 #include <stdint.h>
13395 #include <sys/times.h>
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "clock_t" >/dev
/null
2>&1; then :
13400 bash_cv_type_clock_t
=yes
13402 bash_cv_type_clock_t
=no
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
13409 $as_echo "$bash_cv_type_clock_t" >&6; }
13411 if test $bash_cv_type_clock_t = no
; then
13412 cat >>confdefs.h
<<_ACEOF
13413 #define clock_t long
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
13421 $as_echo_n "checking for sigset_t... " >&6; }
13422 if ${bash_cv_type_sigset_t+:} false
; then :
13423 $as_echo_n "(cached) " >&6
13425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 #include <sys/types.h>
13429 #include <stdlib.h>
13430 #include <stddef.h>
13432 #if HAVE_INTTYPES_H
13433 #include <inttypes.h>
13436 #include <stdint.h>
13438 #include <signal.h>
13441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13442 $EGREP "sigset_t" >/dev
/null
2>&1; then :
13443 bash_cv_type_sigset_t
=yes
13445 bash_cv_type_sigset_t
=no
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
13452 $as_echo "$bash_cv_type_sigset_t" >&6; }
13454 if test $bash_cv_type_sigset_t = no
; then
13455 cat >>confdefs.h
<<_ACEOF
13456 #define sigset_t int
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
13464 $as_echo_n "checking for sig_atomic_t... " >&6; }
13465 if ${bash_cv_type_sig_atomic_t+:} false
; then :
13466 $as_echo_n "(cached) " >&6
13468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 #include <sys/types.h>
13472 #include <stdlib.h>
13473 #include <stddef.h>
13475 #if HAVE_INTTYPES_H
13476 #include <inttypes.h>
13479 #include <stdint.h>
13481 #include <signal.h>
13484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485 $EGREP "sig_atomic_t" >/dev
/null
2>&1; then :
13486 bash_cv_type_sig_atomic_t
=yes
13488 bash_cv_type_sig_atomic_t
=no
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
13495 $as_echo "$bash_cv_type_sig_atomic_t" >&6; }
13497 if test $bash_cv_type_sig_atomic_t = no
; then
13498 cat >>confdefs.h
<<_ACEOF
13499 #define sig_atomic_t int
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
13507 $as_echo_n "checking for quad_t... " >&6; }
13508 if ${bash_cv_type_quad_t+:} false
; then :
13509 $as_echo_n "(cached) " >&6
13511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <sys/types.h>
13515 #include <stdlib.h>
13516 #include <stddef.h>
13518 #if HAVE_INTTYPES_H
13519 #include <inttypes.h>
13522 #include <stdint.h>
13527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528 $EGREP "quad_t" >/dev
/null
2>&1; then :
13529 bash_cv_type_quad_t
=yes
13531 bash_cv_type_quad_t
=no
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5
13538 $as_echo "$bash_cv_type_quad_t" >&6; }
13539 if test $bash_cv_type_quad_t = yes; then
13540 $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
13543 if test $bash_cv_type_quad_t = no
; then
13544 cat >>confdefs.h
<<_ACEOF
13545 #define quad_t long
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13553 $as_echo_n "checking for intmax_t... " >&6; }
13554 if ${bash_cv_type_intmax_t+:} false
; then :
13555 $as_echo_n "(cached) " >&6
13557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <sys/types.h>
13561 #include <stdlib.h>
13562 #include <stddef.h>
13564 #if HAVE_INTTYPES_H
13565 #include <inttypes.h>
13568 #include <stdint.h>
13573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13574 $EGREP "intmax_t" >/dev
/null
2>&1; then :
13575 bash_cv_type_intmax_t
=yes
13577 bash_cv_type_intmax_t
=no
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5
13584 $as_echo "$bash_cv_type_intmax_t" >&6; }
13586 if test $bash_cv_type_intmax_t = no
; then
13587 cat >>confdefs.h
<<_ACEOF
13588 #define intmax_t $bash_cv_type_long_long
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
13596 $as_echo_n "checking for uintmax_t... " >&6; }
13597 if ${bash_cv_type_uintmax_t+:} false
; then :
13598 $as_echo_n "(cached) " >&6
13600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 #include <sys/types.h>
13604 #include <stdlib.h>
13605 #include <stddef.h>
13607 #if HAVE_INTTYPES_H
13608 #include <inttypes.h>
13611 #include <stdint.h>
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "uintmax_t" >/dev
/null
2>&1; then :
13618 bash_cv_type_uintmax_t
=yes
13620 bash_cv_type_uintmax_t
=no
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5
13627 $as_echo "$bash_cv_type_uintmax_t" >&6; }
13629 if test $bash_cv_type_uintmax_t = no
; then
13630 cat >>confdefs.h
<<_ACEOF
13631 #define uintmax_t $bash_cv_type_unsigned_long_long
13636 if test "$ac_cv_header_sys_socket_h" = "yes"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13640 $as_echo_n "checking for socklen_t... " >&6; }
13641 if ${bash_cv_type_socklen_t+:} false
; then :
13642 $as_echo_n "(cached) " >&6
13644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 #include <sys/types.h>
13648 #include <stdlib.h>
13649 #include <stddef.h>
13651 #if HAVE_INTTYPES_H
13652 #include <inttypes.h>
13655 #include <stdint.h>
13657 #include <sys/socket.h>
13660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13661 $EGREP "socklen_t" >/dev
/null
2>&1; then :
13662 bash_cv_type_socklen_t
=yes
13664 bash_cv_type_socklen_t
=no
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
13671 $as_echo "$bash_cv_type_socklen_t" >&6; }
13672 if test $bash_cv_type_socklen_t = yes; then
13673 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13676 if test $bash_cv_type_socklen_t = no
; then
13677 cat >>confdefs.h
<<_ACEOF
13678 #define socklen_t unsigned int
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
13685 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
13686 if ${bash_cv_type_rlimit+:} false
; then :
13687 $as_echo_n "(cached) " >&6
13689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 #include <sys/types.h>
13692 #include <sys/resource.h>
13701 if ac_fn_c_try_compile
"$LINENO"; then :
13702 bash_cv_type_rlimit
=rlim_t
13705 if test "$cross_compiling" = yes; then :
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
13707 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
13708 bash_cv_type_rlimit
=long
13710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13713 #include <sys/types.h>
13714 #include <sys/time.h>
13715 #include <sys/resource.h>
13720 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
13726 if ac_fn_c_try_run
"$LINENO"; then :
13727 bash_cv_type_rlimit
=quad_t
13729 bash_cv_type_rlimit
=long
13731 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13732 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
13741 $as_echo "$bash_cv_type_rlimit" >&6; }
13742 if test $bash_cv_type_rlimit = quad_t
; then
13743 $as_echo "#define RLIMTYPE quad_t" >>confdefs.h
13745 elif test $bash_cv_type_rlimit = rlim_t
; then
13746 $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h
13751 # The cast to long int works around a bug in the HP C Compiler
13752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13754 # This bug is HP SR number 8606223364.
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
13756 $as_echo_n "checking size of intmax_t... " >&6; }
13757 if ${ac_cv_sizeof_intmax_t+:} false
; then :
13758 $as_echo_n "(cached) " >&6
13760 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
13763 if test "$ac_cv_type_intmax_t" = yes; then
13764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13766 as_fn_error
77 "cannot compute sizeof (intmax_t)
13767 See \`config.log' for more details" "$LINENO" 5; }
13769 ac_cv_sizeof_intmax_t
=0
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
13775 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
13779 cat >>confdefs.h
<<_ACEOF
13780 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
13786 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
13787 #include <sys/types.h>
13788 #include <termios.h>
13791 if test "x$ac_cv_member_struct_termios_c_line" = xyes
; then :
13792 $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h
13798 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
13799 #include <sys/types.h>
13800 #include <termio.h>
13803 if test "x$ac_cv_member_struct_termio_c_line" = xyes
; then :
13804 $as_echo "#define TERMIO_LDISC 1" >>confdefs.h
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
13811 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
13812 if ${bash_cv_dirent_has_dino+:} false
; then :
13813 $as_echo_n "(cached) " >&6
13815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13819 #include <sys/types.h>
13820 #ifdef HAVE_UNISTD_H
13821 # include <unistd.h>
13822 #endif /* HAVE_UNISTD_H */
13823 #if defined(HAVE_DIRENT_H)
13824 # include <dirent.h>
13826 # define dirent direct
13827 # ifdef HAVE_SYS_NDIR_H
13828 # include <sys/ndir.h>
13829 # endif /* SYSNDIR */
13830 # ifdef HAVE_SYS_DIR_H
13831 # include <sys/dir.h>
13832 # endif /* SYSDIR */
13833 # ifdef HAVE_NDIR_H
13836 #endif /* HAVE_DIRENT_H */
13842 struct dirent d; int z; z = d.d_ino;
13848 if ac_fn_c_try_compile
"$LINENO"; then :
13849 bash_cv_dirent_has_dino
=yes
13851 bash_cv_dirent_has_dino
=no
13853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
13857 $as_echo "$bash_cv_dirent_has_dino" >&6; }
13858 if test $bash_cv_dirent_has_dino = yes; then
13859 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
13865 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
13866 if ${bash_cv_dirent_has_d_fileno+:} false
; then :
13867 $as_echo_n "(cached) " >&6
13869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13873 #include <sys/types.h>
13874 #ifdef HAVE_UNISTD_H
13875 # include <unistd.h>
13876 #endif /* HAVE_UNISTD_H */
13877 #if defined(HAVE_DIRENT_H)
13878 # include <dirent.h>
13880 # define dirent direct
13881 # ifdef HAVE_SYS_NDIR_H
13882 # include <sys/ndir.h>
13883 # endif /* SYSNDIR */
13884 # ifdef HAVE_SYS_DIR_H
13885 # include <sys/dir.h>
13886 # endif /* SYSDIR */
13887 # ifdef HAVE_NDIR_H
13890 #endif /* HAVE_DIRENT_H */
13896 struct dirent d; int z; z = d.d_fileno;
13902 if ac_fn_c_try_compile
"$LINENO"; then :
13903 bash_cv_dirent_has_d_fileno
=yes
13905 bash_cv_dirent_has_d_fileno
=no
13907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
13911 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
13912 if test $bash_cv_dirent_has_d_fileno = yes; then
13913 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
13919 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
13920 if ${bash_cv_dirent_has_d_namlen+:} false
; then :
13921 $as_echo_n "(cached) " >&6
13923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13927 #include <sys/types.h>
13928 #ifdef HAVE_UNISTD_H
13929 # include <unistd.h>
13930 #endif /* HAVE_UNISTD_H */
13931 #if defined(HAVE_DIRENT_H)
13932 # include <dirent.h>
13934 # define dirent direct
13935 # ifdef HAVE_SYS_NDIR_H
13936 # include <sys/ndir.h>
13937 # endif /* SYSNDIR */
13938 # ifdef HAVE_SYS_DIR_H
13939 # include <sys/dir.h>
13940 # endif /* SYSDIR */
13941 # ifdef HAVE_NDIR_H
13944 #endif /* HAVE_DIRENT_H */
13950 struct dirent d; int z; z = d.d_namlen;
13956 if ac_fn_c_try_compile
"$LINENO"; then :
13957 bash_cv_dirent_has_d_namlen
=yes
13959 bash_cv_dirent_has_d_namlen
=no
13961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
13965 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
13966 if test $bash_cv_dirent_has_d_namlen = yes; then
13967 $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13972 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
13973 if ${bash_cv_struct_winsize_header+:} false
; then :
13974 $as_echo_n "(cached) " >&6
13976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 #include <sys/types.h>
13979 #include <sys/ioctl.h>
13988 if ac_fn_c_try_compile
"$LINENO"; then :
13989 bash_cv_struct_winsize_header
=ioctl_h
13991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 #include <sys/types.h>
13994 #include <termios.h>
14003 if ac_fn_c_try_compile
"$LINENO"; then :
14004 bash_cv_struct_winsize_header
=termios_h
14006 bash_cv_struct_winsize_header
=other
14008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14014 if test $bash_cv_struct_winsize_header = ioctl_h
; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
14016 $as_echo "sys/ioctl.h" >&6; }
14017 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
14019 elif test $bash_cv_struct_winsize_header = termios_h
; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
14021 $as_echo "termios.h" >&6; }
14022 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14026 $as_echo "not found" >&6; }
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
14030 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
14031 if ${bash_cv_struct_timeval+:} false
; then :
14032 $as_echo_n "(cached) " >&6
14035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 #include <sys/time.h>
14040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14041 $EGREP "struct timeval" >/dev
/null
2>&1; then :
14042 bash_cv_struct_timeval
=yes
14044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14050 $EGREP "struct timeval" >/dev
/null
2>&1; then :
14051 bash_cv_struct_timeval
=yes
14053 bash_cv_struct_timeval
=no
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
14064 $as_echo "$bash_cv_struct_timeval" >&6; }
14065 if test $bash_cv_struct_timeval = yes; then
14066 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
14070 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14071 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
14073 cat >>confdefs.h
<<_ACEOF
14074 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14081 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14082 if ${ac_cv_struct_tm+:} false
; then :
14083 $as_echo_n "(cached) " >&6
14085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <sys/types.h>
14094 int *p = &tm.tm_sec;
14100 if ac_fn_c_try_compile
"$LINENO"; then :
14101 ac_cv_struct_tm
=time.h
14103 ac_cv_struct_tm
=sys
/time.h
14105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14108 $as_echo "$ac_cv_struct_tm" >&6; }
14109 if test $ac_cv_struct_tm = sys
/time.h
; then
14111 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14115 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14116 #include <$ac_cv_struct_tm>
14119 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14121 cat >>confdefs.h
<<_ACEOF
14122 #define HAVE_STRUCT_TM_TM_ZONE 1
14128 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14130 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14133 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14135 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
14141 cat >>confdefs.h
<<_ACEOF
14142 #define HAVE_DECL_TZNAME $ac_have_decl
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14146 $as_echo_n "checking for tzname... " >&6; }
14147 if ${ac_cv_var_tzname+:} false
; then :
14148 $as_echo_n "(cached) " >&6
14150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 #if !HAVE_DECL_TZNAME
14154 extern char *tzname[];
14160 return tzname[0][0];
14165 if ac_fn_c_try_link
"$LINENO"; then :
14166 ac_cv_var_tzname
=yes
14168 ac_cv_var_tzname
=no
14170 rm -f core conftest.err conftest.
$ac_objext \
14171 conftest
$ac_exeext conftest.
$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14174 $as_echo "$ac_cv_var_tzname" >&6; }
14175 if test $ac_cv_var_tzname = yes; then
14177 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
14183 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
14184 if ${bash_cv_struct_timezone+:} false
; then :
14185 $as_echo_n "(cached) " >&6
14188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 #include <sys/time.h>
14193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14194 $EGREP "struct timezone" >/dev
/null
2>&1; then :
14195 bash_cv_struct_timezone
=yes
14197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14203 $EGREP "struct timezone" >/dev
/null
2>&1; then :
14204 bash_cv_struct_timezone
=yes
14206 bash_cv_struct_timezone
=no
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
14217 $as_echo "$bash_cv_struct_timezone" >&6; }
14218 if test $bash_cv_struct_timezone = yes; then
14219 $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
14225 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
14226 if ${bash_cv_wexitstatus_offset+:} false
; then :
14227 $as_echo_n "(cached) " >&6
14229 if test "$cross_compiling" = yes; then :
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
14231 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
14232 bash_cv_wexitstatus_offset
=0
14235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14238 #include <stdlib.h>
14239 #include <unistd.h>
14241 #include <sys/wait.h>
14255 /* wait for the process */
14261 for (i = 0; i < (sizeof(s) - 8); i++)
14263 n = (s >> i) & 0xff;
14272 if ac_fn_c_try_run
"$LINENO"; then :
14273 bash_cv_wexitstatus_offset
=0
14275 bash_cv_wexitstatus_offset
=$?
14277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14278 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14283 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
14285 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
14286 bash_cv_wexitstatus_offset
=0
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
14289 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
14291 cat >>confdefs.h
<<_ACEOF
14292 #define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14300 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14301 if ${bash_cv_sys_struct_timespec_in_time_h+:} false
; then :
14302 $as_echo_n "(cached) " >&6
14304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14311 static struct timespec x; x.tv_sec = x.tv_nsec;
14316 if ac_fn_c_try_compile
"$LINENO"; then :
14317 bash_cv_sys_struct_timespec_in_time_h
=yes
14319 bash_cv_sys_struct_timespec_in_time_h
=no
14321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
14324 $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
14326 HAVE_STRUCT_TIMESPEC
=0
14327 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14328 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14329 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14330 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
14331 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14333 $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14335 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14338 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14339 if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14340 $as_echo_n "(cached) " >&6
14342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 #include <sys/time.h>
14349 static struct timespec x; x.tv_sec = x.tv_nsec;
14354 if ac_fn_c_try_compile
"$LINENO"; then :
14355 bash_cv_sys_struct_timespec_in_sys_time_h
=yes
14357 bash_cv_sys_struct_timespec_in_sys_time_h
=no
14359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
14362 $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14363 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
14364 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14365 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14367 $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14371 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14372 if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14373 $as_echo_n "(cached) " >&6
14375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 #include <pthread.h>
14382 static struct timespec x; x.tv_sec = x.tv_nsec;
14387 if ac_fn_c_try_compile
"$LINENO"; then :
14388 bash_cv_sys_struct_timespec_in_pthread_h
=yes
14390 bash_cv_sys_struct_timespec_in_pthread_h
=no
14392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
14395 $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
14396 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
14397 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14398 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14400 $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
14414 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14415 #include <sys/stat.h>
14417 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
14419 cat >>confdefs.h
<<_ACEOF
14420 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14424 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14425 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
14426 $as_echo_n "(cached) " >&6
14428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14431 #include <sys/types.h>
14432 #include <sys/stat.h>
14433 #if HAVE_SYS_TIME_H
14434 # include <sys/time.h>
14437 struct timespec ts;
14450 if ac_fn_c_try_compile
"$LINENO"; then :
14451 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
14453 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
14455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14458 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14459 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14461 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14465 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14466 #include <sys/stat.h>
14468 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
14470 cat >>confdefs.h
<<_ACEOF
14471 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14476 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14477 #include <sys/stat.h>
14479 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
14481 cat >>confdefs.h
<<_ACEOF
14482 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14487 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14488 #include <sys/stat.h>
14490 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
14492 cat >>confdefs.h
<<_ACEOF
14493 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14511 if test X
$ac_cv_func_sbrk = Xyes
; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sbrk" >&5
14513 $as_echo_n "checking for working sbrk... " >&6; }
14514 if ${bash_cv_func_sbrk+:} false
; then :
14515 $as_echo_n "(cached) " >&6
14517 if test "$cross_compiling" = yes; then :
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working sbrk if cross-compiling" >&5
14519 $as_echo "$as_me: WARNING: cannot check working sbrk if cross-compiling" >&2;}
14520 bash_cv_func_sbrk
=yes
14523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 #include <stdlib.h>
14527 #include <unistd.h>
14530 main(int c, char **v)
14535 exit ((x == (void *)-1) ? 1 : 0);
14539 if ac_fn_c_try_run
"$LINENO"; then :
14540 bash_cv_func_sbrk
=yes
14542 bash_cv_func_snprintf
=sbrk
14544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sbrk" >&5
14550 $as_echo "$bash_cv_func_sbrk" >&6; }
14551 if test $bash_cv_func_sbrk = no
; then
14555 if test $ac_cv_func_sbrk = no
; then
14557 $as_echo "#define HAVE_SBRK 0" >>confdefs.h
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
14563 $as_echo_n "checking for the existence of strsignal... " >&6; }
14564 if ${bash_cv_have_strsignal+:} false
; then :
14565 $as_echo_n "(cached) " >&6
14567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 #include <sys/types.h>
14570 #include <signal.h>
14574 char *s = (char *)strsignal(2);
14579 if ac_fn_c_try_link
"$LINENO"; then :
14580 bash_cv_have_strsignal
=yes
14582 bash_cv_have_strsignal
=no
14584 rm -f core conftest.err conftest.
$ac_objext \
14585 conftest
$ac_exeext conftest.
$ac_ext
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
14589 $as_echo "$bash_cv_have_strsignal" >&6; }
14590 if test $bash_cv_have_strsignal = yes; then
14591 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
14596 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
14597 if ${bash_cv_opendir_not_robust+:} false
; then :
14598 $as_echo_n "(cached) " >&6
14600 if test "$cross_compiling" = yes; then :
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
14602 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
14603 bash_cv_opendir_not_robust
=no
14606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14610 #include <sys/types.h>
14612 #ifdef HAVE_UNISTD_H
14613 # include <unistd.h>
14614 #endif /* HAVE_UNISTD_H */
14615 #if defined(HAVE_DIRENT_H)
14616 # include <dirent.h>
14618 # define dirent direct
14619 # ifdef HAVE_SYS_NDIR_H
14620 # include <sys/ndir.h>
14621 # endif /* SYSNDIR */
14622 # ifdef HAVE_SYS_DIR_H
14623 # include <sys/dir.h>
14624 # endif /* SYSDIR */
14625 # ifdef HAVE_NDIR_H
14628 #endif /* HAVE_DIRENT_H */
14633 err = mkdir("bash-aclocal", 0700);
14638 unlink("bash-aclocal/not_a_directory");
14639 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
14640 write(fd, "\n", 1);
14642 dir = opendir("bash-aclocal/not_a_directory");
14643 unlink("bash-aclocal/not_a_directory");
14644 rmdir("bash-aclocal");
14648 if ac_fn_c_try_run
"$LINENO"; then :
14649 bash_cv_opendir_not_robust
=yes
14651 bash_cv_opendir_not_robust
=no
14653 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14654 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
14660 $as_echo "$bash_cv_opendir_not_robust" >&6; }
14661 if test $bash_cv_opendir_not_robust = yes; then
14662 $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
14667 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
14668 if ${bash_cv_ulimit_maxfds+:} false
; then :
14669 $as_echo_n "(cached) " >&6
14671 if test "$cross_compiling" = yes; then :
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
14673 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
14674 bash_cv_ulimit_maxfds
=no
14677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14682 long maxfds = ulimit(4, 0L);
14683 exit (maxfds == -1L);
14687 if ac_fn_c_try_run
"$LINENO"; then :
14688 bash_cv_ulimit_maxfds
=yes
14690 bash_cv_ulimit_maxfds
=no
14692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14693 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
14699 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
14700 if test $bash_cv_ulimit_maxfds = yes; then
14701 $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h
14712 ac_fn_c_check_decl
"$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
14714 if test "x$ac_cv_have_decl_fpurge" = xyes
; then :
14720 cat >>confdefs.h
<<_ACEOF
14721 #define HAVE_DECL_FPURGE $ac_have_decl
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
14726 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
14727 if ${bash_cv_getenv_redef+:} false
; then :
14728 $as_echo_n "(cached) " >&6
14730 if test "$cross_compiling" = yes; then :
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
14732 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
14733 bash_cv_getenv_redef
=yes
14736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14739 #ifdef HAVE_UNISTD_H
14740 # include <unistd.h>
14749 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
14753 #endif /* !__linux__ && !__bsdi__ && !convex */
14760 /* The next allows this program to run, but does not allow bash to link
14761 when it redefines getenv. I'm not really interested in figuring out
14766 s = getenv("ABCDE");
14767 exit(s == 0); /* force optimizer to leave getenv in */
14771 if ac_fn_c_try_run
"$LINENO"; then :
14772 bash_cv_getenv_redef
=yes
14774 bash_cv_getenv_redef
=no
14776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
14783 $as_echo "$bash_cv_getenv_redef" >&6; }
14784 if test $bash_cv_getenv_redef = yes; then
14785 $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
14789 if test "$ac_cv_func_getcwd" = "yes"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
14791 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
14792 if ${bash_cv_getcwd_malloc+:} false
; then :
14793 $as_echo_n "(cached) " >&6
14795 if test "$cross_compiling" = yes; then :
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
14797 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
14798 bash_cv_getcwd_malloc
=no
14801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14805 #ifdef HAVE_UNISTD_H
14806 #include <unistd.h>
14812 xpwd = getcwd(0, 0);
14817 if ac_fn_c_try_run
"$LINENO"; then :
14818 bash_cv_getcwd_malloc
=yes
14820 bash_cv_getcwd_malloc
=no
14822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
14829 $as_echo "$bash_cv_getcwd_malloc" >&6; }
14830 if test $bash_cv_getcwd_malloc = no
; then
14831 $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h
14833 case " $LIBOBJS " in
14834 *" getcwd.$ac_objext "* ) ;;
14835 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
14844 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
14845 if ${bash_cv_func_sigsetjmp+:} false
; then :
14846 $as_echo_n "(cached) " >&6
14848 if test "$cross_compiling" = yes; then :
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
14850 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
14851 bash_cv_func_sigsetjmp
=missing
14854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14857 #ifdef HAVE_UNISTD_H
14858 #include <unistd.h>
14860 #include <sys/types.h>
14861 #include <signal.h>
14862 #include <setjmp.h>
14866 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
14871 sigset_t set, oset;
14876 sigemptyset(&oset);
14877 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
14878 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
14881 code = sigsetjmp(xx, 1);
14883 exit(0); /* could get sigmask and compare to oset here. */
14886 sigaddset(&set, SIGINT);
14887 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
14889 /* and siglongjmp */
14890 siglongjmp(xx, 10);
14895 if ac_fn_c_try_run
"$LINENO"; then :
14896 bash_cv_func_sigsetjmp
=present
14898 bash_cv_func_sigsetjmp
=missing
14900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
14907 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
14908 if test $bash_cv_func_sigsetjmp = present
; then
14909 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
14915 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
14916 if ${bash_cv_func_strcoll_broken+:} false
; then :
14917 $as_echo_n "(cached) " >&6
14919 if test "$cross_compiling" = yes; then :
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
14921 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
14922 bash_cv_func_strcoll_broken
=no
14925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14929 #if defined (HAVE_LOCALE_H)
14930 #include <locale.h>
14938 char *deflocale, *defcoll;
14940 #ifdef HAVE_SETLOCALE
14941 deflocale = setlocale(LC_ALL, "");
14942 defcoll = setlocale(LC_COLLATE, "");
14945 #ifdef HAVE_STRCOLL
14946 /* These two values are taken from tests/glob-test. */
14947 r1 = strcoll("abd", "aXd");
14951 r2 = strcmp("abd", "aXd");
14953 /* These two should both be greater than 0. It is permissible for
14954 a system to return different values, as long as the sign is the
14957 /* Exit with 1 (failure) if these two values are both > 0, since
14958 this tests whether strcoll(3) is broken with respect to strcmp(3)
14959 in the default locale. */
14960 exit (r1 > 0 && r2 > 0);
14964 if ac_fn_c_try_run
"$LINENO"; then :
14965 bash_cv_func_strcoll_broken
=yes
14967 bash_cv_func_strcoll_broken
=no
14969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
14976 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
14977 if test $bash_cv_func_strcoll_broken = yes; then
14978 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
14986 if test X
$ac_cv_func_snprintf = Xyes
; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
14988 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
14989 if ${bash_cv_func_snprintf+:} false
; then :
14990 $as_echo_n "(cached) " >&6
14992 if test "$cross_compiling" = yes; then :
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
14994 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
14995 bash_cv_func_snprintf
=yes
14998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15006 n = snprintf (0, 0, "%s", "0123456");
15011 if ac_fn_c_try_run
"$LINENO"; then :
15012 bash_cv_func_snprintf
=yes
15014 bash_cv_func_snprintf
=no
15016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
15022 $as_echo "$bash_cv_func_snprintf" >&6; }
15023 if test $bash_cv_func_snprintf = no
; then
15024 ac_cv_func_snprintf
=no
15027 if test $ac_cv_func_snprintf = no
; then
15029 $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h
15037 if test X
$ac_cv_func_vsnprintf = Xyes
; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
15039 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
15040 if ${bash_cv_func_vsnprintf+:} false
; then :
15041 $as_echo_n "(cached) " >&6
15043 if test "$cross_compiling" = yes; then :
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
15045 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
15046 bash_cv_func_vsnprintf
=yes
15049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15053 #include <stdarg.h>
15055 #include <varargs.h>
15058 #include <stdlib.h>
15062 foo(const char *fmt, ...)
15064 foo(format, va_alist)
15065 const char *format;
15073 va_start(args, fmt);
15077 n = vsnprintf(0, 0, fmt, args);
15085 n = foo("%s", "0123456");
15090 if ac_fn_c_try_run
"$LINENO"; then :
15091 bash_cv_func_vsnprintf
=yes
15093 bash_cv_func_vsnprintf
=no
15095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
15101 $as_echo "$bash_cv_func_vsnprintf" >&6; }
15102 if test $bash_cv_func_vsnprintf = no
; then
15103 ac_cv_func_vsnprintf
=no
15106 if test $ac_cv_func_vsnprintf = no
; then
15108 $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h
15114 if test "$ac_cv_func_putenv" = "yes"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
15119 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
15120 if ${bash_cv_std_putenv+:} false
; then :
15121 $as_echo_n "(cached) " >&6
15123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15127 #include <stdlib.h>
15128 #include <stddef.h>
15136 extern int putenv (char *);
15138 extern int putenv ();
15144 return (putenv == 0);
15149 if ac_fn_c_try_link
"$LINENO"; then :
15150 bash_cv_std_putenv
=yes
15152 bash_cv_std_putenv
=no
15155 rm -f core conftest.err conftest.
$ac_objext \
15156 conftest
$ac_exeext conftest.
$ac_ext
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
15159 $as_echo "$bash_cv_std_putenv" >&6; }
15160 if test $bash_cv_std_putenv = yes; then
15161 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
15166 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
15169 if test "$ac_cv_func_unsetenv" = "yes"; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
15174 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
15175 if ${bash_cv_std_unsetenv+:} false
; then :
15176 $as_echo_n "(cached) " >&6
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15182 #include <stdlib.h>
15183 #include <stddef.h>
15191 extern int unsetenv (const char *);
15193 extern int unsetenv ();
15199 return (unsetenv == 0);
15204 if ac_fn_c_try_link
"$LINENO"; then :
15205 bash_cv_std_unsetenv
=yes
15207 bash_cv_std_unsetenv
=no
15210 rm -f core conftest.err conftest.
$ac_objext \
15211 conftest
$ac_exeext conftest.
$ac_ext
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
15214 $as_echo "$bash_cv_std_unsetenv" >&6; }
15215 if test $bash_cv_std_unsetenv = yes; then
15216 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
15221 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
15226 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
15227 if ${bash_cv_printf_a_format+:} false
; then :
15228 $as_echo_n "(cached) " >&6
15230 if test "$cross_compiling" = yes; then :
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
15232 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
15233 bash_cv_printf_a_format
=no
15236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15240 #include <string.h>
15248 sprintf(abuf, "%A", y);
15249 exit(strchr(abuf, 'P') == (char *)0);
15253 if ac_fn_c_try_run
"$LINENO"; then :
15254 bash_cv_printf_a_format
=yes
15256 bash_cv_printf_a_format
=no
15258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
15265 $as_echo "$bash_cv_printf_a_format" >&6; }
15266 if test $bash_cv_printf_a_format = yes; then
15267 $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fnmatch can be used to check bracket equivalence classes" >&5
15273 $as_echo_n "checking whether fnmatch can be used to check bracket equivalence classes... " >&6; }
15274 if ${bash_cv_fnmatch_equiv_fallback+:} false
; then :
15275 $as_echo_n "(cached) " >&6
15277 if test "$cross_compiling" = yes; then :
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&5
15279 $as_echo "$as_me: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&2;}
15280 bash_cv_fnmatch_equiv_fallback
=no
15283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15286 #include <stdlib.h>
15287 #include <unistd.h>
15289 #include <fnmatch.h>
15290 #include <locale.h>
15292 char *pattern = "[[=a=]]";
15294 /* char *string = "ä"; */
15295 unsigned char string[4] = { '\xc3', '\xa4', '\0' };
15298 main (int c, char **v)
15300 setlocale (LC_ALL, "de_DE.UTF-8");
15301 if (fnmatch (pattern, (const char *)string, 0) != FNM_NOMATCH)
15308 if ac_fn_c_try_run
"$LINENO"; then :
15309 bash_cv_fnmatch_equiv_fallback
=yes
15311 bash_cv_fnmatch_equiv_fallback
=no
15313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fnmatch_equiv_fallback" >&5
15320 $as_echo "$bash_cv_fnmatch_equiv_fallback" >&6; }
15321 if test "$bash_cv_fnmatch_equiv_fallback" = "yes" ; then
15322 bash_cv_fnmatch_equiv_value
=1
15324 bash_cv_fnmatch_equiv_value
=0
15327 cat >>confdefs.h
<<_ACEOF
15328 #define FNMATCH_EQUIV_FALLBACK $bash_cv_fnmatch_equiv_value
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
15336 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
15337 if ${bash_cv_must_reinstall_sighandlers+:} false
; then :
15338 $as_echo_n "(cached) " >&6
15340 if test "$cross_compiling" = yes; then :
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
15342 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
15343 bash_cv_must_reinstall_sighandlers
=no
15346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15349 #include <signal.h>
15350 #ifdef HAVE_UNISTD_H
15351 #include <unistd.h>
15354 typedef RETSIGTYPE sigfunc();
15356 volatile int nsigint;
15358 #ifdef HAVE_POSIX_SIGNALS
15360 set_signal_handler(sig, handler)
15364 struct sigaction act, oact;
15365 act.sa_handler = handler;
15367 sigemptyset (&act.sa_mask);
15368 sigemptyset (&oact.sa_mask);
15369 sigaction (sig, &act, &oact);
15370 return (oact.sa_handler);
15373 #define set_signal_handler(s, h) signal(s, h)
15386 set_signal_handler(SIGINT, sigint);
15387 kill((int)getpid(), SIGINT);
15388 kill((int)getpid(), SIGINT);
15389 exit(nsigint != 2);
15393 if ac_fn_c_try_run
"$LINENO"; then :
15394 bash_cv_must_reinstall_sighandlers
=no
15396 bash_cv_must_reinstall_sighandlers
=yes
15398 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15399 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
15405 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
15406 if test $bash_cv_must_reinstall_sighandlers = yes; then
15407 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
15413 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
15414 if ${bash_cv_job_control_missing+:} false
; then :
15415 $as_echo_n "(cached) " >&6
15417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15420 #include <sys/types.h>
15421 #ifdef HAVE_SYS_WAIT_H
15422 #include <sys/wait.h>
15424 #ifdef HAVE_UNISTD_H
15425 #include <unistd.h>
15427 #include <signal.h>
15429 /* add more tests in here as appropriate */
15432 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
15436 /* signals and tty control. */
15437 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
15441 /* process control */
15442 #if !defined (WNOHANG) || !defined (WUNTRACED)
15446 /* Posix systems have tcgetpgrp and waitpid. */
15447 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
15451 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
15455 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
15456 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
15469 if ac_fn_c_try_compile
"$LINENO"; then :
15470 bash_cv_job_control_missing
=present
15472 bash_cv_job_control_missing
=missing
15475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
15479 $as_echo "$bash_cv_job_control_missing" >&6; }
15480 if test $bash_cv_job_control_missing = missing
; then
15481 $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
15486 $as_echo_n "checking for presence of named pipes... " >&6; }
15487 if ${bash_cv_sys_named_pipes+:} false
; then :
15488 $as_echo_n "(cached) " >&6
15490 if test "$cross_compiling" = yes; then :
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
15492 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
15493 bash_cv_sys_named_pipes
=missing
15496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15499 #include <sys/types.h>
15500 #include <sys/stat.h>
15501 #ifdef HAVE_UNISTD_H
15502 #include <unistd.h>
15505 /* Add more tests in here as appropriate. */
15510 #if defined (HAVE_MKFIFO)
15514 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
15521 err = mkdir("bash-aclocal", 0700);
15526 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
15528 rmdir ("bash-aclocal");
15532 unlink ("bash-aclocal/sh-np-autoconf");
15533 rmdir ("bash-aclocal");
15537 if ac_fn_c_try_run
"$LINENO"; then :
15538 bash_cv_sys_named_pipes
=present
15540 bash_cv_sys_named_pipes
=missing
15542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
15549 $as_echo "$bash_cv_sys_named_pipes" >&6; }
15550 if test $bash_cv_sys_named_pipes = missing
; then
15551 $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15557 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15558 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
15559 $as_echo_n "(cached) " >&6
15561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <sys/types.h>
15564 #include <termios.h>
15570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15571 $EGREP "yes" >/dev
/null
2>&1; then :
15572 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
15574 ac_cv_sys_tiocgwinsz_in_termios_h
=no
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15580 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15582 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15584 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15585 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
15586 $as_echo_n "(cached) " >&6
15588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590 #include <sys/types.h>
15591 #include <sys/ioctl.h>
15597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15598 $EGREP "yes" >/dev
/null
2>&1; then :
15599 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
15601 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15607 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15609 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15611 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
15617 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
15618 if ${bash_cv_tiocstat_in_ioctl+:} false
; then :
15619 $as_echo_n "(cached) " >&6
15621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 #include <sys/types.h>
15624 #include <sys/ioctl.h>
15633 if ac_fn_c_try_compile
"$LINENO"; then :
15634 bash_cv_tiocstat_in_ioctl
=yes
15636 bash_cv_tiocstat_in_ioctl
=no
15638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
15642 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
15643 if test $bash_cv_tiocstat_in_ioctl = yes; then
15644 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
15649 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
15650 if ${bash_cv_fionread_in_ioctl+:} false
; then :
15651 $as_echo_n "(cached) " >&6
15653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655 #include <sys/types.h>
15656 #include <sys/ioctl.h>
15665 if ac_fn_c_try_compile
"$LINENO"; then :
15666 bash_cv_fionread_in_ioctl
=yes
15668 bash_cv_fionread_in_ioctl
=no
15670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
15674 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
15675 if test $bash_cv_fionread_in_ioctl = yes; then
15676 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
15683 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
15684 if ${bash_cv_wcontinued_broken+:} false
; then :
15685 $as_echo_n "(cached) " >&6
15687 if test "$cross_compiling" = yes; then :
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
15689 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
15690 bash_cv_wcontinued_broken
=no
15693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15696 #include <sys/types.h>
15697 #include <sys/wait.h>
15698 #include <unistd.h>
15708 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
15709 if (x == -1 && errno == EINVAL)
15716 if ac_fn_c_try_run
"$LINENO"; then :
15717 bash_cv_wcontinued_broken
=no
15719 bash_cv_wcontinued_broken
=yes
15721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
15728 $as_echo "$bash_cv_wcontinued_broken" >&6; }
15729 if test $bash_cv_wcontinued_broken = yes; then
15730 $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
15736 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
15737 if ${bash_cv_speed_t_in_sys_types+:} false
; then :
15738 $as_echo_n "(cached) " >&6
15740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15742 #include <sys/types.h>
15751 if ac_fn_c_try_compile
"$LINENO"; then :
15752 bash_cv_speed_t_in_sys_types
=yes
15754 bash_cv_speed_t_in_sys_types
=no
15756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
15760 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
15761 if test $bash_cv_speed_t_in_sys_types = yes; then
15762 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
15767 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
15768 if ${bash_cv_getpw_declared+:} false
; then :
15769 $as_echo_n "(cached) " >&6
15771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15774 #include <sys/types.h>
15775 #ifdef HAVE_UNISTD_H
15776 # include <unistd.h>
15781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15782 $EGREP "getpwuid" >/dev
/null
2>&1; then :
15783 bash_cv_getpw_declared
=yes
15785 bash_cv_getpw_declared
=no
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
15792 $as_echo "$bash_cv_getpw_declared" >&6; }
15793 if test $bash_cv_getpw_declared = yes; then
15794 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
15799 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
15800 if ${bash_cv_unusable_rtsigs+:} false
; then :
15801 $as_echo_n "(cached) " >&6
15803 if test "$cross_compiling" = yes; then :
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
15805 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
15806 bash_cv_unusable_rtsigs
=yes
15809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15812 #include <sys/types.h>
15813 #include <signal.h>
15821 int n_sigs = 2 * NSIG;
15823 int rtmin = SIGRTMIN;
15828 exit(rtmin < n_sigs);
15831 if ac_fn_c_try_run
"$LINENO"; then :
15832 bash_cv_unusable_rtsigs
=yes
15834 bash_cv_unusable_rtsigs
=no
15836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
15843 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
15844 if test $bash_cv_unusable_rtsigs = yes; then
15845 $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
15853 if test "$bash_cv_sys_siglist" = no
&& test "$bash_cv_under_sys_siglist" = no
&& test "$bash_cv_have_strsignal" = no
; then
15854 SIGLIST_O
=siglist.o
15862 hpux
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
15863 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
15864 if ${bash_cv_kernel_rlimit+:} false
; then :
15865 $as_echo_n "(cached) " >&6
15867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15870 #include <sys/types.h>
15871 #include <sys/resource.h>
15884 if ac_fn_c_try_compile
"$LINENO"; then :
15885 bash_cv_kernel_rlimit
=no
15887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15890 #include <sys/types.h>
15892 #include <sys/resource.h>
15906 if ac_fn_c_try_compile
"$LINENO"; then :
15907 bash_cv_kernel_rlimit
=yes
15909 bash_cv_kernel_rlimit
=no
15911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
15918 $as_echo "$bash_cv_kernel_rlimit" >&6; }
15919 if test $bash_cv_kernel_rlimit = yes; then
15920 $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
15926 if test "$opt_readline" = yes; then
15928 aix
*) prefer_curses
=yes ;;
15931 if test "X$bash_cv_termcap_lib" = "X"; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
15935 $as_echo_n "checking which library has the termcap functions... " >&6; }
15938 if ${bash_cv_termcap_lib+:} false
; then :
15939 $as_echo_n "(cached) " >&6
15941 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
15942 if test "x$ac_cv_func_tgetent" = xyes
; then :
15943 bash_cv_termcap_lib
=libc
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
15946 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15947 if ${ac_cv_lib_termcap_tgetent+:} false
; then :
15948 $as_echo_n "(cached) " >&6
15950 ac_check_lib_save_LIBS
=$LIBS
15951 LIBS
="-ltermcap $LIBS"
15952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15970 if ac_fn_c_try_link
"$LINENO"; then :
15971 ac_cv_lib_termcap_tgetent
=yes
15973 ac_cv_lib_termcap_tgetent
=no
15975 rm -f core conftest.err conftest.
$ac_objext \
15976 conftest
$ac_exeext conftest.
$ac_ext
15977 LIBS
=$ac_check_lib_save_LIBS
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
15980 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
15981 if test "x$ac_cv_lib_termcap_tgetent" = xyes
; then :
15982 bash_cv_termcap_lib
=libtermcap
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
15985 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15986 if ${ac_cv_lib_tinfo_tgetent+:} false
; then :
15987 $as_echo_n "(cached) " >&6
15989 ac_check_lib_save_LIBS
=$LIBS
15990 LIBS
="-ltinfo $LIBS"
15991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15994 /* Override any GCC internal prototype to avoid an error.
15995 Use char because int might match the return type of a GCC
15996 builtin and then its argument prototype would still apply. */
16009 if ac_fn_c_try_link
"$LINENO"; then :
16010 ac_cv_lib_tinfo_tgetent
=yes
16012 ac_cv_lib_tinfo_tgetent
=no
16014 rm -f core conftest.err conftest.
$ac_objext \
16015 conftest
$ac_exeext conftest.
$ac_ext
16016 LIBS
=$ac_check_lib_save_LIBS
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
16019 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
16020 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
; then :
16021 bash_cv_termcap_lib
=libtinfo
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
16024 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
16025 if ${ac_cv_lib_curses_tgetent+:} false
; then :
16026 $as_echo_n "(cached) " >&6
16028 ac_check_lib_save_LIBS
=$LIBS
16029 LIBS
="-lcurses $LIBS"
16030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
16048 if ac_fn_c_try_link
"$LINENO"; then :
16049 ac_cv_lib_curses_tgetent
=yes
16051 ac_cv_lib_curses_tgetent
=no
16053 rm -f core conftest.err conftest.
$ac_objext \
16054 conftest
$ac_exeext conftest.
$ac_ext
16055 LIBS
=$ac_check_lib_save_LIBS
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
16058 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
16059 if test "x$ac_cv_lib_curses_tgetent" = xyes
; then :
16060 bash_cv_termcap_lib
=libcurses
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
16063 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
16064 if ${ac_cv_lib_ncurses_tgetent+:} false
; then :
16065 $as_echo_n "(cached) " >&6
16067 ac_check_lib_save_LIBS
=$LIBS
16068 LIBS
="-lncurses $LIBS"
16069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16072 /* Override any GCC internal prototype to avoid an error.
16073 Use char because int might match the return type of a GCC
16074 builtin and then its argument prototype would still apply. */
16087 if ac_fn_c_try_link
"$LINENO"; then :
16088 ac_cv_lib_ncurses_tgetent
=yes
16090 ac_cv_lib_ncurses_tgetent
=no
16092 rm -f core conftest.err conftest.
$ac_objext \
16093 conftest
$ac_exeext conftest.
$ac_ext
16094 LIBS
=$ac_check_lib_save_LIBS
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
16097 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
16098 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
; then :
16099 bash_cv_termcap_lib
=libncurses
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
16102 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
16103 if ${ac_cv_lib_ncursesw_tgetent+:} false
; then :
16104 $as_echo_n "(cached) " >&6
16106 ac_check_lib_save_LIBS
=$LIBS
16107 LIBS
="-lncursesw $LIBS"
16108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16111 /* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
16126 if ac_fn_c_try_link
"$LINENO"; then :
16127 ac_cv_lib_ncursesw_tgetent
=yes
16129 ac_cv_lib_ncursesw_tgetent
=no
16131 rm -f core conftest.err conftest.
$ac_objext \
16132 conftest
$ac_exeext conftest.
$ac_ext
16133 LIBS
=$ac_check_lib_save_LIBS
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
16136 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
16137 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
; then :
16138 bash_cv_termcap_lib
=libncursesw
16140 bash_cv_termcap_lib
=gnutermcap
16155 if test "X$_bash_needmsg" = "Xyes"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
16157 $as_echo_n "checking which library has the termcap functions... " >&6; }
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
16160 $as_echo "using $bash_cv_termcap_lib" >&6; }
16161 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
16162 LDFLAGS
="$LDFLAGS -L./lib/termcap"
16163 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
16164 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
16165 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
16166 TERMCAP_LIB
=-ltermcap
16168 elif test $bash_cv_termcap_lib = libtinfo
; then
16169 TERMCAP_LIB
=-ltinfo
16171 elif test $bash_cv_termcap_lib = libncurses
; then
16172 TERMCAP_LIB
=-lncurses
16174 elif test $bash_cv_termcap_lib = libc
; then
16178 TERMCAP_LIB
=-lcurses
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
16187 $as_echo_n "checking whether /dev/fd is available... " >&6; }
16188 if ${bash_cv_dev_fd+:} false
; then :
16189 $as_echo_n "(cached) " >&6
16192 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
16193 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
16194 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
16195 bash_cv_dev_fd
=standard
16197 bash_cv_dev_fd
=absent
16200 if test -z "$bash_cv_dev_fd" ; then
16201 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
16202 bash_cv_dev_fd
=whacky
16204 bash_cv_dev_fd
=absent
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
16211 $as_echo "$bash_cv_dev_fd" >&6; }
16212 if test $bash_cv_dev_fd = "standard"; then
16213 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
16215 $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
16217 elif test $bash_cv_dev_fd = "whacky"; then
16218 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
16220 $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
16225 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
16226 if ${bash_cv_dev_stdin+:} false
; then :
16227 $as_echo_n "(cached) " >&6
16229 if (exec test -r /dev
/stdin
< /dev
/null
) ; then
16230 bash_cv_dev_stdin
=present
16232 bash_cv_dev_stdin
=absent
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
16238 $as_echo "$bash_cv_dev_stdin" >&6; }
16239 if test $bash_cv_dev_stdin = "present"; then
16240 $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
16245 $as_echo_n "checking for default mail directory... " >&6; }
16246 if ${bash_cv_mail_dir+:} false
; then :
16247 $as_echo_n "(cached) " >&6
16249 if test -d /var
/mail; then
16250 bash_cv_mail_dir
=/var
/mail
16251 elif test -d /var
/spool
/mail; then
16252 bash_cv_mail_dir
=/var
/spool
/mail
16253 elif test -d /usr
/mail; then
16254 bash_cv_mail_dir
=/usr
/mail
16255 elif test -d /usr
/spool
/mail; then
16256 bash_cv_mail_dir
=/usr
/spool
/mail
16258 bash_cv_mail_dir
=unknown
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
16264 $as_echo "$bash_cv_mail_dir" >&6; }
16265 cat >>confdefs.h
<<_ACEOF
16266 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
16271 if test "$bash_cv_job_control_missing" = missing
; then
16275 if test "$opt_job_control" = yes; then
16276 $as_echo "#define JOB_CONTROL 1" >>confdefs.h
16289 case "${host_os}" in
16290 sysv4.2
*) $as_echo "#define SVR4_2 1" >>confdefs.h
16292 $as_echo "#define SVR4 1" >>confdefs.h
16294 sysv4
*) $as_echo "#define SVR4 1" >>confdefs.h
16296 sysv5
*) $as_echo "#define SVR5 1" >>confdefs.h
16298 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
16299 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
16300 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
16301 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
16302 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
16303 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
16304 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
16305 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
16306 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
16307 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
16308 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
16309 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16310 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16311 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16312 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
16313 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
16314 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
16315 case "`uname -r`" in
16316 1.
*|
2.
[0123]*) : ;;
16317 *) $as_echo "#define PGRP_PIPE 1" >>confdefs.h
16320 netbsd
*|openbsd
*) LOCAL_CFLAGS
="-DDEV_FD_STAT_BROKEN" ;;
16321 *qnx
[67]*) LOCAL_LIBS
="-lncurses" ;;
16322 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
16323 powerux
*) LOCAL_LIBS
="-lgen" ;;
16324 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
16325 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
16326 *openstep
*) LOCAL_CFLAGS
="-D__APPLE_CC__" ;;
16329 case "${host_os}-${CC}" in
16330 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
16331 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
16332 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
16333 bsdi5
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
16334 hpux11
*-gcc*) LOCAL_LDFLAGS
="-Wl,-E" ;; # allow dynamic loading
16337 case "${host_os}" in
16339 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
16340 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
16342 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
16343 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
16346 case "$host_cpu" in
16347 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
16350 case "$host_cpu-$host_os" in
16351 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
16354 case "$host_cpu-$host_vendor-$host_os" in
16355 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
16356 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
16359 # turn off paren warnings in gcc
16360 if test "$GCC" = yes # && test -n "$DEBUG"
16362 CFLAGS
="$CFLAGS -Wno-parentheses -Wno-format-security"
16363 # if test -n "$DEBUG"
16365 # CFLAGS="$CFLAGS -Werror"
16370 # Shared object configuration section. These values are generated by
16371 # ${srcdir}/support/shobj-conf
16373 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
16376 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
16377 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
16386 $as_echo "$SHOBJ_STATUS" >&6; }
16388 SHOBJ_STATUS
=unsupported
16392 # try to create a directory tree if the source is elsewhere
16393 # this should be packaged into a script accessible via ${srcdir}/support
16396 *) for d
in doc tests support lib examples
; do # dirs
16397 test -d $d || mkdir
$d
16399 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
16400 test -d lib
/$ld || mkdir lib
/$ld
16402 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
16403 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
16408 case "$BUILD_DIR" in
16409 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
16413 if test -z "$localedir"; then
16414 localedir
='${datarootdir}/locale'
16416 if test -z "$datarootdir"; then
16417 datarootdir
='${prefix}/share'
16425 # Some versions of autoconf don't substitute these automatically
16429 # directory where we install dynamically loadable builtins
16430 if test -z "$loadablesdir"; then
16431 loadablesdir
='${libdir}/bash'
16434 if test -z "$headersdir"; then
16435 headersdir
='$(includedir)/$(PACKAGE_NAME)'
16457 #AC_SUBST(ALLOCA_SOURCE)
16458 #AC_SUBST(ALLOCA_OBJECT)
16460 ac_config_files
="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/Makefile.inc examples/loadables/perl/Makefile support/bash.pc support/bashbug.sh"
16462 ac_config_commands
="$ac_config_commands default"
16464 cat >confcache
<<\_ACEOF
16465 # This file is a shell script that caches the results of configure
16466 # tests run on this system so they can be shared between configure
16467 # scripts and configure runs, see configure's option --config-cache.
16468 # It is not useful on other systems. If it contains results you don't
16469 # want to keep, you may remove or edit it.
16471 # config.status only pays attention to the cache file if you give it
16472 # the --recheck option to rerun configure.
16474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16476 # following values.
16480 # The following way of writing the cache mishandles newlines in values,
16481 # but we know of no workaround that is simple, portable, and efficient.
16482 # So, we kill variables containing newlines.
16483 # Ultrix sh set writes to stderr and can't be redirected directly,
16484 # and sets the high bit in the cache file unless we assign to the vars.
16486 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16487 eval ac_val
=\$
$ac_var
16491 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16495 _ | IFS | as_nl
) ;; #(
16496 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16497 *) { eval $ac_var=; unset $ac_var;} ;;
16503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16504 *${as_nl}ac_space
=\
*)
16505 # `set' does not quote correctly, so add quotes: double-quote
16506 # substitution turns \\\\ into \\, and sed turns \\ into \.
16509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16512 # `set' quotes correctly as required by POSIX, so do not add quotes.
16513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16526 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16527 if test -w "$cache_file"; then
16528 if test "x$cache_file" != "x/dev/null"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16530 $as_echo "$as_me: updating cache $cache_file" >&6;}
16531 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16532 cat confcache
>"$cache_file"
16534 case $cache_file in #(
16536 mv -f confcache
"$cache_file"$$
&&
16537 mv -f "$cache_file"$$
"$cache_file" ;; #(
16539 mv -f confcache
"$cache_file" ;;
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16550 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16551 # Let make expand exec_prefix.
16552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16554 DEFS
=-DHAVE_CONFIG_H
16559 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16560 # 1. Remove the extension, and $U if already installed.
16561 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16562 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16564 # will be set to the directory where LIBOBJS objects are built.
16565 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16566 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16568 LIBOBJS
=$ac_libobjs
16570 LTLIBOBJS
=$ac_ltlibobjs
16575 : "${CONFIG_STATUS=./config.status}"
16577 ac_clean_files_save
=$ac_clean_files
16578 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16580 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16584 # Generated by $as_me.
16585 # Run this file to recreate the current configuration.
16586 # Compiler output produced by configure, useful for debugging
16587 # configure, is in config.log if it exists.
16590 ac_cs_recheck=false
16593 SHELL=\${CONFIG_SHELL-$SHELL}
16596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16597 ## -------------------- ##
16598 ## M4sh Initialization. ##
16599 ## -------------------- ##
16601 # Be more Bourne compatible
16602 DUALCASE
=1; export DUALCASE
# for MKS sh
16603 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16607 # is contrary to our usage. Disable this feature.
16608 alias -g '${1+"$@"}'='"$@"'
16609 setopt NO_GLOB_SUBST
16611 case `(set -o) 2>/dev/null` in #(
16623 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16624 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16627 # Prefer a ksh shell builtin over an external printf program on Solaris,
16628 # but without wasting forks for bash or zsh.
16629 if test -z "$BASH_VERSION$ZSH_VERSION" \
16630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16631 as_echo='print
-r --'
16632 as_echo_n='print
-rn --'
16633 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16634 as_echo='printf %s
\n'
16635 as_echo_n='printf %s
'
16637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16638 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16639 as_echo_n='/usr
/ucb
/echo -n'
16641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16642 as_echo_n_body='eval
16646 expr "X$arg" : "X\\(.*\\)$as_nl";
16647 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16649 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16651 export as_echo_n_body
16652 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16654 export as_echo_body
16655 as_echo='sh
-c $as_echo_body as_echo
'
16658 # The user is always right.
16659 if test "${PATH_SEPARATOR+set}" != set; then
16661 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16662 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16669 # We need space, tab and new line, in precisely that order. Quoting is
16670 # there to prevent editors from complaining about space-tab.
16671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16672 # splitting by setting IFS to empty value.)
16675 # Find who we are. Look in the path if we contain no directory separator.
16678 *[\\/]* ) as_myself=$0 ;;
16679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16680 for as_dir in $PATH
16683 test -z "$as_dir" && as_dir=.
16684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16690 # We did not find ourselves, most probably we were run as `sh COMMAND'
16691 # in which case we are not to be found in the path.
16692 if test "x$as_myself" = x
; then
16695 if test ! -f "$as_myself"; then
16696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16700 # Unset variables that we do not need and which cause bugs (e.g. in
16701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16702 # suppresses any "Segmentation fault" message there. '((' could
16703 # trigger a bug in pdksh 5.2.14.
16704 for as_var
in BASH_ENV ENV MAIL MAILPATH
16705 do eval test x\
${$as_var+set} = xset \
16706 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16719 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16722 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16723 # ----------------------------------------
16724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16726 # script with STATUS, using 1 if that was 0.
16729 as_status
=$1; test $as_status -eq 0 && as_status
=1
16731 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16734 $as_echo "$as_me: error: $2" >&2
16735 as_fn_exit
$as_status
16739 # as_fn_set_status STATUS
16740 # -----------------------
16741 # Set $? to STATUS, without forking.
16742 as_fn_set_status
()
16745 } # as_fn_set_status
16747 # as_fn_exit STATUS
16748 # -----------------
16749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16753 as_fn_set_status
$1
16759 # Portably unset VAR.
16762 { eval $1=; unset $1;}
16764 as_unset
=as_fn_unset
16765 # as_fn_append VAR VALUE
16766 # ----------------------
16767 # Append the text in VALUE to the end of the definition contained in VAR. Take
16768 # advantage of any shell optimizations that allow amortized linear growth over
16769 # repeated appends, instead of the typical quadratic growth present in naive
16771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16772 eval 'as_fn_append ()
16783 # as_fn_arith ARG...
16784 # ------------------
16785 # Perform arithmetic evaluation on the ARGs, and store the result in the
16786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16787 # must be portable across $(()) and expr.
16788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16789 eval 'as_fn_arith ()
16796 as_val
=`expr "$@" || test $? -eq 1`
16801 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16802 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16808 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16809 as_basename
=basename
16814 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16820 as_me
=`$as_basename -- "$0" ||
16821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16822 X"$0" : 'X\(//\)$' \| \
16823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16825 sed '/^.*\/\([^/][^/]*\)\/*$/{
16839 # Avoid depending upon Character Ranges.
16840 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16841 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16842 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16843 as_cr_digits
='0123456789'
16844 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16846 ECHO_C
= ECHO_N
= ECHO_T
=
16847 case `echo -n x` in #(((((
16849 case `echo 'xy\c'` in
16850 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16852 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16859 rm -f conf$$ conf$$.exe conf$$.
file
16860 if test -d conf$$.dir
; then
16861 rm -f conf$$.dir
/conf$$.
file
16864 mkdir conf$$.dir
2>/dev
/null
16866 if (echo >conf$$.
file) 2>/dev
/null
; then
16867 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16869 # ... but there are two gotchas:
16870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16872 # In both cases, we have to default to `cp -pR'.
16873 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16875 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16883 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16884 rmdir conf$$.dir
2>/dev
/null
16889 # Create "$as_dir" as a directory, including parents if necessary.
16894 -*) as_dir
=.
/$as_dir;;
16896 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16900 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16901 *) as_qdir
=$as_dir;;
16903 as_dirs
="'$as_qdir' $as_dirs"
16904 as_dir
=`$as_dirname -- "$as_dir" ||
16905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906 X"$as_dir" : 'X\(//\)[^/]' \| \
16907 X"$as_dir" : 'X\(//\)$' \| \
16908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16909 $as_echo X"$as_dir" |
16910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16914 /^X\(\/\/\)[^/].*/{
16927 test -d "$as_dir" && break
16929 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16930 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16934 if mkdir
-p .
2>/dev
/null
; then
16935 as_mkdir_p
='mkdir -p "$as_dir"'
16937 test -d .
/-p && rmdir .
/-p
16942 # as_fn_executable_p FILE
16943 # -----------------------
16944 # Test if FILE is an executable regular file.
16945 as_fn_executable_p
()
16947 test -f "$1" && test -x "$1"
16948 } # as_fn_executable_p
16949 as_test_x
='test -x'
16950 as_executable_p
=as_fn_executable_p
16952 # Sed expression to map a string onto a valid CPP name.
16953 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16955 # Sed expression to map a string onto a valid variable name.
16956 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16960 ## ----------------------------------- ##
16961 ## Main body of $CONFIG_STATUS script. ##
16962 ## ----------------------------------- ##
16964 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16967 # Save the log message, to keep $0 and so on meaningful, and to
16968 # report actual input values of CONFIG_FILES etc. instead of their
16969 # values after options handling.
16971 This file was extended by bash $as_me 5.0-release, which was
16972 generated by GNU Autoconf 2.69. Invocation command line was
16974 CONFIG_FILES = $CONFIG_FILES
16975 CONFIG_HEADERS = $CONFIG_HEADERS
16976 CONFIG_LINKS = $CONFIG_LINKS
16977 CONFIG_COMMANDS = $CONFIG_COMMANDS
16980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16985 case $ac_config_files in *"
16986 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16989 case $ac_config_headers in *"
16990 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16995 # Files that config.status was made for.
16996 config_files="$ac_config_files"
16997 config_headers="$ac_config_headers"
16998 config_commands="$ac_config_commands"
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17004 \`$as_me' instantiates files and other configuration actions
17005 from templates according to the current configuration. Unless the files
17006 and actions are specified as TAGs, all are instantiated by default.
17008 Usage: $0 [OPTION]... [TAG]...
17010 -h, --help print this help, then exit
17011 -V, --version print version number and configuration settings, then exit
17012 --config print configuration, then exit
17013 -q, --quiet, --silent
17014 do not print progress messages
17015 -d, --debug don't remove temporary files
17016 --recheck update $as_me by reconfiguring in the same conditions
17017 --file=FILE[:TEMPLATE]
17018 instantiate the configuration file FILE
17019 --header=FILE[:TEMPLATE]
17020 instantiate the configuration header FILE
17022 Configuration files:
17025 Configuration headers:
17028 Configuration commands:
17031 Report bugs to <bug-bash@gnu.org>."
17034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17035 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17037 bash config.status 5.0-release
17038 configured by $0, generated by GNU Autoconf 2.69,
17039 with options \\"\$ac_cs_config\\"
17041 Copyright (C) 2012 Free Software Foundation, Inc.
17042 This config.status script is free software; the Free Software Foundation
17043 gives unlimited permission to copy, distribute and modify it."
17048 test -n "\$AWK" || AWK=awk
17051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17052 # The default lists apply if the user does not specify any file.
17058 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17059 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17063 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17075 # Handling of the options.
17076 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17078 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17079 $as_echo "$ac_cs_version"; exit ;;
17080 --config |
--confi |
--conf |
--con |
--co |
--c )
17081 $as_echo "$ac_cs_config"; exit ;;
17082 --debug |
--debu |
--deb |
--de |
--d |
-d )
17084 --file |
--fil |
--fi |
--f )
17087 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17088 '') as_fn_error $?
"missing file argument" ;;
17090 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17091 ac_need_defaults
=false
;;
17092 --header |
--heade |
--head |
--hea )
17095 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17097 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17098 ac_need_defaults
=false
;;
17100 # Conflict between --help and --header
17101 as_fn_error $?
"ambiguous option: \`$1'
17102 Try \`$0 --help' for more information.";;
17103 --help |
--hel |
-h )
17104 $as_echo "$ac_cs_usage"; exit ;;
17105 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17106 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17109 # This is an error.
17110 -*) as_fn_error $?
"unrecognized option: \`$1'
17111 Try \`$0 --help' for more information." ;;
17113 *) as_fn_append ac_config_targets
" $1"
17114 ac_need_defaults
=false
;;
17120 ac_configure_extra_args
=
17122 if $ac_cs_silent; then
17124 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 if \$ac_cs_recheck; then
17130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17133 CONFIG_SHELL='$SHELL'
17134 export CONFIG_SHELL
17139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17144 ## Running $as_me. ##
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17155 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17157 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17158 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17159 LINGUAS="${LINGUAS-%UNSET%}"
17164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17166 # Handling of arguments.
17167 for ac_config_target
in $ac_config_targets
17169 case $ac_config_target in
17170 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17171 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17172 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17173 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
17174 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
17175 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
17176 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
17177 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
17178 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
17179 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
17180 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
17181 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17182 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
17183 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
17184 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
17185 "examples/loadables/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
17186 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
17187 "support/bash.pc") CONFIG_FILES
="$CONFIG_FILES support/bash.pc" ;;
17188 "support/bashbug.sh") CONFIG_FILES
="$CONFIG_FILES support/bashbug.sh" ;;
17189 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17191 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17196 # If the user did not use the arguments to specify the items to instantiate,
17197 # then the envvar interface is used. Set only those that are not.
17198 # We use the long form for the default assignment because of an extremely
17199 # bizarre bug on SunOS 4.1.3.
17200 if $ac_need_defaults; then
17201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17206 # Have a temporary directory for convenience. Make it in the build tree
17207 # simply because there is no reason against having it here, and in addition,
17208 # creating and moving files from /tmp can sometimes cause problems.
17209 # Hook for its removal unless debugging.
17210 # Note that there is a small window in which the directory will not be cleaned:
17211 # after its creation but before its name has been assigned to `$tmp'.
17215 trap 'exit_status=$?
17216 : "${ac_tmp:=$tmp}"
17217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17219 trap 'as_fn_exit 1' 1 2 13 15
17221 # Create a (secure) tmp directory for tmp files.
17224 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17228 tmp
=.
/conf$$
-$RANDOM
17229 (umask 077 && mkdir
"$tmp")
17230 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17233 # Set up the scripts for CONFIG_FILES section.
17234 # No need to generate them if there are no CONFIG_FILES.
17235 # This happens for instance with `./config.status config.h'.
17236 if test -n "$CONFIG_FILES"; then
17239 ac_cr
=`echo X | tr X '\015'`
17240 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17241 # But we know of no other shell where ac_cr would be empty at this
17242 # point, so we can use a bashism as a fallback.
17243 if test "x$ac_cr" = x
; then
17244 eval ac_cr
=\$
\'\\r
\'
17246 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17247 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17250 ac_cs_awk_cr
=$ac_cr
17253 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17258 echo "cat >conf$$subs.awk <<_ACEOF" &&
17259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17261 } >conf$$subs.sh ||
17262 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17265 for ac_last_try in false false false false false :; do
17266 . ./conf$$subs.sh ||
17267 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17269 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17270 if test $ac_delim_n = $ac_delim_num; then
17272 elif $ac_last_try; then
17273 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17275 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17278 rm -f conf$$subs.sh
17280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17281 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17285 s/^/S["/; s
/!.
*/"]=/
17295 s/\(.\{148\}\)..*/\1/
17297 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17302 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17309 s/\(.\{148\}\)..*/\1/
17311 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17315 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17320 ' <conf$$subs.awk | sed '
17325 ' >>$CONFIG_STATUS || ac_write_fail=1
17326 rm -f conf$$subs.awk
17327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17329 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17330 for (key in S) S_is_set[key] = 1
17336 nfields = split(line, field, "@
")
17338 len = length(field[1])
17339 for (i = 2; i < nfields; i++) {
17341 keylen = length(key)
17342 if (S_is_set[key]) {
17344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17345 len += length(value) + length(field[++i])
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17358 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17361 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17362 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17365 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17366 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17367 # trailing colons and then remove the whole line if VPATH becomes empty
17368 # (actually we leave an empty line to preserve line numbers).
17369 if test "x
$srcdir" = x.; then
17370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17389 fi # test -n "$CONFIG_FILES"
17391 # Set up the scripts for CONFIG_HEADERS section.
17392 # No need to generate them if there are no CONFIG_HEADERS.
17393 # This happens for instance with `./config.status Makefile'.
17394 if test -n "$CONFIG_HEADERS"; then
17395 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17399 # Transform confdefs.h into an awk script `defines.awk', embedded as
17400 # here-document in config.status, that substitutes the proper values into
17401 # config.h.in to produce config.h.
17403 # Create a delimiter string that does not exist in confdefs.h, to ease
17404 # handling of long lines.
17406 for ac_last_try in false false :; do
17407 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17408 if test -z "$ac_tt"; then
17410 elif $ac_last_try; then
17411 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17413 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17417 # For the awk script, D is an array of macro values keyed by name,
17418 # likewise P contains macro parameters if any. Preserve backslash
17419 # newline sequences.
17421 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17423 s/.\{148\}/&'"$ac_delim"'/g
17426 s/^[ ]*#[ ]*define[ ][ ]*/ /
17433 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17435 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17440 D["\
1"]=" \
3\\\\\\n
"\\/p
17442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17447 s/.\{148\}/&'"$ac_delim"'/g
17452 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17455 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17457 ' <confdefs.h | sed '
17458 s/'"$ac_delim"'/"\\\
17459 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17462 for (key in D) D_is_set[key] = 1
17465 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17467 split(line, arg, " ")
17468 if (arg[1] == "#") {
17472 defundef
= substr
(arg
[1], 2)
17475 split(mac1
, mac2
, "(") #)
17477 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17478 if (D_is_set
[macro
]) {
17479 # Preserve the white space surrounding the "#".
17480 print prefix
"define", macro P
[macro
] D
[macro
]
17483 # Replace #undef with comments. This is necessary, for example,
17484 # in the case of _POSIX_SOURCE, which is predefined and required
17485 # on some systems where configure will not decide to define it.
17486 if (defundef
== "undef") {
17487 print
"/*", prefix defundef
, macro
, "*/"
17495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17496 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17497 fi # test -n "$CONFIG_HEADERS"
17500 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17505 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17507 case $ac_mode$ac_tag in
17509 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17510 :[FH
]-) ac_tag
=-:-;;
17511 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17528 -) ac_f
="$ac_tmp/stdin";;
17529 *) # Look for the file first in the build tree, then in the source tree
17530 # (if the path is not absolute). The absolute path cannot be DOS-style,
17531 # because $ac_f cannot contain `:'.
17535 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17537 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17539 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17540 as_fn_append ac_file_inputs
" '$ac_f'"
17543 # Let's still pretend it is `configure' which instantiates (i.e., don't
17544 # use $as_me), people would be surprised to read:
17545 # /* config.h. Generated by config.status. */
17546 configure_input
='Generated from '`
17547 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17549 if test x
"$ac_file" != x-
; then
17550 configure_input
="$ac_file. $configure_input"
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17552 $as_echo "$as_me: creating $ac_file" >&6;}
17554 # Neutralize special characters interpreted by sed in replacement strings.
17555 case $configure_input in #(
17556 *\
&* |
*\|
* |
*\\* )
17557 ac_sed_conf_input
=`$as_echo "$configure_input" |
17558 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17559 *) ac_sed_conf_input
=$configure_input;;
17563 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17564 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17569 ac_dir
=`$as_dirname -- "$ac_file" ||
17570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17571 X"$ac_file" : 'X\(//\)[^/]' \| \
17572 X"$ac_file" : 'X\(//\)$' \| \
17573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17574 $as_echo X"$ac_file" |
17575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17579 /^X\(\/\/\)[^/].*/{
17592 as_dir
="$ac_dir"; as_fn_mkdir_p
17596 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17598 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17599 # A ".." for each directory in $ac_dir_suffix.
17600 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17601 case $ac_top_builddir_sub in
17602 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17603 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17606 ac_abs_top_builddir
=$ac_pwd
17607 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17608 # for backward compatibility:
17609 ac_top_builddir
=$ac_top_build_prefix
17612 .
) # We are building in place.
17614 ac_top_srcdir
=$ac_top_builddir_sub
17615 ac_abs_top_srcdir
=$ac_pwd ;;
17616 [\\/]* | ?
:[\\/]* ) # Absolute name.
17617 ac_srcdir
=$srcdir$ac_dir_suffix;
17618 ac_top_srcdir
=$srcdir
17619 ac_abs_top_srcdir
=$srcdir ;;
17620 *) # Relative name.
17621 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17622 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17623 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17625 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17635 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17636 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17641 # If the template does not know about datarootdir, expand it.
17642 # FIXME: This hack should be removed a few years after 2.60.
17643 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17655 *datarootdir
*) ac_datarootdir_seen
=yes;;
17656 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17658 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17661 ac_datarootdir_hack='
17662 s&@datadir@&$datadir&g
17663 s&@docdir@&$docdir&g
17664 s&@infodir@&$infodir&g
17665 s&@localedir@&$localedir&g
17666 s&@mandir@&$mandir&g
17667 s&\\\${datarootdir}&$datarootdir&g' ;;
17671 # Neutralize VPATH when `$srcdir' = `.'.
17672 # Shell code in configure.ac might set extrasub.
17673 # FIXME: do we really want to maintain this feature?
17674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17675 ac_sed_extra="$ac_vpsub
17678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17680 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17681 s|@configure_input@|
$ac_sed_conf_input|
;t t
17682 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17683 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17684 s
&@srcdir@
&$ac_srcdir&;t t
17685 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17686 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17687 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17688 s
&@builddir@
&$ac_builddir&;t t
17689 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17690 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17691 s
&@INSTALL@
&$ac_INSTALL&;t t
17692 $ac_datarootdir_hack
17694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17695 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17698 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17700 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17702 which seems to be undefined. Please make sure it is defined" >&5
17703 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17704 which seems to be undefined. Please make sure it is defined" >&2;}
17706 rm -f "$ac_tmp/stdin"
17708 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17709 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17717 if test x"$ac_file" != x-; then
17719 $as_echo "/* $configure_input */" \
17720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17721 } >"$ac_tmp/config.h" \
17722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17723 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17725 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17728 mv "$ac_tmp/config.h" "$ac_file" \
17729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17732 $as_echo "/* $configure_input */" \
17733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17734 || as_fn_error $? "could not create -" "$LINENO" 5
17738 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17739 $as_echo "$as_me: executing $ac_file commands" >&6;}
17744 case $ac_file$ac_mode in
17746 for ac_file in $CONFIG_FILES; do
17747 # Support "outfile[:infile[:infile...]]"
17749 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
17751 # PO directories have a Makefile.in generated from Makefile.in.in.
17752 case "$ac_file" in */Makefile.in)
17753 # Adjust a relative srcdir.
17754 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
17755 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
17756 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
17757 # In autoconf-2.13 it is called $ac_given_srcdir.
17758 # In autoconf-2.50 it is called $srcdir.
17759 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17760 case "$ac_given_srcdir" in
17761 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
17762 /*) top_srcdir="$ac_given_srcdir" ;;
17763 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17765 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17766 rm -f "$ac_dir/POTFILES"
17767 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17768 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17769 POMAKEFILEDEPS="POTFILES.in"
17770 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17771 # on $ac_dir but don't depend on user-specified configuration
17773 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17774 # The LINGUAS file contains the set of available languages.
17775 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17776 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17778 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17779 # Hide the ALL_LINGUAS assigment from automake.
17780 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17781 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
17783 # The set of available languages was given in configure.in.
17784 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17786 case "$ac_given_srcdir" in
17788 *) srcdirpre
='$(srcdir)/' ;;
17794 for lang
in $ALL_LINGUAS; do
17795 POFILES
="$POFILES $srcdirpre$lang.po"
17796 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17797 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17798 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17800 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17801 # environment variable.
17803 if test -n "$ALL_LINGUAS"; then
17804 for presentlang
in $ALL_LINGUAS; do
17806 if test "%UNSET%" != "$LINGUAS"; then
17807 desiredlanguages
="$LINGUAS"
17809 desiredlanguages
="$ALL_LINGUAS"
17811 for desiredlang
in $desiredlanguages; do
17812 # Use the presentlang catalog if desiredlang is
17813 # a. equal to presentlang, or
17814 # b. a variant of presentlang (because in this case,
17815 # presentlang can be used as a fallback for messages
17816 # which are not translated in the desiredlang catalog).
17817 case "$desiredlang" in
17818 "$presentlang"*) useit
=yes;;
17821 if test $useit = yes; then
17822 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17827 if test -n "$INST_LINGUAS"; then
17828 for lang
in $INST_LINGUAS; do
17829 CATALOGS
="$CATALOGS $lang.gmo"
17832 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17833 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17834 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17835 if test -f "$f"; then
17837 *.orig |
*.bak |
*~
) ;;
17838 *) cat "$f" >> "$ac_dir/Makefile" ;;
17847 # Makefile uses this timestamp file to record whether config.h is up to date.
17848 echo timestamp
> stamp-h
17857 ac_clean_files
=$ac_clean_files_save
17859 test $ac_write_fail = 0 ||
17860 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17863 # configure is writing to config.log, and then calls config.status.
17864 # config.status does its own redirection, appending to config.log.
17865 # Unfortunately, on DOS this fails, as config.log is still kept open
17866 # by configure, so config.status won't be able to write to it; its
17867 # output is simply discarded. So we exec the FD to /dev/null,
17868 # effectively closing config.log, so it can be properly (re)opened and
17869 # appended to by config.status. When coming back to configure, we
17870 # need to make the FD available again.
17871 if test "$no_create" != yes; then
17873 ac_config_status_args
=
17874 test "$silent" = yes &&
17875 ac_config_status_args
="$ac_config_status_args --quiet"
17877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17880 # would make configure fail if this is the last instruction.
17881 $ac_cs_success || as_fn_exit
1
17883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}