2 # From configure.ac for Bash 5.2, version 5.046.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for bash 5.2-release.
6 # Report bugs to <bug-bash@gnu.org>.
9 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
22 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
41 # Reset variables that may have inherited troublesome values from
44 # IFS needs to be set, to space, tab, and newline, in precisely that order.
45 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46 # side effect of setting IFS to empty, thus disabling word splitting.)
47 # Quoting is to prevent editors from complaining about space-tab.
57 # Ensure predictable behavior from utilities with locale-dependent output.
63 # We cannot yet rely on "unset" to work, but we need these variables
64 # to be unset--not just set to an empty or harmless value--now, to
65 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
66 # also avoids known problems related to "unset" and subshell syntax
67 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
68 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
69 do eval test \
${$as_var+y} \
70 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
73 # Ensure that fds 0, 1, and 2 are open.
74 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
75 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
76 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
78 # The user is always right.
79 if ${PATH_SEPARATOR+false} :; then
81 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
82 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
88 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself
=$0 ;;
92 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Use a proper internal environment variable to ensure we don't fall
119 # into an infinite loop, continuously re-executing ourselves.
120 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
121 _as_can_reexec
=no
; export _as_can_reexec
;
122 # We cannot yet assume a decent shell, so we have to provide a
123 # neutralization value for shells without unset; and this also
124 # works around shells that cannot unset nonexistent variables.
125 # Preserve -v and -x to the replacement shell.
128 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
130 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
135 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed `exec'.
138 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec
=; unset _as_can_reexec
;}
143 if test "x$CONFIG_SHELL" = x
; then
144 as_bourne_compatible
="as_nop=:
145 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150 # is contrary to our usage. Disable this feature.
151 alias -g '\${1+\"\$@\"}'='\"\$@\"'
154 case \`(set -o) 2>/dev/null\` in #(
162 as_required
="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
177 exitcode=1; echo positional parameters were not saved.
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
183 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev
/null
194 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
200 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
206 *) as_dir
=$as_dir/ ;;
211 for as_base
in sh bash ksh sh5
; do
212 # Try only shells that exist, to save several forks.
213 as_shell
=$as_dir$as_base
214 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
215 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
217 CONFIG_SHELL
=$as_shell as_have_required
=yes
218 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
232 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
233 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x
$as_have_required = xno
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
281 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE
= GREP_OPTIONS
=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Do nothing but, unlike ":", preserve the value of $?.
328 # Create "$as_dir" as a directory, including parents if necessary.
333 -*) as_dir
=.
/$as_dir;;
335 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
339 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 as_dirs
="'$as_qdir' $as_dirs"
343 as_dir
=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
366 test -d "$as_dir" && break
368 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
369 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p
()
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
389 eval 'as_fn_append ()
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
414 as_val
=`expr "$@" || test $? -eq 1`
420 # Do nothing but, unlike ":", preserve the value of $?.
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
434 as_status
=$1; test $as_status -eq 0 && as_status
=1
436 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit
$as_status
443 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
450 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
456 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
462 as_me
=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
481 # Avoid depending upon Character Ranges.
482 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits
='0123456789'
486 as_cr_alnum
=$as_cr_Letters$as_cr_digits
489 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
490 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509 chmod +x
"$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec
=no
; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
520 # Exit status is that of the last command.
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C
= ECHO_N
= ECHO_T
=
529 case `echo -n x` in #(((((
531 case `echo 'xy\c'` in
532 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo
='printf %s\n'
545 as_echo_n
='printf %s'
548 rm -f conf$$ conf$$.exe conf$$.
file
549 if test -d conf$$.dir
; then
550 rm -f conf$$.dir
/conf$$.
file
553 mkdir conf$$.dir
2>/dev
/null
555 if (echo >conf$$.
file) 2>/dev
/null
; then
556 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
564 elif ln conf$$.
file conf$$
2>/dev
/null
; then
572 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
573 rmdir conf$$.dir
2>/dev
/null
575 if mkdir
-p .
2>/dev
/null
; then
576 as_mkdir_p
='mkdir -p "$as_dir"'
578 test -d .
/-p && rmdir .
/-p
583 as_executable_p
=as_fn_executable_p
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
592 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
603 ac_default_prefix
=/usr
/local
605 ac_config_libobj_dir
=.
612 # Identity of this package.
614 PACKAGE_TARNAME
='bash'
615 PACKAGE_VERSION
='5.2-release'
616 PACKAGE_STRING
='bash 5.2-release'
617 PACKAGE_BUGREPORT
='bug-bash@gnu.org'
620 ac_unique_file
="shell.h"
621 # Factoring default headers for most tests.
622 ac_includes_default
="\
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
655 gl_use_threads_default
=
656 ac_subst_vars
='LTLIBOBJS
681 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
682 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
683 TIME_H_DEFINES_STRUCT_TIMESPEC
692 INTL_LIBTOOL_SUFFIX_PREFIX
699 BUILD_INCLUDED_LIBINTL
703 HAVE_NAMELESS_LOCALES
709 INTL_DEFAULT_VERBOSITY
713 GNULIB_OVERRIDES_WINT_T
729 XGETTEXT_EXTRA_OPTIONS
737 GETTEXT_MACRO_VERSION
768 BASE_CFLAGS_FOR_BUILD
834 program_transform_name
847 enable_option_checking
852 with_installed_readline
853 enable_minimal_config
855 enable_alt_array_implementation
856 enable_arith_for_command
857 enable_array_variables
859 enable_brace_expansion
860 enable_casemod_attributes
861 enable_casemod_expansions
862 enable_command_timing
867 enable_dev_fd_stat_broken
868 enable_direxpand_default
869 enable_directory_stack
870 enable_disabled_builtins
871 enable_dparen_arithmetic
873 enable_extended_glob_default
874 enable_function_import
875 enable_glob_asciiranges_default
880 enable_net_redirections
881 enable_process_substitution
883 enable_prompt_string_decoding
887 enable_separate_helpfiles
888 enable_single_help_strings
889 enable_strict_posix_default
890 enable_translatable_strings
891 enable_usg_echo_default
892 enable_xpg_echo_default
903 with_included_gettext
906 ac_precious_vars
='build_alias
924 # Initialize some variables set by options.
926 ac_init_version
=false
927 ac_unrecognized_opts
=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name
=s
,x
,x
,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir
='${exec_prefix}/bin'
953 sbindir
='${exec_prefix}/sbin'
954 libexecdir
='${exec_prefix}/libexec'
955 datarootdir
='${prefix}/share'
956 datadir
='${datarootdir}'
957 sysconfdir
='${prefix}/etc'
958 sharedstatedir
='${prefix}/com'
959 localstatedir
='${prefix}/var'
960 runstatedir
='${localstatedir}/run'
961 includedir
='${prefix}/include'
962 oldincludedir
='/usr/include'
963 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir
='${datarootdir}/info'
969 libdir
='${exec_prefix}/lib'
970 localedir
='${datarootdir}/locale'
971 mandir
='${datarootdir}/man'
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\
$ac_option
985 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 case $ac_dashdash$ac_option in
994 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
996 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
999 -build |
--build |
--buil |
--bui |
--bu)
1000 ac_prev
=build_alias
;;
1001 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1002 build_alias
=$ac_optarg ;;
1004 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1005 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1006 ac_prev
=cache_file
;;
1007 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1008 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1009 cache_file
=$ac_optarg ;;
1011 --config-cache |
-C)
1012 cache_file
=config.cache
;;
1014 -datadir |
--datadir |
--datadi |
--datad)
1016 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1017 datadir
=$ac_optarg ;;
1019 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1020 |
--dataroo |
--dataro |
--datar)
1021 ac_prev
=datarootdir
;;
1022 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1023 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1024 datarootdir
=$ac_optarg ;;
1026 -disable-* |
--disable-*)
1027 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1030 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1031 ac_useropt_orig
=$ac_useropt
1032 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_
$ac_useropt"
1037 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep
=', ';;
1040 eval enable_
$ac_useropt=no
;;
1042 -docdir |
--docdir |
--docdi |
--doc |
--do)
1044 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1045 docdir
=$ac_optarg ;;
1047 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1049 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1050 dvidir
=$ac_optarg ;;
1052 -enable-* |
--enable-*)
1053 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1056 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1057 ac_useropt_orig
=$ac_useropt
1058 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_
$ac_useropt"
1063 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep
=', ';;
1066 eval enable_
$ac_useropt=\
$ac_optarg ;;
1068 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1069 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1070 |
--exec |
--exe |
--ex)
1071 ac_prev
=exec_prefix
;;
1072 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1073 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1074 |
--exec=* |
--exe=* |
--ex=*)
1075 exec_prefix
=$ac_optarg ;;
1077 -gas |
--gas |
--ga |
--g)
1078 # Obsolete; use --with-gas.
1081 -help |
--help |
--hel |
--he |
-h)
1082 ac_init_help
=long
;;
1083 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1084 ac_init_help
=recursive
;;
1085 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1086 ac_init_help
=short
;;
1088 -host |
--host |
--hos |
--ho)
1089 ac_prev
=host_alias
;;
1090 -host=* |
--host=* |
--hos=* |
--ho=*)
1091 host_alias
=$ac_optarg ;;
1093 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1095 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1097 htmldir
=$ac_optarg ;;
1099 -includedir |
--includedir |
--includedi |
--included |
--include \
1100 |
--includ |
--inclu |
--incl |
--inc)
1101 ac_prev
=includedir
;;
1102 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1103 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1104 includedir
=$ac_optarg ;;
1106 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1108 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1109 infodir
=$ac_optarg ;;
1111 -libdir |
--libdir |
--libdi |
--libd)
1113 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1114 libdir
=$ac_optarg ;;
1116 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1117 |
--libexe |
--libex |
--libe)
1118 ac_prev
=libexecdir
;;
1119 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1120 |
--libexe=* |
--libex=* |
--libe=*)
1121 libexecdir
=$ac_optarg ;;
1123 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1124 ac_prev
=localedir
;;
1125 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1126 localedir
=$ac_optarg ;;
1128 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1129 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1130 ac_prev
=localstatedir
;;
1131 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1132 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1133 localstatedir
=$ac_optarg ;;
1135 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1137 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1138 mandir
=$ac_optarg ;;
1140 -nfp |
--nfp |
--nf)
1141 # Obsolete; use --without-fp.
1144 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1145 |
--no-cr |
--no-c |
-n)
1148 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1149 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1152 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1153 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1154 |
--oldin |
--oldi |
--old |
--ol |
--o)
1155 ac_prev
=oldincludedir
;;
1156 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1157 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1158 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1159 oldincludedir
=$ac_optarg ;;
1161 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1163 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1164 prefix
=$ac_optarg ;;
1166 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1167 |
--program-pre |
--program-pr |
--program-p)
1168 ac_prev
=program_prefix
;;
1169 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1170 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1171 program_prefix
=$ac_optarg ;;
1173 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1174 |
--program-suf |
--program-su |
--program-s)
1175 ac_prev
=program_suffix
;;
1176 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1177 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1178 program_suffix
=$ac_optarg ;;
1180 -program-transform-name |
--program-transform-name \
1181 |
--program-transform-nam |
--program-transform-na \
1182 |
--program-transform-n |
--program-transform- \
1183 |
--program-transform |
--program-transfor \
1184 |
--program-transfo |
--program-transf \
1185 |
--program-trans |
--program-tran \
1186 |
--progr-tra |
--program-tr |
--program-t)
1187 ac_prev
=program_transform_name
;;
1188 -program-transform-name=* |
--program-transform-name=* \
1189 |
--program-transform-nam=* |
--program-transform-na=* \
1190 |
--program-transform-n=* |
--program-transform-=* \
1191 |
--program-transform=* |
--program-transfor=* \
1192 |
--program-transfo=* |
--program-transf=* \
1193 |
--program-trans=* |
--program-tran=* \
1194 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1195 program_transform_name
=$ac_optarg ;;
1197 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1199 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1200 pdfdir
=$ac_optarg ;;
1202 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1204 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1207 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1208 |
-silent |
--silent |
--silen |
--sile |
--sil)
1211 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1212 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1213 |
--run |
--ru |
--r)
1214 ac_prev
=runstatedir
;;
1215 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1216 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1217 |
--run=* |
--ru=* |
--r=*)
1218 runstatedir
=$ac_optarg ;;
1220 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1222 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1224 sbindir
=$ac_optarg ;;
1226 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1227 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1228 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1230 ac_prev
=sharedstatedir
;;
1231 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1232 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1233 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1235 sharedstatedir
=$ac_optarg ;;
1237 -site |
--site |
--sit)
1239 -site=* |
--site=* |
--sit=*)
1242 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1244 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1245 srcdir
=$ac_optarg ;;
1247 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1248 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1249 ac_prev
=sysconfdir
;;
1250 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1251 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1252 sysconfdir
=$ac_optarg ;;
1254 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1255 ac_prev
=target_alias
;;
1256 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1257 target_alias
=$ac_optarg ;;
1259 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1262 -version |
--version |
--versio |
--versi |
--vers |
-V)
1263 ac_init_version
=: ;;
1266 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval with_
$ac_useropt=\
$ac_optarg ;;
1281 -without-* |
--without-*)
1282 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=no
;;
1298 # Obsolete; use --with-x.
1301 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1302 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1303 ac_prev
=x_includes
;;
1304 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1305 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1306 x_includes
=$ac_optarg ;;
1308 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1309 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1310 ac_prev
=x_libraries
;;
1311 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1312 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1313 x_libraries
=$ac_optarg ;;
1315 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information"
1320 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1324 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1326 eval $ac_envvar=\
$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1333 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1340 if test -n "$ac_prev"; then
1341 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error $?
"missing argument to $ac_option"
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1348 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1349 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 # Check all directory arguments for consistency.
1354 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir runstatedir
1359 eval ac_val
=\$
$ac_var
1360 # Remove trailing slashes.
1363 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\
$ac_val;;
1366 # Be sure to have absolute directory names.
1368 [\\/$
]* | ?
:[\\/]* ) continue;;
1369 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1371 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target
=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x
; then
1383 if test "x$build_alias" = x
; then
1384 cross_compiling
=maybe
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1393 test "$silent" = yes && exec 6>/dev
/null
1396 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di
=`ls -di .` &&
1398 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $?
"working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $?
"pwd does not report name of working directory"
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted
=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir
=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 printf "%s\n" X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted
=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1440 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1442 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1454 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 for ac_var
in $ac_precious_vars; do
1457 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1459 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1464 # Report the --help message.
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1470 \`configure' configures bash 5.2-release to adapt to many kinds of systems.
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1477 Defaults for the options are specified in brackets.
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1501 For better control, use the options below.
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1529 --build=BUILD configure
for building on BUILD
[guessed
]
1530 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1534 if test -n "$ac_init_help"; then
1535 case $ac_init_help in
1536 short | recursive
) echo "Configuration of bash 5.2-release:";;
1541 --disable-option-checking ignore unrecognized
--enable/--with options
1542 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1543 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1544 --enable-minimal-config a minimal sh-like configuration
1545 --enable-alias enable shell aliases
1546 --enable-alt-array-implementation
1547 enable an alternate array implementation that
1548 optimizes speed
at the cost of space
1549 --enable-arith-for-command
1550 enable arithmetic
for command
1551 --enable-array-variables
1552 include shell array variables
1553 --enable-bang-history turn on csh-style
history substitution
1554 --enable-brace-expansion
1555 include brace expansion
1556 --enable-casemod-attributes
1557 include case-modifying variable attributes
1558 --enable-casemod-expansions
1559 include case-modifying word expansions
1560 --enable-command-timing enable the
time reserved word and
command timing
1561 --enable-cond-command enable the conditional
command
1562 --enable-cond-regexp enable extended regular expression matching
in
1563 conditional commands
1564 --enable-coprocesses enable coprocess support and the coproc reserved
1566 --enable-debugger enable support
for bash debugger
1567 --enable-dev-fd-stat-broken
1568 enable this option
if stat on
/dev
/fd
/N and fstat on
1569 file descriptor N don
't return the same results
1570 --enable-direxpand-default
1571 enable the direxpand shell option by default
1572 --enable-directory-stack
1573 enable builtins pushd/popd/dirs
1574 --enable-disabled-builtins
1575 allow disabled builtins to still be invoked
1576 --enable-dparen-arithmetic
1577 include ((...)) command
1578 --enable-extended-glob include ksh-style extended pattern matching
1579 --enable-extended-glob-default
1580 force extended pattern matching to be enabled by
1582 --enable-function-import
1583 allow bash to import exported function definitions
1585 --enable-glob-asciiranges-default
1586 force bracket range expressions in pattern matching
1587 to use the C locale by default
1588 --enable-help-builtin include the help builtin
1589 --enable-history turn on command history
1590 --enable-job-control enable job control features
1591 --enable-multibyte enable multibyte characters if OS supports them
1592 --enable-net-redirections
1593 enable /dev/tcp/host/port redirection
1594 --enable-process-substitution
1595 enable process substitution
1596 --enable-progcomp enable programmable completion and the complete
1598 --enable-prompt-string-decoding
1599 turn on escape character decoding in prompts
1600 --enable-readline turn on command line editing
1601 --enable-restricted enable a restricted shell
1602 --enable-select include select command
1603 --enable-separate-helpfiles
1604 use external files for help builtin documentation
1605 --enable-single-help-strings
1606 store help documentation as a single string to ease
1608 --enable-strict-posix-default
1609 configure bash to be posix-conformant by default
1610 --enable-translatable-strings
1611 include support for $"..." translatable strings
1612 --enable-usg-echo-default
1613 a synonym for --enable-xpg-echo-default
1614 --enable-xpg-echo-default
1615 make the echo builtin expand escape sequences by
1617 --enable-mem-scramble scramble memory on calls to malloc and free
1618 --enable-profiling allow profiling with gprof
1619 --enable-static-link link bash statically, for use as a root shell
1620 --disable-largefile omit support for large files
1621 --disable-nls do not use Native Language Support
1622 --enable-threads={posix|solaris|pth|windows}
1623 specify multithreading API
1624 --disable-threads build without multithread safety
1625 --disable-rpath do not hardcode runtime library paths
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-afs if you are running AFS
1631 --with-bash-malloc use the Bash version of malloc
1632 --with-curses use the curses library instead of the termcap
1634 --with-gnu-malloc synonym for --with-bash-malloc
1635 --with-installed-readline
1636 use a version of the readline library that is
1638 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1639 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1640 --without-libpth-prefix don't search
for libpth
in includedir and libdir
1641 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1642 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1643 --with-included-gettext use the GNU gettext library included here
1644 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1645 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1647 Some influential environment variables
:
1649 location of bash debugger initialization
file
1651 C compiler used when compiling binaries used only
at build
time
1653 Compilation options
(CFLAGS
) used when compiling binaries used
1656 Linker options
(LDFLAGS
) used when compiling binaries used only
1659 C preprocessor options
(CPPFLAGS
) used when compiling binaries
1660 used only
at build
time
1661 CC C compiler
command
1662 CFLAGS C compiler flags
1663 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1664 nonstandard directory
<lib dir
>
1665 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1666 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1667 you have headers
in a nonstandard directory
<include dir
>
1669 YACC The
`Yet Another Compiler Compiler' implementation to use.
1670 Defaults to the first program found out of: `bison
-y', `byacc',
1672 YFLAGS The list of arguments that will be passed by default to $YACC.
1673 This script will default YFLAGS to the empty string to avoid a
1674 default value of `-d' given by some make applications.
1676 Use these variables to override the choices made by `configure' or to
help
1677 it to
find libraries and programs with nonstandard names
/locations.
1679 Report bugs to
<bug-bash@gnu.org
>.
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1693 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1695 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1700 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1703 ac_abs_top_builddir
=$ac_pwd
1704 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir
=$ac_top_build_prefix
1709 .
) # We are building in place.
1711 ac_top_srcdir
=$ac_top_builddir_sub
1712 ac_abs_top_srcdir
=$ac_pwd ;;
1713 [\\/]* | ?
:[\\/]* ) # Absolute name.
1714 ac_srcdir
=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir
=$srcdir
1716 ac_abs_top_srcdir
=$srcdir ;;
1718 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1722 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1725 # Check for configure.gnu first; this name is used for a wrapper for
1726 # Metaconfig's "Configure" on case-insensitive file systems.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1734 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1743 bash configure
5.2-release
1744 generated by GNU Autoconf
2.71
1746 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1747 This configure
script is free software
; the Free Software Foundation
1748 gives unlimited permission to copy
, distribute and modify it.
1753 ## ------------------------ ##
1754 ## Autoconf initialization. ##
1755 ## ------------------------ ##
1757 # ac_fn_c_try_compile LINENO
1758 # --------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_compile
()
1762 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1763 rm -f conftest.
$ac_objext conftest.beam
1764 if { { ac_try
="$ac_compile"
1766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 printf "%s\n" "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext
1786 printf "%s\n" "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 printf %s "checking for $2... " >&6; }
1805 if eval test \${$3+y}
1807 printf %s "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 printf "%s\n" "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_compile
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1838 *) ac_try_echo
=$ac_try;;
1840 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 printf "%s\n" "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 if test -s conftest.err
; then
1845 grep -v '^ *+' conftest.err
>conftest.er1
1846 cat conftest.er1
>&5
1847 mv -f conftest.er1 conftest.err
1849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } > conftest.i
&& {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1857 printf "%s\n" "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.
$ac_ext >&5
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status
$ac_retval
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1873 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1874 if { { ac_try
="$ac_link"
1876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 printf "%s\n" "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1899 printf "%s\n" "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1906 # interfere with the next link command; also delete a directory that is
1907 # left behind by Apple's compiler. We do this before executing the actions.
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1912 } # ac_fn_c_try_link
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 printf %s "checking for $2... " >&6; }
1922 if eval test \${$3+y}
1924 printf %s "(cached) " >&6
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1930 #define $2 innocuous_$2
1932 /* System header to define __stub macros and hopefully few prototypes,
1933 which can conflict with char $2 (); below. */
1938 /* Override any GCC internal prototype to avoid an error.
1939 Use char because int might match the return type of a GCC
1940 builtin and then its argument prototype would still apply. */
1945 /* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948 #if defined __stub_$2 || defined __stub___$2
1960 if ac_fn_c_try_link "$LINENO"
1966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1967 conftest$ac_exeext conftest.$ac_ext
1970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 printf "%s\n" "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_func
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1979 # executables *can* be run.
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1986 *) ac_try_echo
=$ac_try;;
1988 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 printf "%s\n" "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 printf "%s\n" "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }
2007 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2008 printf "%s\n" "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_retval=$ac_status
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
2019 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020 # -------------------------------------------
2021 # Tests whether TYPE exists after having included INCLUDES, setting cache
2022 # variable VAR accordingly.
2023 ac_fn_c_check_type ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 printf %s "checking for $2... " >&6; }
2028 if eval test \${$3+y}
2030 printf %s "(cached) " >&6
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2045 if ac_fn_c_try_compile "$LINENO"
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2059 if ac_fn_c_try_compile "$LINENO"
2065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 printf "%s\n" "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_type
2076 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2077 # ------------------------------------------------------------------
2078 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2079 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085 printf %s "checking whether $as_decl_name is declared... " >&6; }
2086 if eval test \${$3+y}
2088 printf %s "(cached) " >&6
2090 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091 eval ac_save_FLAGS=\$$6
2092 as_fn_append $6 " $5"
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 #ifndef $as_decl_name
2101 (void) $as_decl_use;
2103 (void) $as_decl_name;
2111 if ac_fn_c_try_compile "$LINENO"
2117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2118 eval $6=\$ac_save_FLAGS
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 printf "%s\n" "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_check_decl
2128 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2129 # --------------------------------------------
2130 # Tries to find the compile-time value of EXPR in a program that includes
2131 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2133 ac_fn_c_compute_int ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if test "$cross_compiling" = yes; then
2137 # Depending upon the size, compute the lo and hi bounds.
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) >= 0)];
2146 return test_array [0];
2152 if ac_fn_c_try_compile "$LINENO"
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"
2172 ac_hi=$ac_mid; break
2174 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2175 if test $ac_lo -le $ac_mid; then
2179 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) < 0)];
2192 return test_array [0];
2198 if ac_fn_c_try_compile "$LINENO"
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"
2218 ac_lo=$ac_mid; break
2220 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2221 if test $ac_mid -le $ac_hi; then
2225 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2235 # Binary search between lo and hi bounds.
2236 while test "x$ac_lo" != "x$ac_hi"; do
2237 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2244 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2246 return test_array [0];
2252 if ac_fn_c_try_compile "$LINENO"
2256 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2261 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2268 static long int longval (void) { return $2; }
2269 static unsigned long int ulongval (void) { return $2; }
2276 FILE *f = fopen ("conftest.val", "w");
2281 long int i = longval ();
2284 fprintf (f, "%ld", i);
2288 unsigned long int i = ulongval ();
2291 fprintf (f, "%lu", i);
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2301 if ac_fn_c_try_run "$LINENO"
2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2308 conftest.$ac_objext conftest.beam conftest.$ac_ext
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 as_fn_set_status $ac_retval
2315 } # ac_fn_c_compute_int
2317 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2318 # ----------------------------------------------------
2319 # Tries to find if the field MEMBER exists in type AGGR, after including
2320 # INCLUDES, setting cache variable VAR accordingly.
2321 ac_fn_c_check_member ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2325 printf %s "checking for $2.$3... " >&6; }
2326 if eval test \${$4+y}
2328 printf %s "(cached) " >&6
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2343 if ac_fn_c_try_compile "$LINENO"
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2354 if (sizeof ac_aggr.$3)
2360 if ac_fn_c_try_compile "$LINENO"
2366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 printf "%s\n" "$ac_res" >&6; }
2373 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375 } # ac_fn_c_check_member
2376 ac_configure_args_raw=
2381 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2383 as_fn_append ac_configure_args_raw " '$ac_arg'"
2386 case $ac_configure_args_raw in
2390 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2391 ac_unsafe_a="$ac_unsafe_z#~
"
2392 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
2393 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2396 cat >config.log <<_ACEOF
2397 This file contains any messages produced by compilers while
2398 running configure, to aid debugging if configure makes a mistake.
2400 It was created by bash $as_me 5.2-release, which was
2401 generated by GNU Autoconf 2.71. Invocation command line was
2403 $ $0$ac_configure_args_raw
2413 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2414 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2415 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2416 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2417 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2419 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2420 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2422 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2423 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2424 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2425 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2426 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2427 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2428 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 case $as_dir in #(((
2439 *) as_dir=$as_dir/ ;;
2441 printf "%s
\n" "PATH
: $as_dir"
2457 # Keep a trace of the command line.
2458 # Strip out --no-create and --no-recursion so they do not pile up.
2459 # Strip out --silent because we don't want to record it for future runs.
2460 # Also quote any args containing shell meta-characters.
2461 # Make two passes to allow for proper duplicate-argument suppression.
2465 ac_must_keep_next=false
2471 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2473 | -silent | --silent | --silen | --sile | --sil)
2476 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2479 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2481 as_fn_append ac_configure_args1 " '$ac_arg'"
2482 if test $ac_must_keep_next = true; then
2483 ac_must_keep_next=false # Got value, back to normal.
2486 *=* | --config-cache | -C | -disable-* | --disable-* \
2487 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2488 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2489 | -with-* | --with-* | -without-* | --without-* | --x)
2490 case "$ac_configure_args0 " in
2491 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2494 -* ) ac_must_keep_next=true ;;
2497 as_fn_append ac_configure_args " '$ac_arg'"
2502 { ac_configure_args0=; unset ac_configure_args0;}
2503 { ac_configure_args1=; unset ac_configure_args1;}
2505 # When interrupted or exit'd, cleanup temporary files, and complete
2506 # config.log. We remove comments because anyway the quotes in there
2507 # would cause problems or look ugly.
2508 # WARNING: Use '\'' to represent an apostrophe within the trap.
2509 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2510 trap 'exit_status=$?
2513 # Save into config.log some information that might help in debugging.
2517 printf "%s
\n" "## ---------------- ##
2518 ## Cache variables. ##
2519 ## ---------------- ##"
2521 # The following way of writing the cache mishandles newlines in values,
2523 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2524 eval ac_val
=\$
$ac_var
2528 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2529 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2532 _ | IFS | as_nl
) ;; #(
2533 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
2534 *) { eval $ac_var=; unset $ac_var;} ;;
2539 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2540 *${as_nl}ac_space
=\
*)
2542 "s/'\''/'\''\\\\'\'''\''/g;
2543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553 printf "%s\n" "## ----------------- ##
2554 ## Output variables. ##
2555 ## ----------------- ##"
2557 for ac_var
in $ac_subst_vars
2559 eval ac_val
=\$
$ac_var
2561 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563 printf "%s\n" "$ac_var='\''$ac_val'\''"
2567 if test -n "$ac_subst_files"; then
2568 printf "%s\n" "## ------------------- ##
2569 ## File substitutions. ##
2570 ## ------------------- ##"
2572 for ac_var in $ac_subst_files
2574 eval ac_val=\$$ac_var
2576 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578 printf "%s\n" "$ac_var='\''$ac_val'\''"
2583 if test -s confdefs.h
; then
2584 printf "%s\n" "## ----------- ##
2591 test "$ac_signal" != 0 &&
2592 printf "%s\n" "$as_me: caught signal $ac_signal"
2593 printf "%s\n" "$as_me: exit $exit_status"
2595 rm -f core
*.core core.conftest.
* &&
2596 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2599 for ac_signal in 1 2 13 15; do
2600 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2605 rm -f -r conftest* confdefs.h
2607 printf "%s\n" "/* confdefs.h */" > confdefs.h
2609 # Predefined preprocessor variables.
2611 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2613 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2615 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2617 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2619 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2621 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2624 # Let the site file select an alternate cache file if it wants to.
2625 # Prefer an explicitly selected file to automatically selected ones.
2626 if test -n "$CONFIG_SITE"; then
2627 ac_site_files="$CONFIG_SITE"
2628 elif test "x$prefix" != xNONE; then
2629 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2631 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2634 for ac_site_file in $ac_site_files
2636 case $ac_site_file in #(
2640 ac_site_file=./$ac_site_file ;;
2642 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2645 sed 's
/^
/|
/' "$ac_site_file" >&5
2647 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2649 as_fn_error $? "failed to load site script $ac_site_file
2650 See \`config.log
' for more details" "$LINENO" 5; }
2654 if test -r "$cache_file"; then
2655 # Some versions of bash will fail to source /dev/null (special files
2656 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2657 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662 *) . "./$cache_file";;
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2671 # Test code for whether the C compiler supports C89 (global declarations)
2672 ac_c_conftest_c89_globals='
2673 /* Does the compiler advertise C89 conformance?
2674 Do not
test the value of __STDC__
, because some compilers
set it to
0
2675 while being otherwise adequately conformant.
*/
2676 #if !defined __STDC__
2677 # error "Compiler does not advertise C89 conformance"
2683 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2684 struct buf
{ int x
; };
2685 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2686 static char
*e
(p
, i
)
2692 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2697 s
= g
(p
, va_arg
(v
,int
));
2702 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2703 function prototypes and stuff
, but not \xHH hex character constants.
2704 These
do not provoke an error unfortunately
, instead are silently treated
2705 as an
"x". The following induces an error
, until -std is added to get
2706 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2707 array size
at least. It is necessary to
write \x00 == 0 to get something
2708 that is true only with
-std.
*/
2709 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2711 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2712 inside
strings and character constants.
*/
2713 #define FOO(x) '\''x'\''
2714 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2716 int
test (int i
, double x
);
2717 struct s1
{int
(*f
) (int a
);};
2718 struct s2
{int
(*f
) (double a
);};
2719 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2722 # Test code for whether the C compiler supports C89 (body of main).
2723 ac_c_conftest_c89_main='
2724 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2727 # Test code for whether the C compiler supports C99 (global declarations)
2728 ac_c_conftest_c99_globals='
2729 // Does the compiler advertise C99 conformance?
2730 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2731 # error "Compiler does not advertise C99 conformance"
2734 #include <stdbool.h>
2735 extern int puts
(const char
*);
2736 extern int
printf (const char
*, ...
);
2737 extern int dprintf
(int
, const char
*, ...
);
2738 extern void
*malloc
(size_t
);
2740 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2741 // dprintf is used instead of fprintf to avoid needing to
declare
2743 #define debug(...) dprintf (2, __VA_ARGS__)
2744 #define showlist(...) puts (#__VA_ARGS__)
2745 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2747 test_varargs_macros
(void
)
2752 debug
("X = %d\n", x
);
2753 showlist
(The first
, second
, and third items.
);
2754 report
(x
>y
, "x is %d but y is %d", x
, y
);
2757 // Check long long types.
2758 #define BIG64 18446744073709551615ull
2759 #define BIG32 4294967295ul
2760 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2762 #error "your preprocessor is broken"
2766 #error "your preprocessor is broken"
2768 static long long int bignum
= -9223372036854775807LL;
2769 static unsigned long long int ubignum
= BIG64
;
2771 struct incomplete_array
2779 const wchar_t
*name
;
2783 typedef const char
*ccp
;
2786 test_restrict
(ccp restrict text
)
2788 // See
if C
++-style comments work.
2789 // Iterate through items via the restricted pointer.
2790 // Also check
for declarations
in for loops.
2791 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2796 // Check varargs and va_copy.
2798 test_varargs
(const char
*format
, ...
)
2801 va_start
(args
, format
);
2803 va_copy
(args_copy
, args
);
2805 const char
*str
= "";
2813 case '\''s
'\'': // string
2814 str
= va_arg
(args_copy
, const char
*);
2816 case '\''d
'\'': // int
2817 number
= va_arg
(args_copy
, int
);
2819 case '\''f
'\'': // float
2820 fnumber
= va_arg
(args_copy
, double
);
2829 return *str
&& number
&& fnumber
;
2833 # Test code for whether the C compiler supports C99 (body of main).
2834 ac_c_conftest_c99_main='
2836 _Bool success
= false
;
2837 success |
= (argc
!= 0);
2840 if (test_restrict
("String literal") == 0)
2842 char
*restrict newvar
= "Another string";
2845 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2846 test_varargs_macros
();
2848 // Check flexible array members.
2849 struct incomplete_array
*ia
=
2850 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2852 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2853 ia-
>data
[i
] = i
* 1.234;
2855 // Check named initializers.
2856 struct named_init ni
= {
2858 .name
= L
"Test wide string",
2859 .average
= 543.34343,
2864 int dynamic_array
[ni.number
];
2865 dynamic_array
[0] = argv
[0][0];
2866 dynamic_array
[ni.number
- 1] = 543;
2868 // work around unused variable warnings
2869 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2870 || dynamic_array
[ni.number
- 1] != 543);
2873 # Test code for whether the C compiler supports C11 (global declarations)
2874 ac_c_conftest_c11_globals='
2875 // Does the compiler advertise C11 conformance?
2876 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2877 # error "Compiler does not advertise C11 conformance"
2881 char _Alignas
(double
) aligned_as_double
;
2882 char _Alignas
(0) no_special_alignment
;
2883 extern char aligned_as_int
;
2884 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2889 int_alignment
= _Alignof
(int
),
2890 int_array_alignment
= _Alignof
(int
[100]),
2891 char_alignment
= _Alignof
(char
)
2893 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2896 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2898 // Check _Static_assert.
2899 struct test_static_assert
2902 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2903 "_Static_assert does not work in struct");
2907 // Check UTF-8 literals.
2908 #define u8 syntax error!
2909 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2911 // Check duplicate typedefs.
2912 typedef long
*long_ptr
;
2913 typedef long int
*long_ptr
;
2914 typedef long_ptr long_ptr
;
2916 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2920 struct
{ int i
; int j
; };
2921 struct
{ int k
; long int l
; } w
;
2927 # Test code for whether the C compiler supports C11 (body of main).
2928 ac_c_conftest_c11_main='
2929 _Static_assert
((offsetof
(struct anonymous
, i
)
2930 == offsetof
(struct anonymous
, w.k
)),
2931 "Anonymous union alignment botch");
2937 # Test code for whether the C compiler supports C11 (complete).
2938 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2939 ${ac_c_conftest_c99_globals}
2940 ${ac_c_conftest_c11_globals}
2943 main (int argc, char **argv)
2946 ${ac_c_conftest_c89_main}
2947 ${ac_c_conftest_c99_main}
2948 ${ac_c_conftest_c11_main}
2953 # Test code for whether the C compiler supports C99 (complete).
2954 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2955 ${ac_c_conftest_c99_globals}
2958 main (int argc, char **argv)
2961 ${ac_c_conftest_c89_main}
2962 ${ac_c_conftest_c99_main}
2967 # Test code for whether the C compiler supports C89 (complete).
2968 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2971 main (int argc, char **argv)
2974 ${ac_c_conftest_c89_main}
2979 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2980 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2981 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2982 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2983 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2984 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2985 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2986 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2987 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2988 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2989 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2990 gt_needs="$gt_needs need-ngettext"
2991 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2992 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2993 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
2994 as_fn_append ac_func_c_list " uselocale HAVE_USELOCALE"
2995 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
2996 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2997 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2998 as_fn_append ac_func_c_list " alarm HAVE_ALARM"
2999 as_fn_append ac_func_c_list " fpurge HAVE_FPURGE"
3000 as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE"
3001 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3002 as_fn_append ac_func_c_list " vsnprintf HAVE_VSNPRINTF"
3004 # Auxiliary files required by this configure script.
3005 ac_aux_files="config.rpath install-sh config.guess config.sub"
3007 # Locations in which to look for auxiliary files.
3008 ac_aux_dir_candidates="${srcdir}/./support"
3010 # Search for a directory containing all of the required auxiliary files,
3011 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3012 # If we don't
find one directory that contains all the files we need
,
3013 # we report the set of missing files from the *first* directory in
3014 # $ac_aux_dir_candidates and give up.
3015 ac_missing_aux_files
=""
3016 ac_first_candidate
=:
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 for as_dir
in $ac_aux_dir_candidates
3023 case $as_dir in #(((
3026 *) as_dir
=$as_dir/ ;;
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3031 ac_aux_dir_found
=yes
3033 for ac_aux
in $ac_aux_files
3035 # As a special case, if "install-sh" is required, that requirement
3036 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3037 # and $ac_install_sh is set appropriately for whichever one is found.
3038 if test x
"$ac_aux" = x
"install-sh"
3040 if test -f "${as_dir}install-sh"; then
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3042 ac_install_sh
="${as_dir}install-sh -c"
3043 elif test -f "${as_dir}install.sh"; then
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3045 ac_install_sh
="${as_dir}install.sh -c"
3046 elif test -f "${as_dir}shtool"; then
3047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3048 ac_install_sh
="${as_dir}shtool install -c"
3051 if $ac_first_candidate; then
3052 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
3058 if test -f "${as_dir}${ac_aux}"; then
3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3062 if $ac_first_candidate; then
3063 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
3070 if test "$ac_aux_dir_found" = yes; then
3071 ac_aux_dir
="$as_dir"
3074 ac_first_candidate
=false
3083 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3087 # These three variables are undocumented and unsupported,
3088 # and are intended to be withdrawn in a future Autoconf release.
3089 # They can cause serious problems if a builder's source tree is in a directory
3090 # whose full name contains unusual characters.
3091 if test -f "${ac_aux_dir}config.guess"; then
3092 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
3094 if test -f "${ac_aux_dir}config.sub"; then
3095 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3097 if test -f "$ac_aux_dir/configure"; then
3098 ac_configure
="$SHELL ${ac_aux_dir}configure"
3101 # Check that the precious variables saved in the cache have kept the same
3103 ac_cache_corrupted
=false
3104 for ac_var
in $ac_precious_vars; do
3105 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3106 eval ac_new_set
=\
$ac_env_${ac_var}_set
3107 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3108 eval ac_new_val
=\
$ac_env_${ac_var}_value
3109 case $ac_old_set,$ac_new_set in
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113 ac_cache_corrupted
=: ;;
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117 ac_cache_corrupted
=: ;;
3120 if test "x$ac_old_val" != "x$ac_new_val"; then
3121 # differences in whitespace do not lead to failure.
3122 ac_old_val_w
=`echo x $ac_old_val`
3123 ac_new_val_w
=`echo x $ac_new_val`
3124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127 ac_cache_corrupted
=:
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131 eval $ac_var=\
$ac_old_val
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3134 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3136 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3139 # Pass precious variables to config.status.
3140 if test "$ac_new_set" = set; then
3142 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143 *) ac_arg
=$ac_var=$ac_new_val ;;
3145 case " $ac_configure_args " in
3146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3147 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3151 if $ac_cache_corrupted; then
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3156 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3157 and start over" "$LINENO" 5
3159 ## -------------------- ##
3160 ## Main body of script. ##
3161 ## -------------------- ##
3164 ac_cpp
='$CPP $CPPFLAGS'
3165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3175 ac_config_headers
="$ac_config_headers config.h"
3181 case "$RELSTATUS" in
3182 alp
*|bet
*|dev
*|rc
*|releng
*|maint
*) DEBUG
='-DDEBUG' MALLOC_DEBUG
='-DMALLOC_DEBUG' ;;
3183 *) DEBUG
= MALLOC_DEBUG
= ;;
3189 # Make sure we can run config.sub.
3190 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3191 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3194 printf %s
"checking build system type... " >&6; }
3195 if test ${ac_cv_build+y}
3197 printf %s
"(cached) " >&6
3199 ac_build_alias
=$build_alias
3200 test "x$ac_build_alias" = x
&&
3201 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3202 test "x$ac_build_alias" = x
&&
3203 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3204 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3205 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3209 printf "%s\n" "$ac_cv_build" >&6; }
3210 case $ac_cv_build in
3212 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3215 ac_save_IFS
=$IFS; IFS
='-'
3221 # Remember, the first character of IFS is used to create $*,
3222 # except with old shells:
3225 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3229 printf %s
"checking host system type... " >&6; }
3230 if test ${ac_cv_host+y}
3232 printf %s
"(cached) " >&6
3234 if test "x$host_alias" = x
; then
3235 ac_cv_host
=$ac_cv_build
3237 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3238 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3243 printf "%s\n" "$ac_cv_host" >&6; }
3246 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3249 ac_save_IFS
=$IFS; IFS
='-'
3255 # Remember, the first character of IFS is used to create $*,
3256 # except with old shells:
3259 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3267 opt_with_installed_readline
=no
3271 case "${host_cpu}-${host_os}" in
3272 # mostly obsolete platforms
3273 alpha
*-*) opt_bash_malloc
=no
;; # alpha running osf/1 or linux
3274 *[Cc
]ray
*-*) opt_bash_malloc
=no
;; # Crays
3275 *-osf1*) opt_bash_malloc
=no
;; # other osf/1 machines
3276 *-dgux*) opt_bash_malloc
=no
;; # DG/UX machines
3277 sparc-svr4
*) opt_bash_malloc
=no
;; # sparc SVR4, SVR4.2
3278 m68k-sysv
) opt_bash_malloc
=no
;; # fixes file descriptor leak in closedir
3279 *-bsdi2.1|
*-bsdi3.?
) opt_bash_malloc
=no
; : ${CC:=shlicc2} ;; # for loadable builtins
3280 *-opennt*|
*-interix*) opt_bash_malloc
=no
;; # Interix, now owned by Microsoft
3281 *-beos*) opt_bash_malloc
=no
;; # they say it's suitable
3282 # These need additional investigation
3283 sparc-linux
*) opt_bash_malloc
=no
;; # sparc running linux; requires ELF
3284 *-aix*) opt_bash_malloc
=no
;; # AIX machines
3285 *-cygwin*) opt_bash_malloc
=no
;; # Cygnus's CYGWIN environment
3286 # These lack a working sbrk(2)
3287 aarch64-freebsd
*) opt_bash_malloc
=no
;;
3288 riscv
*-freebsd*) opt_bash_malloc
=no
;;
3289 # Mach-derived systems have a ton of extra malloc functions and lack sbrk(2)
3290 *-nextstep*) opt_bash_malloc
=no
;; # NeXT machines running NeXTstep
3291 *-openstep*) opt_bash_malloc
=no
;; # i386/Sparc/HP machines running Openstep
3292 *-macos*) opt_bash_malloc
=no
;; # Apple MacOS X
3293 *-rhapsody*) opt_bash_malloc
=no
;; # Apple Rhapsody (MacOS X)
3294 *-darwin*) opt_bash_malloc
=no
;; # Apple Darwin (MacOS X)
3295 *-machten4) opt_bash_malloc
=no
;; # MachTen 4.x
3296 # Niche or non-mainstream-shell-user systems
3297 *-qnx*) opt_bash_malloc
=no
;; # QNX 4.2, QNX [67].x
3298 *-nsk*) opt_bash_malloc
=no
;; # HP NonStop
3299 *-haiku*) opt_bash_malloc
=no
;; # Haiku OS
3300 *-genode*) opt_bash_malloc
=no
;; # Genode has no sbrk
3303 # memory scrambling on free()
3304 case "${host_os}" in
3305 sco3.2v5
*|sco3.2v4
*) opt_memscramble
=no
;;
3306 *) opt_memscramble
=yes ;;
3312 # Check whether --with-afs was given.
3313 if test ${with_afs+y}
3315 withval
=$with_afs; opt_afs
=$withval
3319 # Check whether --with-bash-malloc was given.
3320 if test ${with_bash_malloc+y}
3322 withval
=$with_bash_malloc; opt_bash_malloc
=$withval
3326 # Check whether --with-curses was given.
3327 if test ${with_curses+y}
3329 withval
=$with_curses; opt_curses
=$withval
3333 # Check whether --with-gnu-malloc was given.
3334 if test ${with_gnu_malloc+y}
3336 withval
=$with_gnu_malloc; opt_bash_malloc
=$withval
3340 # Check whether --with-installed-readline was given.
3341 if test ${with_installed_readline+y}
3343 withval
=$with_installed_readline; opt_with_installed_readline
=$withval
3347 if test "$opt_bash_malloc" = yes; then
3348 MALLOC_TARGET
=malloc
3351 MALLOC_LIB
='-lmalloc'
3352 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
3353 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
3354 MALLOC_DEP
='$(MALLOC_LIBRARY)'
3356 printf "%s\n" "#define USING_BASH_MALLOC 1" >>confdefs.h
3365 if test "$opt_afs" = yes; then
3366 printf "%s\n" "#define AFS 1" >>confdefs.h
3370 if test "$opt_curses" = yes; then
3374 if test -z "${DEBUGGER_START_FILE}"; then
3375 DEBUGGER_START_FILE
='${datadir}/bashdb/bashdb-main.inc'
3378 opt_minimal_config
=no
3384 opt_bang_history
=yes
3387 opt_process_subst
=yes
3388 opt_prompt_decoding
=yes
3391 opt_array_variables
=yes
3392 opt_dparen_arith
=yes
3393 opt_extended_glob
=yes
3394 opt_brace_expansion
=yes
3395 opt_disabled_builtins
=no
3396 opt_command_timing
=yes
3399 opt_cond_command
=yes
3402 opt_arith_for_command
=yes
3405 opt_separate_help
=no
3408 opt_single_longdoc_strings
=yes
3409 opt_casemod_attrs
=yes
3410 opt_casemod_expansions
=yes
3411 opt_extglob_default
=no
3412 opt_dircomplete_expand_default
=no
3413 opt_globascii_default
=yes
3414 opt_function_import
=yes
3415 opt_dev_fd_stat_broken
=no
3416 opt_alt_array_impl
=no
3417 opt_translatable_strings
=yes
3424 # Check whether --enable-minimal-config was given.
3425 if test ${enable_minimal_config+y}
3427 enableval
=$enable_minimal_config; opt_minimal_config
=$enableval
3431 if test $opt_minimal_config = yes; then
3432 opt_job_control
=no opt_alias
=no opt_readline
=no
3433 opt_history
=no opt_bang_history
=no opt_dirstack
=no
3434 opt_restricted
=no opt_process_subst
=no opt_prompt_decoding
=no
3435 opt_select
=no opt_help
=no opt_array_variables
=no opt_dparen_arith
=no
3436 opt_brace_expansion
=no opt_disabled_builtins
=no opt_command_timing
=no
3437 opt_extended_glob
=no opt_cond_command
=no opt_arith_for_command
=no
3438 opt_net_redirs
=no opt_progcomp
=no opt_separate_help
=no
3439 opt_multibyte
=yes opt_cond_regexp
=no opt_coproc
=no
3440 opt_casemod_attrs
=no opt_casemod_expansions
=no opt_extglob_default
=no
3441 opt_translatable_strings
=no
3442 opt_globascii_default
=yes
3445 # Check whether --enable-alias was given.
3446 if test ${enable_alias+y}
3448 enableval
=$enable_alias; opt_alias
=$enableval
3451 # Check whether --enable-alt-array-implementation was given.
3452 if test ${enable_alt_array_implementation+y}
3454 enableval
=$enable_alt_array_implementation; opt_alt_array_impl
=$enableval
3457 # Check whether --enable-arith-for-command was given.
3458 if test ${enable_arith_for_command+y}
3460 enableval
=$enable_arith_for_command; opt_arith_for_command
=$enableval
3463 # Check whether --enable-array-variables was given.
3464 if test ${enable_array_variables+y}
3466 enableval
=$enable_array_variables; opt_array_variables
=$enableval
3469 # Check whether --enable-bang-history was given.
3470 if test ${enable_bang_history+y}
3472 enableval
=$enable_bang_history; opt_bang_history
=$enableval
3475 # Check whether --enable-brace-expansion was given.
3476 if test ${enable_brace_expansion+y}
3478 enableval
=$enable_brace_expansion; opt_brace_expansion
=$enableval
3481 # Check whether --enable-casemod-attributes was given.
3482 if test ${enable_casemod_attributes+y}
3484 enableval
=$enable_casemod_attributes; opt_casemod_attrs
=$enableval
3487 # Check whether --enable-casemod-expansions was given.
3488 if test ${enable_casemod_expansions+y}
3490 enableval
=$enable_casemod_expansions; opt_casemod_expansions
=$enableval
3493 # Check whether --enable-command-timing was given.
3494 if test ${enable_command_timing+y}
3496 enableval
=$enable_command_timing; opt_command_timing
=$enableval
3499 # Check whether --enable-cond-command was given.
3500 if test ${enable_cond_command+y}
3502 enableval
=$enable_cond_command; opt_cond_command
=$enableval
3505 # Check whether --enable-cond-regexp was given.
3506 if test ${enable_cond_regexp+y}
3508 enableval
=$enable_cond_regexp; opt_cond_regexp
=$enableval
3511 # Check whether --enable-coprocesses was given.
3512 if test ${enable_coprocesses+y}
3514 enableval
=$enable_coprocesses; opt_coproc
=$enableval
3517 # Check whether --enable-debugger was given.
3518 if test ${enable_debugger+y}
3520 enableval
=$enable_debugger; opt_debugger
=$enableval
3523 # Check whether --enable-dev-fd-stat-broken was given.
3524 if test ${enable_dev_fd_stat_broken+y}
3526 enableval
=$enable_dev_fd_stat_broken; opt_dev_fd_stat_broken
=$enableval
3529 # Check whether --enable-direxpand-default was given.
3530 if test ${enable_direxpand_default+y}
3532 enableval
=$enable_direxpand_default; opt_dircomplete_expand_default
=$enableval
3535 # Check whether --enable-directory-stack was given.
3536 if test ${enable_directory_stack+y}
3538 enableval
=$enable_directory_stack; opt_dirstack
=$enableval
3541 # Check whether --enable-disabled-builtins was given.
3542 if test ${enable_disabled_builtins+y}
3544 enableval
=$enable_disabled_builtins; opt_disabled_builtins
=$enableval
3547 # Check whether --enable-dparen-arithmetic was given.
3548 if test ${enable_dparen_arithmetic+y}
3550 enableval
=$enable_dparen_arithmetic; opt_dparen_arith
=$enableval
3553 # Check whether --enable-extended-glob was given.
3554 if test ${enable_extended_glob+y}
3556 enableval
=$enable_extended_glob; opt_extended_glob
=$enableval
3559 # Check whether --enable-extended-glob-default was given.
3560 if test ${enable_extended_glob_default+y}
3562 enableval
=$enable_extended_glob_default; opt_extglob_default
=$enableval
3565 # Check whether --enable-function-import was given.
3566 if test ${enable_function_import+y}
3568 enableval
=$enable_function_import; opt_function_import
=$enableval
3571 # Check whether --enable-glob-asciiranges-default was given.
3572 if test ${enable_glob_asciiranges_default+y}
3574 enableval
=$enable_glob_asciiranges_default; opt_globascii_default
=$enableval
3577 # Check whether --enable-help-builtin was given.
3578 if test ${enable_help_builtin+y}
3580 enableval
=$enable_help_builtin; opt_help
=$enableval
3583 # Check whether --enable-history was given.
3584 if test ${enable_history+y}
3586 enableval
=$enable_history; opt_history
=$enableval
3589 # Check whether --enable-job-control was given.
3590 if test ${enable_job_control+y}
3592 enableval
=$enable_job_control; opt_job_control
=$enableval
3595 # Check whether --enable-multibyte was given.
3596 if test ${enable_multibyte+y}
3598 enableval
=$enable_multibyte; opt_multibyte
=$enableval
3601 # Check whether --enable-net-redirections was given.
3602 if test ${enable_net_redirections+y}
3604 enableval
=$enable_net_redirections; opt_net_redirs
=$enableval
3607 # Check whether --enable-process-substitution was given.
3608 if test ${enable_process_substitution+y}
3610 enableval
=$enable_process_substitution; opt_process_subst
=$enableval
3613 # Check whether --enable-progcomp was given.
3614 if test ${enable_progcomp+y}
3616 enableval
=$enable_progcomp; opt_progcomp
=$enableval
3619 # Check whether --enable-prompt-string-decoding was given.
3620 if test ${enable_prompt_string_decoding+y}
3622 enableval
=$enable_prompt_string_decoding; opt_prompt_decoding
=$enableval
3625 # Check whether --enable-readline was given.
3626 if test ${enable_readline+y}
3628 enableval
=$enable_readline; opt_readline
=$enableval
3631 # Check whether --enable-restricted was given.
3632 if test ${enable_restricted+y}
3634 enableval
=$enable_restricted; opt_restricted
=$enableval
3637 # Check whether --enable-select was given.
3638 if test ${enable_select+y}
3640 enableval
=$enable_select; opt_select
=$enableval
3643 # Check whether --enable-separate-helpfiles was given.
3644 if test ${enable_separate_helpfiles+y}
3646 enableval
=$enable_separate_helpfiles; opt_separate_help
=$enableval
3649 # Check whether --enable-single-help-strings was given.
3650 if test ${enable_single_help_strings+y}
3652 enableval
=$enable_single_help_strings; opt_single_longdoc_strings
=$enableval
3655 # Check whether --enable-strict-posix-default was given.
3656 if test ${enable_strict_posix_default+y}
3658 enableval
=$enable_strict_posix_default; opt_strict_posix
=$enableval
3661 # Check whether --enable-translatable-strings was given.
3662 if test ${enable_translatable_strings+y}
3664 enableval
=$enable_translatable_strings; opt_translatable_strings
=$enableval
3667 # Check whether --enable-usg-echo-default was given.
3668 if test ${enable_usg_echo_default+y}
3670 enableval
=$enable_usg_echo_default; opt_xpg_echo
=$enableval
3673 # Check whether --enable-xpg-echo-default was given.
3674 if test ${enable_xpg_echo_default+y}
3676 enableval
=$enable_xpg_echo_default; opt_xpg_echo
=$enableval
3680 # Check whether --enable-mem-scramble was given.
3681 if test ${enable_mem_scramble+y}
3683 enableval
=$enable_mem_scramble; opt_memscramble
=$enableval
3686 # Check whether --enable-profiling was given.
3687 if test ${enable_profiling+y}
3689 enableval
=$enable_profiling; opt_profiling
=$enableval
3692 # Check whether --enable-static-link was given.
3693 if test ${enable_static_link+y}
3695 enableval
=$enable_static_link; opt_static_link
=$enableval
3706 if test $opt_alias = yes; then
3707 printf "%s\n" "#define ALIAS 1" >>confdefs.h
3710 if test $opt_dirstack = yes; then
3711 printf "%s\n" "#define PUSHD_AND_POPD 1" >>confdefs.h
3714 if test $opt_restricted = yes; then
3715 printf "%s\n" "#define RESTRICTED_SHELL 1" >>confdefs.h
3718 if test $opt_process_subst = yes; then
3719 printf "%s\n" "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3722 if test $opt_prompt_decoding = yes; then
3723 printf "%s\n" "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3726 if test $opt_select = yes; then
3727 printf "%s\n" "#define SELECT_COMMAND 1" >>confdefs.h
3730 if test $opt_help = yes; then
3731 printf "%s\n" "#define HELP_BUILTIN 1" >>confdefs.h
3734 if test $opt_array_variables = yes; then
3735 printf "%s\n" "#define ARRAY_VARS 1" >>confdefs.h
3738 if test $opt_dparen_arith = yes; then
3739 printf "%s\n" "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3742 if test $opt_brace_expansion = yes; then
3743 printf "%s\n" "#define BRACE_EXPANSION 1" >>confdefs.h
3746 if test $opt_disabled_builtins = yes; then
3747 printf "%s\n" "#define DISABLED_BUILTINS 1" >>confdefs.h
3750 if test $opt_command_timing = yes; then
3751 printf "%s\n" "#define COMMAND_TIMING 1" >>confdefs.h
3754 if test $opt_xpg_echo = yes ; then
3755 printf "%s\n" "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3758 if test $opt_strict_posix = yes; then
3759 printf "%s\n" "#define STRICT_POSIX 1" >>confdefs.h
3762 if test $opt_extended_glob = yes ; then
3763 printf "%s\n" "#define EXTENDED_GLOB 1" >>confdefs.h
3766 if test $opt_extglob_default = yes; then
3767 printf "%s\n" "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3770 printf "%s\n" "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3773 if test $opt_cond_command = yes ; then
3774 printf "%s\n" "#define COND_COMMAND 1" >>confdefs.h
3777 if test $opt_cond_regexp = yes ; then
3778 printf "%s\n" "#define COND_REGEXP 1" >>confdefs.h
3781 if test $opt_coproc = yes; then
3782 printf "%s\n" "#define COPROCESS_SUPPORT 1" >>confdefs.h
3785 if test $opt_arith_for_command = yes; then
3786 printf "%s\n" "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3789 if test $opt_net_redirs = yes; then
3790 printf "%s\n" "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3793 if test $opt_progcomp = yes; then
3794 printf "%s\n" "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3797 if test $opt_multibyte = no
; then
3798 printf "%s\n" "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3801 if test $opt_debugger = yes; then
3802 printf "%s\n" "#define DEBUGGER 1" >>confdefs.h
3805 if test $opt_casemod_attrs = yes; then
3806 printf "%s\n" "#define CASEMOD_ATTRS 1" >>confdefs.h
3809 if test $opt_casemod_expansions = yes; then
3810 printf "%s\n" "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3813 if test $opt_dircomplete_expand_default = yes; then
3814 printf "%s\n" "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3817 if test $opt_globascii_default = yes; then
3818 printf "%s\n" "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3821 printf "%s\n" "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3824 if test $opt_function_import = yes; then
3825 printf "%s\n" "#define FUNCTION_IMPORT 1" >>confdefs.h
3828 if test $opt_dev_fd_stat_broken = yes; then
3829 printf "%s\n" "#define DEV_FD_STAT_BROKEN 1" >>confdefs.h
3832 if test $opt_alt_array_impl = yes; then
3833 printf "%s\n" "#define ALT_ARRAY_IMPLEMENTATION 1" >>confdefs.h
3837 if test $opt_translatable_strings = yes; then
3838 printf "%s\n" "#define TRANSLATABLE_STRINGS 1" >>confdefs.h
3842 if test $opt_memscramble = yes; then
3843 printf "%s\n" "#define MEMSCRAMBLE 1" >>confdefs.h
3847 if test "$opt_minimal_config" = yes; then
3848 TESTSCRIPT
=run-minimal
3853 HELPDIR
= HELPDIRDEFINE
= HELPINSTALL
= HELPFILES_TARGET
=
3854 if test "$opt_separate_help" != no
; then
3855 if test "$opt_separate_help" = "yes" ; then
3856 HELPDIR
='${datadir}/bash/helpfiles'
3858 HELPDIR
=$opt_separate_help
3860 HELPDIRDEFINE
='-H ${HELPDIR}'
3861 HELPINSTALL
='install-help'
3862 HELPFILES_TARGET
='helpdoc'
3865 if test "$opt_single_longdoc_strings" != "yes"; then
3888 if test -z "$CFLAGS"; then
3893 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3906 ac_cpp
='$CPP $CPPFLAGS'
3907 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 printf %s
"checking for $ac_word... " >&6; }
3915 if test ${ac_cv_prog_CC+y}
3917 printf %s
"(cached) " >&6
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC
="$CC" # Let the user override the test.
3922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3926 case $as_dir in #(((
3929 *) as_dir
=$as_dir/ ;;
3931 for ac_exec_ext
in '' $ac_executable_extensions; do
3932 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3944 if test -n "$CC"; then
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 printf "%s\n" "$CC" >&6; }
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 printf "%s\n" "no" >&6; }
3954 if test -z "$ac_cv_prog_CC"; then
3956 # Extract the first word of "gcc", so it can be a program name with args.
3957 set dummy gcc
; ac_word
=$2
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 printf %s
"checking for $ac_word... " >&6; }
3960 if test ${ac_cv_prog_ac_ct_CC+y}
3962 printf %s
"(cached) " >&6
3964 if test -n "$ac_ct_CC"; then
3965 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3971 case $as_dir in #(((
3974 *) as_dir
=$as_dir/ ;;
3976 for ac_exec_ext
in '' $ac_executable_extensions; do
3977 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_CC
="gcc"
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3988 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3989 if test -n "$ac_ct_CC"; then
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3991 printf "%s\n" "$ac_ct_CC" >&6; }
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 printf "%s\n" "no" >&6; }
3997 if test "x$ac_ct_CC" = x
; then
4000 case $cross_compiling:$ac_tool_warned in
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned
=yes ;;
4012 if test -z "$CC"; then
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4015 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 printf %s
"checking for $ac_word... " >&6; }
4018 if test ${ac_cv_prog_CC+y}
4020 printf %s
"(cached) " >&6
4022 if test -n "$CC"; then
4023 ac_cv_prog_CC
="$CC" # Let the user override the test.
4025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4029 case $as_dir in #(((
4032 *) as_dir
=$as_dir/ ;;
4034 for ac_exec_ext
in '' $ac_executable_extensions; do
4035 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4047 if test -n "$CC"; then
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 printf "%s\n" "$CC" >&6; }
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 printf "%s\n" "no" >&6; }
4058 if test -z "$CC"; then
4059 # Extract the first word of "cc", so it can be a program name with args.
4060 set dummy cc
; ac_word
=$2
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 printf %s
"checking for $ac_word... " >&6; }
4063 if test ${ac_cv_prog_CC+y}
4065 printf %s
"(cached) " >&6
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC
="$CC" # Let the user override the test.
4071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4075 case $as_dir in #(((
4078 *) as_dir
=$as_dir/ ;;
4080 for ac_exec_ext
in '' $ac_executable_extensions; do
4081 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4082 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4083 ac_prog_rejected
=yes
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 if test $ac_prog_rejected = yes; then
4095 # We found a bogon in the path, so make sure we never use it.
4096 set dummy
$ac_cv_prog_CC
4098 if test $# != 0; then
4099 # We chose a different compiler from the bogus one.
4100 # However, it has the same basename, so the bogon will be chosen
4101 # first if we set CC to just the basename; use the full file name.
4103 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
4109 if test -n "$CC"; then
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 printf "%s\n" "$CC" >&6; }
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4119 if test -z "$CC"; then
4120 if test -n "$ac_tool_prefix"; then
4121 for ac_prog
in cl.exe
4123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4124 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 printf %s
"checking for $ac_word... " >&6; }
4127 if test ${ac_cv_prog_CC+y}
4129 printf %s
"(cached) " >&6
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC
="$CC" # Let the user override the test.
4134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4138 case $as_dir in #(((
4141 *) as_dir
=$as_dir/ ;;
4143 for ac_exec_ext
in '' $ac_executable_extensions; do
4144 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4156 if test -n "$CC"; then
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 printf "%s\n" "$CC" >&6; }
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 printf "%s\n" "no" >&6; }
4165 test -n "$CC" && break
4168 if test -z "$CC"; then
4170 for ac_prog
in cl.exe
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy
$ac_prog; ac_word
=$2
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 printf %s
"checking for $ac_word... " >&6; }
4176 if test ${ac_cv_prog_ac_ct_CC+y}
4178 printf %s
"(cached) " >&6
4180 if test -n "$ac_ct_CC"; then
4181 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4187 case $as_dir in #(((
4190 *) as_dir
=$as_dir/ ;;
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_ac_ct_CC
="$ac_prog"
4195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4207 printf "%s\n" "$ac_ct_CC" >&6; }
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 printf "%s\n" "no" >&6; }
4214 test -n "$ac_ct_CC" && break
4217 if test "x$ac_ct_CC" = x
; then
4220 case $cross_compiling:$ac_tool_warned in
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned
=yes ;;
4231 if test -z "$CC"; then
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4234 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 printf %s
"checking for $ac_word... " >&6; }
4237 if test ${ac_cv_prog_CC+y}
4239 printf %s
"(cached) " >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC
="$CC" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 case $as_dir in #(((
4251 *) as_dir
=$as_dir/ ;;
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4266 if test -n "$CC"; then
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 printf "%s\n" "$CC" >&6; }
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 printf "%s\n" "no" >&6; }
4276 if test -z "$ac_cv_prog_CC"; then
4278 # Extract the first word of "clang", so it can be a program name with args.
4279 set dummy clang
; ac_word
=$2
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 printf %s
"checking for $ac_word... " >&6; }
4282 if test ${ac_cv_prog_ac_ct_CC+y}
4284 printf %s
"(cached) " >&6
4286 if test -n "$ac_ct_CC"; then
4287 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4293 case $as_dir in #(((
4296 *) as_dir
=$as_dir/ ;;
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_ac_ct_CC
="clang"
4301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4310 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4313 printf "%s\n" "$ac_ct_CC" >&6; }
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 printf "%s\n" "no" >&6; }
4319 if test "x$ac_ct_CC" = x
; then
4322 case $cross_compiling:$ac_tool_warned in
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned
=yes ;;
4337 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error $?
"no acceptable C compiler found in \$PATH
4340 See \`config.log' for more details" "$LINENO" 5; }
4342 # Provide some information about the compiler.
4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4346 for ac_option
in --version -v -V -qversion -version; do
4347 { { ac_try
="$ac_compiler $ac_option >&5"
4349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 printf "%s\n" "$ac_try_echo"; } >&5
4354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4356 if test -s conftest.err; then
4358 ... rest of stderr output deleted ...
4359 10q' conftest.err >conftest.er1
4360 cat conftest.er1 >&5
4362 rm -f conftest.er1 conftest.err
4363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364 test $ac_status = 0; }
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 ac_clean_files_save=$ac_clean_files
4379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4380 # Try to create an executable without -o first, disregard a.out.
4381 # It will help us diagnose broken compilers, and finding out an intuition
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4384 printf %s "checking whether the C compiler works... " >&6; }
4385 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4387 # The possible output files:
4388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4391 for ac_file in $ac_files
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4400 if { { ac_try="$ac_link_default"
4402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4403 *) ac_try_echo
=$ac_try;;
4405 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 printf "%s\n" "$ac_try_echo"; } >&5
4407 (eval "$ac_link_default") 2>&5
4409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4417 for ac_file
in $ac_files ''
4419 test -f "$ac_file" ||
continue
4421 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4424 # We found the default executable, but exeext='' is most
4428 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
4430 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 # We set ac_cv_exeext here because the later test for it is not
4433 # safe: cross compilers may not add the suffix if given an `-o'
4434 # argument, so we may need to know it at that point already.
4435 # Even if this section looks crufty: it has the advantage of
4442 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4447 if test -z "$ac_file"
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 printf "%s\n" "no" >&6; }
4451 printf "%s\n" "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.
$ac_ext >&5
4454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error
77 "C compiler cannot create executables
4457 See \`config.log' for more details" "$LINENO" 5; }
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 printf "%s\n" "yes" >&6; }
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4463 printf %s
"checking for C compiler default output file name... " >&6; }
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4465 printf "%s\n" "$ac_file" >&6; }
4466 ac_exeext
=$ac_cv_exeext
4468 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4469 ac_clean_files
=$ac_clean_files_save
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4471 printf %s
"checking for suffix of executables... " >&6; }
4472 if { { ac_try
="$ac_link"
4474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 printf "%s\n" "$ac_try_echo"; } >&5
4479 (eval "$ac_link") 2>&5
4481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4484 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4485 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4486 # work properly (i.e., refer to `conftest.exe'), while it won't with
4488 for ac_file
in conftest.exe conftest conftest.
*; do
4489 test -f "$ac_file" ||
continue
4491 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4492 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4498 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4500 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4501 See \`config.log' for more details" "$LINENO" 5; }
4503 rm -f conftest conftest
$ac_cv_exeext
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4505 printf "%s\n" "$ac_cv_exeext" >&6; }
4507 rm -f conftest.
$ac_ext
4508 EXEEXT
=$ac_cv_exeext
4510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4516 FILE *f = fopen ("conftest.out", "w");
4517 return ferror (f) || fclose (f) != 0;
4523 ac_clean_files
="$ac_clean_files conftest.out"
4524 # Check that the compiler produces executables we can run. If not, either
4525 # the compiler is broken, or we cross compile.
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4527 printf %s
"checking whether we are cross compiling... " >&6; }
4528 if test "$cross_compiling" != yes; then
4529 { { ac_try
="$ac_link"
4531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 printf "%s\n" "$ac_try_echo"; } >&5
4536 (eval "$ac_link") 2>&5
4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4540 if { ac_try='./conftest$ac_cv_exeext'
4541 { { case "(($ac_try" in
4542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4543 *) ac_try_echo
=$ac_try;;
4545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 printf "%s\n" "$ac_try_echo"; } >&5
4547 (eval "$ac_try") 2>&5
4549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; }; then
4553 if test "$cross_compiling" = maybe
; then
4556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4558 as_fn_error
77 "cannot run C compiled programs.
4559 If you meant to cross compile, use \`--host'.
4560 See \`config.log' for more details" "$LINENO" 5; }
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4565 printf "%s\n" "$cross_compiling" >&6; }
4567 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4568 ac_clean_files
=$ac_clean_files_save
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4570 printf %s
"checking for suffix of object files... " >&6; }
4571 if test ${ac_cv_objext+y}
4573 printf %s
"(cached) " >&6
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4586 rm -f conftest.o conftest.obj
4587 if { { ac_try
="$ac_compile"
4589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 printf "%s\n" "$ac_try_echo"; } >&5
4594 (eval "$ac_compile") 2>&5
4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4599 for ac_file in conftest.o conftest.obj conftest.*; do
4600 test -f "$ac_file" || continue;
4602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4608 printf "%s\n" "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4614 See \
`config.log' for more details" "$LINENO" 5; }
4616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4619 printf "%s\n" "$ac_cv_objext" >&6; }
4620 OBJEXT=$ac_cv_objext
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4623 printf %s "checking whether the compiler supports GNU C... " >&6; }
4624 if test ${ac_cv_c_compiler_gnu+y}
4626 printf %s "(cached) " >&6
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4642 if ac_fn_c_try_compile "$LINENO"
4648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4653 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test $ac_compiler_gnu = yes; then
4661 ac_test_CFLAGS=${CFLAGS+y}
4662 ac_save_CFLAGS=$CFLAGS
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4664 printf %s "checking whether $CC accepts -g... " >&6; }
4665 if test ${ac_cv_prog_cc_g+y}
4667 printf %s "(cached) " >&6
4669 ac_save_c_werror_flag=$ac_c_werror_flag
4670 ac_c_werror_flag=yes
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4684 if ac_fn_c_try_compile "$LINENO"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4700 if ac_fn_c_try_compile "$LINENO"
4704 ac_c_werror_flag=$ac_save_c_werror_flag
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4717 if ac_fn_c_try_compile "$LINENO"
4721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4730 if test $ac_test_CFLAGS; then
4731 CFLAGS=$ac_save_CFLAGS
4732 elif test $ac_cv_prog_cc_g = yes; then
4733 if test "$GCC" = yes; then
4739 if test "$GCC" = yes; then
4746 if test x$ac_prog_cc_stdc = xno
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4749 printf %s "checking for $CC option to enable C11 features... " >&6; }
4750 if test ${ac_cv_prog_cc_c11+y}
4752 printf %s "(cached) " >&6
4754 ac_cv_prog_cc_c11=no
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 $ac_c_conftest_c11_program
4760 for ac_arg in '' -std=gnu11
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"
4765 ac_cv_prog_cc_c11=$ac_arg
4767 rm -f core conftest.err conftest.$ac_objext conftest.beam
4768 test "x$ac_cv_prog_cc_c11" != "xno" && break
4770 rm -f conftest.$ac_ext
4774 if test "x$ac_cv_prog_cc_c11" = xno
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777 printf "%s\n" "unsupported" >&6; }
4779 if test "x$ac_cv_prog_cc_c11" = x
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4782 printf "%s\n" "none needed" >&6; }
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4785 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4786 CC="$CC $ac_cv_prog_cc_c11"
4788 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4792 if test x$ac_prog_cc_stdc = xno
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4795 printf %s "checking for $CC option to enable C99 features... " >&6; }
4796 if test ${ac_cv_prog_cc_c99+y}
4798 printf %s "(cached) " >&6
4800 ac_cv_prog_cc_c99=no
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 $ac_c_conftest_c99_program
4806 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4808 CC="$ac_save_CC $ac_arg"
4809 if ac_fn_c_try_compile "$LINENO"
4811 ac_cv_prog_cc_c99=$ac_arg
4813 rm -f core conftest.err conftest.$ac_objext conftest.beam
4814 test "x$ac_cv_prog_cc_c99" != "xno" && break
4816 rm -f conftest.$ac_ext
4820 if test "x$ac_cv_prog_cc_c99" = xno
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4823 printf "%s\n" "unsupported" >&6; }
4825 if test "x$ac_cv_prog_cc_c99" = x
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4828 printf "%s\n" "none needed" >&6; }
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4831 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4832 CC="$CC $ac_cv_prog_cc_c99"
4834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4838 if test x$ac_prog_cc_stdc = xno
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4841 printf %s "checking for $CC option to enable C89 features... " >&6; }
4842 if test ${ac_cv_prog_cc_c89+y}
4844 printf %s "(cached) " >&6
4846 ac_cv_prog_cc_c89=no
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 $ac_c_conftest_c89_program
4852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4854 CC="$ac_save_CC $ac_arg"
4855 if ac_fn_c_try_compile "$LINENO"
4857 ac_cv_prog_cc_c89=$ac_arg
4859 rm -f core conftest.err conftest.$ac_objext conftest.beam
4860 test "x$ac_cv_prog_cc_c89" != "xno" && break
4862 rm -f conftest.$ac_ext
4866 if test "x$ac_cv_prog_cc_c89" = xno
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4869 printf "%s\n" "unsupported" >&6; }
4871 if test "x$ac_cv_prog_cc_c89" = x
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4874 printf "%s\n" "none needed" >&6; }
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4877 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4878 CC="$CC $ac_cv_prog_cc_c89"
4880 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 if test -n "$want_auto_cflags"; then
4893 AUTO_CFLAGS="-g ${GCC:+-O2}"
4894 AUTO_LDFLAGS="-g ${GCC:+-O2}"
4895 # STYLE_CFLAGS="${GCC:+-Wno-parentheses} ${GCC:+-Wno-format-security} ${GCC:+-Wno-tautological-constant-out-of-range-compare}"
4896 STYLE_CFLAGS="${GCC:+-Wno-parentheses} ${GCC:+-Wno-format-security}"
4898 AUTO_CFLAGS= AUTO_LDFLAGS= STYLE_CFLAGS=
4902 ac_header= ac_cache=
4903 for ac_item in $ac_header_c_list
4905 if test $ac_cache; then
4906 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4907 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4908 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4910 ac_header= ac_cache=
4911 elif test $ac_header; then
4925 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4928 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4938 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4939 if test ${ac_cv_safe_to_define___extensions__+y}
4941 printf %s "(cached) " >&6
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4946 # define __EXTENSIONS__ 1
4947 $ac_includes_default
4956 if ac_fn_c_try_compile "$LINENO"
4958 ac_cv_safe_to_define___extensions__=yes
4960 ac_cv_safe_to_define___extensions__=no
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4965 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4968 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4969 if test ${ac_cv_should_define__xopen_source+y}
4971 printf %s "(cached) " >&6
4973 ac_cv_should_define__xopen_source=no
4974 if test $ac_cv_header_wchar_h = yes
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4989 if ac_fn_c_try_compile "$LINENO"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4996 #define _XOPEN_SOURCE 500
5007 if ac_fn_c_try_compile "$LINENO"
5009 ac_cv_should_define__xopen_source=yes
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5017 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5019 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5021 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5023 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5025 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5027 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5029 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5031 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5033 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5035 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5037 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5039 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5041 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5043 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5045 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5047 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5049 if test $ac_cv_header_minix_config_h = yes
5052 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5054 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5056 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5061 if test $ac_cv_safe_to_define___extensions__ = yes
5063 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5066 if test $ac_cv_should_define__xopen_source = yes
5068 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5072 # Check whether --enable-largefile was given.
5073 if test ${enable_largefile+y}
5075 enableval=$enable_largefile;
5078 if test "$enable_largefile" != no; then
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5081 printf %s "checking for special C compiler options needed for large files... " >&6; }
5082 if test ${ac_cv_sys_largefile_CC+y}
5084 printf %s "(cached) " >&6
5086 ac_cv_sys_largefile_CC=no
5087 if test "$GCC" != yes; then
5090 # IRIX 6.2 and later do not support large files by default,
5091 # so use the C compiler's -n32 option if that helps.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5111 if ac_fn_c_try_compile "$LINENO"
5115 rm -f core conftest.err conftest.$ac_objext conftest.beam
5117 if ac_fn_c_try_compile "$LINENO"
5119 ac_cv_sys_largefile_CC=' -n32'; break
5121 rm -f core conftest.err conftest.$ac_objext conftest.beam
5125 rm -f conftest.$ac_ext
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5129 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5130 if test "$ac_cv_sys_largefile_CC" != no; then
5131 CC=$CC$ac_cv_sys_largefile_CC
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5135 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5136 if test ${ac_cv_sys_file_offset_bits+y}
5138 printf %s "(cached) " >&6
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <sys/types.h>
5144 /* Check that off_t can represent 2**63 - 1 correctly.
5145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5146 since some C++ compilers masquerading as C compilers
5147 incorrectly reject 9223372036854775807. */
5148 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5150 && LARGE_OFF_T % 2147483647 == 1)
5160 if ac_fn_c_try_compile "$LINENO"
5162 ac_cv_sys_file_offset_bits=no; break
5164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #define _FILE_OFFSET_BITS 64
5168 #include <sys/types.h>
5169 /* Check that off_t can represent 2**63 - 1 correctly.
5170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5171 since some C++ compilers masquerading as C compilers
5172 incorrectly reject 9223372036854775807. */
5173 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5175 && LARGE_OFF_T % 2147483647 == 1)
5185 if ac_fn_c_try_compile "$LINENO"
5187 ac_cv_sys_file_offset_bits=64; break
5189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5190 ac_cv_sys_file_offset_bits=unknown
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5195 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5196 case $ac_cv_sys_file_offset_bits in #(
5199 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5203 if test $ac_cv_sys_file_offset_bits = unknown; then
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5205 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5206 if test ${ac_cv_sys_large_files+y}
5208 printf %s "(cached) " >&6
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <sys/types.h>
5214 /* Check that off_t can represent 2**63 - 1 correctly.
5215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5216 since some C++ compilers masquerading as C compilers
5217 incorrectly reject 9223372036854775807. */
5218 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5220 && LARGE_OFF_T % 2147483647 == 1)
5230 if ac_fn_c_try_compile "$LINENO"
5232 ac_cv_sys_large_files=no; break
5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 #define _LARGE_FILES 1
5238 #include <sys/types.h>
5239 /* Check that off_t can represent 2**63 - 1 correctly.
5240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5241 since some C++ compilers masquerading as C compilers
5242 incorrectly reject 9223372036854775807. */
5243 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5245 && LARGE_OFF_T % 2147483647 == 1)
5255 if ac_fn_c_try_compile "$LINENO"
5257 ac_cv_sys_large_files=1; break
5259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5260 ac_cv_sys_large_files=unknown
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5265 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5266 case $ac_cv_sys_large_files in #(
5269 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5279 SIGNAMES_H=lsignames.h
5284 if test "x$cross_compiling" = "xyes"; then
5287 cross_cache=${srcdir}/cross-build/cygwin32.cache
5290 cross_cache=${srcdir}/cross-build/cygwin32.cache
5293 cross_cache=${srcdir}/cross-build/x86-beos.cache
5296 cross_cache=${srcdir}/cross-build/qnx.cache
5298 *) echo "configure: cross-compiling for $host is not supported" >&2
5301 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5302 echo "loading cross-build cache file ${cross_cache}"
5306 SIGNAMES_O='signames.o'
5307 CROSS_COMPILE='-DCROSS_COMPILING'
5314 CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
5315 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
5317 if test "$opt_profiling" = "yes"; then
5320 solaris2*|linux*|darwin*) ;;
5321 *) opt_static_link=yes ;;
5323 DEBUG= MALLOC_DEBUG=
5329 if test "$opt_static_link" = yes; then
5332 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5333 if test "$GCC" = "yes"; then
5336 solaris2*|linux*) ;;
5337 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5342 # set the appropriate make variables for building the "build tools"
5343 # modify defaults based on whether or not we are cross compiling, since the
5344 # options for the target host may not be appropriate for the build host
5345 if test "X$cross_compiling" = "Xno"; then
5346 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
5347 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$
(CPPFLAGS
)'
5348 if test X"$opt_profiling" = Xyes; then
5349 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(BASE_LDFLAGS)'}
5351 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5353 # CFLAGS set above to default value if not passed in environment
5354 if test -n "$want_auto_cflags" ; then
5355 CFLAGS_FOR_BUILD="${CFLAGS}"
5356 BASE_CFLAGS_FOR_BUILD="${CFLAGS}"
5358 # passed in environment
5359 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5360 BASE_CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5362 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
5364 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
5365 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5366 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5367 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
5368 BASE_CFLAGS_FOR_BUILD=${BASE_CFLAGS_FOR_BUILD="-g"}
5369 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
5386 ac_cpp='$CPP $CPPFLAGS'
5387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5388 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5391 printf %s "checking how to run the C preprocessor... " >&6; }
5392 # On Suns, sometimes $CPP names a directory.
5393 if test -n "$CPP" && test -d "$CPP"; then
5396 if test -z "$CPP"; then
5397 if test ${ac_cv_prog_CPP+y}
5399 printf %s "(cached) " >&6
5401 # Double quotes because $CC needs to be expanded
5402 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5405 for ac_c_preproc_warn_flag in '' yes
5407 # Use a header file that comes with gcc, so configuring glibc
5408 # with a fresh cross-compiler works.
5409 # On the NeXT, cc -E runs the code through the compiler's parser
,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5416 if ac_fn_c_try_cpp
"$LINENO"
5420 # Broken: fails on valid input.
5423 rm -f conftest.err conftest.i conftest.
$ac_ext
5425 # OK, works on sane cases. Now check whether nonexistent headers
5426 # can be detected and how.
5427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <ac_nonexistent.h>
5431 if ac_fn_c_try_cpp
"$LINENO"
5433 # Broken: success on invalid input.
5436 # Passes both tests.
5440 rm -f conftest.err conftest.i conftest.
$ac_ext
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.i conftest.err conftest.
$ac_ext
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5459 printf "%s\n" "$CPP" >&6; }
5461 for ac_c_preproc_warn_flag
in '' yes
5463 # Use a header file that comes with gcc, so configuring glibc
5464 # with a fresh cross-compiler works.
5465 # On the NeXT, cc -E runs the code through the compiler's parser,
5466 # not just through cpp. "Syntax error" is here to catch this case.
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5472 if ac_fn_c_try_cpp
"$LINENO"
5476 # Broken: fails on valid input.
5479 rm -f conftest.err conftest.i conftest.
$ac_ext
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include <ac_nonexistent.h>
5487 if ac_fn_c_try_cpp
"$LINENO"
5489 # Broken: success on invalid input.
5492 # Passes both tests.
5496 rm -f conftest.err conftest.i conftest.
$ac_ext
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.i conftest.err conftest.
$ac_ext
5505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5506 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5507 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5508 See \`config.log' for more details" "$LINENO" 5; }
5512 ac_cpp
='$CPP $CPPFLAGS'
5513 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5519 printf %s
"checking for grep that handles long lines and -e... " >&6; }
5520 if test ${ac_cv_path_GREP+y}
5522 printf %s
"(cached) " >&6
5524 if test -z "$GREP"; then
5525 ac_path_GREP_found
=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5528 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5531 case $as_dir in #(((
5534 *) as_dir
=$as_dir/ ;;
5536 for ac_prog
in grep ggrep
5538 for ac_exec_ext
in '' $ac_executable_extensions; do
5539 ac_path_GREP
="$as_dir$ac_prog$ac_exec_ext"
5540 as_fn_executable_p
"$ac_path_GREP" ||
continue
5541 # Check for GNU ac_path_GREP and select it if it is found.
5542 # Check for GNU $ac_path_GREP
5543 case `"$ac_path_GREP" --version 2>&1` in
5545 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5548 printf %s
0123456789 >"conftest.in"
5551 cat "conftest.in" "conftest.in" >"conftest.tmp"
5552 mv "conftest.tmp" "conftest.in"
5553 cp "conftest.in" "conftest.nl"
5554 printf "%s\n" 'GREP' >> "conftest.nl"
5555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5556 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5557 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5559 # Best one so far, save it but keep looking for a better one
5560 ac_cv_path_GREP
="$ac_path_GREP"
5561 ac_path_GREP_max
=$ac_count
5563 # 10*(2^10) chars as input seems more than enough
5564 test $ac_count -gt 10 && break
5566 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5569 $ac_path_GREP_found && break 3
5574 if test -z "$ac_cv_path_GREP"; then
5575 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5578 ac_cv_path_GREP
=$GREP
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5583 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5584 GREP
="$ac_cv_path_GREP"
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5588 printf %s
"checking for egrep... " >&6; }
5589 if test ${ac_cv_path_EGREP+y}
5591 printf %s
"(cached) " >&6
5593 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5594 then ac_cv_path_EGREP
="$GREP -E"
5596 if test -z "$EGREP"; then
5597 ac_path_EGREP_found
=false
5598 # Loop through the user's path and test for each of PROGNAME-LIST
5599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5600 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5603 case $as_dir in #(((
5606 *) as_dir
=$as_dir/ ;;
5608 for ac_prog
in egrep
5610 for ac_exec_ext
in '' $ac_executable_extensions; do
5611 ac_path_EGREP
="$as_dir$ac_prog$ac_exec_ext"
5612 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5613 # Check for GNU ac_path_EGREP and select it if it is found.
5614 # Check for GNU $ac_path_EGREP
5615 case `"$ac_path_EGREP" --version 2>&1` in
5617 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5620 printf %s
0123456789 >"conftest.in"
5623 cat "conftest.in" "conftest.in" >"conftest.tmp"
5624 mv "conftest.tmp" "conftest.in"
5625 cp "conftest.in" "conftest.nl"
5626 printf "%s\n" 'EGREP' >> "conftest.nl"
5627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5628 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5629 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5631 # Best one so far, save it but keep looking for a better one
5632 ac_cv_path_EGREP
="$ac_path_EGREP"
5633 ac_path_EGREP_max
=$ac_count
5635 # 10*(2^10) chars as input seems more than enough
5636 test $ac_count -gt 10 && break
5638 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5641 $ac_path_EGREP_found && break 3
5646 if test -z "$ac_cv_path_EGREP"; then
5647 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5650 ac_cv_path_EGREP
=$EGREP
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5656 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5657 EGREP
="$ac_cv_path_EGREP"
5660 if test $ac_cv_c_compiler_gnu = yes; then
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5662 printf %s
"checking whether $CC needs -traditional... " >&6; }
5663 if test ${ac_cv_prog_gcc_traditional+y}
5665 printf %s
"(cached) " >&6
5667 ac_pattern
="Autoconf.*'x'"
5668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "$ac_pattern" >/dev
/null
2>&1
5676 ac_cv_prog_gcc_traditional
=yes
5678 ac_cv_prog_gcc_traditional
=no
5683 if test $ac_cv_prog_gcc_traditional = no
; then
5684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5690 $EGREP "$ac_pattern" >/dev
/null
2>&1
5692 ac_cv_prog_gcc_traditional
=yes
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5699 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
5700 if test $ac_cv_prog_gcc_traditional = yes; then
5701 CC
="$CC -traditional"
5707 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5709 # If the user specified --with-installed-readline=PREFIX and PREFIX
5710 # is not `yes', set ac_cv_rl_prefix to PREFIX
5711 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5714 if test "X$bash_cv_termcap_lib" = "X"; then
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5718 printf %s
"checking which library has the termcap functions... " >&6; }
5721 if test ${bash_cv_termcap_lib+y}
5723 printf %s
"(cached) " >&6
5725 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
5726 if test "x$ac_cv_func_tgetent" = xyes
5728 bash_cv_termcap_lib
=libc
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5731 printf %s
"checking for tgetent in -ltermcap... " >&6; }
5732 if test ${ac_cv_lib_termcap_tgetent+y}
5734 printf %s
"(cached) " >&6
5736 ac_check_lib_save_LIBS
=$LIBS
5737 LIBS
="-ltermcap $LIBS"
5738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5741 /* Override any GCC internal prototype to avoid an error.
5742 Use char because int might match the return type of a GCC
5743 builtin and then its argument prototype would still apply. */
5753 if ac_fn_c_try_link
"$LINENO"
5755 ac_cv_lib_termcap_tgetent
=yes
5757 ac_cv_lib_termcap_tgetent
=no
5759 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5760 conftest
$ac_exeext conftest.
$ac_ext
5761 LIBS
=$ac_check_lib_save_LIBS
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5764 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
5765 if test "x$ac_cv_lib_termcap_tgetent" = xyes
5767 bash_cv_termcap_lib
=libtermcap
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5770 printf %s
"checking for tgetent in -ltinfo... " >&6; }
5771 if test ${ac_cv_lib_tinfo_tgetent+y}
5773 printf %s
"(cached) " >&6
5775 ac_check_lib_save_LIBS
=$LIBS
5776 LIBS
="-ltinfo $LIBS"
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5780 /* Override any GCC internal prototype to avoid an error.
5781 Use char because int might match the return type of a GCC
5782 builtin and then its argument prototype would still apply. */
5792 if ac_fn_c_try_link
"$LINENO"
5794 ac_cv_lib_tinfo_tgetent
=yes
5796 ac_cv_lib_tinfo_tgetent
=no
5798 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5799 conftest
$ac_exeext conftest.
$ac_ext
5800 LIBS
=$ac_check_lib_save_LIBS
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5803 printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
5804 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
5806 bash_cv_termcap_lib
=libtinfo
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5809 printf %s
"checking for tgetent in -lcurses... " >&6; }
5810 if test ${ac_cv_lib_curses_tgetent+y}
5812 printf %s
"(cached) " >&6
5814 ac_check_lib_save_LIBS
=$LIBS
5815 LIBS
="-lcurses $LIBS"
5816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5831 if ac_fn_c_try_link
"$LINENO"
5833 ac_cv_lib_curses_tgetent
=yes
5835 ac_cv_lib_curses_tgetent
=no
5837 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5838 conftest
$ac_exeext conftest.
$ac_ext
5839 LIBS
=$ac_check_lib_save_LIBS
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5842 printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
5843 if test "x$ac_cv_lib_curses_tgetent" = xyes
5845 bash_cv_termcap_lib
=libcurses
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5848 printf %s
"checking for tgetent in -lncurses... " >&6; }
5849 if test ${ac_cv_lib_ncurses_tgetent+y}
5851 printf %s
"(cached) " >&6
5853 ac_check_lib_save_LIBS
=$LIBS
5854 LIBS
="-lncurses $LIBS"
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5870 if ac_fn_c_try_link
"$LINENO"
5872 ac_cv_lib_ncurses_tgetent
=yes
5874 ac_cv_lib_ncurses_tgetent
=no
5876 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5877 conftest
$ac_exeext conftest.
$ac_ext
5878 LIBS
=$ac_check_lib_save_LIBS
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5881 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
5882 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
5884 bash_cv_termcap_lib
=libncurses
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
5887 printf %s
"checking for tgetent in -lncursesw... " >&6; }
5888 if test ${ac_cv_lib_ncursesw_tgetent+y}
5890 printf %s
"(cached) " >&6
5892 ac_check_lib_save_LIBS
=$LIBS
5893 LIBS
="-lncursesw $LIBS"
5894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5909 if ac_fn_c_try_link
"$LINENO"
5911 ac_cv_lib_ncursesw_tgetent
=yes
5913 ac_cv_lib_ncursesw_tgetent
=no
5915 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5916 conftest
$ac_exeext conftest.
$ac_ext
5917 LIBS
=$ac_check_lib_save_LIBS
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
5920 printf "%s\n" "$ac_cv_lib_ncursesw_tgetent" >&6; }
5921 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
5923 bash_cv_termcap_lib
=libncursesw
5925 bash_cv_termcap_lib
=gnutermcap
5940 if test "X$_bash_needmsg" = "Xyes"; then
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5942 printf %s
"checking which library has the termcap functions... " >&6; }
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5945 printf "%s\n" "using $bash_cv_termcap_lib" >&6; }
5946 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
5947 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5948 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5949 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5950 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5951 TERMCAP_LIB
=-ltermcap
5953 elif test $bash_cv_termcap_lib = libtinfo
; then
5956 elif test $bash_cv_termcap_lib = libncurses
; then
5957 TERMCAP_LIB
=-lncurses
5959 elif test $bash_cv_termcap_lib = libc
; then
5963 # we assume ncurses is installed somewhere the linker can find it
5964 TERMCAP_LIB
=-lncurses
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5972 printf %s
"checking version of installed readline library... " >&6; }
5974 # What a pain in the ass this is.
5976 # save cpp and ld options
5977 _save_CFLAGS
="$CFLAGS"
5978 _save_LDFLAGS
="$LDFLAGS"
5981 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5982 # allows the caller to do something like $_rl_prefix=$withval if the user
5983 # specifies --with-installed-readline=PREFIX as an argument to configure
5985 if test -z "$ac_cv_rl_prefix"; then
5986 test "x$prefix" = xNONE
&& ac_cv_rl_prefix
=$ac_default_prefix || ac_cv_rl_prefix
=${prefix}
5989 eval ac_cv_rl_includedir
=${ac_cv_rl_prefix}/include
5990 eval ac_cv_rl_libdir
=${ac_cv_rl_prefix}/lib
5992 LIBS
="$LIBS -lreadline ${TERMCAP_LIB}"
5993 CFLAGS
="$CFLAGS -I${ac_cv_rl_includedir}"
5994 LDFLAGS
="$LDFLAGS -L${ac_cv_rl_libdir}"
5996 if test ${ac_cv_rl_version+y}
5998 printf %s
"(cached) " >&6
6000 if test "$cross_compiling" = yes
6002 ac_cv_rl_version
='8.0'
6005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6009 #include <readline/readline.h>
6012 extern int rl_gnu_readline_p;
6018 fp = fopen("conftest.rlv", "w");
6021 if (rl_gnu_readline_p != 1)
6022 fprintf(fp, "0.0\n");
6024 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
6030 if ac_fn_c_try_run
"$LINENO"
6032 ac_cv_rl_version
=`cat conftest.rlv`
6034 ac_cv_rl_version
='0.0'
6036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6043 CFLAGS
="$_save_CFLAGS"
6044 LDFLAGS
="$_save_LDFLAGS"
6051 case "$ac_cv_rl_version" in
6052 2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*)
6053 RL_MAJOR
=`echo $ac_cv_rl_version | sed 's:\..*$::'`
6054 RL_MINOR
=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
6060 [0-9][0-9]) _RL_MAJOR
=$RL_MAJOR ;;
6061 [0-9]) _RL_MAJOR
=0$RL_MAJOR ;;
6067 [0-9][0-9]) _RL_MINOR
=$RL_MINOR ;;
6068 [0-9]) _RL_MINOR
=0$RL_MINOR ;;
6072 RL_VERSION
="0x${_RL_MAJOR}${_RL_MINOR}"
6074 # Readline versions greater than 4.2 have these defines in readline.h
6076 if test $ac_cv_rl_version = '0.0' ; then
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
6078 printf "%s\n" "$as_me: WARNING: Could not test version of installed readline library." >&2;}
6079 elif test $RL_MAJOR -gt 4 ||
{ test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
6080 # set these for use by the caller
6081 RL_PREFIX
=$ac_cv_rl_prefix
6082 RL_LIBDIR
=$ac_cv_rl_libdir
6083 RL_INCLUDEDIR
=$ac_cv_rl_includedir
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
6085 printf "%s\n" "$ac_cv_rl_version" >&6; }
6089 printf "%s\n" "#define RL_READLINE_VERSION $RL_VERSION" >>confdefs.h
6092 printf "%s\n" "#define RL_VERSION_MAJOR $RL_MAJOR" >>confdefs.h
6095 printf "%s\n" "#define RL_VERSION_MINOR $RL_MINOR" >>confdefs.h
6102 # set these for use by the caller
6103 RL_PREFIX
=$ac_cv_rl_prefix
6104 RL_LIBDIR
=$ac_cv_rl_libdir
6105 RL_INCLUDEDIR
=$ac_cv_rl_includedir
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
6108 printf "%s\n" "$ac_cv_rl_version" >&6; }
6113 case "$ac_cv_rl_version" in
6115 *) opt_with_installed_readline
=no
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
6117 printf "%s\n" "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
6119 printf "%s\n" "$as_me: WARNING: using private bash version" >&2;}
6125 if test $opt_readline = yes; then
6126 printf "%s\n" "#define READLINE 1" >>confdefs.h
6128 if test "$opt_with_installed_readline" != "no" ; then
6129 case "$opt_with_installed_readline" in
6131 *) case "$RL_INCLUDEDIR" in
6133 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
6138 READLINE_LIB
=-lreadline
6139 # section for OS versions that don't allow unresolved symbols
6140 # to be compiled into dynamic libraries.
6142 cygwin
*) TILDE_LIB
= ;;
6145 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
6146 READLINE_DEP
='$(READLINE_LIBRARY)'
6147 # section for OS versions that ship an older/broken version of
6148 # readline as a standard dynamic library and don't allow a
6149 # static version specified as -llibname to override the
6151 case "${host_os}" in
6152 darwin
[89]*|darwin10
*) READLINE_LIB
='${READLINE_LIBRARY}' ;;
6153 *) READLINE_LIB
=-lreadline ;;
6157 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
6158 READLINE_LIB
= READLINE_DEP
=
6160 if test $opt_history = yes ||
test $opt_bang_history = yes; then
6161 if test $opt_history = yes; then
6162 printf "%s\n" "#define HISTORY 1" >>confdefs.h
6165 if test $opt_bang_history = yes; then
6166 printf "%s\n" "#define BANG_HISTORY 1" >>confdefs.h
6169 if test "$opt_with_installed_readline" != "no"; then
6170 HIST_LIBDIR
=$RL_LIBDIR
6172 HISTORY_LIB
=-lhistory
6173 case "$opt_with_installed_readline" in
6175 *) case "$RL_INCLUDEDIR" in
6177 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
6182 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
6183 HISTORY_DEP
='$(HISTORY_LIBRARY)'
6184 # section for OS versions that ship an older version of
6185 # readline as a standard dynamic library and don't allow a
6186 # static version specified as -llibname to override the
6188 case "${host_os}" in
6189 darwin
[89]*|darwin10
*) HISTORY_LIB
='${HISTORY_LIBRARY}' ;;
6190 *) HISTORY_LIB
=-lhistory ;;
6194 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
6195 HISTORY_LIB
= HISTORY_DEP
=
6209 # Find a good install program. We prefer a C program (faster),
6210 # so one script is as good as another. But avoid the broken or
6211 # incompatible versions:
6212 # SysV /etc/install, /usr/sbin/install
6213 # SunOS /usr/etc/install
6214 # IRIX /sbin/install
6216 # AmigaOS /C/install, which installs bootblocks on floppy discs
6217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6220 # OS/2's system install, which has a completely different semantic
6221 # ./install, which can be erroneously created by make from ./install.sh.
6222 # Reject install programs that cannot install multiple files.
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6224 printf %s
"checking for a BSD-compatible install... " >&6; }
6225 if test -z "$INSTALL"; then
6226 if test ${ac_cv_path_install+y}
6228 printf %s
"(cached) " >&6
6230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6234 case $as_dir in #(((
6237 *) as_dir
=$as_dir/ ;;
6239 # Account for fact that we put trailing slashes in our PATH walk.
6242 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6243 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6246 # OSF1 and SCO ODT 3.0 have their own names for install.
6247 # Don't use installbsd from OSF since it installs stuff as root
6249 for ac_prog
in ginstall scoinst
install; do
6250 for ac_exec_ext
in '' $ac_executable_extensions; do
6251 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
6252 if test $ac_prog = install &&
6253 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6254 # AIX install. It has an incompatible calling convention.
6256 elif test $ac_prog = install &&
6257 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6258 # program-specific install script used by HP pwplus--don't use.
6261 rm -rf conftest.one conftest.two conftest.dir
6262 echo one
> conftest.one
6263 echo two
> conftest.two
6265 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
6266 test -s conftest.one
&& test -s conftest.two
&&
6267 test -s conftest.dir
/conftest.one
&&
6268 test -s conftest.dir
/conftest.two
6270 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
6283 rm -rf conftest.one conftest.two conftest.dir
6286 if test ${ac_cv_path_install+y}; then
6287 INSTALL
=$ac_cv_path_install
6289 # As a last resort, use the slow shell script. Don't cache a
6290 # value for INSTALL within a source directory, because that will
6291 # break other packages using the cache if that directory is
6292 # removed, or if the value is a relative name.
6293 INSTALL
=$ac_install_sh
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6297 printf "%s\n" "$INSTALL" >&6; }
6299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6300 # It thinks the first close brace ends the variable substitution.
6301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6305 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6309 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 printf %s
"checking for $ac_word... " >&6; }
6312 if test ${ac_cv_prog_AR+y}
6314 printf %s
"(cached) " >&6
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR
="$AR" # Let the user override the test.
6319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6323 case $as_dir in #(((
6326 *) as_dir
=$as_dir/ ;;
6328 for ac_exec_ext
in '' $ac_executable_extensions; do
6329 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6341 if test -n "$AR"; then
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6343 printf "%s\n" "$AR" >&6; }
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6351 if test -z "$ac_cv_prog_AR"; then
6353 # Extract the first word of "ar", so it can be a program name with args.
6354 set dummy
ar; ac_word
=$2
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 printf %s
"checking for $ac_word... " >&6; }
6357 if test ${ac_cv_prog_ac_ct_AR+y}
6359 printf %s
"(cached) " >&6
6361 if test -n "$ac_ct_AR"; then
6362 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6368 case $as_dir in #(((
6371 *) as_dir
=$as_dir/ ;;
6373 for ac_exec_ext
in '' $ac_executable_extensions; do
6374 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_AR
="ar"
6376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6385 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6386 if test -n "$ac_ct_AR"; then
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6388 printf "%s\n" "$ac_ct_AR" >&6; }
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 printf "%s\n" "no" >&6; }
6394 if test "x$ac_ct_AR" = x
; then
6397 case $cross_compiling:$ac_tool_warned in
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned
=yes ;;
6409 test -n "$ARFLAGS" || ARFLAGS
="cr"
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6412 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 printf %s
"checking for $ac_word... " >&6; }
6415 if test ${ac_cv_prog_RANLIB+y}
6417 printf %s
"(cached) " >&6
6419 if test -n "$RANLIB"; then
6420 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6426 case $as_dir in #(((
6429 *) as_dir
=$as_dir/ ;;
6431 for ac_exec_ext
in '' $ac_executable_extensions; do
6432 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6443 RANLIB
=$ac_cv_prog_RANLIB
6444 if test -n "$RANLIB"; then
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6446 printf "%s\n" "$RANLIB" >&6; }
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 printf "%s\n" "no" >&6; }
6454 if test -z "$ac_cv_prog_RANLIB"; then
6455 ac_ct_RANLIB
=$RANLIB
6456 # Extract the first word of "ranlib", so it can be a program name with args.
6457 set dummy ranlib
; ac_word
=$2
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 printf %s
"checking for $ac_word... " >&6; }
6460 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6462 printf %s
"(cached) " >&6
6464 if test -n "$ac_ct_RANLIB"; then
6465 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6471 case $as_dir in #(((
6474 *) as_dir
=$as_dir/ ;;
6476 for ac_exec_ext
in '' $ac_executable_extensions; do
6477 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6488 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6489 if test -n "$ac_ct_RANLIB"; then
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6491 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 printf "%s\n" "no" >&6; }
6497 if test "x$ac_ct_RANLIB" = x
; then
6500 case $cross_compiling:$ac_tool_warned in
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned
=yes ;;
6506 RANLIB
=$ac_ct_RANLIB
6509 RANLIB
="$ac_cv_prog_RANLIB"
6512 for ac_prog
in 'bison -y' byacc
6514 # Extract the first word of "$ac_prog", so it can be a program name with args.
6515 set dummy
$ac_prog; ac_word
=$2
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 printf %s
"checking for $ac_word... " >&6; }
6518 if test ${ac_cv_prog_YACC+y}
6520 printf %s
"(cached) " >&6
6522 if test -n "$YACC"; then
6523 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6529 case $as_dir in #(((
6532 *) as_dir
=$as_dir/ ;;
6534 for ac_exec_ext
in '' $ac_executable_extensions; do
6535 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_YACC
="$ac_prog"
6537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6546 YACC
=$ac_cv_prog_YACC
6547 if test -n "$YACC"; then
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6549 printf "%s\n" "$YACC" >&6; }
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 printf "%s\n" "no" >&6; }
6556 test -n "$YACC" && break
6558 test -n "$YACC" || YACC
="yacc"
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6561 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6563 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6564 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
6566 printf %s
"(cached) " >&6
6568 cat >conftest.
make <<\_ACEOF
6571 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6576 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6578 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6582 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 printf "%s\n" "yes" >&6; }
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 printf "%s\n" "no" >&6; }
6589 SET_MAKE
="MAKE=${MAKE-make}"
6593 case "$ac_cv_prog_YACC" in
6595 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
6596 printf "%s\n" "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
6600 opennt
*|interix
*) MAKE_SHELL
="$INTERIX_ROOT/bin/sh" ;;
6601 *) MAKE_SHELL
=/bin
/sh
;;
6605 if test x
$SIZE = x
; then
6606 if test x
$ac_tool_prefix = x
; then
6609 SIZE
=${ac_tool_prefix}size
6610 save_IFS
=$IFS ; IFS
=:
6612 for dir
in $PATH; do
6613 if test -x $dir/$SIZE ; then
6618 if test $size_found -eq 0; then
6626 # Checks for stat-related time functions.
6628 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
6631 # This file is free software; the Free Software Foundation
6632 # gives unlimited permission to copy and/or distribute it,
6633 # with or without modifications, as long as this notice is preserved.
6636 # st_atim.tv_nsec - Linux, Solaris, Cygwin
6637 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
6638 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
6639 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
6641 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
6642 # st_birthtim - Cygwin 1.7.0+
6646 # Configure checks for struct timespec
6648 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
6650 # This file is free software; the Free Software Foundation
6651 # gives unlimited permission to copy and/or distribute it,
6652 # with or without modifications, as long as this notice is preserved.
6654 # Original written by Paul Eggert and Jim Meyering.
6655 # Modified by Chet Ramey for bash
6667 # codeset.m4 serial 5 (gettext-0.18.2)
6676 # fcntl-o.m4 serial 6
6681 # Test whether the flags O_NOATIME and O_NOFOLLOW actually work.
6682 # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise.
6683 # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise.
6686 # gettext.m4 serial 69 (gettext-0.19.9)
6704 # glibc2.m4 serial 3
6706 # Test for the GNU C Library, version 2.0 or newer.
6707 # From Bruno Haible.
6711 # glibc21.m4 serial 5
6713 # Test for the GNU C Library, version 2.1 or newer, or uClibc.
6714 # From Bruno Haible.
6718 # host-cpu-c-abi.m4 serial 11
6726 # iconv.m4 serial 21
6736 # intdiv0.m4 serial 6 (gettext-0.18.2)
6741 # intl.m4 serial 34 (gettext-0.19.9)
6753 # intlmacosx.m4 serial 6 (gettext-0.19.9)
6757 # intl-thread-locale.m4 serial 4
6763 # intmax.m4 serial 6 (gettext-0.18.2)
6768 # inttypes-pri.m4 serial 7 (gettext-0.18.2)
6773 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
6774 # macros to non-string values. This is the case on AIX 4.3.3.
6778 # inttypes.m4 serial 27
6785 # Ensure that the PRI* and SCN* macros are defined appropriately.
6788 # Define the symbol $1 to be 1 if the condition is true, 0 otherwise.
6789 # If $2 is true, the condition is $3; otherwise if long long int is supported
6790 # approximate the condition with $4; otherwise, assume the condition is false.
6791 # The condition should work on all C99 platforms; the approximations should be
6792 # good enough to work on all practical pre-C99 platforms.
6793 # $2 is evaluated by the C preprocessor, $3 and $4 as compile-time constants.
6800 # inttypes_h.m4 serial 10
6803 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
6804 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6808 # lcmessage.m4 serial 7 (gettext-0.18.2)
6811 # Check whether LC_MESSAGES is available in <locale.h>.
6815 # lib-ld.m4 serial 9
6822 # lib-link.m4 serial 28
6841 # lib-prefix.m4 serial 14
6857 # Prerequisites of lib/glthread/lock.c.
6860 # nls.m4 serial 5 (gettext-0.18)
6880 # printf-posix.m4 serial 6 (gettext-0.18.2)
6885 # progtest.m4 serial 7 (gettext-0.18.2)
6890 # Search path for a program which passes the given test.
6894 # pthread_rwlock_rdlock.m4 serial 2
6899 # size_max.m4 serial 11
6906 # stdint_h.m4 serial 9
6909 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
6910 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6914 # threadlib.m4 serial 16
6936 # uintmax_t.m4 serial 12
6941 # Define uintmax_t to 'unsigned long' or 'unsigned long long'
6942 # if it is not already defined in <stdint.h> or <inttypes.h>.
6946 # ulonglong.m4 serial 10
6948 # visibility.m4 serial 6
6954 # wchar_t.m4 serial 4 (gettext-0.18.2)
6959 # wint_t.m4 serial 7
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6972 printf %s
"checking for an ANSI C-conforming const... " >&6; }
6973 if test ${ac_cv_c_const+y}
6975 printf %s
"(cached) " >&6
6977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6985 /* Ultrix mips cc rejects this sort of thing. */
6986 typedef int charset[2];
6987 const charset cs = { 0, 0 };
6988 /* SunOS 4.1.1 cc rejects this. */
6989 char const *const *pcpcc;
6991 /* NEC SVR4.0.2 mips cc rejects this. */
6992 struct point {int x, y;};
6993 static struct point const zero = {0,0};
6994 /* IBM XL C 1.02.0.0 rejects this.
6995 It does not let you subtract one const X* pointer from another in
6996 an arm of an if-expression whose if-part is not a constant
6998 const char *g = "string";
6999 pcpcc = &g + (g ? g-g : 0);
7000 /* HPUX 7.0 cc rejects these. */
7002 ppc = (char**) pcpcc;
7003 pcpcc = (char const *const *) ppc;
7004 { /* SCO 3.2v4 cc rejects this sort of thing. */
7007 char const *s = 0 ? (char *) 0 : (char const *) 0;
7012 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7014 const int *foo = &x[0];
7017 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7018 typedef const int *iptr;
7022 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7023 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7024 struct s { int j; const int *ap[3]; } bx;
7025 struct s *b = &bx; b->j = 5;
7027 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7031 return !cs[0] && !zero.x;
7038 if ac_fn_c_try_compile
"$LINENO"
7044 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7047 printf "%s\n" "$ac_cv_c_const" >&6; }
7048 if test $ac_cv_c_const = no
; then
7050 printf "%s\n" "#define const /**/" >>confdefs.h
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7055 printf %s
"checking for inline... " >&6; }
7056 if test ${ac_cv_c_inline+y}
7058 printf %s
"(cached) " >&6
7061 for ac_kw
in inline __inline__ __inline
; do
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7066 static $ac_kw foo_t static_foo (void) {return 0; }
7067 $ac_kw foo_t foo (void) {return 0; }
7071 if ac_fn_c_try_compile
"$LINENO"
7073 ac_cv_c_inline
=$ac_kw
7075 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7076 test "$ac_cv_c_inline" != no
&& break
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7081 printf "%s\n" "$ac_cv_c_inline" >&6; }
7083 case $ac_cv_c_inline in
7086 case $ac_cv_c_inline in
7088 *) ac_val
=$ac_cv_c_inline;;
7090 cat >>confdefs.h
<<_ACEOF
7092 #define inline $ac_val
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7099 printf %s
"checking whether byte ordering is bigendian... " >&6; }
7100 if test ${ac_cv_c_bigendian+y}
7102 printf %s
"(cached) " >&6
7104 ac_cv_c_bigendian
=unknown
7105 # See if we're dealing with a universal compiler.
7106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 #ifndef __APPLE_CC__
7109 not a universal capable compiler
7114 if ac_fn_c_try_compile
"$LINENO"
7117 # Check for potential -arch flags. It is not universal unless
7118 # there are at least two -arch flags with different values.
7121 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7122 if test -n "$ac_prev"; then
7124 i?
86 | x86_64 | ppc | ppc64
)
7125 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7128 ac_cv_c_bigendian
=universal
7134 elif test "x$ac_word" = "x-arch"; then
7139 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7140 if test $ac_cv_c_bigendian = unknown
; then
7141 # See if sys/param.h defines the BYTE_ORDER macro.
7142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 #include <sys/types.h>
7145 #include <sys/param.h>
7150 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7151 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7160 if ac_fn_c_try_compile
"$LINENO"
7162 # It does; now see whether it defined to BIG_ENDIAN or not.
7163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <sys/types.h>
7166 #include <sys/param.h>
7171 #if BYTE_ORDER != BIG_ENDIAN
7179 if ac_fn_c_try_compile
"$LINENO"
7181 ac_cv_c_bigendian
=yes
7183 ac_cv_c_bigendian
=no
7185 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7187 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7189 if test $ac_cv_c_bigendian = unknown
; then
7190 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7198 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7206 if ac_fn_c_try_compile
"$LINENO"
7208 # It does; now see whether it defined to _BIG_ENDIAN or not.
7209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7224 if ac_fn_c_try_compile
"$LINENO"
7226 ac_cv_c_bigendian
=yes
7228 ac_cv_c_bigendian
=no
7230 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7232 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7234 if test $ac_cv_c_bigendian = unknown
; then
7235 # Compile a test program.
7236 if test "$cross_compiling" = yes
7238 # Try to guess by grepping values from an object file.
7239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 unsigned short int ascii_mm[] =
7242 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7243 unsigned short int ascii_ii[] =
7244 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7245 int use_ascii (int i) {
7246 return ascii_mm[i] + ascii_ii[i];
7248 unsigned short int ebcdic_ii[] =
7249 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7250 unsigned short int ebcdic_mm[] =
7251 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7252 int use_ebcdic (int i) {
7253 return ebcdic_mm[i] + ebcdic_ii[i];
7260 return use_ascii (foo) == use_ebcdic (foo);
7265 if ac_fn_c_try_compile
"$LINENO"
7267 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7268 ac_cv_c_bigendian
=yes
7270 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7271 if test "$ac_cv_c_bigendian" = unknown
; then
7272 ac_cv_c_bigendian
=no
7274 # finding both strings is unlikely to happen, but who knows?
7275 ac_cv_c_bigendian
=unknown
7279 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 $ac_includes_default
7288 /* Are we little or big endian? From Harbison&Steele. */
7292 char c[sizeof (long int)];
7295 return u.c[sizeof (long int) - 1] == 1;
7301 if ac_fn_c_try_run
"$LINENO"
7303 ac_cv_c_bigendian
=no
7305 ac_cv_c_bigendian
=yes
7307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7314 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7315 case $ac_cv_c_bigendian in #(
7317 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7323 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7327 as_fn_error $?
"unknown endianness
7328 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
7332 printf %s
"checking for preprocessor stringizing operator... " >&6; }
7333 if test ${ac_cv_c_stringize+y}
7335 printf %s
"(cached) " >&6
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7341 char *s = x(teststring);
7343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7344 $EGREP "#teststring" >/dev
/null
2>&1
7346 ac_cv_c_stringize
=no
7348 ac_cv_c_stringize
=yes
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
7354 printf "%s\n" "$ac_cv_c_stringize" >&6; }
7355 if test $ac_cv_c_stringize = yes; then
7357 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7363 printf %s
"checking for long double... " >&6; }
7364 if test ${ac_cv_type_long_double+y}
7366 printf %s
"(cached) " >&6
7368 if test "$GCC" = yes; then
7369 ac_cv_type_long_double
=yes
7371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 /* The Stardent Vistra knows sizeof (long double), but does
7375 long double foo = 0.0L;
7379 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7380 sizeof (double) <= sizeof (long double))];
7382 return test_array [0];
7388 if ac_fn_c_try_compile
"$LINENO"
7390 ac_cv_type_long_double
=yes
7392 ac_cv_type_long_double
=no
7394 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7398 printf "%s\n" "$ac_cv_type_long_double" >&6; }
7399 if test $ac_cv_type_long_double = yes; then
7401 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7405 if test "$ac_prog_cc_stdc" != no
; then
7407 printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
7410 printf "%s\n" "#define __PROTOTYPES 1" >>confdefs.h
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7415 printf %s
"checking whether char is unsigned... " >&6; }
7416 if test ${ac_cv_c_char_unsigned+y}
7418 printf %s
"(cached) " >&6
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 $ac_includes_default
7426 static int test_array [1 - 2 * !(((char) -1) < 0)];
7428 return test_array [0];
7434 if ac_fn_c_try_compile
"$LINENO"
7436 ac_cv_c_char_unsigned
=no
7438 ac_cv_c_char_unsigned
=yes
7440 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7443 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7444 if test $ac_cv_c_char_unsigned = yes; then
7445 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7450 printf %s
"checking for working volatile... " >&6; }
7451 if test ${ac_cv_c_volatile+y}
7453 printf %s
"(cached) " >&6
7455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7463 int * volatile y = (int *) 0;
7469 if ac_fn_c_try_compile
"$LINENO"
7471 ac_cv_c_volatile
=yes
7475 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7478 printf "%s\n" "$ac_cv_c_volatile" >&6; }
7479 if test $ac_cv_c_volatile = no
; then
7481 printf "%s\n" "#define volatile /**/" >>confdefs.h
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7486 printf %s
"checking for C/C++ restrict keyword... " >&6; }
7487 if test ${ac_cv_c_restrict+y}
7489 printf %s
"(cached) " >&6
7492 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
7493 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
7494 # Put 'restrict' last, because C++ lacks it.
7495 for ac_kw
in __restrict__ __restrict _Restrict restrict
; do
7496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 typedef int *int_ptr;
7499 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7500 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7501 int bar (int ip[$ac_kw]) { return ip[0]; }
7509 return foo (t) + bar (t);
7515 if ac_fn_c_try_compile
"$LINENO"
7517 ac_cv_c_restrict
=$ac_kw
7519 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7520 test "$ac_cv_c_restrict" != no
&& break
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7525 printf "%s\n" "$ac_cv_c_restrict" >&6; }
7527 case $ac_cv_c_restrict in
7529 no
) printf "%s\n" "#define restrict /**/" >>confdefs.h
7531 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
7538 printf %s
"checking for a race-free mkdir -p... " >&6; }
7539 if test -z "$MKDIR_P"; then
7540 if test ${ac_cv_path_mkdir+y}
7542 printf %s
"(cached) " >&6
7544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7545 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7548 case $as_dir in #(((
7551 *) as_dir
=$as_dir/ ;;
7553 for ac_prog
in mkdir gmkdir
; do
7554 for ac_exec_ext
in '' $ac_executable_extensions; do
7555 as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext" ||
continue
7556 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
7557 'mkdir ('*'coreutils) '* | \
7559 'mkdir (fileutils) '4.1*)
7560 ac_cv_path_mkdir
=$as_dir$ac_prog$ac_exec_ext
7570 test -d .
/--version && rmdir .
/--version
7571 if test ${ac_cv_path_mkdir+y}; then
7572 MKDIR_P
="$ac_cv_path_mkdir -p"
7574 # As a last resort, use the slow shell script. Don't cache a
7575 # value for MKDIR_P within a source directory, because that will
7576 # break other packages using the cache if that directory is
7577 # removed, or if the value is a relative name.
7578 MKDIR_P
="$ac_install_sh -d"
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7582 printf "%s\n" "$MKDIR_P" >&6; }
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7585 printf %s
"checking for a sed that does not truncate output... " >&6; }
7586 if test ${ac_cv_path_SED+y}
7588 printf %s
"(cached) " >&6
7590 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
7591 for ac_i
in 1 2 3 4 5 6 7; do
7592 ac_script
="$ac_script$as_nl$ac_script"
7594 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
7595 { ac_script
=; unset ac_script
;}
7596 if test -z "$SED"; then
7597 ac_path_SED_found
=false
7598 # Loop through the user's path and test for each of PROGNAME-LIST
7599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7603 case $as_dir in #(((
7606 *) as_dir
=$as_dir/ ;;
7608 for ac_prog
in sed gsed
7610 for ac_exec_ext
in '' $ac_executable_extensions; do
7611 ac_path_SED
="$as_dir$ac_prog$ac_exec_ext"
7612 as_fn_executable_p
"$ac_path_SED" ||
continue
7613 # Check for GNU ac_path_SED and select it if it is found.
7614 # Check for GNU $ac_path_SED
7615 case `"$ac_path_SED" --version 2>&1` in
7617 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7620 printf %s
0123456789 >"conftest.in"
7623 cat "conftest.in" "conftest.in" >"conftest.tmp"
7624 mv "conftest.tmp" "conftest.in"
7625 cp "conftest.in" "conftest.nl"
7626 printf "%s\n" '' >> "conftest.nl"
7627 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7628 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7629 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7630 if test $ac_count -gt ${ac_path_SED_max-0}; then
7631 # Best one so far, save it but keep looking for a better one
7632 ac_cv_path_SED
="$ac_path_SED"
7633 ac_path_SED_max
=$ac_count
7635 # 10*(2^10) chars as input seems more than enough
7636 test $ac_count -gt 10 && break
7638 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7641 $ac_path_SED_found && break 3
7646 if test -z "$ac_cv_path_SED"; then
7647 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7655 printf "%s\n" "$ac_cv_path_SED" >&6; }
7656 SED
="$ac_cv_path_SED"
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7661 printf %s
"checking whether NLS is requested... " >&6; }
7662 # Check whether --enable-nls was given.
7663 if test ${enable_nls+y}
7665 enableval
=$enable_nls; USE_NLS
=$enableval
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7671 printf "%s\n" "$USE_NLS" >&6; }
7676 GETTEXT_MACRO_VERSION
=0.19
7681 # Prepare PATH_SEPARATOR.
7682 # The user is always right.
7683 if test "${PATH_SEPARATOR+set}" != set; then
7684 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7685 # contains only /bin. Note that ksh looks also at the FPATH variable,
7686 # so we have to set that as well for the test.
7688 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7689 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7690 || PATH_SEPARATOR
=';'
7694 # Find out how to test for executable files. Don't use a zero-byte file,
7695 # as systems may use methods other than mode bits to determine executability.
7696 cat >conf$$.
file <<_ASEOF
7700 chmod +x conf$$.
file
7701 if test -x conf$$.
file >/dev
/null
2>&1; then
7702 ac_executable_p
="test -x"
7704 ac_executable_p
="test -f"
7708 # Extract the first word of "msgfmt", so it can be a program name with args.
7709 set dummy msgfmt
; ac_word
=$2
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 printf %s
"checking for $ac_word... " >&6; }
7712 if test ${ac_cv_path_MSGFMT+y}
7714 printf %s
"(cached) " >&6
7718 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7721 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7722 for ac_dir
in $PATH; do
7724 test -z "$ac_dir" && ac_dir
=.
7725 for ac_exec_ext
in '' $ac_executable_extensions; do
7726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7727 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7728 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
7729 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7730 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
7737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
7741 MSGFMT
="$ac_cv_path_MSGFMT"
7742 if test "$MSGFMT" != ":"; then
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7744 printf "%s\n" "$MSGFMT" >&6; }
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 printf "%s\n" "no" >&6; }
7750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7751 set dummy gmsgfmt
; ac_word
=$2
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 printf %s
"checking for $ac_word... " >&6; }
7754 if test ${ac_cv_path_GMSGFMT+y}
7756 printf %s
"(cached) " >&6
7760 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7767 case $as_dir in #(((
7770 *) as_dir
=$as_dir/ ;;
7772 for ac_exec_ext
in '' $ac_executable_extensions; do
7773 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7774 ac_cv_path_GMSGFMT
="$as_dir$ac_word$ac_exec_ext"
7775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7782 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7786 GMSGFMT
=$ac_cv_path_GMSGFMT
7787 if test -n "$GMSGFMT"; then
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7789 printf "%s\n" "$GMSGFMT" >&6; }
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf "%s\n" "no" >&6; }
7797 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7798 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
7799 *) MSGFMT_015
=$MSGFMT ;;
7802 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7803 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
7804 *) GMSGFMT_015
=$GMSGFMT ;;
7809 # Prepare PATH_SEPARATOR.
7810 # The user is always right.
7811 if test "${PATH_SEPARATOR+set}" != set; then
7812 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7813 # contains only /bin. Note that ksh looks also at the FPATH variable,
7814 # so we have to set that as well for the test.
7816 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7817 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7818 || PATH_SEPARATOR
=';'
7822 # Find out how to test for executable files. Don't use a zero-byte file,
7823 # as systems may use methods other than mode bits to determine executability.
7824 cat >conf$$.
file <<_ASEOF
7828 chmod +x conf$$.
file
7829 if test -x conf$$.
file >/dev
/null
2>&1; then
7830 ac_executable_p
="test -x"
7832 ac_executable_p
="test -f"
7836 # Extract the first word of "xgettext", so it can be a program name with args.
7837 set dummy xgettext
; ac_word
=$2
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 printf %s
"checking for $ac_word... " >&6; }
7840 if test ${ac_cv_path_XGETTEXT+y}
7842 printf %s
"(cached) " >&6
7846 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7849 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7850 for ac_dir
in $PATH; do
7852 test -z "$ac_dir" && ac_dir
=.
7853 for ac_exec_ext
in '' $ac_executable_extensions; do
7854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7855 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7856 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
7857 (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
7858 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7865 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7869 XGETTEXT
="$ac_cv_path_XGETTEXT"
7870 if test "$XGETTEXT" != ":"; then
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7872 printf "%s\n" "$XGETTEXT" >&6; }
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 printf "%s\n" "no" >&6; }
7880 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7881 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
7882 *) XGETTEXT_015
=$XGETTEXT ;;
7887 # Prepare PATH_SEPARATOR.
7888 # The user is always right.
7889 if test "${PATH_SEPARATOR+set}" != set; then
7890 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7891 # contains only /bin. Note that ksh looks also at the FPATH variable,
7892 # so we have to set that as well for the test.
7894 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7895 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7896 || PATH_SEPARATOR
=';'
7900 # Find out how to test for executable files. Don't use a zero-byte file,
7901 # as systems may use methods other than mode bits to determine executability.
7902 cat >conf$$.
file <<_ASEOF
7906 chmod +x conf$$.
file
7907 if test -x conf$$.
file >/dev
/null
2>&1; then
7908 ac_executable_p
="test -x"
7910 ac_executable_p
="test -f"
7914 # Extract the first word of "msgmerge", so it can be a program name with args.
7915 set dummy msgmerge
; ac_word
=$2
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 printf %s
"checking for $ac_word... " >&6; }
7918 if test ${ac_cv_path_MSGMERGE+y}
7920 printf %s
"(cached) " >&6
7924 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7927 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7928 for ac_dir
in $PATH; do
7930 test -z "$ac_dir" && ac_dir
=.
7931 for ac_exec_ext
in '' $ac_executable_extensions; do
7932 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7933 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7934 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
7935 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7942 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7946 MSGMERGE
="$ac_cv_path_MSGMERGE"
7947 if test "$MSGMERGE" != ":"; then
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7949 printf "%s\n" "$MSGMERGE" >&6; }
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 printf "%s\n" "no" >&6; }
7956 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
7959 ac_config_commands
="$ac_config_commands po-directories"
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7964 printf %s
"checking whether we are using the GNU C Library 2 or newer... " >&6; }
7965 if test ${ac_cv_gnu_library_2+y}
7967 printf %s
"(cached) " >&6
7969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7972 #include <features.h>
7973 #ifdef __GNU_LIBRARY__
7974 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981 $EGREP "Lucky GNU user" >/dev
/null
2>&1
7983 ac_cv_gnu_library_2
=yes
7985 ac_cv_gnu_library_2
=no
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
7993 printf "%s\n" "$ac_cv_gnu_library_2" >&6; }
7995 GLIBC2
="$ac_cv_gnu_library_2"
8002 if test -n "$GCC"; then
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
8004 printf %s
"checking whether the -Werror option is usable... " >&6; }
8005 if test ${gl_cv_cc_vis_werror+y}
8007 printf %s
"(cached) " >&6
8009 gl_save_CFLAGS
="$CFLAGS"
8010 CFLAGS
="$CFLAGS -Werror"
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8022 if ac_fn_c_try_compile
"$LINENO"
8024 gl_cv_cc_vis_werror
=yes
8026 gl_cv_cc_vis_werror
=no
8028 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8029 CFLAGS
="$gl_save_CFLAGS"
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
8033 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
8035 printf %s
"checking for simple visibility declarations... " >&6; }
8036 if test ${gl_cv_cc_visibility+y}
8038 printf %s
"(cached) " >&6
8040 gl_save_CFLAGS
="$CFLAGS"
8041 CFLAGS
="$CFLAGS -fvisibility=hidden"
8042 if test $gl_cv_cc_vis_werror = yes; then
8043 CFLAGS
="$CFLAGS -Werror"
8045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
8048 extern __attribute__((__visibility__("default"))) int exportedvar;
8049 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
8050 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
8051 void dummyfunc (void) {}
8061 if ac_fn_c_try_compile
"$LINENO"
8063 gl_cv_cc_visibility
=yes
8065 gl_cv_cc_visibility
=no
8067 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8068 CFLAGS
="$gl_save_CFLAGS"
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8072 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
8073 if test $gl_cv_cc_visibility = yes; then
8074 CFLAG_VISIBILITY
="-fvisibility=hidden"
8081 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
8084 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8085 if test "x$ac_cv_type_size_t" = xyes
8090 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8096 printf %s
"checking for stdint.h... " >&6; }
8097 if test ${gl_cv_header_stdint_h+y}
8099 printf %s
"(cached) " >&6
8101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8108 uintmax_t i = (uintmax_t) -1; return !i;
8113 if ac_fn_c_try_compile
"$LINENO"
8115 gl_cv_header_stdint_h
=yes
8117 gl_cv_header_stdint_h
=no
8119 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8122 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
8123 if test $gl_cv_header_stdint_h = yes; then
8125 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
8129 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8130 # for constant arguments. Useless!
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8132 printf %s
"checking for working alloca.h... " >&6; }
8133 if test ${ac_cv_working_alloca_h+y}
8135 printf %s
"(cached) " >&6
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8143 char *p = (char *) alloca (2 * sizeof (int));
8149 if ac_fn_c_try_link
"$LINENO"
8151 ac_cv_working_alloca_h
=yes
8153 ac_cv_working_alloca_h
=no
8155 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8156 conftest
$ac_exeext conftest.
$ac_ext
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8159 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
8160 if test $ac_cv_working_alloca_h = yes; then
8162 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8167 printf %s
"checking for alloca... " >&6; }
8168 if test ${ac_cv_func_alloca_works+y}
8170 printf %s
"(cached) " >&6
8172 if test $ac_cv_working_alloca_h = yes; then
8173 ac_cv_func_alloca_works
=yes
8175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8181 # define alloca __builtin_alloca
8182 # elif defined _MSC_VER
8183 # include <malloc.h>
8184 # define alloca _alloca
8189 void *alloca (size_t);
8196 char *p = (char *) alloca (1);
8202 if ac_fn_c_try_link
"$LINENO"
8204 ac_cv_func_alloca_works
=yes
8206 ac_cv_func_alloca_works
=no
8208 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8209 conftest
$ac_exeext conftest.
$ac_ext
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8212 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8215 if test $ac_cv_func_alloca_works = yes; then
8217 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8220 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8221 # that cause trouble. Some versions do not even contain alloca or
8222 # contain a buggy version. If you still want to use their alloca,
8223 # use ar to extract alloca.o from them instead of compiling alloca.c.
8225 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8227 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8231 printf %s
"checking stack direction for C alloca... " >&6; }
8232 if test ${ac_cv_c_stack_direction+y}
8234 printf %s
"(cached) " >&6
8236 if test "$cross_compiling" = yes
8238 ac_cv_c_stack_direction
=0
8240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 $ac_includes_default
8244 find_stack_direction (int *addr, int depth)
8249 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8250 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8255 main (int argc, char **argv)
8257 return find_stack_direction (0, argc + !argv + 20) < 0;
8260 if ac_fn_c_try_run
"$LINENO"
8262 ac_cv_c_stack_direction
=1
8264 ac_cv_c_stack_direction
=-1
8266 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8267 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8272 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
8273 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
8280 for ac_item
in $ac_func_c_list
8282 if test $ac_func; then
8283 ac_fn_c_check_func
"$LINENO" $ac_func ac_cv_func_
$ac_func
8284 if eval test \"x\
$ac_cv_func_$ac_func\" = xyes
; then
8285 echo "#define $ac_item 1" >> confdefs.h
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8295 printf %s
"checking for working mmap... " >&6; }
8296 if test ${ac_cv_func_mmap_fixed_mapped+y}
8298 printf %s
"(cached) " >&6
8300 if test "$cross_compiling" = yes
8302 case "$host_os" in # ((
8303 # Guess yes on platforms where we know the result.
8304 linux
*) ac_cv_func_mmap_fixed_mapped
=yes ;;
8305 # If we don't know, assume the worst.
8306 *) ac_cv_func_mmap_fixed_mapped
=no
;;
8309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 /* malloc might have been renamed as rpl_malloc. */
8315 /* Thanks to Mike Haertel and Jim Avera for this test.
8316 Here is a matrix of mmap possibilities:
8317 mmap private not fixed
8318 mmap private fixed at somewhere currently unmapped
8319 mmap private fixed at somewhere already mapped
8320 mmap shared not fixed
8321 mmap shared fixed at somewhere currently unmapped
8322 mmap shared fixed at somewhere already mapped
8323 For private mappings, we should verify that changes cannot be read()
8324 back from the file, nor mmap's back from the file at a different
8325 address. (There have been systems where private was not correctly
8326 implemented like the infamous i386 svr4.0, and systems where the
8327 VM page cache was not coherent with the file system buffer cache
8328 like early versions of FreeBSD and possibly contemporary NetBSD.)
8329 For shared mappings, we should conversely verify that changes get
8330 propagated back to all the places they're supposed to be.
8332 Grep wants private fixed already mapped.
8333 The main things grep needs to know about mmap are:
8334 * does it exist and is it safe to write into the mmap'd area
8335 * how to use it (BSD variants) */
8338 #include <sys/mman.h>
8340 /* This mess was copied from the GNU getpagesize.h. */
8341 #ifndef HAVE_GETPAGESIZE
8342 # ifdef _SC_PAGESIZE
8343 # define getpagesize() sysconf(_SC_PAGESIZE)
8344 # else /* no _SC_PAGESIZE */
8345 # ifdef HAVE_SYS_PARAM_H
8346 # include <sys/param.h>
8347 # ifdef EXEC_PAGESIZE
8348 # define getpagesize() EXEC_PAGESIZE
8349 # else /* no EXEC_PAGESIZE */
8351 # define getpagesize() NBPG * CLSIZE
8354 # endif /* no CLSIZE */
8355 # else /* no NBPG */
8357 # define getpagesize() NBPC
8358 # else /* no NBPC */
8360 # define getpagesize() PAGESIZE
8361 # endif /* PAGESIZE */
8362 # endif /* no NBPC */
8363 # endif /* no NBPG */
8364 # endif /* no EXEC_PAGESIZE */
8365 # else /* no HAVE_SYS_PARAM_H */
8366 # define getpagesize() 8192 /* punt totally */
8367 # endif /* no HAVE_SYS_PARAM_H */
8368 # endif /* no _SC_PAGESIZE */
8370 #endif /* no HAVE_GETPAGESIZE */
8375 char *data, *data2, *data3;
8380 pagesize = getpagesize ();
8382 /* First, make a file with some known garbage in it. */
8383 data = (char *) malloc (pagesize);
8386 for (i = 0; i < pagesize; ++i)
8387 *(data + i) = rand ();
8389 fd = creat ("conftest.mmap", 0600);
8392 if (write (fd, data, pagesize) != pagesize)
8396 /* Next, check that the tail of a page is zero-filled. File must have
8397 non-zero length, otherwise we risk SIGBUS for entire page. */
8398 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8402 if (write (fd2, cdata2, 1) != 1)
8404 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8405 if (data2 == MAP_FAILED)
8407 for (i = 0; i < pagesize; ++i)
8411 if (munmap (data2, pagesize))
8414 /* Next, try to mmap the file at a fixed address which already has
8415 something else allocated at it. If we can, also make sure that
8416 we see the same garbage. */
8417 fd = open ("conftest.mmap", O_RDWR);
8420 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8421 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8423 for (i = 0; i < pagesize; ++i)
8424 if (*(data + i) != *(data2 + i))
8427 /* Finally, make sure that changes to the mapped area do not
8428 percolate back to the file as seen by read(). (This is a bug on
8429 some variants of i386 svr4.0.) */
8430 for (i = 0; i < pagesize; ++i)
8431 *(data2 + i) = *(data2 + i) + 1;
8432 data3 = (char *) malloc (pagesize);
8435 if (read (fd, data3, pagesize) != pagesize)
8437 for (i = 0; i < pagesize; ++i)
8438 if (*(data + i) != *(data3 + i))
8446 if ac_fn_c_try_run
"$LINENO"
8448 ac_cv_func_mmap_fixed_mapped
=yes
8450 ac_cv_func_mmap_fixed_mapped
=no
8452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8458 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
8459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8461 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
8464 rm -f conftest.mmap conftest.txt
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8469 printf %s
"checking whether integer division by zero raises SIGFPE... " >&6; }
8470 if test ${gt_cv_int_divbyzero_sigfpe+y}
8472 printf %s
"(cached) " >&6
8475 gt_cv_int_divbyzero_sigfpe
=
8477 macos
* | darwin
[6-9]* | darwin
[1-9][0-9]*)
8478 # On Mac OS X 10.2 or newer, just assume the same as when cross-
8479 # compiling. If we were to perform the real test, 1 Crash Report
8480 # dialog window would pop up.
8482 i
[34567]86 | x86_64
)
8483 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
8487 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8488 if test "$cross_compiling" = yes
8491 # Guess based on the CPU.
8493 alpha
* | i
[34567]86 | x86_64 | m68k | s390
*)
8494 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
8496 gt_cv_int_divbyzero_sigfpe
="guessing no";;
8500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8507 sigfpe_handler (int sig)
8509 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8510 exit (sig != SIGFPE);
8520 signal (SIGFPE, sigfpe_handler);
8521 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8522 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8523 signal (SIGTRAP, sigfpe_handler);
8525 /* Linux/SPARC yields signal SIGILL. */
8526 #if defined (__sparc__) && defined (__linux__)
8527 signal (SIGILL, sigfpe_handler);
8536 if ac_fn_c_try_run
"$LINENO"
8538 gt_cv_int_divbyzero_sigfpe
=yes
8540 gt_cv_int_divbyzero_sigfpe
=no
8542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8550 printf "%s\n" "$gt_cv_int_divbyzero_sigfpe" >&6; }
8551 case "$gt_cv_int_divbyzero_sigfpe" in
8556 printf "%s\n" "#define INTDIV0_RAISES_SIGFPE $value" >>confdefs.h
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8561 printf %s
"checking for inttypes.h... " >&6; }
8562 if test ${gl_cv_header_inttypes_h+y}
8564 printf %s
"(cached) " >&6
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8569 #include <sys/types.h>
8570 #include <inttypes.h>
8575 uintmax_t i = (uintmax_t) -1; return !i;
8580 if ac_fn_c_try_compile
"$LINENO"
8582 gl_cv_header_inttypes_h
=yes
8584 gl_cv_header_inttypes_h
=no
8586 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8589 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
8590 if test $gl_cv_header_inttypes_h = yes; then
8592 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8598 printf %s
"checking for unsigned long long int... " >&6; }
8599 if test ${ac_cv_type_unsigned_long_long_int+y}
8601 printf %s
"(cached) " >&6
8603 ac_cv_type_unsigned_long_long_int
=yes
8604 case $ac_prog_cc_stdc in
8607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8610 /* For now, do not test the preprocessor; as of 2007 there are too many
8611 implementations with broken preprocessors. Perhaps this can
8612 be revisited in 2012. In the meantime, code should not expect
8613 #if to work with literals wider than 32 bits. */
8614 /* Test literals. */
8615 long long int ll = 9223372036854775807ll;
8616 long long int nll = -9223372036854775807LL;
8617 unsigned long long int ull = 18446744073709551615ULL;
8618 /* Test constant expressions. */
8619 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8621 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8627 /* Test availability of runtime routines for shift and division. */
8628 long long int llmax = 9223372036854775807ll;
8629 unsigned long long int ullmax = 18446744073709551615ull;
8630 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8631 | (llmax / ll) | (llmax % ll)
8632 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8633 | (ullmax / ull) | (ullmax % ull));
8639 if ac_fn_c_try_link
"$LINENO"
8643 ac_cv_type_unsigned_long_long_int
=no
8645 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8646 conftest
$ac_exeext conftest.
$ac_ext;;
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8650 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
8651 if test $ac_cv_type_unsigned_long_long_int = yes; then
8653 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8660 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
8662 test $ac_cv_type_unsigned_long_long_int = yes \
8663 && ac_type
='unsigned long long' \
8664 || ac_type
='unsigned long'
8666 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
8670 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
8675 ac_fn_c_check_header_compile
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8676 if test "x$ac_cv_header_inttypes_h" = xyes
8678 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
8682 if test $ac_cv_header_inttypes_h = yes; then
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8684 printf %s
"checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8685 if test ${gt_cv_inttypes_pri_broken+y}
8687 printf %s
"(cached) " >&6
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8693 #include <inttypes.h>
8706 if ac_fn_c_try_compile
"$LINENO"
8708 gt_cv_inttypes_pri_broken
=no
8710 gt_cv_inttypes_pri_broken
=yes
8712 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8716 printf "%s\n" "$gt_cv_inttypes_pri_broken" >&6; }
8718 if test "$gt_cv_inttypes_pri_broken" = yes; then
8720 printf "%s\n" "#define PRI_MACROS_BROKEN 1" >>confdefs.h
8733 # Check whether --enable-threads was given.
8734 if test ${enable_threads+y}
8736 enableval
=$enable_threads; gl_use_threads
=$enableval
8738 if test -n "$gl_use_threads_default"; then
8739 gl_use_threads
="$gl_use_threads_default"
8742 osf
*) gl_use_threads
=no
;;
8745 1.
[0-5].
*) gl_use_threads
=no
;;
8746 *) gl_use_threads
=yes ;;
8749 *) gl_use_threads
=yes ;;
8755 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
8756 # For using <pthread.h>:
8759 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8760 # groks <pthread.h>. cc also understands the flag -pthread, but
8761 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8762 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8763 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8764 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8765 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
8768 # Some systems optimize for single-threaded programs by default, and
8769 # need special flags to disable these optimizations. For example, the
8770 # definition of 'errno' in <errno.h>.
8772 aix
* | freebsd
* | midnightbsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
8773 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
8781 if test "X$prefix" = "XNONE"; then
8782 acl_final_prefix
="$ac_default_prefix"
8784 acl_final_prefix
="$prefix"
8786 if test "X$exec_prefix" = "XNONE"; then
8787 acl_final_exec_prefix
='${prefix}'
8789 acl_final_exec_prefix
="$exec_prefix"
8791 acl_save_prefix
="$prefix"
8792 prefix
="$acl_final_prefix"
8793 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8794 prefix
="$acl_save_prefix"
8798 # Check whether --with-gnu-ld was given.
8799 if test ${with_gnu_ld+y}
8801 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8806 # Prepare PATH_SEPARATOR.
8807 # The user is always right.
8808 if test "${PATH_SEPARATOR+set}" != set; then
8809 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8810 # contains only /bin. Note that ksh looks also at the FPATH variable,
8811 # so we have to set that as well for the test.
8813 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8814 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8815 || PATH_SEPARATOR
=';'
8819 if test -n "$LD"; then
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8821 printf %s
"checking for ld... " >&6; }
8822 elif test "$GCC" = yes; then
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8824 printf %s
"checking for ld used by $CC... " >&6; }
8825 elif test "$with_gnu_ld" = yes; then
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8827 printf %s
"checking for GNU ld... " >&6; }
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8830 printf %s
"checking for non-GNU ld... " >&6; }
8832 if test -n "$LD"; then
8833 # Let the user override the test with a path.
8836 if test ${acl_cv_path_LD+y}
8838 printf %s
"(cached) " >&6
8841 acl_cv_path_LD
= # Final result of this test
8842 ac_prog
=ld
# Program to search in $PATH
8843 if test "$GCC" = yes; then
8844 # Check if gcc -print-prog-name=ld gives a path.
8847 # gcc leaves a trailing carriage return which upsets mingw
8848 acl_output
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8850 acl_output
=`($CC -print-prog-name=ld) 2>&5` ;;
8853 # Accept absolute paths.
8855 re_direlt
='/[^/][^/]*/\.\./'
8856 # Canonicalize the pathname of ld
8857 acl_output
=`echo "$acl_output" | sed 's%\\\\%/%g'`
8858 while echo "$acl_output" |
grep "$re_direlt" > /dev
/null
2>&1; do
8859 acl_output
=`echo $acl_output | sed "s%$re_direlt%/%"`
8861 # Got the pathname. No search in PATH is needed.
8862 acl_cv_path_LD
="$acl_output"
8866 # If it fails, then pretend we aren't using GCC.
8869 # If it is relative, then search for the first ld in PATH.
8874 if test -n "$ac_prog"; then
8875 # Search for $ac_prog in $PATH.
8876 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8877 for ac_dir
in $PATH; do
8879 test -z "$ac_dir" && ac_dir
=.
8880 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8881 acl_cv_path_LD
="$ac_dir/$ac_prog"
8882 # Check to see if the program is GNU ld. I'd rather use --version,
8883 # but apparently some variants of GNU ld only accept -v.
8884 # Break only if it was the GNU/non-GNU ld that we prefer.
8885 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8886 *GNU
* |
*'with BFD'*)
8887 test "$with_gnu_ld" != no
&& break
8890 test "$with_gnu_ld" != yes && break
8899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 #if defined __powerpc64__ || defined _ARCH_PPC64
8908 if ac_fn_c_try_compile
"$LINENO"
8910 # The compiler produces 64-bit code. Add option '-b64' so that the
8911 # linker groks 64-bit object files.
8912 case "$acl_cv_path_LD " in
8914 *) acl_cv_path_LD
="$acl_cv_path_LD -b64" ;;
8918 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 #if defined __sparcv9 || defined __arch64__
8930 if ac_fn_c_try_compile
"$LINENO"
8934 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8935 # so that the linker groks 32-bit object files.
8936 case "$acl_cv_path_LD " in
8937 *" -m elf32_sparc "*) ;;
8938 *) acl_cv_path_LD
="$acl_cv_path_LD -m elf32_sparc" ;;
8942 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8948 LD
="$acl_cv_path_LD"
8950 if test -n "$LD"; then
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8952 printf "%s\n" "$LD" >&6; }
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 printf "%s\n" "no" >&6; }
8956 as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8959 printf %s
"checking if the linker ($LD) is GNU ld... " >&6; }
8960 if test ${acl_cv_prog_gnu_ld+y}
8962 printf %s
"(cached) " >&6
8964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8965 case `$LD -v 2>&1 </dev/null` in
8966 *GNU
* |
*'with BFD'*)
8967 acl_cv_prog_gnu_ld
=yes
8970 acl_cv_prog_gnu_ld
=no
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8975 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8976 with_gnu_ld
=$acl_cv_prog_gnu_ld
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8984 printf %s
"checking for shared library run path origin... " >&6; }
8985 if test ${acl_cv_rpath+y}
8987 printf %s
"(cached) " >&6
8990 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8991 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8998 printf "%s\n" "$acl_cv_rpath" >&6; }
9000 acl_libext
="$acl_cv_libext"
9001 acl_shlibext
="$acl_cv_shlibext"
9002 acl_libname_spec
="$acl_cv_libname_spec"
9003 acl_library_names_spec
="$acl_cv_library_names_spec"
9004 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9005 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9006 acl_hardcode_direct
="$acl_cv_hardcode_direct"
9007 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9008 # Check whether --enable-rpath was given.
9009 if test ${enable_rpath+y}
9011 enableval
=$enable_rpath; :
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
9020 printf %s
"checking 32-bit host C ABI... " >&6; }
9021 if test ${gl_cv_host_cpu_c_abi_32bit+y}
9023 printf %s
"(cached) " >&6
9025 if test -n "$gl_cv_host_cpu_c_abi"; then
9026 case "$gl_cv_host_cpu_c_abi" in
9027 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv
*-ilp32* | s390 | sparc
)
9028 gl_cv_host_cpu_c_abi_32bit
=yes ;;
9030 gl_cv_host_cpu_c_abi_32bit
=no
;;
9036 gl_cv_host_cpu_c_abi_32bit
=yes
9040 # On x86_64 systems, the C compiler may be generating code in one of
9042 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
9043 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
9044 # with native Windows (mingw, MSVC).
9045 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
9046 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
9047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 #if (defined __x86_64__ || defined __amd64__ \
9050 || defined _M_X64 || defined _M_AMD64) \
9051 && !(defined __ILP32__ || defined _ILP32)
9058 if ac_fn_c_try_compile
"$LINENO"
9060 gl_cv_host_cpu_c_abi_32bit
=no
9062 gl_cv_host_cpu_c_abi_32bit
=yes
9064 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9068 # Assume arm with EABI.
9069 # On arm64 systems, the C compiler may be generating code in one of
9071 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
9072 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
9073 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
9083 if ac_fn_c_try_compile
"$LINENO"
9085 gl_cv_host_cpu_c_abi_32bit
=no
9087 gl_cv_host_cpu_c_abi_32bit
=yes
9089 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9092 hppa1.0 | hppa1.1 | hppa2.0
* | hppa64
)
9093 # On hppa, the C compiler may be generating 32-bit code or 64-bit
9094 # code. In the latter case, it defines _LP64 and __LP64__.
9095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9104 if ac_fn_c_try_compile
"$LINENO"
9106 gl_cv_host_cpu_c_abi_32bit
=no
9108 gl_cv_host_cpu_c_abi_32bit
=yes
9110 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9114 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
9115 # 32-bit code. In the latter case, it defines _ILP32.
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9125 if ac_fn_c_try_compile
"$LINENO"
9127 gl_cv_host_cpu_c_abi_32bit
=yes
9129 gl_cv_host_cpu_c_abi_32bit
=no
9131 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9135 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
9146 if ac_fn_c_try_compile
"$LINENO"
9148 gl_cv_host_cpu_c_abi_32bit
=no
9150 gl_cv_host_cpu_c_abi_32bit
=yes
9152 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9156 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
9157 # No need to distinguish them here; the caller may distinguish
9158 # them based on the OS.
9159 # On powerpc64 systems, the C compiler may still be generating
9160 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
9161 # be generating 64-bit code.
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #if defined __powerpc64__ || defined _ARCH_PPC64
9171 if ac_fn_c_try_compile
"$LINENO"
9173 gl_cv_host_cpu_c_abi_32bit
=no
9175 gl_cv_host_cpu_c_abi_32bit
=yes
9177 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9181 gl_cv_host_cpu_c_abi_32bit
=yes
9185 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9186 # Size of 'long' and 'void *':
9187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #if defined __LP64__
9196 if ac_fn_c_try_compile
"$LINENO"
9198 gl_cv_host_cpu_c_abi_32bit
=no
9200 gl_cv_host_cpu_c_abi_32bit
=yes
9202 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9206 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9207 # or 31-bit (= s390) code.
9208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 #if defined __LP64__ || defined __s390x__
9217 if ac_fn_c_try_compile
"$LINENO"
9219 gl_cv_host_cpu_c_abi_32bit
=no
9221 gl_cv_host_cpu_c_abi_32bit
=yes
9223 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9227 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9228 # C compiler still generates 32-bit code.
9229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #if defined __sparcv9 || defined __arch64__
9238 if ac_fn_c_try_compile
"$LINENO"
9240 gl_cv_host_cpu_c_abi_32bit
=no
9242 gl_cv_host_cpu_c_abi_32bit
=yes
9244 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9248 gl_cv_host_cpu_c_abi_32bit
=no
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9255 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9257 HOST_CPU_C_ABI_32BIT
="$gl_cv_host_cpu_c_abi_32bit"
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
9266 printf %s
"checking for 64-bit host... " >&6; }
9267 if test ${gl_cv_solaris_64bit+y}
9269 printf %s
"(cached) " >&6
9271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9280 if ac_fn_c_try_compile
"$LINENO"
9282 gl_cv_solaris_64bit
=yes
9284 gl_cv_solaris_64bit
=no
9286 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
9290 printf "%s\n" "$gl_cv_solaris_64bit" >&6; };;
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9294 printf %s
"checking for the common suffixes of directories in the library search path... " >&6; }
9295 if test ${acl_cv_libdirstems+y}
9297 printf %s
"(cached) " >&6
9303 if test $gl_cv_solaris_64bit = yes; then
9304 acl_libdirstem
=lib
/64
9306 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
9307 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
9312 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
9313 searchpath
=`(if test -f /usr/bin/gcc \
9314 && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
9315 LC_ALL=C /usr/bin/gcc -print-search-dirs; \
9317 LC_ALL=C $CC -print-search-dirs; \
9319 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9320 if test -n "$searchpath"; then
9321 acl_save_IFS
="${IFS= }"; IFS
=":"
9322 for searchdir
in $searchpath; do
9323 if test -d "$searchdir"; then
9324 case "$searchdir" in
9325 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
9327 # Better ignore directories of this form. They are misleading.
9329 *) searchdir
=`cd "$searchdir" && pwd`
9330 case "$searchdir" in
9331 */lib64
) acl_libdirstem
=lib64
;;
9341 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
9342 acl_cv_libdirstems
="$acl_libdirstem,$acl_libdirstem2"
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9346 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9347 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
9348 acl_libdirstem
=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9349 acl_libdirstem2
=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
9358 if test "$gl_use_threads" != no
; then
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9360 printf %s
"checking whether imported symbols can be declared weak... " >&6; }
9361 if test ${gl_cv_have_weak+y}
9363 printf %s
"(cached) " >&6
9366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 extern void xyzzy ();
9378 if ac_fn_c_try_link
"$LINENO"
9380 gl_cv_have_weak
=maybe
9382 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9383 conftest
$ac_exeext conftest.
$ac_ext
9384 if test $gl_cv_have_weak = maybe
; then
9385 if test "$cross_compiling" = yes
9387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 Extensible Linking Format
9394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9395 $EGREP "Extensible Linking Format" >/dev
/null
2>&1
9397 gl_cv_have_weak
="guessing yes"
9399 gl_cv_have_weak
="guessing no"
9405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9412 return (fputs == NULL);
9415 if ac_fn_c_try_run
"$LINENO"
9421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9426 case " $LDFLAGS " in
9427 *" -static "*) gl_cv_have_weak
=no
;;
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9432 printf "%s\n" "$gl_cv_have_weak" >&6; }
9433 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
9434 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9435 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9436 ac_fn_c_check_header_compile
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9437 if test "x$ac_cv_header_pthread_h" = xyes
9439 gl_have_pthread_h
=yes
9441 gl_have_pthread_h
=no
9444 if test "$gl_have_pthread_h" = yes; then
9445 # Other possible tests:
9446 # -lpthreads (FSU threads, PCthreads)
9449 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9450 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9451 # the second one only in libpthread, and lock.c needs it.
9453 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
9454 # needs -pthread for some reason. See:
9455 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
9457 for gl_pthread
in '' '-pthread'; do
9458 LIBS
="$LIBS $gl_pthread"
9459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <pthread.h>
9463 pthread_mutexattr_t ma;
9468 pthread_mutex_lock (&m);
9469 pthread_mutexattr_init (&ma);
9474 if ac_fn_c_try_link
"$LINENO"
9477 LIBTHREAD
=$gl_pthread LTLIBTHREAD
=$gl_pthread
9478 LIBMULTITHREAD
=$gl_pthread LTLIBMULTITHREAD
=$gl_pthread
9480 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9481 conftest
$ac_exeext conftest.
$ac_ext
9483 test -n "$gl_have_pthread" && break
9486 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9487 # since it is defined as a macro on OSF/1.)
9488 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
9489 # The program links fine without libpthread. But it may actually
9490 # need to link with libpthread in order to create multiple threads.
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9492 printf %s
"checking for pthread_kill in -lpthread... " >&6; }
9493 if test ${ac_cv_lib_pthread_pthread_kill+y}
9495 printf %s
"(cached) " >&6
9497 ac_check_lib_save_LIBS
=$LIBS
9498 LIBS
="-lpthread $LIBS"
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9502 /* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9505 char pthread_kill ();
9509 return pthread_kill ();
9514 if ac_fn_c_try_link
"$LINENO"
9516 ac_cv_lib_pthread_pthread_kill
=yes
9518 ac_cv_lib_pthread_pthread_kill
=no
9520 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 LIBS
=$ac_check_lib_save_LIBS
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9525 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
9526 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
9528 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
9529 # On Solaris and HP-UX, most pthread functions exist also in libc.
9530 # Therefore pthread_in_use() needs to actually try to create a
9531 # thread: pthread_create from libc will fail, whereas
9532 # pthread_create will actually create a thread.
9533 # On Solaris 10 or newer, this test is no longer needed, because
9534 # libc contains the fully functional pthread functions.
9536 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
9538 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9544 elif test -z "$gl_have_pthread"; then
9545 # Some library is needed. Try libpthread and libc_r.
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9547 printf %s
"checking for pthread_kill in -lpthread... " >&6; }
9548 if test ${ac_cv_lib_pthread_pthread_kill+y}
9550 printf %s
"(cached) " >&6
9552 ac_check_lib_save_LIBS
=$LIBS
9553 LIBS
="-lpthread $LIBS"
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 char pthread_kill ();
9564 return pthread_kill ();
9569 if ac_fn_c_try_link
"$LINENO"
9571 ac_cv_lib_pthread_pthread_kill
=yes
9573 ac_cv_lib_pthread_pthread_kill
=no
9575 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9576 conftest
$ac_exeext conftest.
$ac_ext
9577 LIBS
=$ac_check_lib_save_LIBS
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9580 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
9581 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
9584 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
9585 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
9588 if test -z "$gl_have_pthread"; then
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9591 printf %s
"checking for pthread_kill in -lc_r... " >&6; }
9592 if test ${ac_cv_lib_c_r_pthread_kill+y}
9594 printf %s
"(cached) " >&6
9596 ac_check_lib_save_LIBS
=$LIBS
9598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 char pthread_kill ();
9608 return pthread_kill ();
9613 if ac_fn_c_try_link
"$LINENO"
9615 ac_cv_lib_c_r_pthread_kill
=yes
9617 ac_cv_lib_c_r_pthread_kill
=no
9619 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9620 conftest
$ac_exeext conftest.
$ac_ext
9621 LIBS
=$ac_check_lib_save_LIBS
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9624 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
9625 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
9628 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
9629 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
9634 if test -n "$gl_have_pthread"; then
9635 gl_threads_api
=posix
9637 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
9639 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
9640 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
9642 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9651 if test -z "$gl_have_pthread"; then
9652 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
9653 gl_have_solaristhread
=
9654 gl_save_LIBS
="$LIBS"
9655 LIBS
="$LIBS -lthread"
9656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9670 if ac_fn_c_try_link
"$LINENO"
9672 gl_have_solaristhread
=yes
9674 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9675 conftest
$ac_exeext conftest.
$ac_ext
9676 LIBS
="$gl_save_LIBS"
9677 if test -n "$gl_have_solaristhread"; then
9678 gl_threads_api
=solaris
9680 LTLIBTHREAD
=-lthread
9681 LIBMULTITHREAD
="$LIBTHREAD"
9682 LTLIBMULTITHREAD
="$LTLIBTHREAD"
9684 printf "%s\n" "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9686 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
9688 printf "%s\n" "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9696 if test "$gl_use_threads" = pth
; then
9697 gl_save_CPPFLAGS
="$CPPFLAGS"
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9704 printf %s
"checking how to link with libpth... " >&6; }
9705 if test ${ac_cv_libpth_libs+y}
9707 printf %s
"(cached) " >&6
9718 acl_save_prefix
="$prefix"
9719 prefix
="$acl_final_prefix"
9720 acl_save_exec_prefix
="$exec_prefix"
9721 exec_prefix
="$acl_final_exec_prefix"
9723 eval additional_includedir
=\"$includedir\"
9724 eval additional_libdir
=\"$libdir\"
9726 exec_prefix
="$acl_save_exec_prefix"
9727 prefix
="$acl_save_prefix"
9730 # Check whether --with-libpth-prefix was given.
9731 if test ${with_libpth_prefix+y}
9733 withval
=$with_libpth_prefix;
9734 if test "X$withval" = "Xno"; then
9737 if test "X$withval" = "X"; then
9739 acl_save_prefix
="$prefix"
9740 prefix
="$acl_final_prefix"
9741 acl_save_exec_prefix
="$exec_prefix"
9742 exec_prefix
="$acl_final_exec_prefix"
9744 eval additional_includedir
=\"$includedir\"
9745 eval additional_libdir
=\"$libdir\"
9747 exec_prefix
="$acl_save_exec_prefix"
9748 prefix
="$acl_save_prefix"
9751 additional_includedir
="$withval/include"
9752 additional_libdir
="$withval/$acl_libdirstem"
9753 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9754 && test ! -d "$withval/$acl_libdirstem"; then
9755 additional_libdir
="$withval/$acl_libdirstem2"
9769 names_already_handled
=
9770 names_next_round
='pth '
9771 while test -n "$names_next_round"; do
9772 names_this_round
="$names_next_round"
9774 for name
in $names_this_round; do
9776 for n
in $names_already_handled; do
9777 if test "$n" = "$name"; then
9782 if test -z "$already_handled"; then
9783 names_already_handled
="$names_already_handled $name"
9784 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9785 eval value
=\"\
$HAVE_LIB$uppername\"
9786 if test -n "$value"; then
9787 if test "$value" = yes; then
9788 eval value
=\"\
$LIB$uppername\"
9789 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
9790 eval value
=\"\
$LTLIB$uppername\"
9791 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
9800 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9801 if test -n "$acl_shlibext"; then
9802 shrext
=".$acl_shlibext" # typically: shrext=.so
9806 if test $use_additional = yes; then
9807 dir
="$additional_libdir"
9808 if test -n "$acl_shlibext"; then
9809 if test -f "$dir/$libname$shrext"; then
9811 found_so
="$dir/$libname$shrext"
9813 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9814 ver
=`(cd "$dir" && \
9815 for f in "$libname$shrext".*; do echo "$f"; done \
9816 | sed -e "s,^$libname$shrext\\\\.,," \
9817 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9818 | sed 1q ) 2>/dev/null`
9819 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9821 found_so
="$dir/$libname$shrext.$ver"
9824 eval library_names
=\"$acl_library_names_spec\"
9825 for f
in $library_names; do
9826 if test -f "$dir/$f"; then
9835 if test "X$found_dir" = "X"; then
9836 if test -f "$dir/$libname.$acl_libext"; then
9838 found_a
="$dir/$libname.$acl_libext"
9841 if test "X$found_dir" != "X"; then
9842 if test -f "$dir/$libname.la"; then
9843 found_la
="$dir/$libname.la"
9847 if test "X$found_dir" = "X"; then
9848 for x
in $LDFLAGS $LTLIBPTH; do
9850 acl_save_prefix
="$prefix"
9851 prefix
="$acl_final_prefix"
9852 acl_save_exec_prefix
="$exec_prefix"
9853 exec_prefix
="$acl_final_exec_prefix"
9855 exec_prefix
="$acl_save_exec_prefix"
9856 prefix
="$acl_save_prefix"
9860 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9861 if test -n "$acl_shlibext"; then
9862 if test -f "$dir/$libname$shrext"; then
9864 found_so
="$dir/$libname$shrext"
9866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9867 ver
=`(cd "$dir" && \
9868 for f in "$libname$shrext".*; do echo "$f"; done \
9869 | sed -e "s,^$libname$shrext\\\\.,," \
9870 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9871 | sed 1q ) 2>/dev/null`
9872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9874 found_so
="$dir/$libname$shrext.$ver"
9877 eval library_names
=\"$acl_library_names_spec\"
9878 for f
in $library_names; do
9879 if test -f "$dir/$f"; then
9888 if test "X$found_dir" = "X"; then
9889 if test -f "$dir/$libname.$acl_libext"; then
9891 found_a
="$dir/$libname.$acl_libext"
9894 if test "X$found_dir" != "X"; then
9895 if test -f "$dir/$libname.la"; then
9896 found_la
="$dir/$libname.la"
9901 if test "X$found_dir" != "X"; then
9906 if test "X$found_dir" != "X"; then
9907 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9908 if test "X$found_so" != "X"; then
9909 if test "$enable_rpath" = no \
9910 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
9911 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9912 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9915 for x
in $ltrpathdirs; do
9916 if test "X$x" = "X$found_dir"; then
9921 if test -z "$haveit"; then
9922 ltrpathdirs
="$ltrpathdirs $found_dir"
9924 if test "$acl_hardcode_direct" = yes; then
9925 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9927 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9928 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9930 for x
in $rpathdirs; do
9931 if test "X$x" = "X$found_dir"; then
9936 if test -z "$haveit"; then
9937 rpathdirs
="$rpathdirs $found_dir"
9941 for x
in $LDFLAGS $LIBPTH; do
9943 acl_save_prefix
="$prefix"
9944 prefix
="$acl_final_prefix"
9945 acl_save_exec_prefix
="$exec_prefix"
9946 exec_prefix
="$acl_final_exec_prefix"
9948 exec_prefix
="$acl_save_exec_prefix"
9949 prefix
="$acl_save_prefix"
9951 if test "X$x" = "X-L$found_dir"; then
9956 if test -z "$haveit"; then
9957 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9959 if test "$acl_hardcode_minus_L" != no
; then
9960 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
9962 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
9968 if test "X$found_a" != "X"; then
9969 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
9971 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9974 additional_includedir
=
9975 case "$found_dir" in
9976 */$acl_libdirstem |
*/$acl_libdirstem/)
9977 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9978 if test "$name" = 'pth'; then
9979 LIBPTH_PREFIX
="$basedir"
9981 additional_includedir
="$basedir/include"
9983 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9984 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9985 if test "$name" = 'pth'; then
9986 LIBPTH_PREFIX
="$basedir"
9988 additional_includedir
="$basedir/include"
9991 if test "X$additional_includedir" != "X"; then
9992 if test "X$additional_includedir" != "X/usr/include"; then
9994 if test "X$additional_includedir" = "X/usr/local/include"; then
9995 if test -n "$GCC"; then
9997 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10001 if test -z "$haveit"; then
10002 for x
in $CPPFLAGS $INCPTH; do
10004 acl_save_prefix
="$prefix"
10005 prefix
="$acl_final_prefix"
10006 acl_save_exec_prefix
="$exec_prefix"
10007 exec_prefix
="$acl_final_exec_prefix"
10009 exec_prefix
="$acl_save_exec_prefix"
10010 prefix
="$acl_save_prefix"
10012 if test "X$x" = "X-I$additional_includedir"; then
10017 if test -z "$haveit"; then
10018 if test -d "$additional_includedir"; then
10019 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10025 if test -n "$found_la"; then
10026 save_libdir
="$libdir"
10027 case "$found_la" in
10028 */* |
*\\*) .
"$found_la" ;;
10029 *) .
"./$found_la" ;;
10031 libdir
="$save_libdir"
10032 for dep
in $dependency_libs; do
10035 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10036 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10037 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10039 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10040 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10041 if test -n "$GCC"; then
10043 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10047 if test -z "$haveit"; then
10049 for x
in $LDFLAGS $LIBPTH; do
10051 acl_save_prefix
="$prefix"
10052 prefix
="$acl_final_prefix"
10053 acl_save_exec_prefix
="$exec_prefix"
10054 exec_prefix
="$acl_final_exec_prefix"
10056 exec_prefix
="$acl_save_exec_prefix"
10057 prefix
="$acl_save_prefix"
10059 if test "X$x" = "X-L$additional_libdir"; then
10064 if test -z "$haveit"; then
10065 if test -d "$additional_libdir"; then
10066 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10070 for x
in $LDFLAGS $LTLIBPTH; do
10072 acl_save_prefix
="$prefix"
10073 prefix
="$acl_final_prefix"
10074 acl_save_exec_prefix
="$exec_prefix"
10075 exec_prefix
="$acl_final_exec_prefix"
10077 exec_prefix
="$acl_save_exec_prefix"
10078 prefix
="$acl_save_prefix"
10080 if test "X$x" = "X-L$additional_libdir"; then
10085 if test -z "$haveit"; then
10086 if test -d "$additional_libdir"; then
10087 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10094 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10095 if test "$enable_rpath" != no
; then
10097 for x
in $rpathdirs; do
10098 if test "X$x" = "X$dir"; then
10103 if test -z "$haveit"; then
10104 rpathdirs
="$rpathdirs $dir"
10107 for x
in $ltrpathdirs; do
10108 if test "X$x" = "X$dir"; then
10113 if test -z "$haveit"; then
10114 ltrpathdirs
="$ltrpathdirs $dir"
10119 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10122 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10125 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
10126 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10132 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
10133 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10139 if test "X$rpathdirs" != "X"; then
10140 if test -n "$acl_hardcode_libdir_separator"; then
10142 for found_dir
in $rpathdirs; do
10143 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10145 acl_save_libdir
="$libdir"
10147 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10148 libdir
="$acl_save_libdir"
10149 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
10151 for found_dir
in $rpathdirs; do
10152 acl_save_libdir
="$libdir"
10153 libdir
="$found_dir"
10154 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10155 libdir
="$acl_save_libdir"
10156 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
10160 if test "X$ltrpathdirs" != "X"; then
10161 for found_dir
in $ltrpathdirs; do
10162 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10170 ac_cv_libpth_libs
="$LIBPTH"
10171 ac_cv_libpth_ltlibs
="$LTLIBPTH"
10172 ac_cv_libpth_cppflags
="$INCPTH"
10173 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10177 printf "%s\n" "$ac_cv_libpth_libs" >&6; }
10178 LIBPTH
="$ac_cv_libpth_libs"
10179 LTLIBPTH
="$ac_cv_libpth_ltlibs"
10180 INCPTH
="$ac_cv_libpth_cppflags"
10181 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
10183 for element
in $INCPTH; do
10185 for x
in $CPPFLAGS; do
10187 acl_save_prefix
="$prefix"
10188 prefix
="$acl_final_prefix"
10189 acl_save_exec_prefix
="$exec_prefix"
10190 exec_prefix
="$acl_final_exec_prefix"
10192 exec_prefix
="$acl_save_exec_prefix"
10193 prefix
="$acl_save_prefix"
10195 if test "X$x" = "X$element"; then
10200 if test -z "$haveit"; then
10201 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10213 gl_save_LIBS
="$LIBS"
10214 LIBS
="$LIBS $LIBPTH"
10215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10226 if ac_fn_c_try_link
"$LINENO"
10230 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
10231 conftest
$ac_exeext conftest.
$ac_ext
10232 LIBS
="$gl_save_LIBS"
10233 if test -n "$gl_have_pth"; then
10235 LIBTHREAD
="$LIBPTH"
10236 LTLIBTHREAD
="$LTLIBPTH"
10237 LIBMULTITHREAD
="$LIBTHREAD"
10238 LTLIBMULTITHREAD
="$LTLIBTHREAD"
10240 printf "%s\n" "#define USE_PTH_THREADS 1" >>confdefs.h
10242 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
10243 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
10245 printf "%s\n" "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10252 CPPFLAGS
="$gl_save_CPPFLAGS"
10255 if test -z "$gl_have_pthread"; then
10256 case "$gl_use_threads" in
10257 yes | windows | win32
) # The 'win32' is for backward compatibility.
10258 if { case "$host_os" in
10263 gl_threads_api
=windows
10265 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10273 printf %s
"checking for multithread API to use... " >&6; }
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10275 printf "%s\n" "$gl_threads_api" >&6; }
10287 if test "$gl_threads_api" = posix
; then
10288 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
10289 # pthread_rwlock_* functions.
10291 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
10293 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
10297 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
10301 if $has_rwlock; then
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
10305 printf %s
"checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
10306 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
10308 printf %s
"(cached) " >&6
10311 LIBS
="$LIBS $LIBMULTITHREAD"
10312 if test "$cross_compiling" = yes
10314 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
10316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10320 #include <pthread.h>
10321 #include <stdlib.h>
10322 #include <unistd.h>
10324 #define SUCCEED() exit (0)
10325 #define FAILURE() exit (1)
10326 #define UNEXPECTED(n) (exit (10 + (n)))
10328 /* The main thread creates the waiting writer and the requesting reader threads
10329 in the default way; this guarantees that they have the same priority.
10330 We can reuse the main thread as first reader thread. */
10332 static pthread_rwlock_t lock;
10333 static pthread_t reader1;
10334 static pthread_t writer;
10335 static pthread_t reader2;
10336 static pthread_t timer;
10337 /* Used to pass control from writer to reader2 and from reader2 to timer,
10338 as in a relay race.
10339 Passing control from one running thread to another running thread
10340 is most likely faster than to create the second thread. */
10341 static pthread_mutex_t baton;
10344 timer_func (void *ignored)
10346 /* Step 13 (can be before or after step 12):
10347 The timer thread takes the baton, then waits a moment to make sure
10348 it can tell whether the second reader thread is blocked at step 12. */
10349 if (pthread_mutex_lock (&baton))
10352 /* By the time we get here, it's clear that the second reader thread is
10353 blocked at step 12. This is the desired behaviour. */
10358 reader2_func (void *ignored)
10362 /* Step 8 (can be before or after step 7):
10363 The second reader thread takes the baton, then waits a moment to make sure
10364 the writer thread has reached step 7. */
10365 if (pthread_mutex_lock (&baton))
10368 /* Step 9: The second reader thread requests the lock. */
10369 err = pthread_rwlock_tryrdlock (&lock);
10372 else if (err != EBUSY)
10374 /* Step 10: Launch a timer, to test whether the next call blocks. */
10375 if (pthread_create (&timer, NULL, timer_func, NULL))
10377 /* Step 11: Release the baton. */
10378 if (pthread_mutex_unlock (&baton))
10380 /* Step 12: The second reader thread requests the lock. */
10381 err = pthread_rwlock_rdlock (&lock);
10389 writer_func (void *ignored)
10391 /* Step 4: Take the baton, so that the second reader thread does not go ahead
10393 if (pthread_mutex_lock (&baton))
10395 /* Step 5: Create the second reader thread. */
10396 if (pthread_create (&reader2, NULL, reader2_func, NULL))
10398 /* Step 6: Release the baton. */
10399 if (pthread_mutex_unlock (&baton))
10401 /* Step 7: The writer thread requests the lock. */
10402 if (pthread_rwlock_wrlock (&lock))
10410 reader1 = pthread_self ();
10412 /* Step 1: The main thread initializes the lock and the baton. */
10413 if (pthread_rwlock_init (&lock, NULL))
10415 if (pthread_mutex_init (&baton, NULL))
10417 /* Step 2: The main thread acquires the lock as a reader. */
10418 if (pthread_rwlock_rdlock (&lock))
10420 /* Step 3: Create the writer thread. */
10421 if (pthread_create (&writer, NULL, writer_func, NULL))
10423 /* Job done. Go to sleep. */
10431 if ac_fn_c_try_run
"$LINENO"
10433 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
10435 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
10437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
10445 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
10446 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
10449 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
10455 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
10456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 #include <pthread.h>
10464 #if __FreeBSD__ == 4
10465 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
10466 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
10467 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
10468 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
10470 int x = (int)PTHREAD_MUTEX_RECURSIVE;
10478 if ac_fn_c_try_compile
"$LINENO"
10481 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
10484 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
10489 printf %s
"checking for $CC options needed to detect all undeclared functions... " >&6; }
10490 if test ${ac_cv_c_undeclared_builtin_options+y}
10492 printf %s
"(cached) " >&6
10494 ac_save_CFLAGS
=$CFLAGS
10495 ac_cv_c_undeclared_builtin_options
='cannot detect'
10496 for ac_arg
in '' -fno-builtin; do
10497 CFLAGS
="$ac_save_CFLAGS $ac_arg"
10498 # This test program should *not* compile successfully.
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10510 if ac_fn_c_try_compile
"$LINENO"
10514 # This test program should compile successfully.
10515 # No library function is consistently available on
10516 # freestanding implementations, so test against a dummy
10517 # declaration. Include always-available headers on the
10518 # off chance that they somehow elicit warnings.
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 #include <limits.h>
10523 #include <stdarg.h>
10524 #include <stddef.h>
10525 extern void ac_decl (int, char *);
10530 (void) ac_decl (0, (char *) 0);
10537 if ac_fn_c_try_compile
"$LINENO"
10539 if test x
"$ac_arg" = x
10541 ac_cv_c_undeclared_builtin_options
='none needed'
10543 ac_cv_c_undeclared_builtin_options
=$ac_arg
10547 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10549 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10551 CFLAGS
=$ac_save_CFLAGS
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
10555 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
10556 case $ac_cv_c_undeclared_builtin_options in #(
10558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10560 as_fn_error $?
"cannot make $CC report undeclared builtins
10561 See \`config.log' for more details" "$LINENO" 5; } ;; #(
10563 ac_c_undeclared_builtin_options
='' ;; #(
10565 ac_c_undeclared_builtin_options
=$ac_cv_c_undeclared_builtin_options ;;
10580 acl_save_prefix
="$prefix"
10581 prefix
="$acl_final_prefix"
10582 acl_save_exec_prefix
="$exec_prefix"
10583 exec_prefix
="$acl_final_exec_prefix"
10585 eval additional_includedir
=\"$includedir\"
10586 eval additional_libdir
=\"$libdir\"
10588 exec_prefix
="$acl_save_exec_prefix"
10589 prefix
="$acl_save_prefix"
10592 # Check whether --with-libiconv-prefix was given.
10593 if test ${with_libiconv_prefix+y}
10595 withval
=$with_libiconv_prefix;
10596 if test "X$withval" = "Xno"; then
10599 if test "X$withval" = "X"; then
10601 acl_save_prefix
="$prefix"
10602 prefix
="$acl_final_prefix"
10603 acl_save_exec_prefix
="$exec_prefix"
10604 exec_prefix
="$acl_final_exec_prefix"
10606 eval additional_includedir
=\"$includedir\"
10607 eval additional_libdir
=\"$libdir\"
10609 exec_prefix
="$acl_save_exec_prefix"
10610 prefix
="$acl_save_prefix"
10613 additional_includedir
="$withval/include"
10614 additional_libdir
="$withval/$acl_libdirstem"
10615 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10616 && test ! -d "$withval/$acl_libdirstem"; then
10617 additional_libdir
="$withval/$acl_libdirstem2"
10631 names_already_handled
=
10632 names_next_round
='iconv '
10633 while test -n "$names_next_round"; do
10634 names_this_round
="$names_next_round"
10636 for name
in $names_this_round; do
10638 for n
in $names_already_handled; do
10639 if test "$n" = "$name"; then
10640 already_handled
=yes
10644 if test -z "$already_handled"; then
10645 names_already_handled
="$names_already_handled $name"
10646 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10647 eval value
=\"\
$HAVE_LIB$uppername\"
10648 if test -n "$value"; then
10649 if test "$value" = yes; then
10650 eval value
=\"\
$LIB$uppername\"
10651 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10652 eval value
=\"\
$LTLIB$uppername\"
10653 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10662 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
10663 if test -n "$acl_shlibext"; then
10664 shrext
=".$acl_shlibext" # typically: shrext=.so
10668 if test $use_additional = yes; then
10669 dir
="$additional_libdir"
10670 if test -n "$acl_shlibext"; then
10671 if test -f "$dir/$libname$shrext"; then
10673 found_so
="$dir/$libname$shrext"
10675 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10676 ver
=`(cd "$dir" && \
10677 for f in "$libname$shrext".*; do echo "$f"; done \
10678 | sed -e "s,^$libname$shrext\\\\.,," \
10679 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10680 | sed 1q ) 2>/dev/null`
10681 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10683 found_so
="$dir/$libname$shrext.$ver"
10686 eval library_names
=\"$acl_library_names_spec\"
10687 for f
in $library_names; do
10688 if test -f "$dir/$f"; then
10697 if test "X$found_dir" = "X"; then
10698 if test -f "$dir/$libname.$acl_libext"; then
10700 found_a
="$dir/$libname.$acl_libext"
10703 if test "X$found_dir" != "X"; then
10704 if test -f "$dir/$libname.la"; then
10705 found_la
="$dir/$libname.la"
10709 if test "X$found_dir" = "X"; then
10710 for x
in $LDFLAGS $LTLIBICONV; do
10712 acl_save_prefix
="$prefix"
10713 prefix
="$acl_final_prefix"
10714 acl_save_exec_prefix
="$exec_prefix"
10715 exec_prefix
="$acl_final_exec_prefix"
10717 exec_prefix
="$acl_save_exec_prefix"
10718 prefix
="$acl_save_prefix"
10722 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10723 if test -n "$acl_shlibext"; then
10724 if test -f "$dir/$libname$shrext"; then
10726 found_so
="$dir/$libname$shrext"
10728 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10729 ver
=`(cd "$dir" && \
10730 for f in "$libname$shrext".*; do echo "$f"; done \
10731 | sed -e "s,^$libname$shrext\\\\.,," \
10732 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10733 | sed 1q ) 2>/dev/null`
10734 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10736 found_so
="$dir/$libname$shrext.$ver"
10739 eval library_names
=\"$acl_library_names_spec\"
10740 for f
in $library_names; do
10741 if test -f "$dir/$f"; then
10750 if test "X$found_dir" = "X"; then
10751 if test -f "$dir/$libname.$acl_libext"; then
10753 found_a
="$dir/$libname.$acl_libext"
10756 if test "X$found_dir" != "X"; then
10757 if test -f "$dir/$libname.la"; then
10758 found_la
="$dir/$libname.la"
10763 if test "X$found_dir" != "X"; then
10768 if test "X$found_dir" != "X"; then
10769 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10770 if test "X$found_so" != "X"; then
10771 if test "$enable_rpath" = no \
10772 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
10773 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10774 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10777 for x
in $ltrpathdirs; do
10778 if test "X$x" = "X$found_dir"; then
10783 if test -z "$haveit"; then
10784 ltrpathdirs
="$ltrpathdirs $found_dir"
10786 if test "$acl_hardcode_direct" = yes; then
10787 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10789 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
10790 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10792 for x
in $rpathdirs; do
10793 if test "X$x" = "X$found_dir"; then
10798 if test -z "$haveit"; then
10799 rpathdirs
="$rpathdirs $found_dir"
10803 for x
in $LDFLAGS $LIBICONV; do
10805 acl_save_prefix
="$prefix"
10806 prefix
="$acl_final_prefix"
10807 acl_save_exec_prefix
="$exec_prefix"
10808 exec_prefix
="$acl_final_exec_prefix"
10810 exec_prefix
="$acl_save_exec_prefix"
10811 prefix
="$acl_save_prefix"
10813 if test "X$x" = "X-L$found_dir"; then
10818 if test -z "$haveit"; then
10819 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10821 if test "$acl_hardcode_minus_L" != no
; then
10822 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10824 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10830 if test "X$found_a" != "X"; then
10831 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10833 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10836 additional_includedir
=
10837 case "$found_dir" in
10838 */$acl_libdirstem |
*/$acl_libdirstem/)
10839 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10840 if test "$name" = 'iconv'; then
10841 LIBICONV_PREFIX
="$basedir"
10843 additional_includedir
="$basedir/include"
10845 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
10846 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10847 if test "$name" = 'iconv'; then
10848 LIBICONV_PREFIX
="$basedir"
10850 additional_includedir
="$basedir/include"
10853 if test "X$additional_includedir" != "X"; then
10854 if test "X$additional_includedir" != "X/usr/include"; then
10856 if test "X$additional_includedir" = "X/usr/local/include"; then
10857 if test -n "$GCC"; then
10859 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10863 if test -z "$haveit"; then
10864 for x
in $CPPFLAGS $INCICONV; do
10866 acl_save_prefix
="$prefix"
10867 prefix
="$acl_final_prefix"
10868 acl_save_exec_prefix
="$exec_prefix"
10869 exec_prefix
="$acl_final_exec_prefix"
10871 exec_prefix
="$acl_save_exec_prefix"
10872 prefix
="$acl_save_prefix"
10874 if test "X$x" = "X-I$additional_includedir"; then
10879 if test -z "$haveit"; then
10880 if test -d "$additional_includedir"; then
10881 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10887 if test -n "$found_la"; then
10888 save_libdir
="$libdir"
10889 case "$found_la" in
10890 */* |
*\\*) .
"$found_la" ;;
10891 *) .
"./$found_la" ;;
10893 libdir
="$save_libdir"
10894 for dep
in $dependency_libs; do
10897 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10898 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10899 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10901 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10902 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10903 if test -n "$GCC"; then
10905 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
10909 if test -z "$haveit"; then
10911 for x
in $LDFLAGS $LIBICONV; do
10913 acl_save_prefix
="$prefix"
10914 prefix
="$acl_final_prefix"
10915 acl_save_exec_prefix
="$exec_prefix"
10916 exec_prefix
="$acl_final_exec_prefix"
10918 exec_prefix
="$acl_save_exec_prefix"
10919 prefix
="$acl_save_prefix"
10921 if test "X$x" = "X-L$additional_libdir"; then
10926 if test -z "$haveit"; then
10927 if test -d "$additional_libdir"; then
10928 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10932 for x
in $LDFLAGS $LTLIBICONV; do
10934 acl_save_prefix
="$prefix"
10935 prefix
="$acl_final_prefix"
10936 acl_save_exec_prefix
="$exec_prefix"
10937 exec_prefix
="$acl_final_exec_prefix"
10939 exec_prefix
="$acl_save_exec_prefix"
10940 prefix
="$acl_save_prefix"
10942 if test "X$x" = "X-L$additional_libdir"; then
10947 if test -z "$haveit"; then
10948 if test -d "$additional_libdir"; then
10949 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10956 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10957 if test "$enable_rpath" != no
; then
10959 for x
in $rpathdirs; do
10960 if test "X$x" = "X$dir"; then
10965 if test -z "$haveit"; then
10966 rpathdirs
="$rpathdirs $dir"
10969 for x
in $ltrpathdirs; do
10970 if test "X$x" = "X$dir"; then
10975 if test -z "$haveit"; then
10976 ltrpathdirs
="$ltrpathdirs $dir"
10981 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10984 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10987 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10988 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10994 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10995 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11001 if test "X$rpathdirs" != "X"; then
11002 if test -n "$acl_hardcode_libdir_separator"; then
11004 for found_dir
in $rpathdirs; do
11005 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11007 acl_save_libdir
="$libdir"
11009 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
11010 libdir
="$acl_save_libdir"
11011 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11013 for found_dir
in $rpathdirs; do
11014 acl_save_libdir
="$libdir"
11015 libdir
="$found_dir"
11016 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
11017 libdir
="$acl_save_libdir"
11018 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11022 if test "X$ltrpathdirs" != "X"; then
11023 for found_dir
in $ltrpathdirs; do
11024 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11038 am_save_CPPFLAGS
="$CPPFLAGS"
11040 for element
in $INCICONV; do
11042 for x
in $CPPFLAGS; do
11044 acl_save_prefix
="$prefix"
11045 prefix
="$acl_final_prefix"
11046 acl_save_exec_prefix
="$exec_prefix"
11047 exec_prefix
="$acl_final_exec_prefix"
11049 exec_prefix
="$acl_save_exec_prefix"
11050 prefix
="$acl_save_prefix"
11052 if test "X$x" = "X$element"; then
11057 if test -z "$haveit"; then
11058 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11064 printf %s
"checking for iconv... " >&6; }
11065 if test ${am_cv_func_iconv+y}
11067 printf %s
"(cached) " >&6
11070 am_cv_func_iconv
="no, consider installing GNU libiconv"
11072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 #include <stdlib.h>
11081 iconv_t cd = iconv_open("","");
11082 iconv(cd,NULL,NULL,NULL,NULL);
11088 if ac_fn_c_try_link
"$LINENO"
11090 am_cv_func_iconv
=yes
11092 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11093 conftest
$ac_exeext conftest.
$ac_ext
11094 if test "$am_cv_func_iconv" != yes; then
11095 am_save_LIBS
="$LIBS"
11096 LIBS
="$LIBS $LIBICONV"
11097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11100 #include <stdlib.h>
11106 iconv_t cd = iconv_open("","");
11107 iconv(cd,NULL,NULL,NULL,NULL);
11113 if ac_fn_c_try_link
"$LINENO"
11115 am_cv_lib_iconv
=yes
11116 am_cv_func_iconv
=yes
11118 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11119 conftest
$ac_exeext conftest.
$ac_ext
11120 LIBS
="$am_save_LIBS"
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11125 printf "%s\n" "$am_cv_func_iconv" >&6; }
11126 if test "$am_cv_func_iconv" = yes; then
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11128 printf %s
"checking for working iconv... " >&6; }
11129 if test ${am_cv_func_iconv_works+y}
11131 printf %s
"(cached) " >&6
11134 am_save_LIBS
="$LIBS"
11135 if test $am_cv_lib_iconv = yes; then
11136 LIBS
="$LIBS $LIBICONV"
11138 am_cv_func_iconv_works
=no
11139 for ac_iconv_const
in '' 'const'; do
11140 if test "$cross_compiling" = yes
11143 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
11144 *) am_cv_func_iconv_works
="guessing yes" ;;
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11151 #include <string.h>
11153 #ifndef ICONV_CONST
11154 # define ICONV_CONST $ac_iconv_const
11161 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11164 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11165 if (cd_utf8_to_88591 != (iconv_t)(-1))
11167 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11169 ICONV_CONST char *inptr = input;
11170 size_t inbytesleft = strlen (input);
11171 char *outptr = buf;
11172 size_t outbytesleft = sizeof (buf);
11173 size_t res = iconv (cd_utf8_to_88591,
11174 &inptr, &inbytesleft,
11175 &outptr, &outbytesleft);
11178 iconv_close (cd_utf8_to_88591);
11181 /* Test against Solaris 10 bug: Failures are not distinguishable from
11182 successful returns. */
11184 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11185 if (cd_ascii_to_88591 != (iconv_t)(-1))
11187 static ICONV_CONST char input[] = "\263";
11189 ICONV_CONST char *inptr = input;
11190 size_t inbytesleft = strlen (input);
11191 char *outptr = buf;
11192 size_t outbytesleft = sizeof (buf);
11193 size_t res = iconv (cd_ascii_to_88591,
11194 &inptr, &inbytesleft,
11195 &outptr, &outbytesleft);
11198 iconv_close (cd_ascii_to_88591);
11201 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11203 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11204 if (cd_88591_to_utf8 != (iconv_t)(-1))
11206 static ICONV_CONST char input[] = "\304";
11207 static char buf[2] = { (char)0xDE, (char)0xAD };
11208 ICONV_CONST char *inptr = input;
11209 size_t inbytesleft = 1;
11210 char *outptr = buf;
11211 size_t outbytesleft = 1;
11212 size_t res = iconv (cd_88591_to_utf8,
11213 &inptr, &inbytesleft,
11214 &outptr, &outbytesleft);
11215 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11217 iconv_close (cd_88591_to_utf8);
11220 #if 0 /* This bug could be worked around by the caller. */
11221 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11223 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11224 if (cd_88591_to_utf8 != (iconv_t)(-1))
11226 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11228 ICONV_CONST char *inptr = input;
11229 size_t inbytesleft = strlen (input);
11230 char *outptr = buf;
11231 size_t outbytesleft = sizeof (buf);
11232 size_t res = iconv (cd_88591_to_utf8,
11233 &inptr, &inbytesleft,
11234 &outptr, &outbytesleft);
11237 iconv_close (cd_88591_to_utf8);
11241 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11244 /* Try standardized names. */
11245 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11246 /* Try IRIX, OSF/1 names. */
11247 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11248 /* Try AIX names. */
11249 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11250 /* Try HP-UX names. */
11251 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11252 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11253 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11255 if (cd1 != (iconv_t)(-1))
11257 if (cd2 != (iconv_t)(-1))
11259 if (cd3 != (iconv_t)(-1))
11261 if (cd4 != (iconv_t)(-1))
11270 if ac_fn_c_try_run
"$LINENO"
11272 am_cv_func_iconv_works
=yes
11274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11278 test "$am_cv_func_iconv_works" = no ||
break
11280 LIBS
="$am_save_LIBS"
11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11284 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
11285 case "$am_cv_func_iconv_works" in
11286 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
11287 *) am_func_iconv
=yes ;;
11290 am_func_iconv
=no am_cv_lib_iconv
=no
11292 if test "$am_func_iconv" = yes; then
11294 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
11297 if test "$am_cv_lib_iconv" = yes; then
11298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11299 printf %s
"checking how to link with libiconv... " >&6; }
11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11301 printf "%s\n" "$LIBICONV" >&6; }
11303 CPPFLAGS
="$am_save_CPPFLAGS"
11310 if test "$am_cv_func_iconv" = yes; then
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11312 printf %s
"checking for iconv declaration... " >&6; }
11313 if test ${am_cv_proto_iconv+y}
11315 printf %s
"(cached) " >&6
11318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11321 #include <stdlib.h>
11327 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11328 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11341 if ac_fn_c_try_compile
"$LINENO"
11343 am_cv_proto_iconv_arg1
=""
11345 am_cv_proto_iconv_arg1
="const"
11347 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11348 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);"
11351 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11353 $am_cv_proto_iconv" >&5
11355 $am_cv_proto_iconv" >&6; }
11357 am_cv_proto_iconv_arg1
=""
11360 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
11367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
11378 if ac_fn_c_try_link
"$LINENO"
11381 printf "%s\n" "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
11384 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11385 conftest
$ac_exeext conftest.
$ac_ext
11387 ac_fn_c_check_header_compile
"$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
11388 if test "x$ac_cv_header_argz_h" = xyes
11390 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
11393 ac_fn_c_check_header_compile
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11394 if test "x$ac_cv_header_inttypes_h" = xyes
11396 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
11399 ac_fn_c_check_header_compile
"$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
11400 if test "x$ac_cv_header_limits_h" = xyes
11402 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
11405 ac_fn_c_check_header_compile
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11406 if test "x$ac_cv_header_unistd_h" = xyes
11408 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11411 ac_fn_c_check_header_compile
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11412 if test "x$ac_cv_header_sys_param_h" = xyes
11414 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11418 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
11419 if test "x$ac_cv_func_getcwd" = xyes
11421 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
11424 ac_fn_c_check_func
"$LINENO" "getegid" "ac_cv_func_getegid"
11425 if test "x$ac_cv_func_getegid" = xyes
11427 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
11430 ac_fn_c_check_func
"$LINENO" "geteuid" "ac_cv_func_geteuid"
11431 if test "x$ac_cv_func_geteuid" = xyes
11433 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
11436 ac_fn_c_check_func
"$LINENO" "getgid" "ac_cv_func_getgid"
11437 if test "x$ac_cv_func_getgid" = xyes
11439 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
11442 ac_fn_c_check_func
"$LINENO" "getuid" "ac_cv_func_getuid"
11443 if test "x$ac_cv_func_getuid" = xyes
11445 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
11448 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
11449 if test "x$ac_cv_func_mempcpy" = xyes
11451 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
11454 ac_fn_c_check_func
"$LINENO" "munmap" "ac_cv_func_munmap"
11455 if test "x$ac_cv_func_munmap" = xyes
11457 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
11460 ac_fn_c_check_func
"$LINENO" "stpcpy" "ac_cv_func_stpcpy"
11461 if test "x$ac_cv_func_stpcpy" = xyes
11463 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
11466 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11467 if test "x$ac_cv_func_strcasecmp" = xyes
11469 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11472 ac_fn_c_check_func
"$LINENO" "strdup" "ac_cv_func_strdup"
11473 if test "x$ac_cv_func_strdup" = xyes
11475 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
11478 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
11479 if test "x$ac_cv_func_strtoul" = xyes
11481 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
11484 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
11485 if test "x$ac_cv_func_tsearch" = xyes
11487 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
11490 ac_fn_c_check_func
"$LINENO" "argz_count" "ac_cv_func_argz_count"
11491 if test "x$ac_cv_func_argz_count" = xyes
11493 printf "%s\n" "#define HAVE_ARGZ_COUNT 1" >>confdefs.h
11496 ac_fn_c_check_func
"$LINENO" "argz_stringify" "ac_cv_func_argz_stringify"
11497 if test "x$ac_cv_func_argz_stringify" = xyes
11499 printf "%s\n" "#define HAVE_ARGZ_STRINGIFY 1" >>confdefs.h
11502 ac_fn_c_check_func
"$LINENO" "argz_next" "ac_cv_func_argz_next"
11503 if test "x$ac_cv_func_argz_next" = xyes
11505 printf "%s\n" "#define HAVE_ARGZ_NEXT 1" >>confdefs.h
11508 ac_fn_c_check_func
"$LINENO" "__fsetlocking" "ac_cv_func___fsetlocking"
11509 if test "x$ac_cv_func___fsetlocking" = xyes
11511 printf "%s\n" "#define HAVE___FSETLOCKING 1" >>confdefs.h
11516 ac_fn_c_check_func
"$LINENO" "localeconv" "ac_cv_func_localeconv"
11517 if test "x$ac_cv_func_localeconv" = xyes
11519 printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
11524 ac_fn_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
11525 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11526 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
11532 printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl" >>confdefs.h
11533 ac_fn_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
11534 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11535 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
11541 printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl" >>confdefs.h
11546 for ac_prog
in bison
11548 # Extract the first word of "$ac_prog", so it can be a program name with args.
11549 set dummy
$ac_prog; ac_word
=$2
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 printf %s
"checking for $ac_word... " >&6; }
11552 if test ${ac_cv_prog_INTLBISON+y}
11554 printf %s
"(cached) " >&6
11556 if test -n "$INTLBISON"; then
11557 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
11559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11560 for as_dir
in $PATH
11563 case $as_dir in #(((
11566 *) as_dir
=$as_dir/ ;;
11568 for ac_exec_ext
in '' $ac_executable_extensions; do
11569 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_INTLBISON
="$ac_prog"
11571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11580 INTLBISON
=$ac_cv_prog_INTLBISON
11581 if test -n "$INTLBISON"; then
11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
11583 printf "%s\n" "$INTLBISON" >&6; }
11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 printf "%s\n" "no" >&6; }
11590 test -n "$INTLBISON" && break
11593 if test -z "$INTLBISON"; then
11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
11597 printf %s
"checking version of bison... " >&6; }
11598 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11599 case $ac_prog_version in
11600 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
11601 2.
[7-9]* |
[3-9].
*)
11602 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
11603 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
11606 printf "%s\n" "$ac_prog_version" >&6; }
11608 if test $ac_verc_fail = yes; then
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11615 printf %s
"checking for long long int... " >&6; }
11616 if test ${ac_cv_type_long_long_int+y}
11618 printf %s
"(cached) " >&6
11620 ac_cv_type_long_long_int
=yes
11621 case $ac_prog_cc_stdc in
11624 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
11625 if test $ac_cv_type_long_long_int = yes; then
11626 if test "$cross_compiling" = yes
11630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #include <limits.h>
11635 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11636 # define LLONG_MAX (HALF - 1 + HALF)
11641 long long int n = 1;
11645 long long int m = n << i;
11648 if (LLONG_MAX / 2 < m)
11656 if ac_fn_c_try_run
"$LINENO"
11660 ac_cv_type_long_long_int
=no
11662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11670 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
11671 if test $ac_cv_type_long_long_int = yes; then
11673 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11679 printf %s
"checking for wchar_t... " >&6; }
11680 if test ${gt_cv_c_wchar_t+y}
11682 printf %s
"(cached) " >&6
11684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11686 #include <stddef.h>
11687 wchar_t foo = (wchar_t)'\0';
11696 if ac_fn_c_try_compile
"$LINENO"
11698 gt_cv_c_wchar_t
=yes
11702 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11705 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
11706 if test $gt_cv_c_wchar_t = yes; then
11708 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11714 printf %s
"checking for wint_t... " >&6; }
11715 if test ${gt_cv_c_wint_t+y}
11717 printf %s
"(cached) " >&6
11719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11724 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11725 before <wchar.h>. */
11726 #include <stddef.h>
11730 wint_t foo = (wchar_t)'\0';
11739 if ac_fn_c_try_compile
"$LINENO"
11745 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11748 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
11749 if test $gt_cv_c_wint_t = yes; then
11751 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11755 printf %s
"checking whether wint_t is too small... " >&6; }
11756 if test ${gl_cv_type_wint_t_too_small+y}
11758 printf %s
"(cached) " >&6
11760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11765 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11766 included before <wchar.h>. */
11767 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11768 # include <stddef.h>
11769 # include <stdio.h>
11773 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11783 if ac_fn_c_try_compile
"$LINENO"
11785 gl_cv_type_wint_t_too_small
=no
11787 gl_cv_type_wint_t_too_small
=yes
11789 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11792 printf "%s\n" "$gl_cv_type_wint_t_too_small" >&6; }
11793 if test $gl_cv_type_wint_t_too_small = yes; then
11794 GNULIB_OVERRIDES_WINT_T
=1
11796 GNULIB_OVERRIDES_WINT_T
=0
11799 GNULIB_OVERRIDES_WINT_T
=0
11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
11807 printf %s
"checking for intmax_t... " >&6; }
11808 if test ${gt_cv_c_intmax_t+y}
11810 printf %s
"(cached) " >&6
11812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11815 #include <stddef.h>
11816 #include <stdlib.h>
11817 #if HAVE_STDINT_H_WITH_UINTMAX
11818 #include <stdint.h>
11820 #if HAVE_INTTYPES_H_WITH_UINTMAX
11821 #include <inttypes.h>
11833 if ac_fn_c_try_compile
"$LINENO"
11835 gt_cv_c_intmax_t
=yes
11837 gt_cv_c_intmax_t
=no
11839 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11842 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
11843 if test $gt_cv_c_intmax_t = yes; then
11845 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11852 printf %s
"checking whether printf() supports POSIX/XSI format strings... " >&6; }
11853 if test ${gt_cv_func_printf_posix+y}
11855 printf %s
"(cached) " >&6
11858 if test "$cross_compiling" = yes
11861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870 $EGREP "notposix" >/dev
/null
2>&1
11872 gt_cv_func_printf_posix
="guessing no"
11874 gt_cv_func_printf_posix
="guessing yes"
11880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11884 #include <string.h>
11885 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11886 dollar expansion (possibly an autoconf bug). */
11887 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11888 static char buf[100];
11891 sprintf (buf, format, 33, 55);
11892 return (strcmp (buf, "55 33") != 0);
11895 if ac_fn_c_try_run
"$LINENO"
11897 gt_cv_func_printf_posix
=yes
11899 gt_cv_func_printf_posix
=no
11901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11908 printf "%s\n" "$gt_cv_func_printf_posix" >&6; }
11909 case $gt_cv_func_printf_posix in
11912 printf "%s\n" "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11919 printf %s
"checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11920 if test ${ac_cv_gnu_library_2_1+y}
11922 printf %s
"(cached) " >&6
11924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 #include <features.h>
11928 #ifdef __GNU_LIBRARY__
11929 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11939 $EGREP "Lucky" >/dev
/null
2>&1
11941 ac_cv_gnu_library_2_1
=yes
11943 ac_cv_gnu_library_2_1
=no
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11951 printf "%s\n" "$ac_cv_gnu_library_2_1" >&6; }
11953 GLIBC21
="$ac_cv_gnu_library_2_1"
11957 ac_fn_c_check_header_compile
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11958 if test "x$ac_cv_header_stdint_h" = xyes
11960 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11965 printf %s
"checking for SIZE_MAX... " >&6; }
11966 if test ${gl_cv_size_max+y}
11968 printf %s
"(cached) " >&6
11972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11975 #include <limits.h>
11977 #include <stdint.h>
11984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11985 $EGREP "Found it" >/dev
/null
2>&1
11991 if test -z "$gl_cv_size_max"; then
11992 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11993 #include <limits.h>"
11997 size_t_bits_minus_1
=
12000 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
12007 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
12008 if test $fits_in_uint = 1; then
12009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <stddef.h>
12013 extern unsigned long foo;
12023 if ac_fn_c_try_compile
"$LINENO"
12027 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12029 if test $fits_in_uint = 1; then
12030 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
12032 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
12035 gl_cv_size_max
='((size_t)~(size_t)0)'
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
12041 printf "%s\n" "$gl_cv_size_max" >&6; }
12042 if test "$gl_cv_size_max" != yes; then
12044 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
12051 ac_fn_c_check_header_compile
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_stdint_h" = xyes
12054 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
12066 printf %s
"checking for working fcntl.h... " >&6; }
12067 if test ${gl_cv_header_working_fcntl_h+y}
12069 printf %s
"(cached) " >&6
12071 if test "$cross_compiling" = yes
12074 # Guess 'no' on native Windows.
12075 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
12076 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <sys/types.h>
12083 #include <sys/stat.h>
12085 # include <unistd.h>
12086 #else /* on Windows with MSVC */
12088 # include <stdlib.h>
12089 # defined sleep(n) _sleep ((n) * 1000)
12093 #define O_NOATIME 0
12096 #define O_NOFOLLOW 0
12098 static int const constants[] =
12100 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12101 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12108 int result = !constants;
12111 static char const sym[] = "conftest.sym";
12112 if (symlink ("/dev/null", sym) != 0)
12116 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
12123 if (unlink (sym) != 0 || symlink (".", sym) != 0)
12127 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
12138 static char const file[] = "confdefs.h";
12139 int fd = open (file, O_RDONLY | O_NOATIME);
12145 if (fstat (fd, &st0) != 0)
12151 if (read (fd, &c, 1) != 1)
12155 if (close (fd) != 0)
12160 if (stat (file, &st1) != 0)
12163 if (st0.st_atime != st1.st_atime)
12175 if ac_fn_c_try_run
"$LINENO"
12177 gl_cv_header_working_fcntl_h
=yes
12180 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
12181 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
12182 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
12183 *) gl_cv_header_working_fcntl_h
='no';;
12186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
12193 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
12195 case $gl_cv_header_working_fcntl_h in #(
12196 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
12200 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
12203 case $gl_cv_header_working_fcntl_h in #(
12204 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
12208 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
12223 if test $ac_cv_func_uselocale = yes; then
12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
12226 printf %s
"checking whether uselocale works... " >&6; }
12227 if test ${gt_cv_func_uselocale_works+y}
12229 printf %s
"(cached) " >&6
12231 if test "$cross_compiling" = yes
12233 # Guess no on AIX, yes otherwise.
12235 aix
*) gt_cv_func_uselocale_works
="guessing no" ;;
12236 *) gt_cv_func_uselocale_works
="guessing yes" ;;
12240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 #include <locale.h>
12245 # include <xlocale.h>
12250 setlocale (LC_ALL, "en_US.UTF-8");
12254 if ac_fn_c_try_run
"$LINENO"
12256 gt_cv_func_uselocale_works
=yes
12258 gt_cv_func_uselocale_works
=no
12260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
12267 printf "%s\n" "$gt_cv_func_uselocale_works" >&6; }
12269 gt_cv_func_uselocale_works
=no
12271 case "$gt_cv_func_uselocale_works" in
12274 printf "%s\n" "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
12280 case "$gt_cv_func_uselocale_works" in
12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
12284 printf %s
"checking for fake locale system (OpenBSD)... " >&6; }
12285 if test ${gt_cv_locale_fake+y}
12287 printf %s
"(cached) " >&6
12289 if test "$cross_compiling" = yes
12292 openbsd
*) gt_cv_locale_fake
="guessing yes" ;;
12293 *) gt_cv_locale_fake
="guessing no" ;;
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 #include <locale.h>
12302 # include <xlocale.h>
12306 locale_t loc1, loc2;
12307 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
12308 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
12309 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
12310 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
12311 return !(loc1 == loc2);
12314 if ac_fn_c_try_run
"$LINENO"
12316 gt_cv_locale_fake
=yes
12318 gt_cv_locale_fake
=no
12320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
12327 printf "%s\n" "$gt_cv_locale_fake" >&6; }
12329 *) gt_cv_locale_fake
=no
;;
12331 case "$gt_cv_locale_fake" in
12334 printf "%s\n" "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
12339 case "$gt_cv_func_uselocale_works" in
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
12342 printf %s
"checking for Solaris 11.4 locale system... " >&6; }
12343 if test ${gt_cv_locale_solaris114+y}
12345 printf %s
"(cached) " >&6
12349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12352 #include <locale.h>
12353 struct _LC_locale_t *x;
12364 if ac_fn_c_try_compile
"$LINENO"
12366 gt_cv_locale_solaris114
=yes
12368 gt_cv_locale_solaris114
=no
12370 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12372 *) gt_cv_locale_solaris114
=no
;;
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
12377 printf "%s\n" "$gt_cv_locale_solaris114" >&6; }
12379 *) gt_cv_locale_solaris114
=no
;;
12381 if test $gt_cv_locale_solaris114 = yes; then
12383 printf "%s\n" "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
12387 case "$gt_cv_func_uselocale_works" in
12389 ac_fn_c_check_func
"$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
12390 if test "x$ac_cv_func_getlocalename_l" = xyes
12392 printf "%s\n" "#define HAVE_GETLOCALENAME_L 1" >>confdefs.h
12399 gt_nameless_locales
=no
12401 gt_nameless_locales
=yes
12403 printf "%s\n" "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12409 printf %s
"checking for CFPreferencesCopyAppValue... " >&6; }
12410 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
12412 printf %s
"(cached) " >&6
12414 gt_save_LIBS
="$LIBS"
12415 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
12416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418 #include <CoreFoundation/CFPreferences.h>
12422 CFPreferencesCopyAppValue(NULL, NULL)
12427 if ac_fn_c_try_link
"$LINENO"
12429 gt_cv_func_CFPreferencesCopyAppValue
=yes
12431 gt_cv_func_CFPreferencesCopyAppValue
=no
12433 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
12434 conftest
$ac_exeext conftest.
$ac_ext
12435 LIBS
="$gt_save_LIBS"
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12438 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12439 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12441 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12445 printf %s
"checking for CFLocaleCopyCurrent... " >&6; }
12446 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
12448 printf %s
"(cached) " >&6
12450 gt_save_LIBS
="$LIBS"
12451 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
12452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #include <CoreFoundation/CFLocale.h>
12458 CFLocaleCopyCurrent();
12463 if ac_fn_c_try_link
"$LINENO"
12465 gt_cv_func_CFLocaleCopyCurrent
=yes
12467 gt_cv_func_CFLocaleCopyCurrent
=no
12469 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
12470 conftest
$ac_exeext conftest.
$ac_ext
12471 LIBS
="$gt_save_LIBS"
12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12474 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12475 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12477 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12481 printf %s
"checking for CFLocaleCopyPreferredLanguages... " >&6; }
12482 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
12484 printf %s
"(cached) " >&6
12486 gt_save_LIBS
="$LIBS"
12487 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #include <CoreFoundation/CFLocale.h>
12494 CFLocaleCopyPreferredLanguages();
12499 if ac_fn_c_try_link
"$LINENO"
12501 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
12503 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
12505 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
12506 conftest
$ac_exeext conftest.
$ac_ext
12507 LIBS
="$gt_save_LIBS"
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12510 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12511 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12513 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12517 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12518 ||
test $gt_cv_func_CFLocaleCopyCurrent = yes \
12519 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12520 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
12531 printf %s
"checking for flexible array members... " >&6; }
12532 if test ${ac_cv_c_flexmember+y}
12534 printf %s
"(cached) " >&6
12536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 #include <stdlib.h>
12540 #include <stddef.h>
12541 struct s { int n; double d[]; };
12545 int m = getchar ();
12546 struct s *p = (struct s *) malloc (offsetof (struct s, d)
12547 + m * sizeof (double));
12549 return p->d != (double *) NULL;
12554 if ac_fn_c_try_compile
"$LINENO"
12556 ac_cv_c_flexmember
=yes
12558 ac_cv_c_flexmember
=no
12560 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12563 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
12564 if test $ac_cv_c_flexmember = yes; then
12566 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12569 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12580 if test -n "$ac_tool_prefix"; then
12581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12582 set dummy
${ac_tool_prefix}ar; ac_word
=$2
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 printf %s
"checking for $ac_word... " >&6; }
12585 if test ${ac_cv_prog_AR+y}
12587 printf %s
"(cached) " >&6
12589 if test -n "$AR"; then
12590 ac_cv_prog_AR
="$AR" # Let the user override the test.
12592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12593 for as_dir
in $PATH
12596 case $as_dir in #(((
12599 *) as_dir
=$as_dir/ ;;
12601 for ac_exec_ext
in '' $ac_executable_extensions; do
12602 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_AR
="${ac_tool_prefix}ar"
12604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12614 if test -n "$AR"; then
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12616 printf "%s\n" "$AR" >&6; }
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 printf "%s\n" "no" >&6; }
12624 if test -z "$ac_cv_prog_AR"; then
12626 # Extract the first word of "ar", so it can be a program name with args.
12627 set dummy
ar; ac_word
=$2
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 printf %s
"checking for $ac_word... " >&6; }
12630 if test ${ac_cv_prog_ac_ct_AR+y}
12632 printf %s
"(cached) " >&6
12634 if test -n "$ac_ct_AR"; then
12635 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
12637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12638 for as_dir
in $PATH
12641 case $as_dir in #(((
12644 *) as_dir
=$as_dir/ ;;
12646 for ac_exec_ext
in '' $ac_executable_extensions; do
12647 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
12648 ac_cv_prog_ac_ct_AR
="ar"
12649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12658 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
12659 if test -n "$ac_ct_AR"; then
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12661 printf "%s\n" "$ac_ct_AR" >&6; }
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 printf "%s\n" "no" >&6; }
12667 if test "x$ac_ct_AR" = x
; then
12670 case $cross_compiling:$ac_tool_warned in
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12674 ac_tool_warned
=yes ;;
12679 AR
="$ac_cv_prog_AR"
12682 if test -z "$ARFLAGS"; then
12689 case "$enable_silent_rules" in
12690 yes) INTL_DEFAULT_VERBOSITY
=0;;
12691 no
) INTL_DEFAULT_VERBOSITY
=1;;
12692 *) INTL_DEFAULT_VERBOSITY
=1;;
12696 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12697 if test "x$ac_cv_type_ptrdiff_t" = xyes
12702 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
12707 ac_fn_c_check_header_compile
"$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
12708 if test "x$ac_cv_header_features_h" = xyes
12710 printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
12713 ac_fn_c_check_header_compile
"$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
12714 if test "x$ac_cv_header_stddef_h" = xyes
12716 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
12719 ac_fn_c_check_header_compile
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12720 if test "x$ac_cv_header_stdlib_h" = xyes
12722 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12725 ac_fn_c_check_header_compile
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12726 if test "x$ac_cv_header_string_h" = xyes
12728 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
12732 ac_fn_c_check_func
"$LINENO" "asprintf" "ac_cv_func_asprintf"
12733 if test "x$ac_cv_func_asprintf" = xyes
12735 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
12738 ac_fn_c_check_func
"$LINENO" "fwprintf" "ac_cv_func_fwprintf"
12739 if test "x$ac_cv_func_fwprintf" = xyes
12741 printf "%s\n" "#define HAVE_FWPRINTF 1" >>confdefs.h
12744 ac_fn_c_check_func
"$LINENO" "newlocale" "ac_cv_func_newlocale"
12745 if test "x$ac_cv_func_newlocale" = xyes
12747 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
12750 ac_fn_c_check_func
"$LINENO" "putenv" "ac_cv_func_putenv"
12751 if test "x$ac_cv_func_putenv" = xyes
12753 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
12756 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
12757 if test "x$ac_cv_func_setenv" = xyes
12759 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
12762 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12763 if test "x$ac_cv_func_setlocale" = xyes
12765 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
12768 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
12769 if test "x$ac_cv_func_snprintf" = xyes
12771 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
12774 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
12775 if test "x$ac_cv_func_strnlen" = xyes
12777 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
12780 ac_fn_c_check_func
"$LINENO" "uselocale" "ac_cv_func_uselocale"
12781 if test "x$ac_cv_func_uselocale" = xyes
12783 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
12786 ac_fn_c_check_func
"$LINENO" "wcslen" "ac_cv_func_wcslen"
12787 if test "x$ac_cv_func_wcslen" = xyes
12789 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
12792 ac_fn_c_check_func
"$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
12793 if test "x$ac_cv_func_wcsnlen" = xyes
12795 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
12798 ac_fn_c_check_func
"$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
12799 if test "x$ac_cv_func_mbrtowc" = xyes
12801 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
12804 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
12805 if test "x$ac_cv_func_wcrtomb" = xyes
12807 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
12812 ac_fn_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12813 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12814 if test "x$ac_cv_have_decl__snprintf" = xyes
12820 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
12821 ac_fn_check_decl
"$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
12822 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12823 if test "x$ac_cv_have_decl__snwprintf" = xyes
12829 printf "%s\n" "#define HAVE_DECL__SNWPRINTF $ac_have_decl" >>confdefs.h
12832 ac_fn_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
12833 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12834 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
12840 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
12843 case $gt_cv_func_printf_posix in
12844 *yes) HAVE_POSIX_PRINTF
=1 ;;
12845 *) HAVE_POSIX_PRINTF
=0 ;;
12848 if test "$ac_cv_func_asprintf" = yes; then
12854 if test "$ac_cv_func_snprintf" = yes; then
12860 if test "$ac_cv_func_newlocale" = yes; then
12866 if test "$ac_cv_func_wprintf" = yes; then
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12875 printf %s
"checking for nl_langinfo and CODESET... " >&6; }
12876 if test ${am_cv_langinfo_codeset+y}
12878 printf %s
"(cached) " >&6
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #include <langinfo.h>
12886 char* cs = nl_langinfo(CODESET); return !cs;
12891 if ac_fn_c_try_link
"$LINENO"
12893 am_cv_langinfo_codeset
=yes
12895 am_cv_langinfo_codeset
=no
12897 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
12898 conftest
$ac_exeext conftest.
$ac_ext
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12902 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
12903 if test $am_cv_langinfo_codeset = yes; then
12905 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12911 printf %s
"checking for LC_MESSAGES... " >&6; }
12912 if test ${gt_cv_val_LC_MESSAGES+y}
12914 printf %s
"(cached) " >&6
12916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <locale.h>
12927 if ac_fn_c_try_link
"$LINENO"
12929 gt_cv_val_LC_MESSAGES
=yes
12931 gt_cv_val_LC_MESSAGES
=no
12933 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
12934 conftest
$ac_exeext conftest.
$ac_ext
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
12937 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
12938 if test $gt_cv_val_LC_MESSAGES = yes; then
12940 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12945 if test $gt_nameless_locales = yes; then
12946 HAVE_NAMELESS_LOCALES
=1
12948 HAVE_NAMELESS_LOCALES
=0
12952 if test "$enable_shared" = yes; then
12954 mingw
* | cygwin
*) is_woe32dll
=yes ;;
12955 *) is_woe32dll
=no
;;
12960 WOE32DLL
=$is_woe32dll
12964 mingw
* | cygwin
*) is_woe32
=yes ;;
12969 if test $WOE32 = yes; then
12970 if test -n "$ac_tool_prefix"; then
12971 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12972 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 printf %s
"checking for $ac_word... " >&6; }
12975 if test ${ac_cv_prog_WINDRES+y}
12977 printf %s
"(cached) " >&6
12979 if test -n "$WINDRES"; then
12980 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
12982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12983 for as_dir
in $PATH
12986 case $as_dir in #(((
12989 *) as_dir
=$as_dir/ ;;
12991 for ac_exec_ext
in '' $ac_executable_extensions; do
12992 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
12993 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
12994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13003 WINDRES
=$ac_cv_prog_WINDRES
13004 if test -n "$WINDRES"; then
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13006 printf "%s\n" "$WINDRES" >&6; }
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 printf "%s\n" "no" >&6; }
13014 if test -z "$ac_cv_prog_WINDRES"; then
13015 ac_ct_WINDRES
=$WINDRES
13016 # Extract the first word of "windres", so it can be a program name with args.
13017 set dummy windres
; ac_word
=$2
13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 printf %s
"checking for $ac_word... " >&6; }
13020 if test ${ac_cv_prog_ac_ct_WINDRES+y}
13022 printf %s
"(cached) " >&6
13024 if test -n "$ac_ct_WINDRES"; then
13025 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
13027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13028 for as_dir
in $PATH
13031 case $as_dir in #(((
13034 *) as_dir
=$as_dir/ ;;
13036 for ac_exec_ext
in '' $ac_executable_extensions; do
13037 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
13038 ac_cv_prog_ac_ct_WINDRES
="windres"
13039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13048 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
13049 if test -n "$ac_ct_WINDRES"; then
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
13051 printf "%s\n" "$ac_ct_WINDRES" >&6; }
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 printf "%s\n" "no" >&6; }
13057 if test "x$ac_ct_WINDRES" = x
; then
13060 case $cross_compiling:$ac_tool_warned in
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13064 ac_tool_warned
=yes ;;
13066 WINDRES
=$ac_ct_WINDRES
13069 WINDRES
="$ac_cv_prog_WINDRES"
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13099 printf %s
"checking for CFPreferencesCopyAppValue... " >&6; }
13100 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
13102 printf %s
"(cached) " >&6
13104 gt_save_LIBS
="$LIBS"
13105 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <CoreFoundation/CFPreferences.h>
13112 CFPreferencesCopyAppValue(NULL, NULL)
13117 if ac_fn_c_try_link
"$LINENO"
13119 gt_cv_func_CFPreferencesCopyAppValue
=yes
13121 gt_cv_func_CFPreferencesCopyAppValue
=no
13123 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13124 conftest
$ac_exeext conftest.
$ac_ext
13125 LIBS
="$gt_save_LIBS"
13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13128 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13129 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13131 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13135 printf %s
"checking for CFLocaleCopyCurrent... " >&6; }
13136 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
13138 printf %s
"(cached) " >&6
13140 gt_save_LIBS
="$LIBS"
13141 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144 #include <CoreFoundation/CFLocale.h>
13148 CFLocaleCopyCurrent();
13153 if ac_fn_c_try_link
"$LINENO"
13155 gt_cv_func_CFLocaleCopyCurrent
=yes
13157 gt_cv_func_CFLocaleCopyCurrent
=no
13159 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13160 conftest
$ac_exeext conftest.
$ac_ext
13161 LIBS
="$gt_save_LIBS"
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13164 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13165 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13167 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13171 printf %s
"checking for CFLocaleCopyPreferredLanguages... " >&6; }
13172 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
13174 printf %s
"(cached) " >&6
13176 gt_save_LIBS
="$LIBS"
13177 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 #include <CoreFoundation/CFLocale.h>
13184 CFLocaleCopyPreferredLanguages();
13189 if ac_fn_c_try_link
"$LINENO"
13191 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
13193 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
13195 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13196 conftest
$ac_exeext conftest.
$ac_ext
13197 LIBS
="$gt_save_LIBS"
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13200 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13201 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13203 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13208 ||
test $gt_cv_func_CFLocaleCopyCurrent = yes \
13209 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13210 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
13218 BUILD_INCLUDED_LIBINTL
=no
13219 USE_INCLUDED_LIBINTL
=no
13225 case " $gt_needs " in
13226 *" need-formatstring-macros "*) gt_api_version
=3 ;;
13227 *" need-ngettext "*) gt_api_version
=2 ;;
13228 *) gt_api_version
=1 ;;
13230 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
13231 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
13233 if test "$USE_NLS" = "yes"; then
13234 gt_use_preinstalled_gnugettext
=no
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13237 printf %s
"checking whether included gettext is requested... " >&6; }
13239 # Check whether --with-included-gettext was given.
13240 if test ${with_included_gettext+y}
13242 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
13244 nls_cv_force_use_gnu_gettext
=no
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13248 printf "%s\n" "$nls_cv_force_use_gnu_gettext" >&6; }
13250 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
13251 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13254 if test $gt_api_version -ge 3; then
13255 gt_revision_test_code
='
13256 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13257 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13259 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13262 gt_revision_test_code
=
13264 if test $gt_api_version -ge 2; then
13265 gt_expression_test_code
=' + * ngettext ("", "", 0)'
13267 gt_expression_test_code
=
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13271 printf %s
"checking for GNU gettext in libc... " >&6; }
13272 if eval test \
${$gt_func_gnugettext_libc+y}
13274 printf %s
"(cached) " >&6
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13279 #include <libintl.h>
13280 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13281 extern int _nl_msg_cat_cntr;
13282 extern int *_nl_domain_bindings;
13283 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13285 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13287 $gt_revision_test_code
13293 bindtextdomain ("", "");
13294 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13300 if ac_fn_c_try_link
"$LINENO"
13302 eval "$gt_func_gnugettext_libc=yes"
13304 eval "$gt_func_gnugettext_libc=no"
13306 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13307 conftest
$ac_exeext conftest.
$ac_ext
13309 eval ac_res
=\$
$gt_func_gnugettext_libc
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13311 printf "%s\n" "$ac_res" >&6; }
13313 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13323 acl_save_prefix
="$prefix"
13324 prefix
="$acl_final_prefix"
13325 acl_save_exec_prefix
="$exec_prefix"
13326 exec_prefix
="$acl_final_exec_prefix"
13328 eval additional_includedir
=\"$includedir\"
13329 eval additional_libdir
=\"$libdir\"
13331 exec_prefix
="$acl_save_exec_prefix"
13332 prefix
="$acl_save_prefix"
13335 # Check whether --with-libintl-prefix was given.
13336 if test ${with_libintl_prefix+y}
13338 withval
=$with_libintl_prefix;
13339 if test "X$withval" = "Xno"; then
13342 if test "X$withval" = "X"; then
13344 acl_save_prefix
="$prefix"
13345 prefix
="$acl_final_prefix"
13346 acl_save_exec_prefix
="$exec_prefix"
13347 exec_prefix
="$acl_final_exec_prefix"
13349 eval additional_includedir
=\"$includedir\"
13350 eval additional_libdir
=\"$libdir\"
13352 exec_prefix
="$acl_save_exec_prefix"
13353 prefix
="$acl_save_prefix"
13356 additional_includedir
="$withval/include"
13357 additional_libdir
="$withval/$acl_libdirstem"
13358 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13359 && test ! -d "$withval/$acl_libdirstem"; then
13360 additional_libdir
="$withval/$acl_libdirstem2"
13374 names_already_handled
=
13375 names_next_round
='intl '
13376 while test -n "$names_next_round"; do
13377 names_this_round
="$names_next_round"
13379 for name
in $names_this_round; do
13381 for n
in $names_already_handled; do
13382 if test "$n" = "$name"; then
13383 already_handled
=yes
13387 if test -z "$already_handled"; then
13388 names_already_handled
="$names_already_handled $name"
13389 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13390 eval value
=\"\
$HAVE_LIB$uppername\"
13391 if test -n "$value"; then
13392 if test "$value" = yes; then
13393 eval value
=\"\
$LIB$uppername\"
13394 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
13395 eval value
=\"\
$LTLIB$uppername\"
13396 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
13405 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
13406 if test -n "$acl_shlibext"; then
13407 shrext
=".$acl_shlibext" # typically: shrext=.so
13411 if test $use_additional = yes; then
13412 dir
="$additional_libdir"
13413 if test -n "$acl_shlibext"; then
13414 if test -f "$dir/$libname$shrext"; then
13416 found_so
="$dir/$libname$shrext"
13418 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13419 ver
=`(cd "$dir" && \
13420 for f in "$libname$shrext".*; do echo "$f"; done \
13421 | sed -e "s,^$libname$shrext\\\\.,," \
13422 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13423 | sed 1q ) 2>/dev/null`
13424 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13426 found_so
="$dir/$libname$shrext.$ver"
13429 eval library_names
=\"$acl_library_names_spec\"
13430 for f
in $library_names; do
13431 if test -f "$dir/$f"; then
13440 if test "X$found_dir" = "X"; then
13441 if test -f "$dir/$libname.$acl_libext"; then
13443 found_a
="$dir/$libname.$acl_libext"
13446 if test "X$found_dir" != "X"; then
13447 if test -f "$dir/$libname.la"; then
13448 found_la
="$dir/$libname.la"
13452 if test "X$found_dir" = "X"; then
13453 for x
in $LDFLAGS $LTLIBINTL; do
13455 acl_save_prefix
="$prefix"
13456 prefix
="$acl_final_prefix"
13457 acl_save_exec_prefix
="$exec_prefix"
13458 exec_prefix
="$acl_final_exec_prefix"
13460 exec_prefix
="$acl_save_exec_prefix"
13461 prefix
="$acl_save_prefix"
13465 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13466 if test -n "$acl_shlibext"; then
13467 if test -f "$dir/$libname$shrext"; then
13469 found_so
="$dir/$libname$shrext"
13471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13472 ver
=`(cd "$dir" && \
13473 for f in "$libname$shrext".*; do echo "$f"; done \
13474 | sed -e "s,^$libname$shrext\\\\.,," \
13475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13476 | sed 1q ) 2>/dev/null`
13477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13479 found_so
="$dir/$libname$shrext.$ver"
13482 eval library_names
=\"$acl_library_names_spec\"
13483 for f
in $library_names; do
13484 if test -f "$dir/$f"; then
13493 if test "X$found_dir" = "X"; then
13494 if test -f "$dir/$libname.$acl_libext"; then
13496 found_a
="$dir/$libname.$acl_libext"
13499 if test "X$found_dir" != "X"; then
13500 if test -f "$dir/$libname.la"; then
13501 found_la
="$dir/$libname.la"
13506 if test "X$found_dir" != "X"; then
13511 if test "X$found_dir" != "X"; then
13512 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13513 if test "X$found_so" != "X"; then
13514 if test "$enable_rpath" = no \
13515 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
13516 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13517 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13520 for x
in $ltrpathdirs; do
13521 if test "X$x" = "X$found_dir"; then
13526 if test -z "$haveit"; then
13527 ltrpathdirs
="$ltrpathdirs $found_dir"
13529 if test "$acl_hardcode_direct" = yes; then
13530 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13532 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
13533 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13535 for x
in $rpathdirs; do
13536 if test "X$x" = "X$found_dir"; then
13541 if test -z "$haveit"; then
13542 rpathdirs
="$rpathdirs $found_dir"
13546 for x
in $LDFLAGS $LIBINTL; do
13548 acl_save_prefix
="$prefix"
13549 prefix
="$acl_final_prefix"
13550 acl_save_exec_prefix
="$exec_prefix"
13551 exec_prefix
="$acl_final_exec_prefix"
13553 exec_prefix
="$acl_save_exec_prefix"
13554 prefix
="$acl_save_prefix"
13556 if test "X$x" = "X-L$found_dir"; then
13561 if test -z "$haveit"; then
13562 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13564 if test "$acl_hardcode_minus_L" != no
; then
13565 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13567 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13573 if test "X$found_a" != "X"; then
13574 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
13576 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13579 additional_includedir
=
13580 case "$found_dir" in
13581 */$acl_libdirstem |
*/$acl_libdirstem/)
13582 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13583 if test "$name" = 'intl'; then
13584 LIBINTL_PREFIX
="$basedir"
13586 additional_includedir
="$basedir/include"
13588 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
13589 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13590 if test "$name" = 'intl'; then
13591 LIBINTL_PREFIX
="$basedir"
13593 additional_includedir
="$basedir/include"
13596 if test "X$additional_includedir" != "X"; then
13597 if test "X$additional_includedir" != "X/usr/include"; then
13599 if test "X$additional_includedir" = "X/usr/local/include"; then
13600 if test -n "$GCC"; then
13602 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13606 if test -z "$haveit"; then
13607 for x
in $CPPFLAGS $INCINTL; do
13609 acl_save_prefix
="$prefix"
13610 prefix
="$acl_final_prefix"
13611 acl_save_exec_prefix
="$exec_prefix"
13612 exec_prefix
="$acl_final_exec_prefix"
13614 exec_prefix
="$acl_save_exec_prefix"
13615 prefix
="$acl_save_prefix"
13617 if test "X$x" = "X-I$additional_includedir"; then
13622 if test -z "$haveit"; then
13623 if test -d "$additional_includedir"; then
13624 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13630 if test -n "$found_la"; then
13631 save_libdir
="$libdir"
13632 case "$found_la" in
13633 */* |
*\\*) .
"$found_la" ;;
13634 *) .
"./$found_la" ;;
13636 libdir
="$save_libdir"
13637 for dep
in $dependency_libs; do
13640 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13641 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13642 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13644 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13645 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13646 if test -n "$GCC"; then
13648 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13652 if test -z "$haveit"; then
13654 for x
in $LDFLAGS $LIBINTL; do
13656 acl_save_prefix
="$prefix"
13657 prefix
="$acl_final_prefix"
13658 acl_save_exec_prefix
="$exec_prefix"
13659 exec_prefix
="$acl_final_exec_prefix"
13661 exec_prefix
="$acl_save_exec_prefix"
13662 prefix
="$acl_save_prefix"
13664 if test "X$x" = "X-L$additional_libdir"; then
13669 if test -z "$haveit"; then
13670 if test -d "$additional_libdir"; then
13671 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13675 for x
in $LDFLAGS $LTLIBINTL; do
13677 acl_save_prefix
="$prefix"
13678 prefix
="$acl_final_prefix"
13679 acl_save_exec_prefix
="$exec_prefix"
13680 exec_prefix
="$acl_final_exec_prefix"
13682 exec_prefix
="$acl_save_exec_prefix"
13683 prefix
="$acl_save_prefix"
13685 if test "X$x" = "X-L$additional_libdir"; then
13690 if test -z "$haveit"; then
13691 if test -d "$additional_libdir"; then
13692 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13699 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13700 if test "$enable_rpath" != no
; then
13702 for x
in $rpathdirs; do
13703 if test "X$x" = "X$dir"; then
13708 if test -z "$haveit"; then
13709 rpathdirs
="$rpathdirs $dir"
13712 for x
in $ltrpathdirs; do
13713 if test "X$x" = "X$dir"; then
13718 if test -z "$haveit"; then
13719 ltrpathdirs
="$ltrpathdirs $dir"
13724 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13727 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13730 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
13731 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13737 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13738 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13744 if test "X$rpathdirs" != "X"; then
13745 if test -n "$acl_hardcode_libdir_separator"; then
13747 for found_dir
in $rpathdirs; do
13748 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13750 acl_save_libdir
="$libdir"
13752 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13753 libdir
="$acl_save_libdir"
13754 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13756 for found_dir
in $rpathdirs; do
13757 acl_save_libdir
="$libdir"
13758 libdir
="$found_dir"
13759 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13760 libdir
="$acl_save_libdir"
13761 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13765 if test "X$ltrpathdirs" != "X"; then
13766 for found_dir
in $ltrpathdirs; do
13767 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13776 printf %s
"checking for GNU gettext in libintl... " >&6; }
13777 if eval test \
${$gt_func_gnugettext_libintl+y}
13779 printf %s
"(cached) " >&6
13781 gt_save_CPPFLAGS
="$CPPFLAGS"
13782 CPPFLAGS
="$CPPFLAGS $INCINTL"
13783 gt_save_LIBS
="$LIBS"
13784 LIBS
="$LIBS $LIBINTL"
13785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13788 #include <libintl.h>
13789 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13790 extern int _nl_msg_cat_cntr;
13795 const char *_nl_expand_alias (const char *);
13796 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13798 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13800 $gt_revision_test_code
13806 bindtextdomain ("", "");
13807 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13813 if ac_fn_c_try_link
"$LINENO"
13815 eval "$gt_func_gnugettext_libintl=yes"
13817 eval "$gt_func_gnugettext_libintl=no"
13819 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13820 conftest
$ac_exeext conftest.
$ac_ext
13821 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13822 LIBS
="$LIBS $LIBICONV"
13823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13826 #include <libintl.h>
13827 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13828 extern int _nl_msg_cat_cntr;
13833 const char *_nl_expand_alias (const char *);
13834 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13836 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13838 $gt_revision_test_code
13844 bindtextdomain ("", "");
13845 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13851 if ac_fn_c_try_link
"$LINENO"
13853 LIBINTL
="$LIBINTL $LIBICONV"
13854 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
13855 eval "$gt_func_gnugettext_libintl=yes"
13858 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13859 conftest
$ac_exeext conftest.
$ac_ext
13861 CPPFLAGS
="$gt_save_CPPFLAGS"
13862 LIBS
="$gt_save_LIBS"
13864 eval ac_res
=\$
$gt_func_gnugettext_libintl
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13866 printf "%s\n" "$ac_res" >&6; }
13869 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13870 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13871 && test "$PACKAGE" != gettext-runtime \
13872 && test "$PACKAGE" != gettext-tools
; }; then
13873 gt_use_preinstalled_gnugettext
=yes
13881 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13882 nls_cv_use_gnu_gettext
=yes
13886 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13887 BUILD_INCLUDED_LIBINTL
=yes
13888 USE_INCLUDED_LIBINTL
=yes
13889 LIBINTL
="lib/intl/libintl.a $LIBICONV $LIBTHREAD"
13890 LTLIBINTL
="lib/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
13891 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13895 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13896 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13901 if test -n "$INTL_MACOSX_LIBS"; then
13902 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13903 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13904 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
13905 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
13909 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13910 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13912 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13920 printf %s
"checking whether to use NLS... " >&6; }
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13922 printf "%s\n" "$USE_NLS" >&6; }
13923 if test "$USE_NLS" = "yes"; then
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13925 printf %s
"checking where the gettext function comes from... " >&6; }
13926 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13927 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13928 gt_source
="external libintl"
13933 gt_source
="included intl directory"
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13936 printf "%s\n" "$gt_source" >&6; }
13939 if test "$USE_NLS" = "yes"; then
13941 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13942 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13944 printf %s
"checking how to link with libintl... " >&6; }
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13946 printf "%s\n" "$LIBINTL" >&6; }
13948 for element
in $INCINTL; do
13950 for x
in $CPPFLAGS; do
13952 acl_save_prefix
="$prefix"
13953 prefix
="$acl_final_prefix"
13954 acl_save_exec_prefix
="$exec_prefix"
13955 exec_prefix
="$acl_final_exec_prefix"
13957 exec_prefix
="$acl_save_exec_prefix"
13958 prefix
="$acl_save_prefix"
13960 if test "X$x" = "X$element"; then
13965 if test -z "$haveit"; then
13966 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13973 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
13976 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
13984 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
13985 BUILD_INCLUDED_LIBINTL
=yes
13992 nls_cv_header_intl
=
13993 nls_cv_header_libgt
=
14005 if test "$USE_INCLUDED_LIBINTL" = yes; then
14006 INTLOBJS
="\$(GETTOBJS)"
14010 INTL_LIBTOOL_SUFFIX_PREFIX
=
14014 INTLLIBS
="$LIBINTL"
14022 ac_header_dirent
=no
14023 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
14024 as_ac_Header
=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14026 printf %s
"checking for $ac_hdr that defines DIR... " >&6; }
14027 if eval test \
${$as_ac_Header+y}
14029 printf %s
"(cached) " >&6
14031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 #include <sys/types.h>
14045 if ac_fn_c_try_compile
"$LINENO"
14047 eval "$as_ac_Header=yes"
14049 eval "$as_ac_Header=no"
14051 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14053 eval ac_res
=\$
$as_ac_Header
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14055 printf "%s\n" "$ac_res" >&6; }
14056 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"
14058 cat >>confdefs.h
<<_ACEOF
14059 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
14062 ac_header_dirent
=$ac_hdr; break
14066 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14067 if test $ac_header_dirent = dirent.h
; then
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14069 printf %s
"checking for library containing opendir... " >&6; }
14070 if test ${ac_cv_search_opendir+y}
14072 printf %s
"(cached) " >&6
14074 ac_func_search_save_LIBS
=$LIBS
14075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14090 for ac_lib
in '' dir
14092 if test -z "$ac_lib"; then
14093 ac_res
="none required"
14096 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14098 if ac_fn_c_try_link
"$LINENO"
14100 ac_cv_search_opendir
=$ac_res
14102 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14104 if test ${ac_cv_search_opendir+y}
14109 if test ${ac_cv_search_opendir+y}
14113 ac_cv_search_opendir
=no
14115 rm conftest.
$ac_ext
14116 LIBS
=$ac_func_search_save_LIBS
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14119 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14120 ac_res
=$ac_cv_search_opendir
14121 if test "$ac_res" != no
14123 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14129 printf %s
"checking for library containing opendir... " >&6; }
14130 if test ${ac_cv_search_opendir+y}
14132 printf %s
"(cached) " >&6
14134 ac_func_search_save_LIBS
=$LIBS
14135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14152 if test -z "$ac_lib"; then
14153 ac_res
="none required"
14156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14158 if ac_fn_c_try_link
"$LINENO"
14160 ac_cv_search_opendir
=$ac_res
14162 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14164 if test ${ac_cv_search_opendir+y}
14169 if test ${ac_cv_search_opendir+y}
14173 ac_cv_search_opendir
=no
14175 rm conftest.
$ac_ext
14176 LIBS
=$ac_func_search_save_LIBS
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14179 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14180 ac_res
=$ac_cv_search_opendir
14181 if test "$ac_res" != no
14183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14190 ac_fn_c_check_header_compile
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14191 if test "x$ac_cv_header_sys_mkdev_h" = xyes
14194 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
14198 if test $ac_cv_header_sys_mkdev_h = no
; then
14199 ac_fn_c_check_header_compile
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14200 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
14203 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
14211 ac_fn_c_check_header_compile
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14212 if test "x$ac_cv_header_inttypes_h" = xyes
14214 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
14220 ac_fn_c_check_header_compile
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14221 if test "x$ac_cv_header_unistd_h" = xyes
14223 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14226 ac_fn_c_check_header_compile
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14227 if test "x$ac_cv_header_stdlib_h" = xyes
14229 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14232 ac_fn_c_check_header_compile
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14233 if test "x$ac_cv_header_stdarg_h" = xyes
14235 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14238 ac_fn_c_check_header_compile
"$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
14239 if test "x$ac_cv_header_varargs_h" = xyes
14241 printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h
14244 ac_fn_c_check_header_compile
"$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14245 if test "x$ac_cv_header_limits_h" = xyes
14247 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14250 ac_fn_c_check_header_compile
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14251 if test "x$ac_cv_header_string_h" = xyes
14253 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14256 ac_fn_c_check_header_compile
"$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
14257 if test "x$ac_cv_header_memory_h" = xyes
14259 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
14262 ac_fn_c_check_header_compile
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14263 if test "x$ac_cv_header_locale_h" = xyes
14265 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14268 ac_fn_c_check_header_compile
"$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
14269 if test "x$ac_cv_header_termcap_h" = xyes
14271 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
14274 ac_fn_c_check_header_compile
"$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14275 if test "x$ac_cv_header_termio_h" = xyes
14277 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
14280 ac_fn_c_check_header_compile
"$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_termios_h" = xyes
14283 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
14286 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_dlfcn_h" = xyes
14289 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14292 ac_fn_c_check_header_compile
"$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
14293 if test "x$ac_cv_header_stdbool_h" = xyes
14295 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
14298 ac_fn_c_check_header_compile
"$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
14299 if test "x$ac_cv_header_stddef_h" = xyes
14301 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
14304 ac_fn_c_check_header_compile
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14305 if test "x$ac_cv_header_stdint_h" = xyes
14307 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14310 ac_fn_c_check_header_compile
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
14311 if test "x$ac_cv_header_netdb_h" = xyes
14313 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
14316 ac_fn_c_check_header_compile
"$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14317 if test "x$ac_cv_header_pwd_h" = xyes
14319 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
14322 ac_fn_c_check_header_compile
"$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
14323 if test "x$ac_cv_header_grp_h" = xyes
14325 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
14328 ac_fn_c_check_header_compile
"$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
14329 if test "x$ac_cv_header_strings_h" = xyes
14331 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
14334 ac_fn_c_check_header_compile
"$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
14335 if test "x$ac_cv_header_regex_h" = xyes
14337 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
14340 ac_fn_c_check_header_compile
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14341 if test "x$ac_cv_header_syslog_h" = xyes
14343 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
14346 ac_fn_c_check_header_compile
"$LINENO" "ulimit.h" "ac_cv_header_ulimit_h" "$ac_includes_default"
14347 if test "x$ac_cv_header_ulimit_h" = xyes
14349 printf "%s\n" "#define HAVE_ULIMIT_H 1" >>confdefs.h
14353 ac_fn_c_check_header_compile
"$LINENO" "sys/pte.h" "ac_cv_header_sys_pte_h" "$ac_includes_default"
14354 if test "x$ac_cv_header_sys_pte_h" = xyes
14356 printf "%s\n" "#define HAVE_SYS_PTE_H 1" >>confdefs.h
14359 ac_fn_c_check_header_compile
"$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default"
14360 if test "x$ac_cv_header_sys_stream_h" = xyes
14362 printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h
14365 ac_fn_c_check_header_compile
"$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14366 if test "x$ac_cv_header_sys_select_h" = xyes
14368 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14371 ac_fn_c_check_header_compile
"$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
14372 if test "x$ac_cv_header_sys_file_h" = xyes
14374 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
14377 ac_fn_c_check_header_compile
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14378 if test "x$ac_cv_header_sys_ioctl_h" = xyes
14380 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14383 ac_fn_c_check_header_compile
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14384 if test "x$ac_cv_header_sys_mman_h" = xyes
14386 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
14389 ac_fn_c_check_header_compile
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
14390 if test "x$ac_cv_header_sys_param_h" = xyes
14392 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
14395 ac_fn_c_check_header_compile
"$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
14396 if test "x$ac_cv_header_sys_random_h" = xyes
14398 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
14401 ac_fn_c_check_header_compile
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14402 if test "x$ac_cv_header_sys_socket_h" = xyes
14404 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14407 ac_fn_c_check_header_compile
"$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14408 if test "x$ac_cv_header_sys_stat_h" = xyes
14410 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14413 ac_fn_c_check_header_compile
"$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14414 if test "x$ac_cv_header_sys_time_h" = xyes
14416 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14419 ac_fn_c_check_header_compile
"$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_sys_times_h" = xyes
14422 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
14425 ac_fn_c_check_header_compile
"$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14426 if test "x$ac_cv_header_sys_types_h" = xyes
14428 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14431 ac_fn_c_check_header_compile
"$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
14432 if test "x$ac_cv_header_sys_wait_h" = xyes
14434 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14438 ac_fn_c_check_header_compile
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14439 if test "x$ac_cv_header_netinet_in_h" = xyes
14441 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
14444 ac_fn_c_check_header_compile
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14445 if test "x$ac_cv_header_arpa_inet_h" = xyes
14447 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
14452 ac_fn_c_check_header_compile
"$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
14453 #if HAVE_SYS_STREAM_H
14454 # include <sys/stream.h>
14458 if test "x$ac_cv_header_sys_ptem_h" = xyes
14464 ac_fn_c_check_header_compile
"$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
14465 #if HAVE_SYS_TIME_H
14466 # include <sys/time.h>
14470 if test "x$ac_cv_header_sys_resource_h" = xyes
14472 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
14477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14478 # for constant arguments. Useless!
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14480 printf %s
"checking for working alloca.h... " >&6; }
14481 if test ${ac_cv_working_alloca_h+y}
14483 printf %s
"(cached) " >&6
14485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #include <alloca.h>
14491 char *p = (char *) alloca (2 * sizeof (int));
14497 if ac_fn_c_try_link
"$LINENO"
14499 ac_cv_working_alloca_h
=yes
14501 ac_cv_working_alloca_h
=no
14503 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14504 conftest
$ac_exeext conftest.
$ac_ext
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14507 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
14508 if test $ac_cv_working_alloca_h = yes; then
14510 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14515 printf %s
"checking for alloca... " >&6; }
14516 if test ${ac_cv_func_alloca_works+y}
14518 printf %s
"(cached) " >&6
14520 if test $ac_cv_working_alloca_h = yes; then
14521 ac_cv_func_alloca_works
=yes
14523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 #include <stdlib.h>
14526 #include <stddef.h>
14529 # define alloca __builtin_alloca
14530 # elif defined _MSC_VER
14531 # include <malloc.h>
14532 # define alloca _alloca
14534 # ifdef __cplusplus
14537 void *alloca (size_t);
14544 char *p = (char *) alloca (1);
14550 if ac_fn_c_try_link
"$LINENO"
14552 ac_cv_func_alloca_works
=yes
14554 ac_cv_func_alloca_works
=no
14556 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14557 conftest
$ac_exeext conftest.
$ac_ext
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14560 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
14563 if test $ac_cv_func_alloca_works = yes; then
14565 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
14568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14569 # that cause trouble. Some versions do not even contain alloca or
14570 # contain a buggy version. If you still want to use their alloca,
14571 # use ar to extract alloca.o from them instead of compiling alloca.c.
14573 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
14575 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14579 printf %s
"checking stack direction for C alloca... " >&6; }
14580 if test ${ac_cv_c_stack_direction+y}
14582 printf %s
"(cached) " >&6
14584 if test "$cross_compiling" = yes
14586 ac_cv_c_stack_direction
=0
14588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 $ac_includes_default
14592 find_stack_direction (int *addr, int depth)
14594 int dir, dummy = 0;
14597 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14598 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14599 return dir + dummy;
14603 main (int argc, char **argv)
14605 return find_stack_direction (0, argc + !argv + 20) < 0;
14608 if ac_fn_c_try_run
"$LINENO"
14610 ac_cv_c_stack_direction
=1
14612 ac_cv_c_stack_direction
=-1
14614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14620 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
14621 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14627 printf %s
"checking for uid_t in sys/types.h... " >&6; }
14628 if test ${ac_cv_type_uid_t+y}
14630 printf %s
"(cached) " >&6
14632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 #include <sys/types.h>
14637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14638 $EGREP "uid_t" >/dev
/null
2>&1
14640 ac_cv_type_uid_t
=yes
14642 ac_cv_type_uid_t
=no
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14648 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
14649 if test $ac_cv_type_uid_t = no
; then
14651 printf "%s\n" "#define uid_t int" >>confdefs.h
14654 printf "%s\n" "#define gid_t int" >>confdefs.h
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14659 printf %s
"checking for working chown... " >&6; }
14660 if test ${ac_cv_func_chown_works+y}
14662 printf %s
"(cached) " >&6
14664 if test "$cross_compiling" = yes
14666 case "$host_os" in # ((
14667 # Guess yes on glibc systems.
14668 *-gnu*) ac_cv_func_chown_works
=yes ;;
14669 # If we don't know, assume the worst.
14670 *) ac_cv_func_chown_works
=no
;;
14673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 $ac_includes_default
14681 char *f = "conftest.chown";
14682 struct stat before, after;
14684 if (creat (f, 0600) < 0)
14686 if (stat (f, &before) < 0)
14688 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14690 if (stat (f, &after) < 0)
14692 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14698 if ac_fn_c_try_run
"$LINENO"
14700 ac_cv_func_chown_works
=yes
14702 ac_cv_func_chown_works
=no
14704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14708 rm -f conftest.chown
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14712 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
14713 if test $ac_cv_func_chown_works = yes; then
14715 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14720 printf %s
"checking whether getpgrp requires zero arguments... " >&6; }
14721 if test ${ac_cv_func_getpgrp_void+y}
14723 printf %s
"(cached) " >&6
14725 # Use it with a single arg.
14726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 $ac_includes_default
14737 if ac_fn_c_try_compile
"$LINENO"
14739 ac_cv_func_getpgrp_void
=no
14741 ac_cv_func_getpgrp_void
=yes
14743 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14747 printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; }
14748 if test $ac_cv_func_getpgrp_void = yes; then
14750 printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
14756 if test "x$ac_cv_func_vprintf" = xno
14758 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
14759 if test "x$ac_cv_func__doprnt" = xyes
14762 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
14768 printf %s
"checking for working strcoll... " >&6; }
14769 if test ${ac_cv_func_strcoll_works+y}
14771 printf %s
"(cached) " >&6
14773 if test "$cross_compiling" = yes
14775 case "$host_os" in # ((
14776 # Guess yes on glibc systems.
14777 *-gnu*) ac_cv_func_strcoll_works
=yes ;;
14778 # If we don't know, assume the worst.
14779 *) ac_cv_func_strcoll_works
=no
;;
14782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14784 $ac_includes_default
14788 return (strcoll ("abc", "def") >= 0 ||
14789 strcoll ("ABC", "DEF") >= 0 ||
14790 strcoll ("123", "456") >= 0)
14795 if ac_fn_c_try_run
"$LINENO"
14797 ac_cv_func_strcoll_works
=yes
14799 ac_cv_func_strcoll_works
=no
14801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
14807 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
14808 if test $ac_cv_func_strcoll_works = yes; then
14810 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
14816 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
14817 MALLOC_TARGET
=alloca
14818 MALLOC_SRC
=alloca.c
14820 MALLOC_LIB
='-lmalloc'
14821 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
14822 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
14823 MALLOC_DEP
='$(MALLOC_LIBRARY)'
14826 if test "$ac_cv_func_vprintf" = no
; then
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
14828 printf %s
"checking for declaration of vprintf in stdio.h... " >&6; }
14829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14835 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1
14837 ac_cv_func_vprintf
=yes
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
14842 printf "%s\n" "$ac_cv_func_vprintf" >&6; }
14843 if test $ac_cv_func_vprintf = yes; then
14844 printf "%s\n" "#define HAVE_VPRINTF 1" >>confdefs.h
14849 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
14850 case " $LIBOBJS " in
14851 *" vprint.$ac_objext "* ) ;;
14852 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
14858 ac_fn_c_check_func
"$LINENO" "__setostype" "ac_cv_func___setostype"
14859 if test "x$ac_cv_func___setostype" = xyes
14861 printf "%s\n" "#define HAVE_SETOSTYPE 1" >>confdefs.h
14865 ac_fn_c_check_func
"$LINENO" "wait3" "ac_cv_func_wait3"
14866 if test "x$ac_cv_func_wait3" = xyes
14868 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
14873 ac_fn_c_check_func
"$LINENO" "mkfifo" "ac_cv_func_mkfifo"
14874 if test "x$ac_cv_func_mkfifo" = xyes
14876 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
14879 printf "%s\n" "#define MKFIFO_MISSING 1" >>confdefs.h
14884 ac_fn_c_check_func
"$LINENO" "dup2" "ac_cv_func_dup2"
14885 if test "x$ac_cv_func_dup2" = xyes
14887 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
14890 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
14891 if test "x$ac_cv_func_eaccess" = xyes
14893 printf "%s\n" "#define HAVE_EACCESS 1" >>confdefs.h
14896 ac_fn_c_check_func
"$LINENO" "fcntl" "ac_cv_func_fcntl"
14897 if test "x$ac_cv_func_fcntl" = xyes
14899 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
14902 ac_fn_c_check_func
"$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
14903 if test "x$ac_cv_func_getdtablesize" = xyes
14905 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
14908 ac_fn_c_check_func
"$LINENO" "getentropy" "ac_cv_func_getentropy"
14909 if test "x$ac_cv_func_getentropy" = xyes
14911 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
14914 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
14915 if test "x$ac_cv_func_getgroups" = xyes
14917 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
14920 ac_fn_c_check_func
"$LINENO" "gethostname" "ac_cv_func_gethostname"
14921 if test "x$ac_cv_func_gethostname" = xyes
14923 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
14926 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14927 if test "x$ac_cv_func_getpagesize" = xyes
14929 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
14932 ac_fn_c_check_func
"$LINENO" "getpeername" "ac_cv_func_getpeername"
14933 if test "x$ac_cv_func_getpeername" = xyes
14935 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
14938 ac_fn_c_check_func
"$LINENO" "getrandom" "ac_cv_func_getrandom"
14939 if test "x$ac_cv_func_getrandom" = xyes
14941 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
14944 ac_fn_c_check_func
"$LINENO" "getrlimit" "ac_cv_func_getrlimit"
14945 if test "x$ac_cv_func_getrlimit" = xyes
14947 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
14950 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
14951 if test "x$ac_cv_func_getrusage" = xyes
14953 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
14956 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14957 if test "x$ac_cv_func_gettimeofday" = xyes
14959 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
14962 ac_fn_c_check_func
"$LINENO" "kill" "ac_cv_func_kill"
14963 if test "x$ac_cv_func_kill" = xyes
14965 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
14968 ac_fn_c_check_func
"$LINENO" "killpg" "ac_cv_func_killpg"
14969 if test "x$ac_cv_func_killpg" = xyes
14971 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
14974 ac_fn_c_check_func
"$LINENO" "lstat" "ac_cv_func_lstat"
14975 if test "x$ac_cv_func_lstat" = xyes
14977 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
14980 ac_fn_c_check_func
"$LINENO" "pselect" "ac_cv_func_pselect"
14981 if test "x$ac_cv_func_pselect" = xyes
14983 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
14986 ac_fn_c_check_func
"$LINENO" "readlink" "ac_cv_func_readlink"
14987 if test "x$ac_cv_func_readlink" = xyes
14989 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
14992 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
14993 if test "x$ac_cv_func_select" = xyes
14995 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
14998 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
14999 if test "x$ac_cv_func_setdtablesize" = xyes
15001 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
15004 ac_fn_c_check_func
"$LINENO" "setitimer" "ac_cv_func_setitimer"
15005 if test "x$ac_cv_func_setitimer" = xyes
15007 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
15010 ac_fn_c_check_func
"$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
15011 if test "x$ac_cv_func_tcgetpgrp" = xyes
15013 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
15016 ac_fn_c_check_func
"$LINENO" "uname" "ac_cv_func_uname"
15017 if test "x$ac_cv_func_uname" = xyes
15019 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
15022 ac_fn_c_check_func
"$LINENO" "ulimit" "ac_cv_func_ulimit"
15023 if test "x$ac_cv_func_ulimit" = xyes
15025 printf "%s\n" "#define HAVE_ULIMIT 1" >>confdefs.h
15028 ac_fn_c_check_func
"$LINENO" "waitpid" "ac_cv_func_waitpid"
15029 if test "x$ac_cv_func_waitpid" = xyes
15031 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
15035 ac_fn_c_check_func
"$LINENO" "rename" "ac_cv_func_rename"
15036 if test "x$ac_cv_func_rename" = xyes
15038 printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h
15041 case " $LIBOBJS " in
15042 *" rename.$ac_objext "* ) ;;
15043 *) LIBOBJS
="$LIBOBJS rename.$ac_objext"
15050 ac_fn_c_check_func
"$LINENO" "bcopy" "ac_cv_func_bcopy"
15051 if test "x$ac_cv_func_bcopy" = xyes
15053 printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
15056 ac_fn_c_check_func
"$LINENO" "bzero" "ac_cv_func_bzero"
15057 if test "x$ac_cv_func_bzero" = xyes
15059 printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h
15062 ac_fn_c_check_func
"$LINENO" "confstr" "ac_cv_func_confstr"
15063 if test "x$ac_cv_func_confstr" = xyes
15065 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
15068 ac_fn_c_check_func
"$LINENO" "faccessat" "ac_cv_func_faccessat"
15069 if test "x$ac_cv_func_faccessat" = xyes
15071 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
15074 ac_fn_c_check_func
"$LINENO" "fnmatch" "ac_cv_func_fnmatch"
15075 if test "x$ac_cv_func_fnmatch" = xyes
15077 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
15080 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15081 if test "x$ac_cv_func_getaddrinfo" = xyes
15083 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
15086 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15087 if test "x$ac_cv_func_gethostbyname" = xyes
15089 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15092 ac_fn_c_check_func
"$LINENO" "getservbyname" "ac_cv_func_getservbyname"
15093 if test "x$ac_cv_func_getservbyname" = xyes
15095 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
15098 ac_fn_c_check_func
"$LINENO" "getservent" "ac_cv_func_getservent"
15099 if test "x$ac_cv_func_getservent" = xyes
15101 printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h
15104 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15105 if test "x$ac_cv_func_inet_aton" = xyes
15107 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
15110 ac_fn_c_check_func
"$LINENO" "imaxdiv" "ac_cv_func_imaxdiv"
15111 if test "x$ac_cv_func_imaxdiv" = xyes
15113 printf "%s\n" "#define HAVE_IMAXDIV 1" >>confdefs.h
15116 ac_fn_c_check_func
"$LINENO" "memmove" "ac_cv_func_memmove"
15117 if test "x$ac_cv_func_memmove" = xyes
15119 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
15122 ac_fn_c_check_func
"$LINENO" "pathconf" "ac_cv_func_pathconf"
15123 if test "x$ac_cv_func_pathconf" = xyes
15125 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
15128 ac_fn_c_check_func
"$LINENO" "putenv" "ac_cv_func_putenv"
15129 if test "x$ac_cv_func_putenv" = xyes
15131 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15134 ac_fn_c_check_func
"$LINENO" "raise" "ac_cv_func_raise"
15135 if test "x$ac_cv_func_raise" = xyes
15137 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
15140 ac_fn_c_check_func
"$LINENO" "random" "ac_cv_func_random"
15141 if test "x$ac_cv_func_random" = xyes
15143 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
15146 ac_fn_c_check_func
"$LINENO" "regcomp" "ac_cv_func_regcomp"
15147 if test "x$ac_cv_func_regcomp" = xyes
15149 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
15152 ac_fn_c_check_func
"$LINENO" "regexec" "ac_cv_func_regexec"
15153 if test "x$ac_cv_func_regexec" = xyes
15155 printf "%s\n" "#define HAVE_REGEXEC 1" >>confdefs.h
15158 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
15159 if test "x$ac_cv_func_setenv" = xyes
15161 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
15164 ac_fn_c_check_func
"$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
15165 if test "x$ac_cv_func_setlinebuf" = xyes
15167 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
15170 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
15171 if test "x$ac_cv_func_setlocale" = xyes
15173 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
15176 ac_fn_c_check_func
"$LINENO" "setvbuf" "ac_cv_func_setvbuf"
15177 if test "x$ac_cv_func_setvbuf" = xyes
15179 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
15182 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
15183 if test "x$ac_cv_func_siginterrupt" = xyes
15185 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
15188 ac_fn_c_check_func
"$LINENO" "strchr" "ac_cv_func_strchr"
15189 if test "x$ac_cv_func_strchr" = xyes
15191 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15194 ac_fn_c_check_func
"$LINENO" "sysconf" "ac_cv_func_sysconf"
15195 if test "x$ac_cv_func_sysconf" = xyes
15197 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
15200 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
15201 if test "x$ac_cv_func_syslog" = xyes
15203 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
15206 ac_fn_c_check_func
"$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
15207 if test "x$ac_cv_func_tcgetattr" = xyes
15209 printf "%s\n" "#define HAVE_TCGETATTR 1" >>confdefs.h
15212 ac_fn_c_check_func
"$LINENO" "times" "ac_cv_func_times"
15213 if test "x$ac_cv_func_times" = xyes
15215 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
15218 ac_fn_c_check_func
"$LINENO" "ttyname" "ac_cv_func_ttyname"
15219 if test "x$ac_cv_func_ttyname" = xyes
15221 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
15224 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
15225 if test "x$ac_cv_func_tzset" = xyes
15227 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
15230 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15231 if test "x$ac_cv_func_unsetenv" = xyes
15233 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
15238 ac_fn_c_check_func
"$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15239 if test "x$ac_cv_func_vasprintf" = xyes
15241 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15244 ac_fn_c_check_func
"$LINENO" "asprintf" "ac_cv_func_asprintf"
15245 if test "x$ac_cv_func_asprintf" = xyes
15247 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
15251 ac_fn_c_check_func
"$LINENO" "isascii" "ac_cv_func_isascii"
15252 if test "x$ac_cv_func_isascii" = xyes
15254 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
15257 ac_fn_c_check_func
"$LINENO" "isblank" "ac_cv_func_isblank"
15258 if test "x$ac_cv_func_isblank" = xyes
15260 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
15263 ac_fn_c_check_func
"$LINENO" "isgraph" "ac_cv_func_isgraph"
15264 if test "x$ac_cv_func_isgraph" = xyes
15266 printf "%s\n" "#define HAVE_ISGRAPH 1" >>confdefs.h
15269 ac_fn_c_check_func
"$LINENO" "isprint" "ac_cv_func_isprint"
15270 if test "x$ac_cv_func_isprint" = xyes
15272 printf "%s\n" "#define HAVE_ISPRINT 1" >>confdefs.h
15275 ac_fn_c_check_func
"$LINENO" "isspace" "ac_cv_func_isspace"
15276 if test "x$ac_cv_func_isspace" = xyes
15278 printf "%s\n" "#define HAVE_ISSPACE 1" >>confdefs.h
15281 ac_fn_c_check_func
"$LINENO" "isxdigit" "ac_cv_func_isxdigit"
15282 if test "x$ac_cv_func_isxdigit" = xyes
15284 printf "%s\n" "#define HAVE_ISXDIGIT 1" >>confdefs.h
15288 ac_fn_c_check_func
"$LINENO" "getpwent" "ac_cv_func_getpwent"
15289 if test "x$ac_cv_func_getpwent" = xyes
15291 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
15294 ac_fn_c_check_func
"$LINENO" "getpwnam" "ac_cv_func_getpwnam"
15295 if test "x$ac_cv_func_getpwnam" = xyes
15297 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
15300 ac_fn_c_check_func
"$LINENO" "getpwuid" "ac_cv_func_getpwuid"
15301 if test "x$ac_cv_func_getpwuid" = xyes
15303 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
15307 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15308 if test "x$ac_cv_func_mkstemp" = xyes
15310 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15313 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15314 if test "x$ac_cv_func_mkdtemp" = xyes
15316 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
15320 ac_fn_c_check_func
"$LINENO" "arc4random" "ac_cv_func_arc4random"
15321 if test "x$ac_cv_func_arc4random" = xyes
15323 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
15328 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
15329 if test "x$ac_cv_func_getcwd" = xyes
15331 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15334 case " $LIBOBJS " in
15335 *" getcwd.$ac_objext "* ) ;;
15336 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
15341 ac_fn_c_check_func
"$LINENO" "memset" "ac_cv_func_memset"
15342 if test "x$ac_cv_func_memset" = xyes
15344 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
15347 case " $LIBOBJS " in
15348 *" memset.$ac_objext "* ) ;;
15349 *) LIBOBJS
="$LIBOBJS memset.$ac_objext"
15355 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
15356 if test "x$ac_cv_func_strcasecmp" = xyes
15358 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
15361 case " $LIBOBJS " in
15362 *" strcasecmp.$ac_objext "* ) ;;
15363 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
15368 ac_fn_c_check_func
"$LINENO" "strcasestr" "ac_cv_func_strcasestr"
15369 if test "x$ac_cv_func_strcasestr" = xyes
15371 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
15374 case " $LIBOBJS " in
15375 *" strcasestr.$ac_objext "* ) ;;
15376 *) LIBOBJS
="$LIBOBJS strcasestr.$ac_objext"
15381 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
15382 if test "x$ac_cv_func_strerror" = xyes
15384 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
15387 case " $LIBOBJS " in
15388 *" strerror.$ac_objext "* ) ;;
15389 *) LIBOBJS
="$LIBOBJS strerror.$ac_objext"
15394 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
15395 if test "x$ac_cv_func_strftime" = xyes
15397 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
15400 case " $LIBOBJS " in
15401 *" strftime.$ac_objext "* ) ;;
15402 *) LIBOBJS
="$LIBOBJS strftime.$ac_objext"
15407 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
15408 if test "x$ac_cv_func_strnlen" = xyes
15410 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
15413 case " $LIBOBJS " in
15414 *" strnlen.$ac_objext "* ) ;;
15415 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
15420 ac_fn_c_check_func
"$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15421 if test "x$ac_cv_func_strpbrk" = xyes
15423 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
15426 case " $LIBOBJS " in
15427 *" strpbrk.$ac_objext "* ) ;;
15428 *) LIBOBJS
="$LIBOBJS strpbrk.$ac_objext"
15433 ac_fn_c_check_func
"$LINENO" "strstr" "ac_cv_func_strstr"
15434 if test "x$ac_cv_func_strstr" = xyes
15436 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
15439 case " $LIBOBJS " in
15440 *" strstr.$ac_objext "* ) ;;
15441 *) LIBOBJS
="$LIBOBJS strstr.$ac_objext"
15447 ac_fn_c_check_func
"$LINENO" "strtod" "ac_cv_func_strtod"
15448 if test "x$ac_cv_func_strtod" = xyes
15450 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
15453 case " $LIBOBJS " in
15454 *" strtod.$ac_objext "* ) ;;
15455 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
15460 ac_fn_c_check_func
"$LINENO" "strtol" "ac_cv_func_strtol"
15461 if test "x$ac_cv_func_strtol" = xyes
15463 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
15466 case " $LIBOBJS " in
15467 *" strtol.$ac_objext "* ) ;;
15468 *) LIBOBJS
="$LIBOBJS strtol.$ac_objext"
15473 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
15474 if test "x$ac_cv_func_strtoul" = xyes
15476 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
15479 case " $LIBOBJS " in
15480 *" strtoul.$ac_objext "* ) ;;
15481 *) LIBOBJS
="$LIBOBJS strtoul.$ac_objext"
15486 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
15487 if test "x$ac_cv_func_strtoll" = xyes
15489 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
15492 case " $LIBOBJS " in
15493 *" strtoll.$ac_objext "* ) ;;
15494 *) LIBOBJS
="$LIBOBJS strtoll.$ac_objext"
15499 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
15500 if test "x$ac_cv_func_strtoull" = xyes
15502 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
15505 case " $LIBOBJS " in
15506 *" strtoull.$ac_objext "* ) ;;
15507 *) LIBOBJS
="$LIBOBJS strtoull.$ac_objext"
15512 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
15513 if test "x$ac_cv_func_strtoumax" = xyes
15515 printf "%s\n" "#define HAVE_STRTOUMAX 1" >>confdefs.h
15518 case " $LIBOBJS " in
15519 *" strtoumax.$ac_objext "* ) ;;
15520 *) LIBOBJS
="$LIBOBJS strtoumax.$ac_objext"
15526 ac_fn_c_check_func
"$LINENO" "dprintf" "ac_cv_func_dprintf"
15527 if test "x$ac_cv_func_dprintf" = xyes
15529 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
15532 case " $LIBOBJS " in
15533 *" dprintf.$ac_objext "* ) ;;
15534 *) LIBOBJS
="$LIBOBJS dprintf.$ac_objext"
15540 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
15541 if test "x$ac_cv_func_strchrnul" = xyes
15543 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
15546 case " $LIBOBJS " in
15547 *" strchrnul.$ac_objext "* ) ;;
15548 *) LIBOBJS
="$LIBOBJS strchrnul.$ac_objext"
15554 ac_fn_c_check_func
"$LINENO" "strdup" "ac_cv_func_strdup"
15555 if test "x$ac_cv_func_strdup" = xyes
15557 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
15560 case " $LIBOBJS " in
15561 *" strdup.$ac_objext "* ) ;;
15562 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
15569 ac_fn_c_check_header_compile
"$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
15570 if test "x$ac_cv_header_libaudit_h" = xyes
15572 printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h
15576 ac_fn_check_decl
"$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
15577 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15578 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
15584 printf "%s\n" "#define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl" >>confdefs.h
15587 ac_fn_check_decl
"$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15588 if test "x$ac_cv_have_decl_confstr" = xyes
15594 printf "%s\n" "#define HAVE_DECL_CONFSTR $ac_have_decl" >>confdefs.h
15596 ac_fn_check_decl
"$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15597 if test "x$ac_cv_have_decl_printf" = xyes
15603 printf "%s\n" "#define HAVE_DECL_PRINTF $ac_have_decl" >>confdefs.h
15605 ac_fn_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15606 if test "x$ac_cv_have_decl_sbrk" = xyes
15612 printf "%s\n" "#define HAVE_DECL_SBRK $ac_have_decl" >>confdefs.h
15614 ac_fn_check_decl
"$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15615 if test "x$ac_cv_have_decl_setregid" = xyes
15621 printf "%s\n" "#define HAVE_DECL_SETREGID $ac_have_decl" >>confdefs.h
15623 ac_fn_check_decl
"$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15624 if test "x$ac_cv_have_decl_strcpy" = xyes
15630 printf "%s\n" "#define HAVE_DECL_STRCPY $ac_have_decl" >>confdefs.h
15632 ac_fn_check_decl
"$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15633 if test "x$ac_cv_have_decl_strsignal" = xyes
15639 printf "%s\n" "#define HAVE_DECL_STRSIGNAL $ac_have_decl" >>confdefs.h
15642 ac_fn_c_check_func
"$LINENO" "setresuid" "ac_cv_func_setresuid"
15643 if test "x$ac_cv_func_setresuid" = xyes
15645 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
15648 ac_fn_c_check_func
"$LINENO" "setresgid" "ac_cv_func_setresgid"
15649 if test "x$ac_cv_func_setresgid" = xyes
15651 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
15656 ac_fn_check_decl
"$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15657 if test "x$ac_cv_have_decl_strtold" = xyes
15663 printf "%s\n" "#define HAVE_DECL_STRTOLD $ac_have_decl" >>confdefs.h
15664 if test $ac_have_decl = 1
15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
15668 printf %s
"checking for broken strtold... " >&6; }
15669 if test ${bash_cv_strtold_broken+y}
15671 printf %s
"(cached) " >&6
15673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <stdlib.h>
15679 long double r; char *foo, bar; r = strtold(foo, &bar);
15685 if ac_fn_c_try_compile
"$LINENO"
15687 bash_cv_strtold_broken
=no
15689 bash_cv_strtold_broken
=yes
15691 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
15697 printf "%s\n" "$bash_cv_strtold_broken" >&6; }
15698 if test "$bash_cv_strtold_broken" = "yes" ; then
15699 printf "%s\n" "#define STRTOLD_BROKEN 1" >>confdefs.h
15706 ac_fn_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15707 if test "x$ac_cv_have_decl_strtol" = xyes
15713 printf "%s\n" "#define HAVE_DECL_STRTOL $ac_have_decl" >>confdefs.h
15715 ac_fn_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15716 if test "x$ac_cv_have_decl_strtoll" = xyes
15722 printf "%s\n" "#define HAVE_DECL_STRTOLL $ac_have_decl" >>confdefs.h
15724 ac_fn_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15725 if test "x$ac_cv_have_decl_strtoul" = xyes
15731 printf "%s\n" "#define HAVE_DECL_STRTOUL $ac_have_decl" >>confdefs.h
15733 ac_fn_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15734 if test "x$ac_cv_have_decl_strtoull" = xyes
15740 printf "%s\n" "#define HAVE_DECL_STRTOULL $ac_have_decl" >>confdefs.h
15742 ac_fn_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15743 if test "x$ac_cv_have_decl_strtoumax" = xyes
15749 printf "%s\n" "#define HAVE_DECL_STRTOUMAX $ac_have_decl" >>confdefs.h
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15757 printf %s
"checking for working mktime... " >&6; }
15758 if test ${ac_cv_func_working_mktime+y}
15760 printf %s
"(cached) " >&6
15762 if test "$cross_compiling" = yes
15764 ac_cv_func_working_mktime
=no
15766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 /* Test program from Paul Eggert and Tony Leneis. */
15770 #ifdef HAVE_SYS_TIME_H
15771 # include <sys/time.h>
15774 #include <limits.h>
15775 #include <stdlib.h>
15777 #ifdef HAVE_UNISTD_H
15778 # include <unistd.h>
15782 # define alarm(X) /* empty */
15785 /* Work around redefinition to rpl_putenv by other config tests. */
15788 static time_t time_t_max;
15789 static time_t time_t_min;
15791 /* Values we'll use to set the TZ environment variable. */
15792 static const char *tz_strings[] = {
15793 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
15794 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15796 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15798 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15799 Based on a problem report from Andreas Jaeger. */
15801 spring_forward_gap ()
15803 /* glibc (up to about 1998-10-07) failed this test. */
15806 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15807 instead of "TZ=America/Vancouver" in order to detect the bug even
15808 on systems that don't support the Olson extension, or don't have the
15809 full zoneinfo tables installed. */
15810 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15819 return mktime (&tm) != (time_t) -1;
15823 mktime_test1 (time_t now)
15826 return ! (lt = localtime (&now)) || mktime (lt) == now;
15830 mktime_test (time_t now)
15832 return (mktime_test1 (now)
15833 && mktime_test1 ((time_t) (time_t_max - now))
15834 && mktime_test1 ((time_t) (time_t_min + now)));
15840 /* Based on code from Ariel Faigon. */
15850 return tm.tm_mon == 2 && tm.tm_mday == 31;
15854 bigtime_test (int j)
15858 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15859 now = mktime (&tm);
15860 if (now != (time_t) -1)
15862 struct tm *lt = localtime (&now);
15864 && lt->tm_year == tm.tm_year
15865 && lt->tm_mon == tm.tm_mon
15866 && lt->tm_mday == tm.tm_mday
15867 && lt->tm_hour == tm.tm_hour
15868 && lt->tm_min == tm.tm_min
15869 && lt->tm_sec == tm.tm_sec
15870 && lt->tm_yday == tm.tm_yday
15871 && lt->tm_wday == tm.tm_wday
15872 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15873 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15882 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15883 ignoring leap seconds. */
15884 unsigned long int answer = 2527315200UL;
15888 tm.tm_year = 2050 - 1900;
15891 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15894 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15895 instead of "TZ=America/Vancouver" in order to detect the bug even
15896 on systems that don't support the Olson extension, or don't have the
15897 full zoneinfo tables installed. */
15898 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15902 /* Check that the result is either a failure, or close enough
15903 to the correct answer that we can assume the discrepancy is
15904 due to leap seconds. */
15905 return (t == (time_t) -1
15906 || (0 < t && answer - 120 <= t && t <= answer + 120));
15915 /* This test makes some buggy mktime implementations loop.
15916 Give up after 60 seconds; a mktime slower than that
15917 isn't worth using anyway. */
15922 t = (time_t_max << 1) + 1;
15923 if (t <= time_t_max)
15927 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15929 delta = time_t_max / 997; /* a suitable prime number */
15930 for (i = 0; i < N_STRINGS; i++)
15933 putenv ((char*) tz_strings[i]);
15935 for (t = 0; t <= time_t_max - delta; t += delta)
15936 if (! mktime_test (t))
15938 if (! (mktime_test ((time_t) 1)
15939 && mktime_test ((time_t) (60 * 60))
15940 && mktime_test ((time_t) (60 * 60 * 24))))
15943 for (j = 1; ; j <<= 1)
15944 if (! bigtime_test (j))
15946 else if (INT_MAX / 2 < j)
15948 if (! bigtime_test (INT_MAX))
15951 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15954 if ac_fn_c_try_run
"$LINENO"
15956 ac_cv_func_working_mktime
=yes
15958 ac_cv_func_working_mktime
=no
15960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15961 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15966 printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
15967 if test $ac_cv_func_working_mktime = no
; then
15968 case " $LIBOBJS " in
15969 *" mktime.$ac_objext "* ) ;;
15970 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
15978 ac_fn_c_check_header_compile
"$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
15979 if test "x$ac_cv_header_argz_h" = xyes
15981 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
15984 ac_fn_c_check_header_compile
"$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
15985 if test "x$ac_cv_header_errno_h" = xyes
15987 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
15990 ac_fn_c_check_header_compile
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15991 if test "x$ac_cv_header_fcntl_h" = xyes
15993 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15996 ac_fn_c_check_header_compile
"$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15997 if test "x$ac_cv_header_malloc_h" = xyes
15999 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
16002 ac_fn_c_check_header_compile
"$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
16003 if test "x$ac_cv_header_stdio_ext_h" = xyes
16005 printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16013 printf %s
"checking for working mmap... " >&6; }
16014 if test ${ac_cv_func_mmap_fixed_mapped+y}
16016 printf %s
"(cached) " >&6
16018 if test "$cross_compiling" = yes
16020 case "$host_os" in # ((
16021 # Guess yes on platforms where we know the result.
16022 linux
*) ac_cv_func_mmap_fixed_mapped
=yes ;;
16023 # If we don't know, assume the worst.
16024 *) ac_cv_func_mmap_fixed_mapped
=no
;;
16027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 /* malloc might have been renamed as rpl_malloc. */
16033 /* Thanks to Mike Haertel and Jim Avera for this test.
16034 Here is a matrix of mmap possibilities:
16035 mmap private not fixed
16036 mmap private fixed at somewhere currently unmapped
16037 mmap private fixed at somewhere already mapped
16038 mmap shared not fixed
16039 mmap shared fixed at somewhere currently unmapped
16040 mmap shared fixed at somewhere already mapped
16041 For private mappings, we should verify that changes cannot be read()
16042 back from the file, nor mmap's back from the file at a different
16043 address. (There have been systems where private was not correctly
16044 implemented like the infamous i386 svr4.0, and systems where the
16045 VM page cache was not coherent with the file system buffer cache
16046 like early versions of FreeBSD and possibly contemporary NetBSD.)
16047 For shared mappings, we should conversely verify that changes get
16048 propagated back to all the places they're supposed to be.
16050 Grep wants private fixed already mapped.
16051 The main things grep needs to know about mmap are:
16052 * does it exist and is it safe to write into the mmap'd area
16053 * how to use it (BSD variants) */
16056 #include <sys/mman.h>
16058 /* This mess was copied from the GNU getpagesize.h. */
16059 #ifndef HAVE_GETPAGESIZE
16060 # ifdef _SC_PAGESIZE
16061 # define getpagesize() sysconf(_SC_PAGESIZE)
16062 # else /* no _SC_PAGESIZE */
16063 # ifdef HAVE_SYS_PARAM_H
16064 # include <sys/param.h>
16065 # ifdef EXEC_PAGESIZE
16066 # define getpagesize() EXEC_PAGESIZE
16067 # else /* no EXEC_PAGESIZE */
16069 # define getpagesize() NBPG * CLSIZE
16072 # endif /* no CLSIZE */
16073 # else /* no NBPG */
16075 # define getpagesize() NBPC
16076 # else /* no NBPC */
16078 # define getpagesize() PAGESIZE
16079 # endif /* PAGESIZE */
16080 # endif /* no NBPC */
16081 # endif /* no NBPG */
16082 # endif /* no EXEC_PAGESIZE */
16083 # else /* no HAVE_SYS_PARAM_H */
16084 # define getpagesize() 8192 /* punt totally */
16085 # endif /* no HAVE_SYS_PARAM_H */
16086 # endif /* no _SC_PAGESIZE */
16088 #endif /* no HAVE_GETPAGESIZE */
16093 char *data, *data2, *data3;
16094 const char *cdata2;
16098 pagesize = getpagesize ();
16100 /* First, make a file with some known garbage in it. */
16101 data = (char *) malloc (pagesize);
16104 for (i = 0; i < pagesize; ++i)
16105 *(data + i) = rand ();
16107 fd = creat ("conftest.mmap", 0600);
16110 if (write (fd, data, pagesize) != pagesize)
16114 /* Next, check that the tail of a page is zero-filled. File must have
16115 non-zero length, otherwise we risk SIGBUS for entire page. */
16116 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16120 if (write (fd2, cdata2, 1) != 1)
16122 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16123 if (data2 == MAP_FAILED)
16125 for (i = 0; i < pagesize; ++i)
16129 if (munmap (data2, pagesize))
16132 /* Next, try to mmap the file at a fixed address which already has
16133 something else allocated at it. If we can, also make sure that
16134 we see the same garbage. */
16135 fd = open ("conftest.mmap", O_RDWR);
16138 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16139 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16141 for (i = 0; i < pagesize; ++i)
16142 if (*(data + i) != *(data2 + i))
16145 /* Finally, make sure that changes to the mapped area do not
16146 percolate back to the file as seen by read(). (This is a bug on
16147 some variants of i386 svr4.0.) */
16148 for (i = 0; i < pagesize; ++i)
16149 *(data2 + i) = *(data2 + i) + 1;
16150 data3 = (char *) malloc (pagesize);
16153 if (read (fd, data3, pagesize) != pagesize)
16155 for (i = 0; i < pagesize; ++i)
16156 if (*(data + i) != *(data3 + i))
16164 if ac_fn_c_try_run
"$LINENO"
16166 ac_cv_func_mmap_fixed_mapped
=yes
16168 ac_cv_func_mmap_fixed_mapped
=no
16170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16176 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
16177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16179 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16182 rm -f conftest.mmap conftest.txt
16184 ac_fn_c_check_func
"$LINENO" "__argz_count" "ac_cv_func___argz_count"
16185 if test "x$ac_cv_func___argz_count" = xyes
16187 printf "%s\n" "#define HAVE___ARGZ_COUNT 1" >>confdefs.h
16190 ac_fn_c_check_func
"$LINENO" "__argz_next" "ac_cv_func___argz_next"
16191 if test "x$ac_cv_func___argz_next" = xyes
16193 printf "%s\n" "#define HAVE___ARGZ_NEXT 1" >>confdefs.h
16196 ac_fn_c_check_func
"$LINENO" "__argz_stringify" "ac_cv_func___argz_stringify"
16197 if test "x$ac_cv_func___argz_stringify" = xyes
16199 printf "%s\n" "#define HAVE___ARGZ_STRINGIFY 1" >>confdefs.h
16202 ac_fn_c_check_func
"$LINENO" "dcgettext" "ac_cv_func_dcgettext"
16203 if test "x$ac_cv_func_dcgettext" = xyes
16205 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16208 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
16209 if test "x$ac_cv_func_mempcpy" = xyes
16211 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
16214 ac_fn_c_check_func
"$LINENO" "munmap" "ac_cv_func_munmap"
16215 if test "x$ac_cv_func_munmap" = xyes
16217 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
16220 ac_fn_c_check_func
"$LINENO" "mremap" "ac_cv_func_mremap"
16221 if test "x$ac_cv_func_mremap" = xyes
16223 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
16226 ac_fn_c_check_func
"$LINENO" "stpcpy" "ac_cv_func_stpcpy"
16227 if test "x$ac_cv_func_stpcpy" = xyes
16229 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
16232 ac_fn_c_check_func
"$LINENO" "strcspn" "ac_cv_func_strcspn"
16233 if test "x$ac_cv_func_strcspn" = xyes
16235 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
16240 INTL_DEP
= INTL_INC
= LIBINTL_H
=
16241 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16242 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
16243 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16244 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
16252 ac_fn_c_check_header_compile
"$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
16253 if test "x$ac_cv_header_wctype_h" = xyes
16255 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
16259 ac_fn_c_check_header_compile
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16260 if test "x$ac_cv_header_wchar_h" = xyes
16262 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
16266 ac_fn_c_check_header_compile
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
16267 if test "x$ac_cv_header_langinfo_h" = xyes
16269 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
16274 ac_fn_c_check_header_compile
"$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
16275 if test "x$ac_cv_header_mbstr_h" = xyes
16277 printf "%s\n" "#define HAVE_MBSTR_H 1" >>confdefs.h
16282 ac_fn_c_check_func
"$LINENO" "mbrlen" "ac_cv_func_mbrlen"
16283 if test "x$ac_cv_func_mbrlen" = xyes
16285 printf "%s\n" "#define HAVE_MBRLEN 1" >>confdefs.h
16289 ac_fn_c_check_func
"$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
16290 if test "x$ac_cv_func_mbscasecmp" = xyes
16292 printf "%s\n" "#define HAVE_MBSCMP 1" >>confdefs.h
16296 ac_fn_c_check_func
"$LINENO" "mbscmp" "ac_cv_func_mbscmp"
16297 if test "x$ac_cv_func_mbscmp" = xyes
16299 printf "%s\n" "#define HAVE_MBSCMP 1" >>confdefs.h
16303 ac_fn_c_check_func
"$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
16304 if test "x$ac_cv_func_mbsnrtowcs" = xyes
16306 printf "%s\n" "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
16310 ac_fn_c_check_func
"$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
16311 if test "x$ac_cv_func_mbsrtowcs" = xyes
16313 printf "%s\n" "#define HAVE_MBSRTOWCS 1" >>confdefs.h
16318 ac_fn_c_check_func
"$LINENO" "mbschr" "ac_cv_func_mbschr"
16319 if test "x$ac_cv_func_mbschr" = xyes
16321 printf "%s\n" "#define HAVE_MBSCHR 1" >>confdefs.h
16324 case " $LIBOBJS " in
16325 *" mbschr.$ac_objext "* ) ;;
16326 *) LIBOBJS
="$LIBOBJS mbschr.$ac_objext"
16333 ac_fn_c_check_func
"$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
16334 if test "x$ac_cv_func_wcrtomb" = xyes
16336 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
16340 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
16341 if test "x$ac_cv_func_wcscoll" = xyes
16343 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
16347 ac_fn_c_check_func
"$LINENO" "wcsdup" "ac_cv_func_wcsdup"
16348 if test "x$ac_cv_func_wcsdup" = xyes
16350 printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
16354 ac_fn_c_check_func
"$LINENO" "wcwidth" "ac_cv_func_wcwidth"
16355 if test "x$ac_cv_func_wcwidth" = xyes
16357 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
16361 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
16362 if test "x$ac_cv_func_wctype" = xyes
16364 printf "%s\n" "#define HAVE_WCTYPE 1" >>confdefs.h
16369 ac_fn_c_check_func
"$LINENO" "wcswidth" "ac_cv_func_wcswidth"
16370 if test "x$ac_cv_func_wcswidth" = xyes
16372 printf "%s\n" "#define HAVE_WCSWIDTH 1" >>confdefs.h
16375 case " $LIBOBJS " in
16376 *" wcswidth.$ac_objext "* ) ;;
16377 *) LIBOBJS
="$LIBOBJS wcswidth.$ac_objext"
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
16386 printf %s
"checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
16387 if test ${ac_cv_func_mbrtowc+y}
16389 printf %s
"(cached) " >&6
16391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16398 char const s[] = "";
16401 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16406 if ac_fn_c_try_link
"$LINENO"
16408 ac_cv_func_mbrtowc
=yes
16410 ac_cv_func_mbrtowc
=no
16412 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16413 conftest
$ac_exeext conftest.
$ac_ext
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
16416 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
16417 if test $ac_cv_func_mbrtowc = yes; then
16419 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
16423 if test $ac_cv_func_mbrtowc = yes; then
16424 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
16428 ac_fn_c_check_func
"$LINENO" "iswlower" "ac_cv_func_iswlower"
16429 if test "x$ac_cv_func_iswlower" = xyes
16431 printf "%s\n" "#define HAVE_ISWLOWER 1" >>confdefs.h
16434 ac_fn_c_check_func
"$LINENO" "iswupper" "ac_cv_func_iswupper"
16435 if test "x$ac_cv_func_iswupper" = xyes
16437 printf "%s\n" "#define HAVE_ISWUPPER 1" >>confdefs.h
16440 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
16441 if test "x$ac_cv_func_towlower" = xyes
16443 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
16446 ac_fn_c_check_func
"$LINENO" "towupper" "ac_cv_func_towupper"
16447 if test "x$ac_cv_func_towupper" = xyes
16449 printf "%s\n" "#define HAVE_TOWUPPER 1" >>confdefs.h
16452 ac_fn_c_check_func
"$LINENO" "iswctype" "ac_cv_func_iswctype"
16453 if test "x$ac_cv_func_iswctype" = xyes
16455 printf "%s\n" "#define HAVE_ISWCTYPE 1" >>confdefs.h
16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
16463 printf %s
"checking for wchar_t in wchar.h... " >&6; }
16464 if test ${bash_cv_type_wchar_t+y}
16466 printf %s
"(cached) " >&6
16468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16483 if ac_fn_c_try_compile
"$LINENO"
16485 bash_cv_type_wchar_t
=yes
16487 bash_cv_type_wchar_t
=no
16490 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
16493 printf "%s\n" "$bash_cv_type_wchar_t" >&6; }
16494 if test $bash_cv_type_wchar_t = yes; then
16496 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
16501 printf %s
"checking for wctype_t in wctype.h... " >&6; }
16502 if test ${bash_cv_type_wctype_t+y}
16504 printf %s
"(cached) " >&6
16506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16509 #include <wctype.h>
16521 if ac_fn_c_try_compile
"$LINENO"
16523 bash_cv_type_wctype_t
=yes
16525 bash_cv_type_wctype_t
=no
16528 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
16531 printf "%s\n" "$bash_cv_type_wctype_t" >&6; }
16532 if test $bash_cv_type_wctype_t = yes; then
16534 printf "%s\n" "#define HAVE_WCTYPE_T 1" >>confdefs.h
16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
16539 printf %s
"checking for wint_t in wctype.h... " >&6; }
16540 if test ${bash_cv_type_wint_t+y}
16542 printf %s
"(cached) " >&6
16544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16547 #include <wctype.h>
16559 if ac_fn_c_try_compile
"$LINENO"
16561 bash_cv_type_wint_t
=yes
16563 bash_cv_type_wint_t
=no
16566 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
16569 printf "%s\n" "$bash_cv_type_wint_t" >&6; }
16570 if test $bash_cv_type_wint_t = yes; then
16572 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
16577 printf %s
"checking for wcwidth broken with unicode combining characters... " >&6; }
16578 if test ${bash_cv_wcwidth_broken+y}
16580 printf %s
"(cached) " >&6
16582 if test "$cross_compiling" = yes
16584 bash_cv_wcwidth_broken
=no
16587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16590 #include <unistd.h>
16591 #include <stdlib.h>
16594 #include <locale.h>
16604 setlocale(LC_ALL, "en_US.UTF-8");
16605 w = wcwidth (0x0301);
16606 exit (w == 0); /* exit 0 if wcwidth broken */
16610 if ac_fn_c_try_run
"$LINENO"
16612 bash_cv_wcwidth_broken
=yes
16614 bash_cv_wcwidth_broken
=no
16616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
16622 printf "%s\n" "$bash_cv_wcwidth_broken" >&6; }
16623 if test "$bash_cv_wcwidth_broken" = yes; then
16625 printf "%s\n" "#define WCWIDTH_BROKEN 1" >>confdefs.h
16629 if test "$am_cv_func_iconv" = yes; then
16631 LIBS
="$LIBS $LIBINTL $LIBICONV"
16632 ac_fn_c_check_func
"$LINENO" "locale_charset" "ac_cv_func_locale_charset"
16633 if test "x$ac_cv_func_locale_charset" = xyes
16635 printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
16642 # The cast to long int works around a bug in the HP C Compiler
16643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16645 # This bug is HP SR number 8606223364.
16646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
16647 printf %s
"checking size of wchar_t... " >&6; }
16648 if test ${ac_cv_sizeof_wchar_t+y}
16650 printf %s
"(cached) " >&6
16652 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
16656 if test "$ac_cv_type_wchar_t" = yes; then
16657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16658 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16659 as_fn_error
77 "cannot compute sizeof (wchar_t)
16660 See \`config.log' for more details" "$LINENO" 5; }
16662 ac_cv_sizeof_wchar_t
=0
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
16668 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
16672 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
16678 if test "$opt_static_link" != yes; then
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16680 printf %s
"checking for dlopen in -ldl... " >&6; }
16681 if test ${ac_cv_lib_dl_dlopen+y}
16683 printf %s
"(cached) " >&6
16685 ac_check_lib_save_LIBS
=$LIBS
16687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply. */
16702 if ac_fn_c_try_link
"$LINENO"
16704 ac_cv_lib_dl_dlopen
=yes
16706 ac_cv_lib_dl_dlopen
=no
16708 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16709 conftest
$ac_exeext conftest.
$ac_ext
16710 LIBS
=$ac_check_lib_save_LIBS
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16713 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16714 if test "x$ac_cv_lib_dl_dlopen" = xyes
16716 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
16722 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16723 if test "x$ac_cv_func_dlopen" = xyes
16725 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
16728 ac_fn_c_check_func
"$LINENO" "dlclose" "ac_cv_func_dlclose"
16729 if test "x$ac_cv_func_dlclose" = xyes
16731 printf "%s\n" "#define HAVE_DLCLOSE 1" >>confdefs.h
16734 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
16735 if test "x$ac_cv_func_dlsym" = xyes
16737 printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h
16743 if test "$ac_cv_func_inet_aton" != 'yes'; then
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
16746 printf %s
"checking for inet_aton... " >&6; }
16747 if test ${bash_cv_func_inet_aton+y}
16749 printf %s
"(cached) " >&6
16751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16754 #include <sys/types.h>
16755 #include <netinet/in.h>
16756 #include <arpa/inet.h>
16761 inet_aton("127.0.0.1", &ap);
16766 if ac_fn_c_try_link
"$LINENO"
16768 bash_cv_func_inet_aton
=yes
16770 bash_cv_func_inet_aton
=no
16772 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16773 conftest
$ac_exeext conftest.
$ac_ext
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
16776 printf "%s\n" "$bash_cv_func_inet_aton" >&6; }
16777 if test $bash_cv_func_inet_aton = yes; then
16778 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
16781 case " $LIBOBJS " in
16782 *" inet_aton.$ac_objext "* ) ;;
16783 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
16792 irix4
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
16793 printf %s
"checking for getpwent in -lsun... " >&6; }
16794 if test ${ac_cv_lib_sun_getpwent+y}
16796 printf %s
"(cached) " >&6
16798 ac_check_lib_save_LIBS
=$LIBS
16800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16803 /* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16810 return getpwent ();
16815 if ac_fn_c_try_link
"$LINENO"
16817 ac_cv_lib_sun_getpwent
=yes
16819 ac_cv_lib_sun_getpwent
=no
16821 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16822 conftest
$ac_exeext conftest.
$ac_ext
16823 LIBS
=$ac_check_lib_save_LIBS
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
16826 printf "%s\n" "$ac_cv_lib_sun_getpwent" >&6; }
16827 if test "x$ac_cv_lib_sun_getpwent" = xyes
16829 printf "%s\n" "#define HAVE_LIBSUN 1" >>confdefs.h
16837 if test "$ac_cv_func_getpeername" = no
; then
16839 if test "X$bash_cv_have_socklib" = "X"; then
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
16843 printf %s
"checking for socket library... " >&6; }
16846 if test ${bash_cv_have_socklib+y}
16848 printf %s
"(cached) " >&6
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
16851 printf %s
"checking for getpeername in -lsocket... " >&6; }
16852 if test ${ac_cv_lib_socket_getpeername+y}
16854 printf %s
"(cached) " >&6
16856 ac_check_lib_save_LIBS
=$LIBS
16857 LIBS
="-lsocket -lnsl $LIBS"
16858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16864 char getpeername ();
16868 return getpeername ();
16873 if ac_fn_c_try_link
"$LINENO"
16875 ac_cv_lib_socket_getpeername
=yes
16877 ac_cv_lib_socket_getpeername
=no
16879 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16880 conftest
$ac_exeext conftest.
$ac_ext
16881 LIBS
=$ac_check_lib_save_LIBS
16883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
16884 printf "%s\n" "$ac_cv_lib_socket_getpeername" >&6; }
16885 if test "x$ac_cv_lib_socket_getpeername" = xyes
16887 bash_cv_have_socklib
=yes
16889 bash_cv_have_socklib
=no
16894 if test "X$_bash_needmsg" = Xyes
; then
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
16896 printf "%s\n" "$bash_cv_have_socklib" >&6; }
16899 if test $bash_cv_have_socklib = yes; then
16900 # check for libnsl, add it to LIBS if present
16901 if test "X$bash_cv_have_libnsl" = "X"; then
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
16905 printf %s
"checking for libnsl... " >&6; }
16908 if test ${bash_cv_have_libnsl+y}
16910 printf %s
"(cached) " >&6
16912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
16913 printf %s
"checking for t_open in -lnsl... " >&6; }
16914 if test ${ac_cv_lib_nsl_t_open+y}
16916 printf %s
"(cached) " >&6
16918 ac_check_lib_save_LIBS
=$LIBS
16920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16935 if ac_fn_c_try_link
"$LINENO"
16937 ac_cv_lib_nsl_t_open
=yes
16939 ac_cv_lib_nsl_t_open
=no
16941 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16942 conftest
$ac_exeext conftest.
$ac_ext
16943 LIBS
=$ac_check_lib_save_LIBS
16945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
16946 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
16947 if test "x$ac_cv_lib_nsl_t_open" = xyes
16949 bash_cv_have_libnsl
=yes
16951 bash_cv_have_libnsl
=no
16956 if test "X$_bash_needmsg" = Xyes
; then
16957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
16958 printf "%s\n" "$bash_cv_have_libnsl" >&6; }
16961 if test $bash_cv_have_libnsl = yes; then
16962 LIBS
="-lsocket -lnsl $LIBS"
16964 LIBS
="-lsocket $LIBS"
16966 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
16968 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
16973 if test "$ac_cv_func_gethostbyname" = no
; then
16974 if test "X$bash_cv_have_gethostbyname" = "X"; then
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
16978 printf %s
"checking for gethostbyname in socket library... " >&6; }
16981 if test ${bash_cv_have_gethostbyname+y}
16983 printf %s
"(cached) " >&6
16985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16994 struct hostent *hp;
16995 hp = gethostbyname("localhost");
17001 if ac_fn_c_try_link
"$LINENO"
17003 bash_cv_have_gethostbyname
=yes
17005 bash_cv_have_gethostbyname
=no
17008 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
17009 conftest
$ac_exeext conftest.
$ac_ext
17012 if test "X$_bash_needmsg" = Xyes
; then
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
17014 printf %s
"checking for gethostbyname in socket library... " >&6; }
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
17017 printf "%s\n" "$bash_cv_have_gethostbyname" >&6; }
17018 if test "$bash_cv_have_gethostbyname" = yes; then
17019 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
17026 printf %s
"checking type of array argument to getgroups... " >&6; }
17027 if test ${ac_cv_type_getgroups+y}
17029 printf %s
"(cached) " >&6
17031 if test "$cross_compiling" = yes
17033 ac_cv_type_getgroups
=cross
17035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 /* Thanks to Mike Rendell for this test. */
17038 $ac_includes_default
17041 #define MAX(x, y) ((x) > (y) ? (x) : (y))
17046 gid_t gidset[NGID];
17048 union { gid_t gval; long int lval; } val;
17051 for (i = 0; i < NGID; i++)
17052 gidset[i] = val.gval;
17053 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
17055 /* Exit non-zero if getgroups seems to require an array of ints. This
17056 happens when gid_t is short int but getgroups modifies an array
17058 return n > 0 && gidset[n] != val.gval;
17061 if ac_fn_c_try_run
"$LINENO"
17063 ac_cv_type_getgroups
=gid_t
17065 ac_cv_type_getgroups
=int
17067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17071 if test $ac_cv_type_getgroups = cross
; then
17072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 #include <unistd.h>
17077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17078 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1
17080 ac_cv_type_getgroups
=gid_t
17082 ac_cv_type_getgroups
=int
17088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
17089 printf "%s\n" "$ac_cv_type_getgroups" >&6; }
17091 printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
17094 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17095 if test "x$ac_cv_type_off_t" = xyes
17100 printf "%s\n" "#define off_t long int" >>confdefs.h
17104 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17105 if test "x$ac_cv_type_mode_t" = xyes
17110 printf "%s\n" "#define mode_t int" >>confdefs.h
17114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17115 printf %s
"checking for uid_t in sys/types.h... " >&6; }
17116 if test ${ac_cv_type_uid_t+y}
17118 printf %s
"(cached) " >&6
17120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h. */
17122 #include <sys/types.h>
17125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17126 $EGREP "uid_t" >/dev
/null
2>&1
17128 ac_cv_type_uid_t
=yes
17130 ac_cv_type_uid_t
=no
17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17136 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
17137 if test $ac_cv_type_uid_t = no
; then
17139 printf "%s\n" "#define uid_t int" >>confdefs.h
17142 printf "%s\n" "#define gid_t int" >>confdefs.h
17147 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17149 if test "x$ac_cv_type_pid_t" = xyes
17153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17156 #if defined _WIN64 && !defined __CYGWIN__
17169 if ac_fn_c_try_compile
"$LINENO"
17173 ac_pid_type
='__int64'
17175 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17177 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17183 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17184 if test "x$ac_cv_type_size_t" = xyes
17189 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17194 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17195 if test "x$ac_cv_type_uintptr_t" = xyes
17198 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
17201 for ac_type
in 'unsigned int' 'unsigned long int' \
17202 'unsigned long long int'; do
17203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h. */
17205 $ac_includes_default
17209 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17210 test_array [0] = 0;
17211 return test_array [0];
17217 if ac_fn_c_try_compile
"$LINENO"
17220 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
17224 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17225 test -z "$ac_type" && break
17231 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17232 if test "x$ac_cv_type_ssize_t" = xyes
17237 printf "%s\n" "#define ssize_t int" >>confdefs.h
17241 ac_fn_c_check_type
"$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
17242 if test "x$ac_cv_type_time_t" = xyes
17247 printf "%s\n" "#define time_t long" >>confdefs.h
17254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17255 printf %s
"checking for long long int... " >&6; }
17256 if test ${ac_cv_type_long_long_int+y}
17258 printf %s
"(cached) " >&6
17260 ac_cv_type_long_long_int
=yes
17261 case $ac_prog_cc_stdc in
17264 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17265 if test $ac_cv_type_long_long_int = yes; then
17266 if test "$cross_compiling" = yes
17270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 #include <limits.h>
17275 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17276 # define LLONG_MAX (HALF - 1 + HALF)
17281 long long int n = 1;
17285 long long int m = n << i;
17288 if (LLONG_MAX / 2 < m)
17296 if ac_fn_c_try_run
"$LINENO"
17300 ac_cv_type_long_long_int
=no
17302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17310 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
17311 if test $ac_cv_type_long_long_int = yes; then
17313 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17319 printf %s
"checking for unsigned long long int... " >&6; }
17320 if test ${ac_cv_type_unsigned_long_long_int+y}
17322 printf %s
"(cached) " >&6
17324 ac_cv_type_unsigned_long_long_int
=yes
17325 case $ac_prog_cc_stdc in
17328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 /* For now, do not test the preprocessor; as of 2007 there are too many
17332 implementations with broken preprocessors. Perhaps this can
17333 be revisited in 2012. In the meantime, code should not expect
17334 #if to work with literals wider than 32 bits. */
17335 /* Test literals. */
17336 long long int ll = 9223372036854775807ll;
17337 long long int nll = -9223372036854775807LL;
17338 unsigned long long int ull = 18446744073709551615ULL;
17339 /* Test constant expressions. */
17340 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17342 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17348 /* Test availability of runtime routines for shift and division. */
17349 long long int llmax = 9223372036854775807ll;
17350 unsigned long long int ullmax = 18446744073709551615ull;
17351 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17352 | (llmax / ll) | (llmax % ll)
17353 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17354 | (ullmax / ull) | (ullmax % ull));
17360 if ac_fn_c_try_link
"$LINENO"
17364 ac_cv_type_unsigned_long_long_int
=no
17366 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
17367 conftest
$ac_exeext conftest.
$ac_ext;;
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17371 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
17372 if test $ac_cv_type_unsigned_long_long_int = yes; then
17374 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
17380 printf %s
"checking for sig_atomic_t in signal.h... " >&6; }
17381 if test ${ac_cv_have_sig_atomic_t+y}
17383 printf %s
"(cached) " >&6
17385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 #include <signal.h>
17396 if ac_fn_c_try_link
"$LINENO"
17398 ac_cv_have_sig_atomic_t
=yes
17400 ac_cv_have_sig_atomic_t
=no
17402 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
17403 conftest
$ac_exeext conftest.
$ac_ext
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
17406 printf "%s\n" "$ac_cv_have_sig_atomic_t" >&6; }
17407 if test "$ac_cv_have_sig_atomic_t" = "no"
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
17412 printf %s
"checking for sig_atomic_t... " >&6; }
17413 if test ${bash_cv_type_sig_atomic_t+y}
17415 printf %s
"(cached) " >&6
17417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <sys/types.h>
17421 #include <stdlib.h>
17424 #include <stddef.h>
17426 #if HAVE_INTTYPES_H
17427 #include <inttypes.h>
17430 #include <stdint.h>
17432 #include <signal.h>
17435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17436 $EGREP "sig_atomic_t" >/dev
/null
2>&1
17438 bash_cv_type_sig_atomic_t
=yes
17440 bash_cv_type_sig_atomic_t
=no
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
17447 printf "%s\n" "$bash_cv_type_sig_atomic_t" >&6; }
17449 if test $bash_cv_type_sig_atomic_t = no
; then
17450 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
17457 # The cast to long int works around a bug in the HP C Compiler
17458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17460 # This bug is HP SR number 8606223364.
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17462 printf %s
"checking size of char... " >&6; }
17463 if test ${ac_cv_sizeof_char+y}
17465 printf %s
"(cached) " >&6
17467 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
17471 if test "$ac_cv_type_char" = yes; then
17472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17474 as_fn_error
77 "cannot compute sizeof (char)
17475 See \`config.log' for more details" "$LINENO" 5; }
17477 ac_cv_sizeof_char
=0
17482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17483 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17487 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17490 # The cast to long int works around a bug in the HP C Compiler
17491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17493 # This bug is HP SR number 8606223364.
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17495 printf %s
"checking size of short... " >&6; }
17496 if test ${ac_cv_sizeof_short+y}
17498 printf %s
"(cached) " >&6
17500 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
17504 if test "$ac_cv_type_short" = yes; then
17505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17506 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17507 as_fn_error
77 "cannot compute sizeof (short)
17508 See \`config.log' for more details" "$LINENO" 5; }
17510 ac_cv_sizeof_short
=0
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17516 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17520 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17523 # The cast to long int works around a bug in the HP C Compiler
17524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17526 # This bug is HP SR number 8606223364.
17527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17528 printf %s
"checking size of int... " >&6; }
17529 if test ${ac_cv_sizeof_int+y}
17531 printf %s
"(cached) " >&6
17533 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
17537 if test "$ac_cv_type_int" = yes; then
17538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17540 as_fn_error
77 "cannot compute sizeof (int)
17541 See \`config.log' for more details" "$LINENO" 5; }
17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17549 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17553 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17556 # The cast to long int works around a bug in the HP C Compiler
17557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17559 # This bug is HP SR number 8606223364.
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17561 printf %s
"checking size of long... " >&6; }
17562 if test ${ac_cv_sizeof_long+y}
17564 printf %s
"(cached) " >&6
17566 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
17570 if test "$ac_cv_type_long" = yes; then
17571 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17572 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17573 as_fn_error
77 "cannot compute sizeof (long)
17574 See \`config.log' for more details" "$LINENO" 5; }
17576 ac_cv_sizeof_long
=0
17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17582 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17586 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17589 # The cast to long int works around a bug in the HP C Compiler
17590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17592 # This bug is HP SR number 8606223364.
17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
17594 printf %s
"checking size of char *... " >&6; }
17595 if test ${ac_cv_sizeof_char_p+y}
17597 printf %s
"(cached) " >&6
17599 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"
17603 if test "$ac_cv_type_char_p" = yes; then
17604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17606 as_fn_error
77 "cannot compute sizeof (char *)
17607 See \`config.log' for more details" "$LINENO" 5; }
17609 ac_cv_sizeof_char_p
=0
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
17615 printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
17619 printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
17622 # The cast to long int works around a bug in the HP C Compiler
17623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17625 # This bug is HP SR number 8606223364.
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17627 printf %s
"checking size of size_t... " >&6; }
17628 if test ${ac_cv_sizeof_size_t+y}
17630 printf %s
"(cached) " >&6
17632 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
17636 if test "$ac_cv_type_size_t" = yes; then
17637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17638 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17639 as_fn_error
77 "cannot compute sizeof (size_t)
17640 See \`config.log' for more details" "$LINENO" 5; }
17642 ac_cv_sizeof_size_t
=0
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17648 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
17652 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
17655 # The cast to long int works around a bug in the HP C Compiler
17656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17658 # This bug is HP SR number 8606223364.
17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17660 printf %s
"checking size of double... " >&6; }
17661 if test ${ac_cv_sizeof_double+y}
17663 printf %s
"(cached) " >&6
17665 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
17669 if test "$ac_cv_type_double" = yes; then
17670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17672 as_fn_error
77 "cannot compute sizeof (double)
17673 See \`config.log' for more details" "$LINENO" 5; }
17675 ac_cv_sizeof_double
=0
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17681 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
17685 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
17688 # The cast to long int works around a bug in the HP C Compiler
17689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17691 # This bug is HP SR number 8606223364.
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17693 printf %s
"checking size of long long... " >&6; }
17694 if test ${ac_cv_sizeof_long_long+y}
17696 printf %s
"(cached) " >&6
17698 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
17702 if test "$ac_cv_type_long_long" = yes; then
17703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17705 as_fn_error
77 "cannot compute sizeof (long long)
17706 See \`config.log' for more details" "$LINENO" 5; }
17708 ac_cv_sizeof_long_long
=0
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17714 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
17718 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
17722 ac_fn_c_check_type
"$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
17723 if test "x$ac_cv_type_u_int" = xyes
17728 printf "%s\n" "#define u_int unsigned int" >>confdefs.h
17732 ac_fn_c_check_type
"$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
17733 if test "x$ac_cv_type_u_long" = xyes
17738 printf "%s\n" "#define u_long unsigned long" >>confdefs.h
17744 if test "$ac_cv_sizeof_short" = 2; then
17745 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
17746 if test "x$ac_cv_type_bits16_t" = xyes
17751 printf "%s\n" "#define bits16_t short" >>confdefs.h
17755 elif test "$ac_cv_sizeof_char" = 2; then
17756 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
17757 if test "x$ac_cv_type_bits16_t" = xyes
17762 printf "%s\n" "#define bits16_t char" >>confdefs.h
17767 ac_fn_c_check_type
"$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
17768 if test "x$ac_cv_type_bits16_t" = xyes
17773 printf "%s\n" "#define bits16_t short" >>confdefs.h
17780 if test "$ac_cv_sizeof_short" = 2; then
17781 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
17782 if test "x$ac_cv_type_u_bits16_t" = xyes
17787 printf "%s\n" "#define u_bits16_t unsigned short" >>confdefs.h
17791 elif test "$ac_cv_sizeof_char" = 2; then
17792 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
17793 if test "x$ac_cv_type_u_bits16_t" = xyes
17798 printf "%s\n" "#define u_bits16_t unsigned char" >>confdefs.h
17803 ac_fn_c_check_type
"$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
17804 if test "x$ac_cv_type_u_bits16_t" = xyes
17809 printf "%s\n" "#define u_bits16_t unsigned short" >>confdefs.h
17816 if test "$ac_cv_sizeof_int" = 4; then
17817 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
17818 if test "x$ac_cv_type_bits32_t" = xyes
17823 printf "%s\n" "#define bits32_t int" >>confdefs.h
17827 elif test "$ac_cv_sizeof_long" = 4; then
17828 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
17829 if test "x$ac_cv_type_bits32_t" = xyes
17834 printf "%s\n" "#define bits32_t long" >>confdefs.h
17839 ac_fn_c_check_type
"$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
17840 if test "x$ac_cv_type_bits32_t" = xyes
17845 printf "%s\n" "#define bits32_t int" >>confdefs.h
17852 if test "$ac_cv_sizeof_int" = 4; then
17853 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
17854 if test "x$ac_cv_type_u_bits32_t" = xyes
17859 printf "%s\n" "#define u_bits32_t unsigned int" >>confdefs.h
17863 elif test "$ac_cv_sizeof_long" = 4; then
17864 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
17865 if test "x$ac_cv_type_u_bits32_t" = xyes
17870 printf "%s\n" "#define u_bits32_t unsigned long" >>confdefs.h
17875 ac_fn_c_check_type
"$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
17876 if test "x$ac_cv_type_u_bits32_t" = xyes
17881 printf "%s\n" "#define u_bits32_t unsigned int" >>confdefs.h
17888 if test "$ac_cv_sizeof_char_p" = 8; then
17889 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17890 if test "x$ac_cv_type_bits64_t" = xyes
17895 printf "%s\n" "#define bits64_t char *" >>confdefs.h
17899 elif test "$ac_cv_sizeof_double" = 8; then
17900 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17901 if test "x$ac_cv_type_bits64_t" = xyes
17906 printf "%s\n" "#define bits64_t double" >>confdefs.h
17910 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
17911 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17912 if test "x$ac_cv_type_bits64_t" = xyes
17917 printf "%s\n" "#define bits64_t long long" >>confdefs.h
17921 elif test "$ac_cv_sizeof_long" = 8; then
17922 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17923 if test "x$ac_cv_type_bits64_t" = xyes
17928 printf "%s\n" "#define bits64_t long" >>confdefs.h
17933 ac_fn_c_check_type
"$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17934 if test "x$ac_cv_type_bits64_t" = xyes
17939 printf "%s\n" "#define bits64_t double" >>confdefs.h
17947 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
17948 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17949 if test "x$ac_cv_type_ptrdiff_t" = xyes
17954 printf "%s\n" "#define ptrdiff_t int" >>confdefs.h
17958 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
17959 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17960 if test "x$ac_cv_type_ptrdiff_t" = xyes
17965 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
17969 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
17970 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17971 if test "x$ac_cv_type_ptrdiff_t" = xyes
17976 printf "%s\n" "#define ptrdiff_t long long" >>confdefs.h
17981 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17982 if test "x$ac_cv_type_ptrdiff_t" = xyes
17987 printf "%s\n" "#define ptrdiff_t int" >>confdefs.h
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17995 printf %s
"checking whether stat file-mode macros are broken... " >&6; }
17996 if test ${ac_cv_header_stat_broken+y}
17998 printf %s
"(cached) " >&6
18000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002 #include <sys/types.h>
18003 #include <sys/stat.h>
18005 #if defined S_ISBLK && defined S_IFDIR
18006 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18009 #if defined S_ISBLK && defined S_IFCHR
18010 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18013 #if defined S_ISLNK && defined S_IFREG
18014 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18017 #if defined S_ISSOCK && defined S_IFREG
18018 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18022 if ac_fn_c_try_compile
"$LINENO"
18024 ac_cv_header_stat_broken
=no
18026 ac_cv_header_stat_broken
=yes
18028 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18031 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
18032 if test $ac_cv_header_stat_broken = yes; then
18034 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
18040 printf %s
"checking whether #! works in shell scripts... " >&6; }
18041 if test ${ac_cv_sys_interpreter+y}
18043 printf %s
"(cached) " >&6
18049 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
18050 if test $?
-ne 69; then
18051 ac_cv_sys_interpreter
=yes
18053 ac_cv_sys_interpreter
=no
18057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
18058 printf "%s\n" "$ac_cv_sys_interpreter" >&6; }
18059 interpval
=$ac_cv_sys_interpreter
18061 if test $ac_cv_sys_interpreter = yes; then
18062 printf "%s\n" "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
18066 if test "$ac_cv_func_lstat" = "no"; then
18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
18068 printf %s
"checking for lstat... " >&6; }
18069 if test ${bash_cv_func_lstat+y}
18071 printf %s
"(cached) " >&6
18073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18076 #include <sys/types.h>
18077 #include <sys/stat.h>
18082 lstat(".",(struct stat *)0);
18087 if ac_fn_c_try_link
"$LINENO"
18089 bash_cv_func_lstat
=yes
18091 bash_cv_func_lstat
=no
18093 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
18094 conftest
$ac_exeext conftest.
$ac_ext
18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
18097 printf "%s\n" "$bash_cv_func_lstat" >&6; }
18098 if test $bash_cv_func_lstat = yes; then
18099 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
18106 printf %s
"checking if dup2 fails to clear the close-on-exec flag... " >&6; }
18107 if test ${bash_cv_dup2_broken+y}
18109 printf %s
"(cached) " >&6
18111 if test "$cross_compiling" = yes
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
18114 printf "%s\n" "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
18115 bash_cv_dup2_broken
=no
18118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18119 /* end confdefs.h. */
18121 #include <sys/types.h>
18123 #include <stdlib.h>
18128 fd1 = open("/dev/null", 2);
18129 if (fcntl(fd1, 2, 1) < 0)
18131 fd2 = dup2(fd1, 1);
18134 fl = fcntl(fd2, 1, 0);
18135 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
18140 if ac_fn_c_try_run
"$LINENO"
18142 bash_cv_dup2_broken
=yes
18144 bash_cv_dup2_broken
=no
18146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
18153 printf "%s\n" "$bash_cv_dup2_broken" >&6; }
18154 if test $bash_cv_dup2_broken = yes; then
18155 printf "%s\n" "#define DUP2_BROKEN 1" >>confdefs.h
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
18161 printf %s
"checking whether pgrps need synchronization... " >&6; }
18162 if test ${bash_cv_pgrp_pipe+y}
18164 printf %s
"(cached) " >&6
18166 if test "$cross_compiling" = yes
18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
18169 printf "%s\n" "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
18170 bash_cv_pgrp_pipe
=no
18173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18176 #ifdef HAVE_UNISTD_H
18177 # include <unistd.h>
18179 #ifdef HAVE_SYS_WAIT_H
18180 # include <sys/wait.h>
18182 #include <stdlib.h>
18186 # ifdef GETPGRP_VOID
18187 # define getpgID() getpgrp()
18189 # define getpgID() getpgrp(0)
18190 # define setpgid(x,y) setpgrp(x,y)
18192 int pid1, pid2, fds[2];
18196 switch (pid1 = fork()) {
18200 setpgid(0, getpid());
18203 setpgid(pid1, pid1);
18205 sleep(2); /* let first child die */
18210 switch (pid2 = fork()) {
18215 ok = getpgID() == pid1;
18216 write(fds[1], &ok, 1);
18219 setpgid(pid2, pid1);
18222 if (read(fds[0], &ok, 1) != 1)
18230 if ac_fn_c_try_run
"$LINENO"
18232 bash_cv_pgrp_pipe
=no
18234 bash_cv_pgrp_pipe
=yes
18236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
18243 printf "%s\n" "$bash_cv_pgrp_pipe" >&6; }
18244 if test $bash_cv_pgrp_pipe = yes; then
18245 printf "%s\n" "#define PGRP_PIPE 1" >>confdefs.h
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
18250 printf %s
"checking for type of signal functions... " >&6; }
18251 if test ${bash_cv_signal_vintage+y}
18253 printf %s
"(cached) " >&6
18256 if test ${bash_cv_posix_signals+y}
18258 printf %s
"(cached) " >&6
18260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18263 #include <signal.h>
18270 struct sigaction sa;
18271 sigemptyset(&ss); sigsuspend(&ss);
18272 sigaction(SIGINT, &sa, (struct sigaction *) 0);
18273 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
18279 if ac_fn_c_try_link
"$LINENO"
18281 bash_cv_posix_signals
=yes
18283 bash_cv_posix_signals
=no
18286 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
18287 conftest
$ac_exeext conftest.
$ac_ext
18291 if test $bash_cv_posix_signals = yes; then
18292 bash_cv_signal_vintage
=posix
18294 if test ${bash_cv_bsd_signals+y}
18296 printf %s
"(cached) " >&6
18298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 #include <signal.h>
18307 int mask = sigmask(SIGINT);
18308 sigsetmask(mask); sigblock(mask); sigpause(mask);
18314 if ac_fn_c_try_link
"$LINENO"
18316 bash_cv_bsd_signals
=yes
18318 bash_cv_bsd_signals
=no
18321 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
18322 conftest
$ac_exeext conftest.
$ac_ext
18326 if test $bash_cv_bsd_signals = yes; then
18327 bash_cv_signal_vintage
=4.2bsd
18329 if test ${bash_cv_sysv_signals+y}
18331 printf %s
"(cached) " >&6
18333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 #include <signal.h>
18343 int mask = sigmask(SIGINT);
18344 sigset(SIGINT, foo); sigrelse(SIGINT);
18345 sighold(SIGINT); sigpause(SIGINT);
18351 if ac_fn_c_try_link
"$LINENO"
18353 bash_cv_sysv_signals
=yes
18355 bash_cv_sysv_signals
=no
18358 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
18359 conftest
$ac_exeext conftest.
$ac_ext
18363 if test $bash_cv_sysv_signals = yes; then
18364 bash_cv_signal_vintage
=svr3
18366 bash_cv_signal_vintage
=v7
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
18374 printf "%s\n" "$bash_cv_signal_vintage" >&6; }
18375 if test "$bash_cv_signal_vintage" = posix
; then
18376 printf "%s\n" "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
18378 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
18379 printf "%s\n" "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
18381 elif test "$bash_cv_signal_vintage" = svr3
; then
18382 printf "%s\n" "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
18388 printf %s
"checking for sys_errlist and sys_nerr... " >&6; }
18389 if test ${bash_cv_sys_errlist+y}
18391 printf %s
"(cached) " >&6
18393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18402 extern char *sys_errlist[];
18403 extern int sys_nerr;
18404 char *msg = sys_errlist[sys_nerr - 1];
18410 if ac_fn_c_try_link
"$LINENO"
18412 bash_cv_sys_errlist
=yes
18414 bash_cv_sys_errlist
=no
18417 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
18418 conftest
$ac_exeext conftest.
$ac_ext
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
18422 printf "%s\n" "$bash_cv_sys_errlist" >&6; }
18423 if test $bash_cv_sys_errlist = yes; then
18424 printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
18428 ac_fn_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
18429 /* NetBSD declares sys_siglist in unistd.h. */
18430 #ifdef HAVE_UNISTD_H
18431 # include <unistd.h>
18434 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18435 if test "x$ac_cv_have_decl_sys_siglist" = xyes
18441 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
18446 printf %s
"checking for sys_siglist in system C library... " >&6; }
18447 if test ${bash_cv_sys_siglist+y}
18449 printf %s
"(cached) " >&6
18451 if test "$cross_compiling" = yes
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
18454 printf "%s\n" "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
18455 bash_cv_sys_siglist
=no
18458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18461 #include <sys/types.h>
18462 #include <signal.h>
18463 #ifdef HAVE_UNISTD_H
18464 #include <unistd.h>
18466 #include <stdlib.h>
18467 #if !HAVE_DECL_SYS_SIGLIST
18468 extern char *sys_siglist[];
18473 char *msg = sys_siglist[2];
18478 if ac_fn_c_try_run
"$LINENO"
18480 bash_cv_sys_siglist
=yes
18482 bash_cv_sys_siglist
=no
18484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18485 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
18491 printf "%s\n" "$bash_cv_sys_siglist" >&6; }
18492 if test $bash_cv_sys_siglist = yes; then
18493 printf "%s\n" "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
18498 printf %s
"checking for _sys_siglist in signal.h or unistd.h... " >&6; }
18499 if test ${bash_cv_decl_under_sys_siglist+y}
18501 printf %s
"(cached) " >&6
18503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18506 #include <sys/types.h>
18507 #include <signal.h>
18508 #ifdef HAVE_UNISTD_H
18509 #include <unistd.h>
18514 char *msg = _sys_siglist[2];
18519 if ac_fn_c_try_compile
"$LINENO"
18521 bash_cv_decl_under_sys_siglist
=yes
18523 bash_cv_decl_under_sys_siglist
=no
18525 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
18528 printf "%s\n" "$bash_cv_decl_under_sys_siglist" >&6; }
18529 if test $bash_cv_decl_under_sys_siglist = yes; then
18530 printf "%s\n" "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
18536 printf %s
"checking for _sys_siglist in system C library... " >&6; }
18537 if test ${bash_cv_under_sys_siglist+y}
18539 printf %s
"(cached) " >&6
18541 if test "$cross_compiling" = yes
18543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
18544 printf "%s\n" "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
18545 bash_cv_under_sys_siglist
=no
18548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18551 #include <sys/types.h>
18552 #include <signal.h>
18553 #ifdef HAVE_UNISTD_H
18554 #include <unistd.h>
18556 #include <stdlib.h>
18557 #ifndef UNDER_SYS_SIGLIST_DECLARED
18558 extern char *_sys_siglist[];
18563 char *msg = (char *)_sys_siglist[2];
18568 if ac_fn_c_try_run
"$LINENO"
18570 bash_cv_under_sys_siglist
=yes
18572 bash_cv_under_sys_siglist
=no
18574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
18581 printf "%s\n" "$bash_cv_under_sys_siglist" >&6; }
18582 if test $bash_cv_under_sys_siglist = yes; then
18583 printf "%s\n" "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
18591 printf %s
"checking for clock_t... " >&6; }
18592 if test ${bash_cv_type_clock_t+y}
18594 printf %s
"(cached) " >&6
18596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 #include <sys/types.h>
18600 #include <stdlib.h>
18603 #include <stddef.h>
18605 #if HAVE_INTTYPES_H
18606 #include <inttypes.h>
18609 #include <stdint.h>
18611 #include <sys/times.h>
18614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18615 $EGREP "clock_t" >/dev
/null
2>&1
18617 bash_cv_type_clock_t
=yes
18619 bash_cv_type_clock_t
=no
18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
18626 printf "%s\n" "$bash_cv_type_clock_t" >&6; }
18628 if test $bash_cv_type_clock_t = no
; then
18629 printf "%s\n" "#define clock_t long" >>confdefs.h
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
18636 printf %s
"checking for sigset_t... " >&6; }
18637 if test ${bash_cv_type_sigset_t+y}
18639 printf %s
"(cached) " >&6
18641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 #include <sys/types.h>
18645 #include <stdlib.h>
18648 #include <stddef.h>
18650 #if HAVE_INTTYPES_H
18651 #include <inttypes.h>
18654 #include <stdint.h>
18656 #include <signal.h>
18659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18660 $EGREP "sigset_t" >/dev
/null
2>&1
18662 bash_cv_type_sigset_t
=yes
18664 bash_cv_type_sigset_t
=no
18670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
18671 printf "%s\n" "$bash_cv_type_sigset_t" >&6; }
18673 if test $bash_cv_type_sigset_t = no
; then
18674 printf "%s\n" "#define sigset_t int" >>confdefs.h
18678 if test "$ac_cv_header_sys_socket_h" = "yes"; then
18681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
18682 printf %s
"checking for socklen_t... " >&6; }
18683 if test ${bash_cv_type_socklen_t+y}
18685 printf %s
"(cached) " >&6
18687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689 #include <sys/types.h>
18691 #include <stdlib.h>
18694 #include <stddef.h>
18696 #if HAVE_INTTYPES_H
18697 #include <inttypes.h>
18700 #include <stdint.h>
18702 #include <sys/socket.h>
18705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18706 $EGREP "socklen_t" >/dev
/null
2>&1
18708 bash_cv_type_socklen_t
=yes
18710 bash_cv_type_socklen_t
=no
18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
18717 printf "%s\n" "$bash_cv_type_socklen_t" >&6; }
18718 if test $bash_cv_type_socklen_t = yes; then
18719 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
18722 if test $bash_cv_type_socklen_t = no
; then
18723 printf "%s\n" "#define socklen_t unsigned int" >>confdefs.h
18729 ac_fn_c_check_type
"$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
18730 if test "x$ac_cv_type_quad_t" = xyes
18732 printf "%s\n" "#define HAVE_QUAD_T 1" >>confdefs.h
18736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of struct rlimit fields" >&5
18737 printf %s
"checking for type of struct rlimit fields... " >&6; }
18738 if test ${bash_cv_type_rlimit+y}
18740 printf %s
"(cached) " >&6
18742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18745 #include <sys/types.h>
18746 #include <sys/resource.h>
18756 if ac_fn_c_try_compile
"$LINENO"
18758 bash_cv_type_rlimit
=rlim_t
18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of struct rlimit fields" >&5
18762 printf %s
"checking for size of struct rlimit fields... " >&6; }
18763 if test ${bash_cv_sizeof_rlim_cur+y}
18765 printf %s
"(cached) " >&6
18767 if test "$cross_compiling" = yes
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check size of rlimit fields if cross compiling -- defaulting to long" >&5
18770 printf "%s\n" "$as_me: WARNING: cannot check size of rlimit fields if cross compiling -- defaulting to long" >&2;}
18771 bash_cv_sizeof_rlim_cur
=$ac_cv_sizeof_long
18774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18777 #ifdef HAVE_SYS_TIME_H
18778 #include <sys/time.h>
18780 #include <stdlib.h>
18781 #include <sys/resource.h>
18785 exit(sizeof (r.rlim_cur));
18789 if ac_fn_c_try_run
"$LINENO"
18791 bash_cv_sizeof_rlim_cur
=$?
18793 bash_cv_sizeof_rlim_cur
=$?
18795 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18796 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sizeof_rlim_cur" >&5
18802 printf "%s\n" "$bash_cv_sizeof_rlim_cur" >&6; }
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of quad_t" >&5
18805 printf %s
"checking for size of quad_t... " >&6; }
18806 if test ${bash_cv_sizeof_quad_t+y}
18808 printf %s
"(cached) " >&6
18810 if test "$cross_compiling" = yes
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check size of quad_t if cross compiling -- defaulting to 0" >&5
18813 printf "%s\n" "$as_me: WARNING: cannot check size of quad_t if cross compiling -- defaulting to 0" >&2;}
18814 bash_cv_sizeof_quad_t
=0
18817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18820 #include <sys/types.h>
18821 #include <stdlib.h>
18822 #if HAVE_INTTYPES_H
18823 #include <inttypes.h>
18826 #include <stdint.h>
18840 if ac_fn_c_try_run
"$LINENO"
18842 bash_cv_sizeof_quad_t
=$?
18844 bash_cv_sizeof_quad_t
=$?
18846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18847 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sizeof_quad_t" >&5
18853 printf "%s\n" "$bash_cv_sizeof_quad_t" >&6; }
18855 if test $bash_cv_sizeof_rlim_cur = $ac_cv_sizeof_long; then
18856 bash_cv_type_rlimit
='unsigned long'
18857 elif test $bash_cv_sizeof_rlim_cur = $ac_cv_sizeof_long_long; then
18858 bash_cv_type_rlimit
='unsigned long long'
18859 elif test $bash_cv_sizeof_rlim_cur = $ac_cv_sizeof_int; then
18860 bash_cv_type_rlimit
='unsigned int'
18861 elif test $bash_cv_sizeof_rlim_cur = $bash_cv_sizeof_quad_t; then
18862 bash_cv_type_rlimit
='quad_t'
18864 bash_cv_type_rlimit
='unsigned long'
18869 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
18873 printf "%s\n" "$bash_cv_type_rlimit" >&6; }
18874 printf "%s\n" "#define RLIMTYPE $bash_cv_type_rlimit" >>confdefs.h
18880 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
18881 if test "x$ac_cv_type_intmax_t" = xyes
18884 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
18887 test $ac_cv_type_long_long_int = yes \
18888 && ac_type
='long long int' \
18889 || ac_type
='long int'
18891 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
18898 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
18899 if test "x$ac_cv_type_uintmax_t" = xyes
18902 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
18905 test $ac_cv_type_unsigned_long_long_int = yes \
18906 && ac_type
='unsigned long long int' \
18907 || ac_type
='unsigned long int'
18909 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
18915 # The cast to long int works around a bug in the HP C Compiler
18916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18918 # This bug is HP SR number 8606223364.
18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
18920 printf %s
"checking size of intmax_t... " >&6; }
18921 if test ${ac_cv_sizeof_intmax_t+y}
18923 printf %s
"(cached) " >&6
18925 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"
18929 if test "$ac_cv_type_intmax_t" = yes; then
18930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18932 as_fn_error
77 "cannot compute sizeof (intmax_t)
18933 See \`config.log' for more details" "$LINENO" 5; }
18935 ac_cv_sizeof_intmax_t
=0
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
18941 printf "%s\n" "$ac_cv_sizeof_intmax_t" >&6; }
18945 printf "%s\n" "#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t" >>confdefs.h
18950 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
18951 #include <sys/types.h>
18952 #include <termios.h>
18955 if test "x$ac_cv_member_struct_termios_c_line" = xyes
18957 printf "%s\n" "#define TERMIOS_LDISC 1" >>confdefs.h
18963 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
18964 #include <sys/types.h>
18965 #include <termio.h>
18968 if test "x$ac_cv_member_struct_termio_c_line" = xyes
18970 printf "%s\n" "#define TERMIO_LDISC 1" >>confdefs.h
18976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
18977 printf %s
"checking for struct dirent.d_ino... " >&6; }
18978 if test ${bash_cv_dirent_has_d_ino+y}
18980 printf %s
"(cached) " >&6
18984 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "
18986 #include <sys/types.h>
18987 #ifdef HAVE_UNISTD_H
18988 # include <unistd.h>
18989 #endif /* HAVE_UNISTD_H */
18990 #if defined(HAVE_DIRENT_H)
18991 # include <dirent.h>
18993 # define dirent direct
18994 # ifdef HAVE_SYS_NDIR_H
18995 # include <sys/ndir.h>
18996 # endif /* SYSNDIR */
18997 # ifdef HAVE_SYS_DIR_H
18998 # include <sys/dir.h>
18999 # endif /* SYSDIR */
19000 # ifdef HAVE_NDIR_H
19003 #endif /* HAVE_DIRENT_H */
19006 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes
19009 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
19011 bash_cv_dirent_has_d_ino
=yes
19013 bash_cv_dirent_has_d_ino
=no
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_ino" >&5
19020 printf "%s\n" "$bash_cv_dirent_has_d_ino" >&6; }
19021 if test $bash_cv_dirent_has_d_ino = yes; then
19022 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
19028 printf %s
"checking for struct dirent.d_fileno... " >&6; }
19029 if test ${bash_cv_dirent_has_d_fileno+y}
19031 printf %s
"(cached) " >&6
19035 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_fileno" "ac_cv_member_struct_dirent_d_fileno" "
19037 #include <sys/types.h>
19038 #ifdef HAVE_UNISTD_H
19039 # include <unistd.h>
19040 #endif /* HAVE_UNISTD_H */
19041 #if defined(HAVE_DIRENT_H)
19042 # include <dirent.h>
19044 # define dirent direct
19045 # ifdef HAVE_SYS_NDIR_H
19046 # include <sys/ndir.h>
19047 # endif /* SYSNDIR */
19048 # ifdef HAVE_SYS_DIR_H
19049 # include <sys/dir.h>
19050 # endif /* SYSDIR */
19051 # ifdef HAVE_NDIR_H
19054 #endif /* HAVE_DIRENT_H */
19057 if test "x$ac_cv_member_struct_dirent_d_fileno" = xyes
19060 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
19062 bash_cv_dirent_has_d_fileno
=yes
19064 bash_cv_dirent_has_d_fileno
=no
19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
19071 printf "%s\n" "$bash_cv_dirent_has_d_fileno" >&6; }
19072 if test $bash_cv_dirent_has_d_fileno = yes; then
19073 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
19079 printf %s
"checking for struct dirent.d_namlen... " >&6; }
19080 if test ${bash_cv_dirent_has_d_namlen+y}
19082 printf %s
"(cached) " >&6
19086 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "
19088 #include <sys/types.h>
19089 #ifdef HAVE_UNISTD_H
19090 # include <unistd.h>
19091 #endif /* HAVE_UNISTD_H */
19092 #if defined(HAVE_DIRENT_H)
19093 # include <dirent.h>
19095 # define dirent direct
19096 # ifdef HAVE_SYS_NDIR_H
19097 # include <sys/ndir.h>
19098 # endif /* SYSNDIR */
19099 # ifdef HAVE_SYS_DIR_H
19100 # include <sys/dir.h>
19101 # endif /* SYSDIR */
19102 # ifdef HAVE_NDIR_H
19105 #endif /* HAVE_DIRENT_H */
19108 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
19111 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
19113 bash_cv_dirent_has_d_namlen
=yes
19115 bash_cv_dirent_has_d_namlen
=no
19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
19122 printf "%s\n" "$bash_cv_dirent_has_d_namlen" >&6; }
19123 if test $bash_cv_dirent_has_d_namlen = yes; then
19124 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
19129 printf %s
"checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
19130 if test ${bash_cv_struct_winsize_header+y}
19132 printf %s
"(cached) " >&6
19135 if test ${bash_cv_struct_winsize_ioctl+y}
19137 printf %s
"(cached) " >&6
19139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19142 #include <sys/types.h>
19143 #include <sys/ioctl.h>
19150 if (sizeof (x) > 0) return (0);
19156 if ac_fn_c_try_compile
"$LINENO"
19158 bash_cv_struct_winsize_ioctl
=yes
19160 bash_cv_struct_winsize_ioctl
=no
19162 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19167 if test ${bash_cv_struct_winsize_termios+y}
19169 printf %s
"(cached) " >&6
19171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19172 /* end confdefs.h. */
19174 #include <sys/types.h>
19175 #include <sys/termios.h>
19182 if (sizeof (x) > 0) return (0);
19188 if ac_fn_c_try_compile
"$LINENO"
19190 bash_cv_struct_winsize_termios
=yes
19192 bash_cv_struct_winsize_termios
=no
19194 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19200 if test $bash_cv_struct_winsize_ioctl = yes; then
19201 bash_cv_struct_winsize_header
=ioctl_h
19202 elif test $bash_cv_struct_winsize_termios = yes; then
19203 bash_cv_struct_winsize_header
=termios_h
19205 bash_cv_struct_winsize_header
=other
19210 if test $bash_cv_struct_winsize_header = ioctl_h
; then
19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
19212 printf "%s\n" "sys/ioctl.h" >&6; }
19213 printf "%s\n" "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
19215 elif test $bash_cv_struct_winsize_header = termios_h
; then
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
19217 printf "%s\n" "termios.h" >&6; }
19218 printf "%s\n" "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19222 printf "%s\n" "not found" >&6; }
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
19226 printf %s
"checking for struct timeval in sys/time.h and time.h... " >&6; }
19227 if test ${bash_cv_struct_timeval+y}
19229 printf %s
"(cached) " >&6
19231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233 #if HAVE_SYS_TIME_H
19234 #include <sys/time.h>
19241 static struct timeval x; x.tv_sec = x.tv_usec;
19247 if ac_fn_c_try_compile
"$LINENO"
19249 bash_cv_struct_timeval
=yes
19251 bash_cv_struct_timeval
=no
19253 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
19258 printf "%s\n" "$bash_cv_struct_timeval" >&6; }
19259 if test $bash_cv_struct_timeval = yes; then
19260 printf "%s\n" "#define HAVE_TIMEVAL 1" >>confdefs.h
19264 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
19265 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
19268 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
19273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19274 printf %s
"checking whether struct tm is in sys/time.h or time.h... " >&6; }
19275 if test ${ac_cv_struct_tm+y}
19277 printf %s
"(cached) " >&6
19279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #include <sys/types.h>
19288 int *p = &tm.tm_sec;
19294 if ac_fn_c_try_compile
"$LINENO"
19296 ac_cv_struct_tm
=time.h
19298 ac_cv_struct_tm
=sys
/time.h
19300 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19303 printf "%s\n" "$ac_cv_struct_tm" >&6; }
19304 if test $ac_cv_struct_tm = sys
/time.h
; then
19306 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
19310 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19311 #include <$ac_cv_struct_tm>
19314 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
19317 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
19322 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19324 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
19327 ac_fn_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19328 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19329 if test "x$ac_cv_have_decl_tzname" = xyes
19335 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19338 printf %s
"checking for tzname... " >&6; }
19339 if test ${ac_cv_var_tzname+y}
19341 printf %s
"(cached) " >&6
19343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19346 #if !HAVE_DECL_TZNAME
19347 extern char *tzname[];
19353 return tzname[0][0];
19358 if ac_fn_c_try_link
"$LINENO"
19360 ac_cv_var_tzname
=yes
19362 ac_cv_var_tzname
=no
19364 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
19365 conftest
$ac_exeext conftest.
$ac_ext
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19368 printf "%s\n" "$ac_cv_var_tzname" >&6; }
19369 if test $ac_cv_var_tzname = yes; then
19371 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
19377 printf %s
"checking for struct timezone in sys/time.h and time.h... " >&6; }
19378 if test ${bash_cv_struct_timezone+y}
19380 printf %s
"(cached) " >&6
19383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19385 #include <sys/time.h>
19388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19389 $EGREP "struct timezone" >/dev
/null
2>&1
19391 bash_cv_struct_timezone
=yes
19393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19399 $EGREP "struct timezone" >/dev
/null
2>&1
19401 bash_cv_struct_timezone
=yes
19403 bash_cv_struct_timezone
=no
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
19414 printf "%s\n" "$bash_cv_struct_timezone" >&6; }
19415 if test $bash_cv_struct_timezone = yes; then
19416 printf "%s\n" "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
19422 printf %s
"checking for offset of exit status in return status from wait... " >&6; }
19423 if test ${bash_cv_wexitstatus_offset+y}
19425 printf %s
"(cached) " >&6
19427 if test "$cross_compiling" = yes
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
19430 printf "%s\n" "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
19431 bash_cv_wexitstatus_offset
=0
19434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19437 #include <stdlib.h>
19438 #include <unistd.h>
19440 #include <sys/wait.h>
19455 /* wait for the process */
19461 for (i = 0; i < (sizeof(s) * 8); i++)
19463 n = (s >> i) & 0xff;
19472 if ac_fn_c_try_run
"$LINENO"
19474 bash_cv_wexitstatus_offset
=0
19476 bash_cv_wexitstatus_offset
=$?
19478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19479 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19484 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
19486 printf "%s\n" "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
19487 bash_cv_wexitstatus_offset
=0
19489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
19490 printf "%s\n" "$bash_cv_wexitstatus_offset" >&6; }
19492 printf "%s\n" "#define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset" >>confdefs.h
19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19499 printf %s
"checking for struct timespec in <time.h>... " >&6; }
19500 if test ${bash_cv_sys_struct_timespec_in_time_h+y}
19502 printf %s
"(cached) " >&6
19504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19511 static struct timespec x; x.tv_sec = x.tv_nsec;
19516 if ac_fn_c_try_compile
"$LINENO"
19518 bash_cv_sys_struct_timespec_in_time_h
=yes
19520 bash_cv_sys_struct_timespec_in_time_h
=no
19522 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
19525 printf "%s\n" "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
19527 HAVE_STRUCT_TIMESPEC
=0
19528 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19529 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19530 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19531 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
19532 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19534 printf "%s\n" "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
19536 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19539 printf %s
"checking for struct timespec in <sys/time.h>... " >&6; }
19540 if test ${bash_cv_sys_struct_timespec_in_sys_time_h+y}
19542 printf %s
"(cached) " >&6
19544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546 #include <sys/time.h>
19551 static struct timespec x; x.tv_sec = x.tv_nsec;
19556 if ac_fn_c_try_compile
"$LINENO"
19558 bash_cv_sys_struct_timespec_in_sys_time_h
=yes
19560 bash_cv_sys_struct_timespec_in_sys_time_h
=no
19562 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
19565 printf "%s\n" "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19566 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
19567 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19568 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19570 printf "%s\n" "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
19573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19574 printf %s
"checking for struct timespec in <pthread.h>... " >&6; }
19575 if test ${bash_cv_sys_struct_timespec_in_pthread_h+y}
19577 printf %s
"(cached) " >&6
19579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19581 #include <pthread.h>
19586 static struct timespec x; x.tv_sec = x.tv_nsec;
19591 if ac_fn_c_try_compile
"$LINENO"
19593 bash_cv_sys_struct_timespec_in_pthread_h
=yes
19595 bash_cv_sys_struct_timespec_in_pthread_h
=no
19597 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
19600 printf "%s\n" "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
19601 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
19602 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19603 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19605 printf "%s\n" "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
19619 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>
19620 #include <sys/stat.h>
19622 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
19625 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
19628 printf %s
"checking whether struct stat.st_atim is of type struct timespec... " >&6; }
19629 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
19631 printf %s
"(cached) " >&6
19633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19636 #include <sys/types.h>
19637 #include <sys/stat.h>
19638 #if HAVE_SYS_TIME_H
19639 # include <sys/time.h>
19642 struct timespec ts;
19655 if ac_fn_c_try_compile
"$LINENO"
19657 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
19659 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
19661 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
19664 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
19665 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
19667 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
19671 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>
19672 #include <sys/stat.h>
19674 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
19677 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
19681 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
19682 #include <sys/stat.h>
19684 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
19687 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
19691 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>
19692 #include <sys/stat.h>
19694 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
19697 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
19712 printf %s
"checking for sbrk... " >&6; }
19713 if test ${ac_cv_func_sbrk+y}
19715 printf %s
"(cached) " >&6
19717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h. */
19719 #include <unistd.h>
19723 void *x = sbrk (4096);
19728 if ac_fn_c_try_link
"$LINENO"
19730 ac_cv_func_sbrk
=yes
19734 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
19735 conftest
$ac_exeext conftest.
$ac_ext
19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sbrk" >&5
19739 printf "%s\n" "$ac_cv_func_sbrk" >&6; }
19740 if test X
$ac_cv_func_sbrk = Xyes
; then
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sbrk" >&5
19742 printf %s
"checking for working sbrk... " >&6; }
19743 if test ${bash_cv_func_sbrk+y}
19745 printf %s
"(cached) " >&6
19747 if test "$cross_compiling" = yes
19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working sbrk if cross-compiling" >&5
19750 printf "%s\n" "$as_me: WARNING: cannot check working sbrk if cross-compiling" >&2;}
19751 bash_cv_func_sbrk
=yes
19754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19757 #include <stdlib.h>
19758 #include <unistd.h>
19761 main(int c, char **v)
19766 exit ((x == (void *)-1) ? 1 : 0);
19770 if ac_fn_c_try_run
"$LINENO"
19772 bash_cv_func_sbrk
=yes
19774 bash_cv_func_sbrk
=no
19776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sbrk" >&5
19782 printf "%s\n" "$bash_cv_func_sbrk" >&6; }
19783 if test $bash_cv_func_sbrk = no
; then
19787 if test $ac_cv_func_sbrk = yes; then
19789 printf "%s\n" "#define HAVE_SBRK 1" >>confdefs.h
19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
19795 printf %s
"checking for the existence of strsignal... " >&6; }
19796 if test ${bash_cv_have_strsignal+y}
19798 printf %s
"(cached) " >&6
19800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19802 #include <sys/types.h>
19803 #include <signal.h>
19804 #include <string.h>
19808 char *s = (char *)strsignal(2);
19813 if ac_fn_c_try_link
"$LINENO"
19815 bash_cv_have_strsignal
=yes
19817 bash_cv_have_strsignal
=no
19819 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
19820 conftest
$ac_exeext conftest.
$ac_ext
19823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
19824 printf "%s\n" "$bash_cv_have_strsignal" >&6; }
19825 if test $bash_cv_have_strsignal = yes; then
19826 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
19831 printf %s
"checking if opendir() opens non-directories... " >&6; }
19832 if test ${bash_cv_opendir_not_robust+y}
19834 printf %s
"(cached) " >&6
19836 if test "$cross_compiling" = yes
19838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
19839 printf "%s\n" "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
19840 bash_cv_opendir_not_robust
=no
19843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19847 #include <sys/types.h>
19849 #ifdef HAVE_UNISTD_H
19850 # include <unistd.h>
19851 #endif /* HAVE_UNISTD_H */
19852 #ifdef HAVE_SYS_STAT_H
19853 #include <sys/stat.h>
19855 #if defined(HAVE_DIRENT_H)
19856 # include <dirent.h>
19858 # define dirent direct
19859 # ifdef HAVE_SYS_NDIR_H
19860 # include <sys/ndir.h>
19861 # endif /* SYSNDIR */
19862 # ifdef HAVE_SYS_DIR_H
19863 # include <sys/dir.h>
19864 # endif /* SYSDIR */
19865 # ifdef HAVE_NDIR_H
19868 #endif /* HAVE_DIRENT_H */
19869 #include <stdlib.h>
19875 err = mkdir("bash-aclocal", 0700);
19880 unlink("bash-aclocal/not_a_directory");
19881 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
19882 write(fd, "\n", 1);
19884 dir = opendir("bash-aclocal/not_a_directory");
19885 unlink("bash-aclocal/not_a_directory");
19886 rmdir("bash-aclocal");
19891 if ac_fn_c_try_run
"$LINENO"
19893 bash_cv_opendir_not_robust
=yes
19895 bash_cv_opendir_not_robust
=no
19897 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19898 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
19904 printf "%s\n" "$bash_cv_opendir_not_robust" >&6; }
19905 if test $bash_cv_opendir_not_robust = yes; then
19906 printf "%s\n" "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
19911 printf %s
"checking whether ulimit can substitute for getdtablesize... " >&6; }
19912 if test ${bash_cv_ulimit_maxfds+y}
19914 printf %s
"(cached) " >&6
19916 if test "$cross_compiling" = yes
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
19919 printf "%s\n" "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
19920 bash_cv_ulimit_maxfds
=no
19923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19926 #include <stdlib.h>
19927 #ifdef HAVE_ULIMIT_H
19928 #include <ulimit.h>
19933 long maxfds = ulimit(4, 0L);
19934 exit (maxfds == -1L);
19938 if ac_fn_c_try_run
"$LINENO"
19940 bash_cv_ulimit_maxfds
=yes
19942 bash_cv_ulimit_maxfds
=no
19944 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19945 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
19951 printf "%s\n" "$bash_cv_ulimit_maxfds" >&6; }
19952 if test $bash_cv_ulimit_maxfds = yes; then
19953 printf "%s\n" "#define ULIMIT_MAXFDS 1" >>confdefs.h
19962 ac_fn_check_decl
"$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
19963 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19964 if test "x$ac_cv_have_decl_fpurge" = xyes
19970 printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
19973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
19974 printf %s
"checking to see if getenv can be redefined... " >&6; }
19975 if test ${bash_cv_getenv_redef+y}
19977 printf %s
"(cached) " >&6
19979 if test "$cross_compiling" = yes
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
19982 printf "%s\n" "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
19983 bash_cv_getenv_redef
=yes
19986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19989 #ifdef HAVE_UNISTD_H
19990 # include <unistd.h>
19992 #include <stdlib.h>
20000 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
20004 #endif /* !__linux__ && !__bsdi__ && !convex */
20012 /* The next allows this program to run, but does not allow bash to link
20013 when it redefines getenv. I'm not really interested in figuring out
20018 s = getenv("ABCDE");
20019 exit(s == 0); /* force optimizer to leave getenv in */
20023 if ac_fn_c_try_run
"$LINENO"
20025 bash_cv_getenv_redef
=yes
20027 bash_cv_getenv_redef
=no
20029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
20036 printf "%s\n" "$bash_cv_getenv_redef" >&6; }
20037 if test $bash_cv_getenv_redef = yes; then
20038 printf "%s\n" "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
20042 if test "$ac_cv_func_getcwd" = "yes"; then
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
20044 printf %s
"checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
20045 if test ${bash_cv_getcwd_malloc+y}
20047 printf %s
"(cached) " >&6
20049 if test "$cross_compiling" = yes
20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
20052 printf "%s\n" "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
20053 bash_cv_getcwd_malloc
=no
20056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20060 #ifdef HAVE_UNISTD_H
20061 #include <unistd.h>
20063 #include <stdlib.h>
20069 xpwd = getcwd(0, 0);
20074 if ac_fn_c_try_run
"$LINENO"
20076 bash_cv_getcwd_malloc
=yes
20078 bash_cv_getcwd_malloc
=no
20080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
20087 printf "%s\n" "$bash_cv_getcwd_malloc" >&6; }
20088 if test $bash_cv_getcwd_malloc = no
; then
20089 printf "%s\n" "#define GETCWD_BROKEN 1" >>confdefs.h
20091 case " $LIBOBJS " in
20092 *" getcwd.$ac_objext "* ) ;;
20093 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
20101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
20102 printf %s
"checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
20103 if test ${bash_cv_func_sigsetjmp+y}
20105 printf %s
"(cached) " >&6
20107 if test "$cross_compiling" = yes
20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to $bash_cv_posix_signals" >&5
20110 printf "%s\n" "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to $bash_cv_posix_signals" >&2;}
20111 if test "$bash_cv_posix_signals" = "yes" ; then
20112 bash_cv_func_sigsetjmp
=present
20114 bash_cv_func_sigsetjmp
=missing
20118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20121 #ifdef HAVE_UNISTD_H
20122 #include <unistd.h>
20124 #include <sys/types.h>
20125 #include <signal.h>
20126 #include <setjmp.h>
20127 #include <stdlib.h>
20132 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
20137 sigset_t set, oset, nset;
20142 sigemptyset(&oset);
20144 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
20145 /* paranoia -- make sure SIGINT is not blocked */
20146 sigdelset (&oset, SIGINT);
20147 sigprocmask (SIG_SETMASK, &oset, (sigset_t *)NULL);
20150 code = sigsetjmp(xx, 1);
20153 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &nset);
20154 /* could compare nset to oset here, but we just look for SIGINT */
20155 if (sigismember (&nset, SIGINT))
20160 /* change it so that SIGINT is blocked */
20161 sigaddset(&set, SIGINT);
20162 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
20164 /* and siglongjmp */
20165 siglongjmp(xx, 10);
20171 if ac_fn_c_try_run
"$LINENO"
20173 bash_cv_func_sigsetjmp
=present
20175 bash_cv_func_sigsetjmp
=missing
20177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
20184 printf "%s\n" "$bash_cv_func_sigsetjmp" >&6; }
20185 if test $bash_cv_func_sigsetjmp = present
; then
20186 printf "%s\n" "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
20191 printf %s
"checking whether or not strcoll and strcmp differ... " >&6; }
20192 if test ${bash_cv_func_strcoll_broken+y}
20194 printf %s
"(cached) " >&6
20196 if test "$cross_compiling" = yes
20198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
20199 printf "%s\n" "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
20200 bash_cv_func_strcoll_broken
=no
20203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20207 #if defined (HAVE_LOCALE_H)
20208 #include <locale.h>
20210 #include <string.h>
20211 #include <stdlib.h>
20219 char *deflocale, *defcoll;
20221 #ifdef HAVE_SETLOCALE
20222 deflocale = setlocale(LC_ALL, "");
20223 defcoll = setlocale(LC_COLLATE, "");
20226 #ifdef HAVE_STRCOLL
20227 /* These two values are taken from tests/glob-test. */
20228 r1 = strcoll("abd", "aXd");
20232 r2 = strcmp("abd", "aXd");
20234 /* These two should both be greater than 0. It is permissible for
20235 a system to return different values, as long as the sign is the
20238 /* Exit with 1 (failure) if these two values are both > 0, since
20239 this tests whether strcoll(3) is broken with respect to strcmp(3)
20240 in the default locale. */
20241 exit (r1 > 0 && r2 > 0);
20245 if ac_fn_c_try_run
"$LINENO"
20247 bash_cv_func_strcoll_broken
=yes
20249 bash_cv_func_strcoll_broken
=no
20251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
20258 printf "%s\n" "$bash_cv_func_strcoll_broken" >&6; }
20259 if test $bash_cv_func_strcoll_broken = yes; then
20260 printf "%s\n" "#define STRCOLL_BROKEN 1" >>confdefs.h
20267 if test X
$ac_cv_func_snprintf = Xyes
; then
20268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
20269 printf %s
"checking for standard-conformant snprintf... " >&6; }
20270 if test ${bash_cv_func_snprintf+y}
20272 printf %s
"(cached) " >&6
20274 if test "$cross_compiling" = yes
20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
20277 printf "%s\n" "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
20278 bash_cv_func_snprintf
=yes
20281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20285 #include <stdlib.h>
20291 n = snprintf (0, 0, "%s", "0123456");
20296 if ac_fn_c_try_run
"$LINENO"
20298 bash_cv_func_snprintf
=yes
20300 bash_cv_func_snprintf
=no
20302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
20308 printf "%s\n" "$bash_cv_func_snprintf" >&6; }
20309 if test $bash_cv_func_snprintf = no
; then
20310 ac_cv_func_snprintf
=no
20313 if test $ac_cv_func_snprintf = no
; then
20315 printf "%s\n" "#define HAVE_SNPRINTF 0" >>confdefs.h
20322 if test X
$ac_cv_func_vsnprintf = Xyes
; then
20323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
20324 printf %s
"checking for standard-conformant vsnprintf... " >&6; }
20325 if test ${bash_cv_func_vsnprintf+y}
20327 printf %s
"(cached) " >&6
20329 if test "$cross_compiling" = yes
20331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
20332 printf "%s\n" "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
20333 bash_cv_func_vsnprintf
=yes
20336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20340 #include <stdarg.h>
20342 #include <varargs.h>
20345 #include <stdlib.h>
20349 foo(const char *fmt, ...)
20351 foo(format, va_alist)
20352 const char *format;
20360 va_start(args, fmt);
20364 n = vsnprintf(0, 0, fmt, args);
20373 n = foo("%s", "0123456");
20378 if ac_fn_c_try_run
"$LINENO"
20380 bash_cv_func_vsnprintf
=yes
20382 bash_cv_func_vsnprintf
=no
20384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
20390 printf "%s\n" "$bash_cv_func_vsnprintf" >&6; }
20391 if test $bash_cv_func_vsnprintf = no
; then
20392 ac_cv_func_vsnprintf
=no
20395 if test $ac_cv_func_vsnprintf = no
; then
20397 printf "%s\n" "#define HAVE_VSNPRINTF 0" >>confdefs.h
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable strtoimax" >&5
20404 printf %s
"checking for usable strtoimax... " >&6; }
20405 if test ${bash_cv_func_strtoimax+y}
20407 printf %s
"(cached) " >&6
20410 HAVE_STRTOIMAX
=0 HAVE_DECL_STRTOIMAX
=0
20412 ac_fn_c_check_func
"$LINENO" "strtoimax" "ac_cv_func_strtoimax"
20413 if test "x$ac_cv_func_strtoimax" = xyes
20415 printf "%s\n" "#define HAVE_STRTOIMAX 1" >>confdefs.h
20419 ac_fn_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20420 if test "x$ac_cv_have_decl_strtoimax" = xyes
20426 printf "%s\n" "#define HAVE_DECL_STRTOIMAX $ac_have_decl" >>confdefs.h
20429 if test "$ac_cv_func_strtoimax" = "yes" ; then
20432 if test "$ac_cv_have_decl_strtoimax" = "yes" ; then
20433 HAVE_DECL_STRTOIMAX
=1
20436 if test "$HAVE_STRTOIMAX" = 0 ||
test "$HAVE_DECL_STRTOIMAX" = 0 ; then
20437 bash_cv_func_strtoimax
=no REPLACE_STRTOIMAX
=1
20439 bash_cv_func_strtoimax
=yes
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strtoimax" >&5
20445 printf "%s\n" "$bash_cv_func_strtoimax" >&6; }
20446 if test $bash_cv_func_strtoimax = yes; then
20447 case " $LIBOBJS " in
20448 *" strtoimax.$ac_objext "* ) ;;
20449 *) LIBOBJS
="$LIBOBJS strtoimax.$ac_objext"
20457 if test "$ac_cv_func_putenv" = "yes"; then
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
20461 printf %s
"checking for standard-conformant putenv declaration... " >&6; }
20462 if test ${bash_cv_std_putenv+y}
20464 printf %s
"(cached) " >&6
20466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20470 #include <stdlib.h>
20473 #include <stddef.h>
20481 extern int putenv (char *);
20483 extern int putenv ();
20489 return (putenv == 0);
20494 if ac_fn_c_try_link
"$LINENO"
20496 bash_cv_std_putenv
=yes
20498 bash_cv_std_putenv
=no
20501 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20502 conftest
$ac_exeext conftest.
$ac_ext
20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
20505 printf "%s\n" "$bash_cv_std_putenv" >&6; }
20506 if test $bash_cv_std_putenv = yes; then
20507 printf "%s\n" "#define HAVE_STD_PUTENV 1" >>confdefs.h
20512 printf "%s\n" "#define HAVE_STD_PUTENV 1" >>confdefs.h
20515 if test "$ac_cv_func_unsetenv" = "yes"; then
20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
20519 printf %s
"checking for standard-conformant unsetenv declaration... " >&6; }
20520 if test ${bash_cv_std_unsetenv+y}
20522 printf %s
"(cached) " >&6
20524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20525 /* end confdefs.h. */
20528 #include <stdlib.h>
20531 #include <stddef.h>
20539 extern int unsetenv (const char *);
20541 extern int unsetenv ();
20547 return (unsetenv == 0);
20552 if ac_fn_c_try_link
"$LINENO"
20554 bash_cv_std_unsetenv
=yes
20556 bash_cv_std_unsetenv
=no
20559 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20560 conftest
$ac_exeext conftest.
$ac_ext
20562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
20563 printf "%s\n" "$bash_cv_std_unsetenv" >&6; }
20564 if test $bash_cv_std_unsetenv = yes; then
20565 printf "%s\n" "#define HAVE_STD_UNSETENV 1" >>confdefs.h
20570 printf "%s\n" "#define HAVE_STD_UNSETENV 1" >>confdefs.h
20574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
20575 printf %s
"checking for printf floating point output in hex notation... " >&6; }
20576 if test ${bash_cv_printf_a_format+y}
20578 printf %s
"(cached) " >&6
20580 if test "$cross_compiling" = yes
20582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
20583 printf "%s\n" "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
20584 bash_cv_printf_a_format
=no
20587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20588 /* end confdefs.h. */
20591 #include <string.h>
20592 #include <stdlib.h>
20600 sprintf(abuf, "%A", y);
20601 exit(strchr(abuf, 'P') == (char *)0);
20605 if ac_fn_c_try_run
"$LINENO"
20607 bash_cv_printf_a_format
=yes
20609 bash_cv_printf_a_format
=no
20611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
20618 printf "%s\n" "$bash_cv_printf_a_format" >&6; }
20619 if test $bash_cv_printf_a_format = yes; then
20620 printf "%s\n" "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
20625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fnmatch can be used to check bracket equivalence classes" >&5
20626 printf %s
"checking whether fnmatch can be used to check bracket equivalence classes... " >&6; }
20627 if test ${bash_cv_fnmatch_equiv_fallback+y}
20629 printf %s
"(cached) " >&6
20631 if test "$cross_compiling" = yes
20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&5
20634 printf "%s\n" "$as_me: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&2;}
20635 bash_cv_fnmatch_equiv_fallback
=no
20638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20641 #include <stdlib.h>
20642 #include <unistd.h>
20644 #include <fnmatch.h>
20645 #include <locale.h>
20647 char *pattern = "[[=a=]]";
20649 /* char *string = "ä"; */
20650 unsigned char string[4] = { '\xc3', '\xa4', '\0' };
20653 main (int c, char **v)
20655 setlocale (LC_ALL, "en_US.UTF-8");
20656 if (fnmatch (pattern, (const char *)string, 0) != FNM_NOMATCH)
20662 if ac_fn_c_try_run
"$LINENO"
20664 bash_cv_fnmatch_equiv_fallback
=yes
20666 bash_cv_fnmatch_equiv_fallback
=no
20668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20669 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fnmatch_equiv_fallback" >&5
20675 printf "%s\n" "$bash_cv_fnmatch_equiv_fallback" >&6; }
20676 if test "$bash_cv_fnmatch_equiv_fallback" = "yes" ; then
20677 bash_cv_fnmatch_equiv_value
=1
20679 bash_cv_fnmatch_equiv_value
=0
20682 printf "%s\n" "#define FNMATCH_EQUIV_FALLBACK $bash_cv_fnmatch_equiv_value" >>confdefs.h
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
20688 printf %s
"checking if signal handlers must be reinstalled when invoked... " >&6; }
20689 if test ${bash_cv_must_reinstall_sighandlers+y}
20691 printf %s
"(cached) " >&6
20693 if test "$cross_compiling" = yes
20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
20696 printf "%s\n" "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
20697 bash_cv_must_reinstall_sighandlers
=no
20700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20701 /* end confdefs.h. */
20703 #include <signal.h>
20704 #ifdef HAVE_UNISTD_H
20705 #include <unistd.h>
20707 #include <stdlib.h>
20709 typedef void sigfunc();
20711 volatile int nsigint;
20713 #ifdef HAVE_POSIX_SIGNALS
20715 set_signal_handler(sig, handler)
20719 struct sigaction act, oact;
20720 act.sa_handler = handler;
20722 sigemptyset (&act.sa_mask);
20723 sigemptyset (&oact.sa_mask);
20724 sigaction (sig, &act, &oact);
20725 return (oact.sa_handler);
20728 #define set_signal_handler(s, h) signal(s, h)
20742 set_signal_handler(SIGINT, sigint);
20743 kill((int)getpid(), SIGINT);
20744 kill((int)getpid(), SIGINT);
20745 exit(nsigint != 2);
20749 if ac_fn_c_try_run
"$LINENO"
20751 bash_cv_must_reinstall_sighandlers
=no
20753 bash_cv_must_reinstall_sighandlers
=yes
20755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
20762 printf "%s\n" "$bash_cv_must_reinstall_sighandlers" >&6; }
20763 if test $bash_cv_must_reinstall_sighandlers = yes; then
20764 printf "%s\n" "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
20769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
20770 printf %s
"checking for presence of necessary job control definitions... " >&6; }
20771 if test ${bash_cv_job_control_missing+y}
20773 printf %s
"(cached) " >&6
20775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20778 #include <sys/types.h>
20779 #ifdef HAVE_SYS_WAIT_H
20780 #include <sys/wait.h>
20782 #ifdef HAVE_UNISTD_H
20783 #include <unistd.h>
20785 #include <signal.h>
20787 /* add more tests in here as appropriate */
20790 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
20794 /* signals and tty control. */
20795 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
20799 /* process control */
20800 #if !defined (WNOHANG) || !defined (WUNTRACED)
20804 /* Posix systems have tcgetpgrp and waitpid. */
20805 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
20809 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
20813 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
20814 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
20827 if ac_fn_c_try_compile
"$LINENO"
20829 bash_cv_job_control_missing
=present
20831 bash_cv_job_control_missing
=missing
20834 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
20838 printf "%s\n" "$bash_cv_job_control_missing" >&6; }
20839 if test $bash_cv_job_control_missing = missing
; then
20840 printf "%s\n" "#define JOB_CONTROL_MISSING 1" >>confdefs.h
20844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
20845 printf %s
"checking for presence of named pipes... " >&6; }
20846 if test ${bash_cv_sys_named_pipes+y}
20848 printf %s
"(cached) " >&6
20850 if test "$cross_compiling" = yes
20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
20853 printf "%s\n" "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
20854 bash_cv_sys_named_pipes
=missing
20857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20858 /* end confdefs.h. */
20860 #include <sys/types.h>
20861 #include <sys/stat.h>
20862 #ifdef HAVE_UNISTD_H
20863 #include <unistd.h>
20866 #include <stdlib.h>
20868 /* Add more tests in here as appropriate. */
20874 #if defined (HAVE_MKFIFO)
20878 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
20885 err = mkdir("bash-aclocal", 0700);
20890 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
20892 rmdir ("bash-aclocal");
20896 unlink ("bash-aclocal/sh-np-autoconf");
20897 rmdir ("bash-aclocal");
20902 if ac_fn_c_try_run
"$LINENO"
20904 bash_cv_sys_named_pipes
=present
20906 bash_cv_sys_named_pipes
=missing
20908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
20915 printf "%s\n" "$bash_cv_sys_named_pipes" >&6; }
20916 if test $bash_cv_sys_named_pipes = missing
; then
20917 printf "%s\n" "#define NAMED_PIPES_MISSING 1" >>confdefs.h
20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20923 printf %s
"checking whether termios.h defines TIOCGWINSZ... " >&6; }
20924 if test ${ac_cv_sys_tiocgwinsz_in_termios_h+y}
20926 printf %s
"(cached) " >&6
20928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20929 /* end confdefs.h. */
20930 #include <sys/types.h>
20931 #include <termios.h>
20937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20938 $EGREP "yes" >/dev
/null
2>&1
20940 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
20942 ac_cv_sys_tiocgwinsz_in_termios_h
=no
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20948 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20950 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20952 printf %s
"checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20953 if test ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+y}
20955 printf %s
"(cached) " >&6
20957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20959 #include <sys/types.h>
20960 #include <sys/ioctl.h>
20966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20967 $EGREP "yes" >/dev
/null
2>&1
20969 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
20971 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
20976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20977 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20979 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20981 printf "%s\n" "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
20987 printf %s
"checking for TIOCSTAT in sys/ioctl.h... " >&6; }
20988 if test ${bash_cv_tiocstat_in_ioctl+y}
20990 printf %s
"(cached) " >&6
20992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20995 #include <sys/types.h>
20996 #include <sys/ioctl.h>
21005 if ac_fn_c_try_compile
"$LINENO"
21007 bash_cv_tiocstat_in_ioctl
=yes
21009 bash_cv_tiocstat_in_ioctl
=no
21012 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
21016 printf "%s\n" "$bash_cv_tiocstat_in_ioctl" >&6; }
21017 if test $bash_cv_tiocstat_in_ioctl = yes; then
21018 printf "%s\n" "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
21022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
21023 printf %s
"checking for FIONREAD in sys/ioctl.h... " >&6; }
21024 if test ${bash_cv_fionread_in_ioctl+y}
21026 printf %s
"(cached) " >&6
21028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21031 #include <sys/types.h>
21032 #include <sys/ioctl.h>
21041 if ac_fn_c_try_compile
"$LINENO"
21043 bash_cv_fionread_in_ioctl
=yes
21045 bash_cv_fionread_in_ioctl
=no
21048 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
21052 printf "%s\n" "$bash_cv_fionread_in_ioctl" >&6; }
21053 if test $bash_cv_fionread_in_ioctl = yes; then
21054 printf "%s\n" "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
21060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
21061 printf %s
"checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
21062 if test ${bash_cv_wcontinued_broken+y}
21064 printf %s
"(cached) " >&6
21066 if test "$cross_compiling" = yes
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
21069 printf "%s\n" "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
21070 bash_cv_wcontinued_broken
=no
21073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21076 #include <sys/types.h>
21077 #include <sys/wait.h>
21078 #include <unistd.h>
21080 #include <stdlib.h>
21090 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
21091 if (x == -1 && errno == EINVAL)
21098 if ac_fn_c_try_run
"$LINENO"
21100 bash_cv_wcontinued_broken
=no
21102 bash_cv_wcontinued_broken
=yes
21104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
21111 printf "%s\n" "$bash_cv_wcontinued_broken" >&6; }
21112 if test $bash_cv_wcontinued_broken = yes; then
21113 printf "%s\n" "#define WCONTINUED_BROKEN 1" >>confdefs.h
21118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
21119 printf %s
"checking for speed_t in sys/types.h... " >&6; }
21120 if test ${bash_cv_speed_t_in_sys_types+y}
21122 printf %s
"(cached) " >&6
21124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h. */
21126 #include <sys/types.h>
21135 if ac_fn_c_try_compile
"$LINENO"
21137 bash_cv_speed_t_in_sys_types
=yes
21139 bash_cv_speed_t_in_sys_types
=no
21141 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
21145 printf "%s\n" "$bash_cv_speed_t_in_sys_types" >&6; }
21146 if test $bash_cv_speed_t_in_sys_types = yes; then
21147 printf "%s\n" "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
21151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
21152 printf %s
"checking whether getpw functions are declared in pwd.h... " >&6; }
21153 if test ${bash_cv_getpw_declared+y}
21155 printf %s
"(cached) " >&6
21157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21160 #include <sys/types.h>
21161 #ifdef HAVE_UNISTD_H
21162 # include <unistd.h>
21167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21168 $EGREP "getpwuid" >/dev
/null
2>&1
21170 bash_cv_getpw_declared
=yes
21172 bash_cv_getpw_declared
=no
21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
21179 printf "%s\n" "$bash_cv_getpw_declared" >&6; }
21180 if test $bash_cv_getpw_declared = yes; then
21181 printf "%s\n" "#define HAVE_GETPW_DECLS 1" >>confdefs.h
21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
21186 printf %s
"checking for unusable real-time signals due to large values... " >&6; }
21187 if test ${bash_cv_unusable_rtsigs+y}
21189 printf %s
"(cached) " >&6
21191 if test "$cross_compiling" = yes
21193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
21194 printf "%s\n" "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
21195 bash_cv_unusable_rtsigs
=yes
21198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21199 /* end confdefs.h. */
21201 #include <sys/types.h>
21202 #include <signal.h>
21203 #include <stdlib.h>
21212 int n_sigs = 2 * NSIG;
21214 int rtmin = SIGRTMIN;
21219 exit(rtmin < n_sigs);
21223 if ac_fn_c_try_run
"$LINENO"
21225 bash_cv_unusable_rtsigs
=yes
21227 bash_cv_unusable_rtsigs
=no
21229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21230 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
21236 printf "%s\n" "$bash_cv_unusable_rtsigs" >&6; }
21237 if test $bash_cv_unusable_rtsigs = yes; then
21238 printf "%s\n" "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
21246 if test "$bash_cv_sys_siglist" = no
&& test "$bash_cv_under_sys_siglist" = no
&& test "$bash_cv_have_strsignal" = no
; then
21247 SIGLIST_O
=siglist.o
21255 hpux
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
21256 printf %s
"checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
21257 if test ${bash_cv_kernel_rlimit+y}
21259 printf %s
"(cached) " >&6
21261 if test ${bash_cv_rlimit+y}
21263 printf %s
"(cached) " >&6
21265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21268 #include <sys/types.h>
21269 #include <sys/resource.h>
21282 if ac_fn_c_try_compile
"$LINENO"
21289 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21293 if test $bash_cv_rlimit = no
; then
21294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21297 #include <sys/types.h>
21299 #include <sys/resource.h>
21313 if ac_fn_c_try_compile
"$LINENO"
21315 bash_cv_kernel_rlimit
=yes
21317 bash_cv_kernel_rlimit
=no
21319 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
21325 printf "%s\n" "$bash_cv_kernel_rlimit" >&6; }
21326 if test $bash_cv_kernel_rlimit = yes; then
21327 printf "%s\n" "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
21333 if test "$opt_readline" = yes; then
21335 aix
*) prefer_curses
=yes ;;
21338 if test "X$bash_cv_termcap_lib" = "X"; then
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
21342 printf %s
"checking which library has the termcap functions... " >&6; }
21345 if test ${bash_cv_termcap_lib+y}
21347 printf %s
"(cached) " >&6
21349 ac_fn_c_check_func
"$LINENO" "tgetent" "ac_cv_func_tgetent"
21350 if test "x$ac_cv_func_tgetent" = xyes
21352 bash_cv_termcap_lib
=libc
21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21355 printf %s
"checking for tgetent in -ltermcap... " >&6; }
21356 if test ${ac_cv_lib_termcap_tgetent+y}
21358 printf %s
"(cached) " >&6
21360 ac_check_lib_save_LIBS
=$LIBS
21361 LIBS
="-ltermcap $LIBS"
21362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21377 if ac_fn_c_try_link
"$LINENO"
21379 ac_cv_lib_termcap_tgetent
=yes
21381 ac_cv_lib_termcap_tgetent
=no
21383 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21384 conftest
$ac_exeext conftest.
$ac_ext
21385 LIBS
=$ac_check_lib_save_LIBS
21387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21388 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
21389 if test "x$ac_cv_lib_termcap_tgetent" = xyes
21391 bash_cv_termcap_lib
=libtermcap
21393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21394 printf %s
"checking for tgetent in -ltinfo... " >&6; }
21395 if test ${ac_cv_lib_tinfo_tgetent+y}
21397 printf %s
"(cached) " >&6
21399 ac_check_lib_save_LIBS
=$LIBS
21400 LIBS
="-ltinfo $LIBS"
21401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21402 /* end confdefs.h. */
21404 /* Override any GCC internal prototype to avoid an error.
21405 Use char because int might match the return type of a GCC
21406 builtin and then its argument prototype would still apply. */
21416 if ac_fn_c_try_link
"$LINENO"
21418 ac_cv_lib_tinfo_tgetent
=yes
21420 ac_cv_lib_tinfo_tgetent
=no
21422 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21423 conftest
$ac_exeext conftest.
$ac_ext
21424 LIBS
=$ac_check_lib_save_LIBS
21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21427 printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
21428 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
21430 bash_cv_termcap_lib
=libtinfo
21432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21433 printf %s
"checking for tgetent in -lcurses... " >&6; }
21434 if test ${ac_cv_lib_curses_tgetent+y}
21436 printf %s
"(cached) " >&6
21438 ac_check_lib_save_LIBS
=$LIBS
21439 LIBS
="-lcurses $LIBS"
21440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h. */
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21455 if ac_fn_c_try_link
"$LINENO"
21457 ac_cv_lib_curses_tgetent
=yes
21459 ac_cv_lib_curses_tgetent
=no
21461 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21462 conftest
$ac_exeext conftest.
$ac_ext
21463 LIBS
=$ac_check_lib_save_LIBS
21465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21466 printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
21467 if test "x$ac_cv_lib_curses_tgetent" = xyes
21469 bash_cv_termcap_lib
=libcurses
21471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21472 printf %s
"checking for tgetent in -lncurses... " >&6; }
21473 if test ${ac_cv_lib_ncurses_tgetent+y}
21475 printf %s
"(cached) " >&6
21477 ac_check_lib_save_LIBS
=$LIBS
21478 LIBS
="-lncurses $LIBS"
21479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21482 /* Override any GCC internal prototype to avoid an error.
21483 Use char because int might match the return type of a GCC
21484 builtin and then its argument prototype would still apply. */
21494 if ac_fn_c_try_link
"$LINENO"
21496 ac_cv_lib_ncurses_tgetent
=yes
21498 ac_cv_lib_ncurses_tgetent
=no
21500 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21501 conftest
$ac_exeext conftest.
$ac_ext
21502 LIBS
=$ac_check_lib_save_LIBS
21504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21505 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
21506 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
21508 bash_cv_termcap_lib
=libncurses
21510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
21511 printf %s
"checking for tgetent in -lncursesw... " >&6; }
21512 if test ${ac_cv_lib_ncursesw_tgetent+y}
21514 printf %s
"(cached) " >&6
21516 ac_check_lib_save_LIBS
=$LIBS
21517 LIBS
="-lncursesw $LIBS"
21518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21521 /* Override any GCC internal prototype to avoid an error.
21522 Use char because int might match the return type of a GCC
21523 builtin and then its argument prototype would still apply. */
21533 if ac_fn_c_try_link
"$LINENO"
21535 ac_cv_lib_ncursesw_tgetent
=yes
21537 ac_cv_lib_ncursesw_tgetent
=no
21539 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21540 conftest
$ac_exeext conftest.
$ac_ext
21541 LIBS
=$ac_check_lib_save_LIBS
21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
21544 printf "%s\n" "$ac_cv_lib_ncursesw_tgetent" >&6; }
21545 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
21547 bash_cv_termcap_lib
=libncursesw
21549 bash_cv_termcap_lib
=gnutermcap
21564 if test "X$_bash_needmsg" = "Xyes"; then
21565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
21566 printf %s
"checking which library has the termcap functions... " >&6; }
21568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
21569 printf "%s\n" "using $bash_cv_termcap_lib" >&6; }
21570 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
21571 LDFLAGS
="$LDFLAGS -L./lib/termcap"
21572 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
21573 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
21574 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
21575 TERMCAP_LIB
=-ltermcap
21577 elif test $bash_cv_termcap_lib = libtinfo
; then
21578 TERMCAP_LIB
=-ltinfo
21580 elif test $bash_cv_termcap_lib = libncurses
; then
21581 TERMCAP_LIB
=-lncurses
21583 elif test $bash_cv_termcap_lib = libc
; then
21587 # we assume ncurses is installed somewhere the linker can find it
21588 TERMCAP_LIB
=-lncurses
21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
21597 printf %s
"checking whether /dev/fd is available... " >&6; }
21598 if test ${bash_cv_dev_fd+y}
21600 printf %s
"(cached) " >&6
21603 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
21604 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
21605 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
21606 bash_cv_dev_fd
=standard
21608 bash_cv_dev_fd
=absent
21611 if test -z "$bash_cv_dev_fd" ; then
21612 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
21613 bash_cv_dev_fd
=whacky
21615 bash_cv_dev_fd
=absent
21621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
21622 printf "%s\n" "$bash_cv_dev_fd" >&6; }
21623 if test $bash_cv_dev_fd = "standard"; then
21624 printf "%s\n" "#define HAVE_DEV_FD 1" >>confdefs.h
21626 printf "%s\n" "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
21628 elif test $bash_cv_dev_fd = "whacky"; then
21629 printf "%s\n" "#define HAVE_DEV_FD 1" >>confdefs.h
21631 printf "%s\n" "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
21635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
21636 printf %s
"checking whether /dev/stdin stdout stderr are available... " >&6; }
21637 if test ${bash_cv_dev_stdin+y}
21639 printf %s
"(cached) " >&6
21641 if (exec test -r /dev
/stdin
< /dev
/null
) ; then
21642 bash_cv_dev_stdin
=present
21644 bash_cv_dev_stdin
=absent
21649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
21650 printf "%s\n" "$bash_cv_dev_stdin" >&6; }
21651 if test $bash_cv_dev_stdin = "present"; then
21652 printf "%s\n" "#define HAVE_DEV_STDIN 1" >>confdefs.h
21656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
21657 printf %s
"checking for default mail directory... " >&6; }
21658 if test ${bash_cv_mail_dir+y}
21660 printf %s
"(cached) " >&6
21662 if test -d /var
/mail; then
21663 bash_cv_mail_dir
=/var
/mail
21664 elif test -d /var
/spool
/mail; then
21665 bash_cv_mail_dir
=/var
/spool
/mail
21666 elif test -d /usr
/mail; then
21667 bash_cv_mail_dir
=/usr
/mail
21668 elif test -d /usr
/spool
/mail; then
21669 bash_cv_mail_dir
=/usr
/spool
/mail
21671 bash_cv_mail_dir
=unknown
21676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
21677 printf "%s\n" "$bash_cv_mail_dir" >&6; }
21678 printf "%s\n" "#define DEFAULT_MAIL_DIRECTORY \"$bash_cv_mail_dir\"" >>confdefs.h
21682 if test "$bash_cv_job_control_missing" = missing
; then
21686 if test "$opt_job_control" = yes; then
21687 printf "%s\n" "#define JOB_CONTROL 1" >>confdefs.h
21700 case "${host_os}" in
21701 sysv4.2
*) printf "%s\n" "#define SVR4_2 1" >>confdefs.h
21703 printf "%s\n" "#define SVR4 1" >>confdefs.h
21705 sysv4
*) printf "%s\n" "#define SVR4 1" >>confdefs.h
21707 sysv5
*) printf "%s\n" "#define SVR5 1" >>confdefs.h
21709 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
21710 hpux
*) LOCAL_CFLAGS
="-DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
21711 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
21712 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
21713 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
21714 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
21715 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
21716 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
21717 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
21718 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
21719 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
21720 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS ;;
21721 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS ;;
21722 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS ;;
21723 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
21724 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
21725 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
21726 case "`uname -r`" in
21727 1.
*|
2.
[0123]*) : ;;
21728 *) printf "%s\n" "#define PGRP_PIPE 1" >>confdefs.h
21731 netbsd
*|openbsd
*) LOCAL_CFLAGS
="-DDEV_FD_STAT_BROKEN" ;;
21732 freebsd
*|midnightbsd
*) LOCAL_CFLAGS
='-DHEREDOC_PIPESIZE=4096' ;;
21733 *qnx
[67]*) LOCAL_LIBS
="-lncurses" ;;
21734 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
21735 powerux
*) LOCAL_LIBS
="-lgen" ;;
21736 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
21737 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
21738 *openstep
*) LOCAL_CFLAGS
="-D__APPLE_CC__" ;;
21741 case "${host_os}-${CC}" in
21742 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
21743 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
21744 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
21745 bsdi5
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
21746 hpux11
*-gcc*) LOCAL_LDFLAGS
="-Wl,-E" ;; # allow dynamic loading
21749 case "${host_os}" in
21751 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
21752 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
21754 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
21755 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
21756 midnightbsd
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
21759 case "$host_cpu" in
21760 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
21763 case "$host_cpu-$host_os" in
21764 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
21767 case "$host_cpu-$host_vendor-$host_os" in
21768 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
21769 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
21772 # turn off paren warnings in gcc
21773 #CFLAGS="$CFLAGS ${STYLE_CFLAGS}"
21776 # Shared object configuration section. These values are generated by
21777 # ${srcdir}/support/shobj-conf
21779 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
21782 printf %s
"checking shared object configuration for loadable builtins... " >&6; }
21783 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
21791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
21792 printf "%s\n" "$SHOBJ_STATUS" >&6; }
21794 SHOBJ_STATUS
=unsupported
21798 # try to create a directory tree if the source is elsewhere
21799 # this should be packaged into a script accessible via ${srcdir}/support
21802 *) for d
in doc tests support lib examples
; do # dirs
21803 test -d $d || mkdir
$d
21805 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
21806 test -d lib
/$ld || mkdir lib
/$ld
21808 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
21809 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
21814 case "$BUILD_DIR" in
21815 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
21819 if test -z "$localedir"; then
21820 localedir
='${datarootdir}/locale'
21822 if test -z "$datarootdir"; then
21823 datarootdir
='${prefix}/share'
21831 # Some versions of autoconf don't substitute these automatically
21835 # directory where we install dynamically loadable builtins
21836 if test -z "$loadablesdir"; then
21837 loadablesdir
='${libdir}/bash'
21840 if test -z "$headersdir"; then
21841 headersdir
='$(includedir)/$(PACKAGE_NAME)'
21863 #AC_SUBST(ALLOCA_SOURCE)
21864 #AC_SUBST(ALLOCA_OBJECT)
21866 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/Makefile.sample examples/loadables/perl/Makefile support/bash.pc support/bashbug.sh"
21869 ac_config_commands
="$ac_config_commands stamp-h"
21872 cat >confcache
<<\_ACEOF
21873 # This file is a shell script that caches the results of configure
21874 # tests run on this system so they can be shared between configure
21875 # scripts and configure runs, see configure's option --config-cache.
21876 # It is not useful on other systems. If it contains results you don't
21877 # want to keep, you may remove or edit it.
21879 # config.status only pays attention to the cache file if you give it
21880 # the --recheck option to rerun configure.
21882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21884 # following values.
21888 # The following way of writing the cache mishandles newlines in values,
21889 # but we know of no workaround that is simple, portable, and efficient.
21890 # So, we kill variables containing newlines.
21891 # Ultrix sh set writes to stderr and can't be redirected directly,
21892 # and sets the high bit in the cache file unless we assign to the vars.
21894 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21895 eval ac_val
=\$
$ac_var
21899 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21900 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21903 _ | IFS | as_nl
) ;; #(
21904 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21905 *) { eval $ac_var=; unset $ac_var;} ;;
21911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21912 *${as_nl}ac_space
=\
*)
21913 # `set' does not quote correctly, so add quotes: double-quote
21914 # substitution turns \\\\ into \\, and sed turns \\ into \.
21917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21920 # `set' quotes correctly as required by POSIX, so do not add quotes.
21921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21930 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21934 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21935 if test -w "$cache_file"; then
21936 if test "x$cache_file" != "x/dev/null"; then
21937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21938 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21939 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
21940 cat confcache
>"$cache_file"
21942 case $cache_file in #(
21944 mv -f confcache
"$cache_file"$$
&&
21945 mv -f "$cache_file"$$
"$cache_file" ;; #(
21947 mv -f confcache
"$cache_file" ;;
21952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21953 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21958 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21959 # Let make expand exec_prefix.
21960 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21962 DEFS
=-DHAVE_CONFIG_H
21967 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21968 # 1. Remove the extension, and $U if already installed.
21969 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21970 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21972 # will be set to the directory where LIBOBJS objects are built.
21973 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21974 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
21976 LIBOBJS
=$ac_libobjs
21978 LTLIBOBJS
=$ac_ltlibobjs
21983 : "${CONFIG_STATUS=./config.status}"
21985 ac_clean_files_save
=$ac_clean_files
21986 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21988 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21990 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21992 # Generated by $as_me.
21993 # Run this file to recreate the current configuration.
21994 # Compiler output produced by configure, useful for debugging
21995 # configure, is in config.log if it exists.
21998 ac_cs_recheck=false
22001 SHELL=\${CONFIG_SHELL-$SHELL}
22004 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22005 ## -------------------- ##
22006 ## M4sh Initialization. ##
22007 ## -------------------- ##
22009 # Be more Bourne compatible
22010 DUALCASE
=1; export DUALCASE
# for MKS sh
22012 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
22016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22017 # is contrary to our usage. Disable this feature.
22018 alias -g '${1+"$@"}'='"$@"'
22019 setopt NO_GLOB_SUBST
22021 case `(set -o) 2>/dev/null` in #(
22031 # Reset variables that may have inherited troublesome values from
22034 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22035 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22036 # side effect of setting IFS to empty, thus disabling word splitting.)
22037 # Quoting is to prevent editors from complaining about space-tab.
22047 # Ensure predictable behavior from utilities with locale-dependent output.
22053 # We cannot yet rely on "unset" to work, but we need these variables
22054 # to be unset--not just set to an empty or harmless value--now, to
22055 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22056 # also avoids known problems related to "unset" and subshell syntax
22057 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22058 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
22059 do eval test \
${$as_var+y} \
22060 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22063 # Ensure that fds 0, 1, and 2 are open.
22064 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
22065 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
22066 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
22068 # The user is always right.
22069 if ${PATH_SEPARATOR+false} :; then
22071 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
22072 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
22078 # Find who we are. Look in the path if we contain no directory separator.
22081 *[\\/]* ) as_myself
=$0 ;;
22082 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22083 for as_dir
in $PATH
22086 case $as_dir in #(((
22089 *) as_dir
=$as_dir/ ;;
22091 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
22097 # We did not find ourselves, most probably we were run as `sh COMMAND'
22098 # in which case we are not to be found in the path.
22099 if test "x$as_myself" = x
; then
22102 if test ! -f "$as_myself"; then
22103 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22109 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22110 # ----------------------------------------
22111 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22112 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22113 # script with STATUS, using 1 if that was 0.
22116 as_status
=$1; test $as_status -eq 0 && as_status
=1
22118 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22121 printf "%s\n" "$as_me: error: $2" >&2
22122 as_fn_exit
$as_status
22127 # as_fn_set_status STATUS
22128 # -----------------------
22129 # Set $? to STATUS, without forking.
22130 as_fn_set_status
()
22133 } # as_fn_set_status
22135 # as_fn_exit STATUS
22136 # -----------------
22137 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22141 as_fn_set_status
$1
22147 # Portably unset VAR.
22150 { eval $1=; unset $1;}
22152 as_unset
=as_fn_unset
22154 # as_fn_append VAR VALUE
22155 # ----------------------
22156 # Append the text in VALUE to the end of the definition contained in VAR. Take
22157 # advantage of any shell optimizations that allow amortized linear growth over
22158 # repeated appends, instead of the typical quadratic growth present in naive
22160 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
22162 eval 'as_fn_append ()
22173 # as_fn_arith ARG...
22174 # ------------------
22175 # Perform arithmetic evaluation on the ARGs, and store the result in the
22176 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22177 # must be portable across $(()) and expr.
22178 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
22180 eval 'as_fn_arith ()
22187 as_val
=`expr "$@" || test $? -eq 1`
22192 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22193 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22199 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22200 as_basename
=basename
22205 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22211 as_me
=`$as_basename -- "$0" ||
22212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22213 X"$0" : 'X\(//\)$' \| \
22214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22215 printf "%s\n" X/"$0" |
22216 sed '/^.*\/\([^/][^/]*\)\/*$/{
22230 # Avoid depending upon Character Ranges.
22231 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22232 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22233 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22234 as_cr_digits
='0123456789'
22235 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22238 # Determine whether it's possible to make 'echo' print without a newline.
22239 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22240 # for compatibility with existing Makefiles.
22241 ECHO_C
= ECHO_N
= ECHO_T
=
22242 case `echo -n x` in #(((((
22244 case `echo 'xy\c'` in
22245 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22247 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22254 # For backward compatibility with old third-party macros, we provide
22255 # the shell variables $as_echo and $as_echo_n. New code should use
22256 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22257 as_echo
='printf %s\n'
22258 as_echo_n
='printf %s'
22260 rm -f conf$$ conf$$.exe conf$$.
file
22261 if test -d conf$$.dir
; then
22262 rm -f conf$$.dir
/conf$$.
file
22265 mkdir conf$$.dir
2>/dev
/null
22267 if (echo >conf$$.
file) 2>/dev
/null
; then
22268 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22270 # ... but there are two gotchas:
22271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22273 # In both cases, we have to default to `cp -pR'.
22274 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22276 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22284 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22285 rmdir conf$$.dir
2>/dev
/null
22290 # Create "$as_dir" as a directory, including parents if necessary.
22295 -*) as_dir
=.
/$as_dir;;
22297 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22301 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22302 *) as_qdir
=$as_dir;;
22304 as_dirs
="'$as_qdir' $as_dirs"
22305 as_dir
=`$as_dirname -- "$as_dir" ||
22306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22307 X"$as_dir" : 'X\(//\)[^/]' \| \
22308 X"$as_dir" : 'X\(//\)$' \| \
22309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22310 printf "%s\n" X"$as_dir" |
22311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22315 /^X\(\/\/\)[^/].*/{
22328 test -d "$as_dir" && break
22330 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22331 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
22335 if mkdir
-p .
2>/dev
/null
; then
22336 as_mkdir_p
='mkdir -p "$as_dir"'
22338 test -d .
/-p && rmdir .
/-p
22343 # as_fn_executable_p FILE
22344 # -----------------------
22345 # Test if FILE is an executable regular file.
22346 as_fn_executable_p
()
22348 test -f "$1" && test -x "$1"
22349 } # as_fn_executable_p
22350 as_test_x
='test -x'
22351 as_executable_p
=as_fn_executable_p
22353 # Sed expression to map a string onto a valid CPP name.
22354 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22356 # Sed expression to map a string onto a valid variable name.
22357 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22361 ## ----------------------------------- ##
22362 ## Main body of $CONFIG_STATUS script. ##
22363 ## ----------------------------------- ##
22365 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
22367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22368 # Save the log message, to keep $0 and so on meaningful, and to
22369 # report actual input values of CONFIG_FILES etc. instead of their
22370 # values after options handling.
22372 This file was extended by bash $as_me 5.2-release, which was
22373 generated by GNU Autoconf 2.71. Invocation command line was
22375 CONFIG_FILES = $CONFIG_FILES
22376 CONFIG_HEADERS = $CONFIG_HEADERS
22377 CONFIG_LINKS = $CONFIG_LINKS
22378 CONFIG_COMMANDS = $CONFIG_COMMANDS
22381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22386 case $ac_config_files in *"
22387 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22390 case $ac_config_headers in *"
22391 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22396 # Files that config.status was made for.
22397 config_files="$ac_config_files"
22398 config_headers="$ac_config_headers"
22399 config_commands="$ac_config_commands"
22403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22405 \`$as_me' instantiates files and other configuration actions
22406 from templates according to the current configuration. Unless the files
22407 and actions are specified as TAGs, all are instantiated by default.
22409 Usage: $0 [OPTION]... [TAG]...
22411 -h, --help print this help, then exit
22412 -V, --version print version number and configuration settings, then exit
22413 --config print configuration, then exit
22414 -q, --quiet, --silent
22415 do not print progress messages
22416 -d, --debug don't remove temporary files
22417 --recheck update $as_me by reconfiguring in the same conditions
22418 --file=FILE[:TEMPLATE]
22419 instantiate the configuration file FILE
22420 --header=FILE[:TEMPLATE]
22421 instantiate the configuration header FILE
22423 Configuration files:
22426 Configuration headers:
22429 Configuration commands:
22432 Report bugs to <bug-bash@gnu.org>."
22435 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22436 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22438 ac_cs_config='$ac_cs_config_escaped'
22440 bash config.status 5.2-release
22441 configured by $0, generated by GNU Autoconf 2.71,
22442 with options \\"\$ac_cs_config\\"
22444 Copyright (C) 2021 Free Software Foundation, Inc.
22445 This config.status script is free software; the Free Software Foundation
22446 gives unlimited permission to copy, distribute and modify it."
22452 test -n "\$AWK" || AWK=awk
22455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22456 # The default lists apply if the user does not specify any file.
22462 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22463 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22467 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22479 # Handling of the options.
22480 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22482 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22483 printf "%s\n" "$ac_cs_version"; exit ;;
22484 --config |
--confi |
--conf |
--con |
--co |
--c )
22485 printf "%s\n" "$ac_cs_config"; exit ;;
22486 --debug |
--debu |
--deb |
--de |
--d |
-d )
22488 --file |
--fil |
--fi |
--f )
22491 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22492 '') as_fn_error $?
"missing file argument" ;;
22494 as_fn_append CONFIG_FILES
" '$ac_optarg'"
22495 ac_need_defaults
=false
;;
22496 --header |
--heade |
--head |
--hea )
22499 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22501 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
22502 ac_need_defaults
=false
;;
22504 # Conflict between --help and --header
22505 as_fn_error $?
"ambiguous option: \`$1'
22506 Try \`$0 --help' for more information.";;
22507 --help |
--hel |
-h )
22508 printf "%s\n" "$ac_cs_usage"; exit ;;
22509 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22510 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22513 # This is an error.
22514 -*) as_fn_error $?
"unrecognized option: \`$1'
22515 Try \`$0 --help' for more information." ;;
22517 *) as_fn_append ac_config_targets
" $1"
22518 ac_need_defaults
=false
;;
22524 ac_configure_extra_args
=
22526 if $ac_cs_silent; then
22528 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22533 if \$ac_cs_recheck; then
22534 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22536 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22537 CONFIG_SHELL='$SHELL'
22538 export CONFIG_SHELL
22543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22548 ## Running $as_me. ##
22550 printf "%s\n" "$ac_log"
22554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22558 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22559 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
22560 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
22561 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22562 LINGUAS="${LINGUAS-%UNSET%}"
22567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22569 # Handling of arguments.
22570 for ac_config_target
in $ac_config_targets
22572 case $ac_config_target in
22573 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
22574 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
22575 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22576 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
22577 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
22578 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
22579 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
22580 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
22581 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
22582 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
22583 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
22584 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
22585 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
22586 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
22587 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
22588 "examples/loadables/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
22589 "examples/loadables/Makefile.sample") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile.sample" ;;
22590 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
22591 "support/bash.pc") CONFIG_FILES
="$CONFIG_FILES support/bash.pc" ;;
22592 "support/bashbug.sh") CONFIG_FILES
="$CONFIG_FILES support/bashbug.sh" ;;
22593 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
22595 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22600 # If the user did not use the arguments to specify the items to instantiate,
22601 # then the envvar interface is used. Set only those that are not.
22602 # We use the long form for the default assignment because of an extremely
22603 # bizarre bug on SunOS 4.1.3.
22604 if $ac_need_defaults; then
22605 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
22606 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
22607 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
22610 # Have a temporary directory for convenience. Make it in the build tree
22611 # simply because there is no reason against having it here, and in addition,
22612 # creating and moving files from /tmp can sometimes cause problems.
22613 # Hook for its removal unless debugging.
22614 # Note that there is a small window in which the directory will not be cleaned:
22615 # after its creation but before its name has been assigned to `$tmp'.
22619 trap 'exit_status=$?
22620 : "${ac_tmp:=$tmp}"
22621 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22623 trap 'as_fn_exit 1' 1 2 13 15
22625 # Create a (secure) tmp directory for tmp files.
22628 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22632 tmp
=.
/conf$$
-$RANDOM
22633 (umask 077 && mkdir
"$tmp")
22634 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
22637 # Set up the scripts for CONFIG_FILES section.
22638 # No need to generate them if there are no CONFIG_FILES.
22639 # This happens for instance with `./config.status config.h'.
22640 if test -n "$CONFIG_FILES"; then
22643 ac_cr
=`echo X | tr X '\015'`
22644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22645 # But we know of no other shell where ac_cr would be empty at this
22646 # point, so we can use a bashism as a fallback.
22647 if test "x$ac_cr" = x
; then
22648 eval ac_cr
=\$
\'\\r
\'
22650 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22654 ac_cs_awk_cr
=$ac_cr
22657 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22662 echo "cat >conf$$subs.awk <<_ACEOF" &&
22663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22665 } >conf$$subs.sh ||
22666 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
22667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22669 for ac_last_try in false false false false false :; do
22670 . ./conf$$subs.sh ||
22671 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
22673 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22674 if test $ac_delim_n = $ac_delim_num; then
22676 elif $ac_last_try; then
22677 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
22679 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22682 rm -f conf$$subs.sh
22684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22685 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
22689 s/^/S["/; s
/!.
*/"]=/
22699 s/\(.\{148\}\)..*/\1/
22701 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22706 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22713 s/\(.\{148\}\)..*/\1/
22715 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22719 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22724 ' <conf$$subs.awk | sed '
22729 ' >>$CONFIG_STATUS || ac_write_fail=1
22730 rm -f conf$$subs.awk
22731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22733 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
22734 for (key in S) S_is_set[key] = 1
22740 nfields = split(line, field, "@
")
22742 len = length(field[1])
22743 for (i = 2; i < nfields; i++) {
22745 keylen = length(key)
22746 if (S_is_set[key]) {
22748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22749 len += length(value) + length(field[++i])
22760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22761 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22762 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22765 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
22766 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
22769 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22770 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
22771 # trailing colons and then remove the whole line if VPATH becomes empty
22772 # (actually we leave an empty line to preserve line numbers).
22773 if test "x
$srcdir" = x.; then
22774 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22793 fi # test -n "$CONFIG_FILES"
22795 # Set up the scripts for CONFIG_HEADERS section.
22796 # No need to generate them if there are no CONFIG_HEADERS.
22797 # This happens for instance with `./config.status Makefile'.
22798 if test -n "$CONFIG_HEADERS"; then
22799 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
22803 # Transform confdefs.h into an awk script `defines.awk', embedded as
22804 # here-document in config.status, that substitutes the proper values into
22805 # config.h.in to produce config.h.
22807 # Create a delimiter string that does not exist in confdefs.h, to ease
22808 # handling of long lines.
22810 for ac_last_try in false false :; do
22811 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
22812 if test -z "$ac_tt"; then
22814 elif $ac_last_try; then
22815 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
22817 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22821 # For the awk script, D is an array of macro values keyed by name,
22822 # likewise P contains macro parameters if any. Preserve backslash
22823 # newline sequences.
22825 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22827 s/.\{148\}/&'"$ac_delim"'/g
22830 s/^[ ]*#[ ]*define[ ][ ]*/ /
22837 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22839 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22844 D["\
1"]=" \
3\\\\\\n
"\\/p
22846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22851 s/.\{148\}/&'"$ac_delim"'/g
22856 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22859 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22861 ' <confdefs.h | sed '
22862 s/'"$ac_delim"'/"\\\
22863 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866 for (key in D) D_is_set[key] = 1
22869 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22871 split(line, arg, " ")
22872 if (arg[1] == "#") {
22876 defundef
= substr
(arg
[1], 2)
22879 split(mac1
, mac2
, "(") #)
22881 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22882 if (D_is_set
[macro
]) {
22883 # Preserve the white space surrounding the "#".
22884 print prefix
"define", macro P
[macro
] D
[macro
]
22887 # Replace #undef with comments. This is necessary, for example,
22888 # in the case of _POSIX_SOURCE, which is predefined and required
22889 # on some systems where configure will not decide to define it.
22890 if (defundef
== "undef") {
22891 print
"/*", prefix defundef
, macro
, "*/"
22899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22900 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
22901 fi # test -n "$CONFIG_HEADERS"
22904 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22909 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22911 case $ac_mode$ac_tag in
22913 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
22914 :[FH
]-) ac_tag
=-:-;;
22915 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22932 -) ac_f
="$ac_tmp/stdin";;
22933 *) # Look for the file first in the build tree, then in the source tree
22934 # (if the path is not absolute). The absolute path cannot be DOS-style,
22935 # because $ac_f cannot contain `:'.
22939 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22941 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22943 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22944 as_fn_append ac_file_inputs
" '$ac_f'"
22947 # Let's still pretend it is `configure' which instantiates (i.e., don't
22948 # use $as_me), people would be surprised to read:
22949 # /* config.h. Generated by config.status. */
22950 configure_input
='Generated from '`
22951 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22953 if test x
"$ac_file" != x-
; then
22954 configure_input
="$ac_file. $configure_input"
22955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22956 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22958 # Neutralize special characters interpreted by sed in replacement strings.
22959 case $configure_input in #(
22960 *\
&* |
*\|
* |
*\\* )
22961 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
22962 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22963 *) ac_sed_conf_input
=$configure_input;;
22967 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
22968 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
22973 ac_dir
=`$as_dirname -- "$ac_file" ||
22974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22975 X"$ac_file" : 'X\(//\)[^/]' \| \
22976 X"$ac_file" : 'X\(//\)$' \| \
22977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22978 printf "%s\n" X"$ac_file" |
22979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22983 /^X\(\/\/\)[^/].*/{
22996 as_dir
="$ac_dir"; as_fn_mkdir_p
23000 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23002 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23003 # A ".." for each directory in $ac_dir_suffix.
23004 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23005 case $ac_top_builddir_sub in
23006 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23007 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23010 ac_abs_top_builddir
=$ac_pwd
23011 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23012 # for backward compatibility:
23013 ac_top_builddir
=$ac_top_build_prefix
23016 .
) # We are building in place.
23018 ac_top_srcdir
=$ac_top_builddir_sub
23019 ac_abs_top_srcdir
=$ac_pwd ;;
23020 [\\/]* | ?
:[\\/]* ) # Absolute name.
23021 ac_srcdir
=$srcdir$ac_dir_suffix;
23022 ac_top_srcdir
=$srcdir
23023 ac_abs_top_srcdir
=$srcdir ;;
23024 *) # Relative name.
23025 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23026 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23027 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23029 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23039 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23040 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23042 ac_MKDIR_P
=$MKDIR_P
23044 [\\/$
]* | ?
:[\\/]* ) ;;
23045 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23050 # If the template does not know about datarootdir, expand it.
23051 # FIXME: This hack should be removed a few years after 2.60.
23052 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23063 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23064 *datarootdir
*) ac_datarootdir_seen
=yes;;
23065 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23067 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23070 ac_datarootdir_hack='
23071 s&@datadir@&$datadir&g
23072 s&@docdir@&$docdir&g
23073 s&@infodir@&$infodir&g
23074 s&@localedir@&$localedir&g
23075 s&@mandir@&$mandir&g
23076 s&\\\${datarootdir}&$datarootdir&g' ;;
23080 # Neutralize VPATH when `$srcdir' = `.'.
23081 # Shell code in configure.ac might set extrasub.
23082 # FIXME: do we really want to maintain this feature?
23083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23084 ac_sed_extra="$ac_vpsub
23087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23089 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23090 s|@configure_input@|
$ac_sed_conf_input|
;t t
23091 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23092 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23093 s
&@srcdir@
&$ac_srcdir&;t t
23094 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23095 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23096 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23097 s
&@builddir@
&$ac_builddir&;t t
23098 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23099 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23100 s
&@INSTALL@
&$ac_INSTALL&;t t
23101 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23102 $ac_datarootdir_hack
23104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
23105 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
23107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
23109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23110 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
23111 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23112 which seems to be undefined. Please make sure it is defined" >&5
23113 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23114 which seems to be undefined. Please make sure it is defined" >&2;}
23116 rm -f "$ac_tmp/stdin"
23118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23127 if test x"$ac_file" != x-; then
23129 printf "%s\n" "/* $configure_input */" >&1 \
23130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23131 } >"$ac_tmp/config.h" \
23132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23135 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23138 mv "$ac_tmp/config.h" "$ac_file" \
23139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23142 printf "%s\n" "/* $configure_input */" >&1 \
23143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23144 || as_fn_error $? "could not create -" "$LINENO" 5
23148 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23149 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23154 case $ac_file$ac_mode in
23155 "po-directories":C)
23156 for ac_file in $CONFIG_FILES; do
23157 # Support "outfile[:infile[:infile...]]"
23159 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
23161 # PO directories have a Makefile.in generated from Makefile.in.in.
23162 case "$ac_file" in */Makefile.in)
23163 # Adjust a relative srcdir.
23164 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
23165 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
23166 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
23167 # In autoconf-2.13 it is called $ac_given_srcdir.
23168 # In autoconf-2.50 it is called $srcdir.
23169 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23170 case "$ac_given_srcdir" in
23171 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
23172 /*) top_srcdir="$ac_given_srcdir" ;;
23173 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23175 # Treat a directory as a PO directory if and only if it has a
23176 # POTFILES.in file. This allows packages to have multiple PO
23177 # directories under different names or in different locations.
23178 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23179 rm -f "$ac_dir/POTFILES"
23180 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23181 gt_tab=`printf '\t'`
23182 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23183 POMAKEFILEDEPS="POTFILES.in"
23184 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23185 # on $ac_dir but don't depend on user-specified configuration
23187 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23188 # The LINGUAS file contains the set of available languages.
23189 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23190 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
23192 ALL_LINGUAS
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23193 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
23195 # The set of available languages was given in configure.in.
23196 ALL_LINGUAS
=$OBSOLETE_ALL_LINGUAS
23199 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23200 # Compute UPDATEPOFILES
23201 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23202 # Compute DUMMYPOFILES
23203 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23205 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23206 case "$ac_given_srcdir" in
23208 *) srcdirpre
='$(srcdir)/' ;;
23214 for lang
in $ALL_LINGUAS; do
23215 POFILES
="$POFILES $srcdirpre$lang.po"
23216 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
23217 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
23218 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
23220 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23221 # environment variable.
23223 if test -n "$ALL_LINGUAS"; then
23224 for presentlang
in $ALL_LINGUAS; do
23226 if test "%UNSET%" != "$LINGUAS"; then
23227 desiredlanguages
="$LINGUAS"
23229 desiredlanguages
="$ALL_LINGUAS"
23231 for desiredlang
in $desiredlanguages; do
23232 # Use the presentlang catalog if desiredlang is
23233 # a. equal to presentlang, or
23234 # b. a variant of presentlang (because in this case,
23235 # presentlang can be used as a fallback for messages
23236 # which are not translated in the desiredlang catalog).
23237 case "$desiredlang" in
23238 "$presentlang"*) useit
=yes;;
23241 if test $useit = yes; then
23242 INST_LINGUAS
="$INST_LINGUAS $presentlang"
23247 if test -n "$INST_LINGUAS"; then
23248 for lang
in $INST_LINGUAS; do
23249 CATALOGS
="$CATALOGS $lang.gmo"
23252 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
23253 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23254 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
23255 if test -f "$f"; then
23257 *.orig |
*.bak |
*~
) ;;
23258 *) cat "$f" >> "$ac_dir/Makefile" ;;
23266 "stamp-h":C
) echo timestamp
> stamp-h
;;
23274 ac_clean_files
=$ac_clean_files_save
23276 test $ac_write_fail = 0 ||
23277 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
23280 # configure is writing to config.log, and then calls config.status.
23281 # config.status does its own redirection, appending to config.log.
23282 # Unfortunately, on DOS this fails, as config.log is still kept open
23283 # by configure, so config.status won't be able to write to it; its
23284 # output is simply discarded. So we exec the FD to /dev/null,
23285 # effectively closing config.log, so it can be properly (re)opened and
23286 # appended to by config.status. When coming back to configure, we
23287 # need to make the FD available again.
23288 if test "$no_create" != yes; then
23290 ac_config_status_args
=
23291 test "$silent" = yes &&
23292 ac_config_status_args
="$ac_config_status_args --quiet"
23294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23297 # would make configure fail if this is the last instruction.
23298 $ac_cs_success || as_fn_exit
1
23300 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23302 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}