2 @%:@ From configure.ac for Bush 5.1, version 5.022.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.69 for bush 5.1-release.
6 @%:@ Report bugs to <bug-bush@gnu.org>.
9 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 @%:@ This configure script is free software; the Free Software Foundation
13 @%:@ gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in @%:@(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in @%:@(
174 set -o posix ;; @%:@(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir=.
218 case $as_dir in @%:@(
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
241 if test "x$CONFIG_SHELL" != x; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 *v*x* | *x*v* ) as_opts=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bush@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 @%:@ Portably unset VAR.
294 { eval $1=; unset $1;}
298 @%:@ as_fn_set_status STATUS
299 @%:@ -----------------------
300 @%:@ Set @S|@? to STATUS, without forking.
304 } @%:@ as_fn_set_status
306 @%:@ as_fn_exit STATUS
307 @%:@ -----------------
308 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
323 -*) as_dir=./$as_dir;;
325 test -d "$as_dir" || eval $as_mkdir_p || {
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364 @%:@ as_fn_executable_p FILE
365 @%:@ -----------------------
366 @%:@ Test if FILE is an executable regular file.
367 as_fn_executable_p ()
369 test -f "$1" && test -x "$1"
370 } @%:@ as_fn_executable_p
371 @%:@ as_fn_append VAR VALUE
372 @%:@ ----------------------
373 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
374 @%:@ advantage of any shell optimizations that allow amortized linear growth over
375 @%:@ repeated appends, instead of the typical quadratic growth present in naive
376 @%:@ implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
389 @%:@ as_fn_arith ARG...
390 @%:@ ------------------
391 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
392 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
393 @%:@ must be portable across @S|@(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 as_val=`expr "$@" || test $? -eq 1`
407 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
408 @%:@ ----------------------------------------
409 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 @%:@ script with STATUS, using 1 if that was 0.
414 as_status=$1; test $as_status -eq 0 && as_status=1
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in @%:@(((((
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
522 mkdir conf$$.dir 2>/dev/null
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 elif ln conf$$.file conf$$ 2>/dev/null; then
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
547 test -d ./-p && rmdir ./-p
552 as_executable_p=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" || exec 7<&0 </dev/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix=/usr/local
574 ac_config_libobj_dir=.
581 # Identity of this package.
583 PACKAGE_TARNAME='bush'
584 PACKAGE_VERSION='5.1-release'
585 PACKAGE_STRING='bush 5.1-release'
586 PACKAGE_BUGREPORT='bug-bush@gnu.org'
589 ac_unique_file="src/shell.h"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
628 gl_use_threads_default=
630 ac_subst_vars='LTLIBOBJS
655 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
656 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
657 TIME_H_DEFINES_STRUCT_TIMESPEC
666 INTL_LIBTOOL_SUFFIX_PREFIX
673 BUILD_INCLUDED_LIBINTL
677 HAVE_NAMELESS_LOCALES
683 INTL_DEFAULT_VERBOSITY
687 GNULIB_OVERRIDES_WINT_T
703 XGETTEXT_EXTRA_OPTIONS
711 GETTEXT_MACRO_VERSION
805 program_transform_name
818 enable_option_checking
823 with_installed_readline
824 enable_minimal_config
826 enable_arith_for_command
827 enable_array_variables
829 enable_brace_expansion
830 enable_casemod_attributes
831 enable_casemod_expansions
832 enable_command_timing
837 enable_dev_fd_stat_broken
838 enable_direxpand_default
839 enable_directory_stack
840 enable_disabled_builtins
841 enable_dparen_arithmetic
843 enable_extended_glob_default
844 enable_function_import
845 enable_glob_asciiranges_default
850 enable_net_redirections
851 enable_process_substitution
853 enable_prompt_string_decoding
857 enable_separate_helpfiles
858 enable_single_help_strings
859 enable_strict_posix_default
860 enable_usg_echo_default
861 enable_xpg_echo_default
872 with_included_gettext
875 ac_precious_vars='build_alias
893 # Initialize some variables set by options.
895 ac_init_version=false
896 ac_unrecognized_opts=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
907 program_transform_name=s,x,x,
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 runstatedir='${localstatedir}/run'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1182 -runstatedir | --runstatedir | --runstatedi | --runstated \
1183 | --runstate | --runstat | --runsta | --runst | --runs \
1184 | --run | --ru | --r)
1185 ac_prev=runstatedir ;;
1186 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1187 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1188 | --run=* | --ru=* | --r=*)
1189 runstatedir=$ac_optarg ;;
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1210 -site=* | --site=* | --sit=*)
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1266 eval with_$ac_useropt=no ;;
1269 # Obsolete; use --with-x.
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir runstatedir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1337 # Be sure to have absolute directory names.
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1441 \`configure' configures bush 5.1-release to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE. See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 @<:@@S|@ac_default_prefix@:>@
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bush@:>@
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of bush 5.1-release:";;
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-minimal-config a minimal sh-like configuration
1516 --enable-alias enable shell aliases
1517 --enable-arith-for-command
1518 enable arithmetic for command
1519 --enable-array-variables
1520 include shell array variables
1521 --enable-bang-history turn on csh-style history substitution
1522 --enable-brace-expansion
1523 include brace expansion
1524 --enable-casemod-attributes
1525 include case-modifying variable attributes
1526 --enable-casemod-expansions
1527 include case-modifying word expansions
1528 --enable-command-timing enable the time reserved word and command timing
1529 --enable-cond-command enable the conditional command
1530 --enable-cond-regexp enable extended regular expression matching in
1531 conditional commands
1532 --enable-coprocesses enable coprocess support and the coproc reserved
1534 --enable-debugger enable support for bush debugger
1535 --enable-dev-fd-stat-broken
1536 enable this option if stat on /dev/fd/N and fstat on
1537 file descriptor N don't return the same results
1538 --enable-direxpand-default
1539 enable the direxpand shell option by default
1540 --enable-directory-stack
1541 enable builtins pushd/popd/dirs
1542 --enable-disabled-builtins
1543 allow disabled builtins to still be invoked
1544 --enable-dparen-arithmetic
1545 include ((...)) command
1546 --enable-extended-glob include ksh-style extended pattern matching
1547 --enable-extended-glob-default
1548 force extended pattern matching to be enabled by
1550 --enable-function-import
1551 allow bush to import exported function definitions
1553 --enable-glob-asciiranges-default
1554 force bracket range expressions in pattern matching
1555 to use the C locale by default
1556 --enable-help-builtin include the help builtin
1557 --enable-history turn on command history
1558 --enable-job-control enable job control features
1559 --enable-multibyte enable multibyte characters if OS supports them
1560 --enable-net-redirections
1561 enable /dev/tcp/host/port redirection
1562 --enable-process-substitution
1563 enable process substitution
1564 --enable-progcomp enable programmable completion and the complete
1566 --enable-prompt-string-decoding
1567 turn on escape character decoding in prompts
1568 --enable-readline turn on command line editing
1569 --enable-restricted enable a restricted shell
1570 --enable-select include select command
1571 --enable-separate-helpfiles
1572 use external files for help builtin documentation
1573 --enable-single-help-strings
1574 store help documentation as a single string to ease
1576 --enable-strict-posix-default
1577 configure bush to be posix-conformant by default
1578 --enable-usg-echo-default
1579 a synonym for --enable-xpg-echo-default
1580 --enable-xpg-echo-default
1581 make the echo builtin expand escape sequences by
1583 --enable-mem-scramble scramble memory on calls to malloc and free
1584 --enable-profiling allow profiling with gprof
1585 --enable-static-link link bush statically, for use as a root shell
1586 --disable-largefile omit support for large files
1587 --disable-nls do not use Native Language Support
1588 --enable-threads={posix|solaris|pth|windows}
1589 specify multithreading API
1590 --disable-threads build without multithread safety
1591 --disable-rpath do not hardcode runtime library paths
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-afs if you are running AFS
1597 --with-bush-malloc use the Bush version of malloc
1598 --with-curses use the curses library instead of the termcap
1600 --with-gnu-malloc synonym for --with-bush-malloc
1601 --with-installed-readline
1602 use a version of the readline library that is
1604 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1605 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1606 --without-libpth-prefix don't search for libpth in includedir and libdir
1607 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1608 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1609 --with-included-gettext use the GNU gettext library included here
1610 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1611 --without-libintl-prefix don't search for libintl in includedir and libdir
1613 Some influential environment variables:
1615 location of bush debugger initialization file
1617 C compiler used when compiling binaries used only at build time
1619 Compilation options (CFLAGS) used when compiling binaries used
1622 Linker options (LDFLAGS) used when compiling binaries used only
1625 C preprocessor options (CPPFLAGS) used when compiling binaries
1626 used only at build time
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1635 YACC The `Yet Another Compiler Compiler' implementation to use.
1636 Defaults to the first program found out of: `bison -y', `byacc',
1638 YFLAGS The list of arguments that will be passed by default to @S|@YACC.
1639 This script will default YFLAGS to the empty string to avoid a
1640 default value of `-d' given by some make applications.
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1645 Report bugs to <bug-bush@gnu.org>.
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1675 .) # We are building in place.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1708 bush configure 5.1-release
1709 generated by GNU Autoconf 2.69
1711 Copyright (C) 2012 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 @%:@ ac_fn_c_try_compile LINENO
1723 @%:@ --------------------------
1724 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1758 } @%:@ ac_fn_c_try_compile
1760 @%:@ ac_fn_c_try_link LINENO
1761 @%:@ -----------------------
1762 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 test -x conftest$ac_exeext
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } @%:@ ac_fn_c_try_link
1806 @%:@ ac_fn_c_try_cpp LINENO
1807 @%:@ ----------------------
1808 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } > conftest.i && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } @%:@ ac_fn_c_try_cpp
1843 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 @%:@ -------------------------------------------------------
1845 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 @%:@ the include files in INCLUDES and setting the cache variable VAR
1848 ac_fn_c_check_header_mongrel ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if eval \${$3+:} false; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_header_compiler=yes
1872 ac_header_compiler=no
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886 ac_header_preproc=yes
1888 ac_header_preproc=no
1890 rm -f conftest.err conftest.i conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 ( $as_echo "## ------------------------------- ##
1914 ## Report this to bug-bush@gnu.org ##
1915 ## ------------------------------- ##"
1916 ) | sed "s/^/$as_me: WARNING: /" >&2
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1924 eval "$3=\$ac_header_compiler"
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } @%:@ ac_fn_c_check_header_mongrel
1934 @%:@ ac_fn_c_try_run LINENO
1935 @%:@ ----------------------
1936 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1937 @%:@ that executables *can* be run.
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_link"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>&5
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1952 { { case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_try") 2>&5
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; }; }; then :
1964 $as_echo "$as_me: program exited with status $ac_status" >&5
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=$ac_status
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } @%:@ ac_fn_c_try_run
1976 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1977 @%:@ -------------------------------------------------------
1978 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1979 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1980 ac_fn_c_check_header_compile ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1993 if ac_fn_c_try_compile "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } @%:@ ac_fn_c_check_header_compile
2007 @%:@ ac_fn_c_check_func LINENO FUNC VAR
2008 @%:@ ----------------------------------
2009 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2010 ac_fn_c_check_func ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2022 #define $2 innocuous_$2
2024 /* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char $2 (); below.
2026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2027 <limits.h> exists even on freestanding compilers. */
2030 # include <limits.h>
2032 # include <assert.h>
2037 /* Override any GCC internal prototype to avoid an error.
2038 Use char because int might match the return type of a GCC
2039 builtin and then its argument prototype would still apply. */
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined __stub_$2 || defined __stub___$2
2059 if ac_fn_c_try_link "$LINENO"; then :
2064 rm -f core conftest.err conftest.$ac_objext \
2065 conftest$ac_exeext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } @%:@ ac_fn_c_check_func
2074 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075 @%:@ -------------------------------------------
2076 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2077 @%:@ variable VAR accordingly.
2078 ac_fn_c_check_type ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2112 if ac_fn_c_try_compile "$LINENO"; then :
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } @%:@ ac_fn_c_check_type
2128 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2129 @%:@ ---------------------------------------------
2130 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2132 ac_fn_c_check_decl ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 as_decl_name=`echo $2|sed 's/ *(.*//'`
2136 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2138 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 @%:@ifndef $as_decl_name
2149 @%:@ifdef __cplusplus
2150 (void) $as_decl_use;
2152 (void) $as_decl_name;
2160 if ac_fn_c_try_compile "$LINENO"; then :
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } @%:@ ac_fn_c_check_decl
2174 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2175 @%:@ --------------------------------------------
2176 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2177 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2179 ac_fn_c_compute_int ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if test "$cross_compiling" = yes; then
2183 # Depending upon the size, compute the lo and hi bounds.
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2191 test_array @<:@0@:>@ = 0;
2192 return test_array @<:@0@:>@;
2198 if ac_fn_c_try_compile "$LINENO"; then :
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2208 test_array @<:@0@:>@ = 0;
2209 return test_array @<:@0@:>@;
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 ac_hi=$ac_mid; break
2218 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2219 if test $ac_lo -le $ac_mid; then
2223 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2235 test_array @<:@0@:>@ = 0;
2236 return test_array @<:@0@:>@;
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2251 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2252 test_array @<:@0@:>@ = 0;
2253 return test_array @<:@0@:>@;
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 ac_lo=$ac_mid; break
2262 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2263 if test $ac_mid -le $ac_hi; then
2267 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 # Binary search between lo and hi bounds.
2278 while test "x$ac_lo" != "x$ac_hi"; do
2279 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2287 test_array @<:@0@:>@ = 0;
2288 return test_array @<:@0@:>@;
2294 if ac_fn_c_try_compile "$LINENO"; then :
2297 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 case $ac_lo in @%:@((
2302 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2309 static long int longval () { return $2; }
2310 static unsigned long int ulongval () { return $2; }
2311 @%:@include <stdio.h>
2312 @%:@include <stdlib.h>
2317 FILE *f = fopen ("conftest.val", "w");
2322 long int i = longval ();
2325 fprintf (f, "%ld", i);
2329 unsigned long int i = ulongval ();
2332 fprintf (f, "%lu", i);
2334 /* Do not output a trailing newline, as this causes \r\n confusion
2335 on some platforms. */
2336 return ferror (f) || fclose (f) != 0;
2342 if ac_fn_c_try_run "$LINENO"; then :
2343 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2348 conftest.$ac_objext conftest.beam conftest.$ac_ext
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 as_fn_set_status $ac_retval
2355 } @%:@ ac_fn_c_compute_int
2357 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358 @%:@ ----------------------------------------------------
2359 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2360 @%:@ INCLUDES, setting cache variable VAR accordingly.
2361 ac_fn_c_check_member ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365 $as_echo_n "checking for $2.$3... " >&6; }
2366 if eval \${$4+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2392 if (sizeof ac_aggr.$3)
2398 if ac_fn_c_try_compile "$LINENO"; then :
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 } @%:@ ac_fn_c_check_member
2413 cat >config.log <<_ACEOF
2414 This file contains any messages produced by compilers while
2415 running configure, to aid debugging if configure makes a mistake.
2417 It was created by bush $as_me 5.1-release, which was
2418 generated by GNU Autoconf 2.69. Invocation command line was
2430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 $as_echo "PATH: $as_dir"
2470 # Keep a trace of the command line.
2471 # Strip out --no-create and --no-recursion so they do not pile up.
2472 # Strip out --silent because we don't want to record it for future runs.
2473 # Also quote any args containing shell meta-characters.
2474 # Make two passes to allow for proper duplicate-argument suppression.
2478 ac_must_keep_next=false
2484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2486 | -silent | --silent | --silen | --sile | --sil)
2489 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2492 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2494 as_fn_append ac_configure_args1 " '$ac_arg'"
2495 if test $ac_must_keep_next = true; then
2496 ac_must_keep_next=false # Got value, back to normal.
2499 *=* | --config-cache | -C | -disable-* | --disable-* \
2500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2502 | -with-* | --with-* | -without-* | --without-* | --x)
2503 case "$ac_configure_args0 " in
2504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2507 -* ) ac_must_keep_next=true ;;
2510 as_fn_append ac_configure_args " '$ac_arg'"
2515 { ac_configure_args0=; unset ac_configure_args0;}
2516 { ac_configure_args1=; unset ac_configure_args1;}
2518 # When interrupted or exit'd, cleanup temporary files, and complete
2519 # config.log. We remove comments because anyway the quotes in there
2520 # would cause problems or look ugly.
2521 # WARNING: Use '\'' to represent an apostrophe within the trap.
2522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2523 trap 'exit_status=$?
2524 # Save into config.log some information that might help in debugging.
2528 $as_echo "## ---------------- ##
2529 ## Cache variables. ##
2530 ## ---------------- ##"
2532 # The following way of writing the cache mishandles newlines in values,
2534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2535 eval ac_val=\$$ac_var
2539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2543 _ | IFS | as_nl) ;; #(
2544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2545 *) { eval $ac_var=; unset $ac_var;} ;;
2550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2551 *${as_nl}ac_space=\ *)
2553 "s/'\''/'\''\\\\'\'''\''/g;
2554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2564 $as_echo "## ----------------- ##
2565 ## Output variables. ##
2566 ## ----------------- ##"
2568 for ac_var in $ac_subst_vars
2570 eval ac_val=\$$ac_var
2572 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574 $as_echo "$ac_var='\''$ac_val'\''"
2578 if test -n "$ac_subst_files"; then
2579 $as_echo "## ------------------- ##
2580 ## File substitutions. ##
2581 ## ------------------- ##"
2583 for ac_var in $ac_subst_files
2585 eval ac_val=\$$ac_var
2587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2589 $as_echo "$ac_var='\''$ac_val'\''"
2594 if test -s confdefs.h; then
2595 $as_echo "## ----------- ##
2602 test "$ac_signal" != 0 &&
2603 $as_echo "$as_me: caught signal $ac_signal"
2604 $as_echo "$as_me: exit $exit_status"
2606 rm -f core *.core core.conftest.* &&
2607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2610 for ac_signal in 1 2 13 15; do
2611 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2616 rm -f -r conftest* confdefs.h
2618 $as_echo "/* confdefs.h */" > confdefs.h
2620 # Predefined preprocessor variables.
2622 cat >>confdefs.h <<_ACEOF
2623 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2626 cat >>confdefs.h <<_ACEOF
2627 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2630 cat >>confdefs.h <<_ACEOF
2631 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2634 cat >>confdefs.h <<_ACEOF
2635 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2638 cat >>confdefs.h <<_ACEOF
2639 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2642 cat >>confdefs.h <<_ACEOF
2643 @%:@define PACKAGE_URL "$PACKAGE_URL"
2647 # Let the site file select an alternate cache file if it wants to.
2648 # Prefer an explicitly selected file to automatically selected ones.
2651 if test -n "$CONFIG_SITE"; then
2652 # We do not want a PATH search for config.site.
2653 case $CONFIG_SITE in @%:@((
2654 -*) ac_site_file1=./$CONFIG_SITE;;
2655 */*) ac_site_file1=$CONFIG_SITE;;
2656 *) ac_site_file1=./$CONFIG_SITE;;
2658 elif test "x$prefix" != xNONE; then
2659 ac_site_file1=$prefix/share/config.site
2660 ac_site_file2=$prefix/etc/config.site
2662 ac_site_file1=$ac_default_prefix/share/config.site
2663 ac_site_file2=$ac_default_prefix/etc/config.site
2665 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2667 test "x$ac_site_file" = xNONE && continue
2668 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2670 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2671 sed 's/^/| /' "$ac_site_file" >&5
2673 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error $? "failed to load site script $ac_site_file
2676 See \`config.log' for more details" "$LINENO" 5; }
2680 if test -r "$cache_file"; then
2681 # Some versions of bash will fail to source /dev/null (special files
2682 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2683 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2685 $as_echo "$as_me: loading cache $cache_file" >&6;}
2687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2688 *) . "./$cache_file";;
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2693 $as_echo "$as_me: creating cache $cache_file" >&6;}
2697 gt_needs="$gt_needs need-ngettext"
2698 as_fn_append ac_header_list " stdlib.h"
2699 as_fn_append ac_header_list " unistd.h"
2700 as_fn_append ac_header_list " sys/param.h"
2701 as_fn_append ac_func_list " symlink"
2702 as_fn_append ac_func_list " uselocale"
2703 as_fn_append ac_header_list " xlocale.h"
2704 as_fn_append ac_header_list " sys/time.h"
2705 as_fn_append ac_func_list " alarm"
2706 as_fn_append ac_func_list " fpurge"
2707 as_fn_append ac_func_list " __fpurge"
2708 as_fn_append ac_func_list " snprintf"
2709 as_fn_append ac_func_list " vsnprintf"
2710 # Check that the precious variables saved in the cache have kept the same
2712 ac_cache_corrupted=false
2713 for ac_var in $ac_precious_vars; do
2714 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2715 eval ac_new_set=\$ac_env_${ac_var}_set
2716 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2717 eval ac_new_val=\$ac_env_${ac_var}_value
2718 case $ac_old_set,$ac_new_set in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2725 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2726 ac_cache_corrupted=: ;;
2729 if test "x$ac_old_val" != "x$ac_new_val"; then
2730 # differences in whitespace do not lead to failure.
2731 ac_old_val_w=`echo x $ac_old_val`
2732 ac_new_val_w=`echo x $ac_new_val`
2733 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2735 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2736 ac_cache_corrupted=:
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2739 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2740 eval $ac_var=\$ac_old_val
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2743 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2745 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2748 # Pass precious variables to config.status.
2749 if test "$ac_new_set" = set; then
2751 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2752 *) ac_arg=$ac_var=$ac_new_val ;;
2754 case " $ac_configure_args " in
2755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2756 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760 if $ac_cache_corrupted; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2764 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2765 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2767 ## -------------------- ##
2768 ## Main body of script. ##
2769 ## -------------------- ##
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 for ac_dir in ./support "$srcdir"/./support; do
2784 if test -f "$ac_dir/install-sh"; then
2786 ac_install_sh="$ac_aux_dir/install-sh -c"
2788 elif test -f "$ac_dir/install.sh"; then
2790 ac_install_sh="$ac_aux_dir/install.sh -c"
2792 elif test -f "$ac_dir/shtool"; then
2794 ac_install_sh="$ac_aux_dir/shtool install -c"
2798 if test -z "$ac_aux_dir"; then
2799 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2802 # These three variables are undocumented and unsupported,
2803 # and are intended to be withdrawn in a future Autoconf release.
2804 # They can cause serious problems if a builder's source tree is in a directory
2805 # whose full name contains unusual characters.
2806 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2807 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2808 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2811 ac_config_headers="$ac_config_headers config.h"
2817 case "$RELSTATUS" in
2818 alp*|bet*|dev*|rc*|releng*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2819 *) DEBUG= MALLOC_DEBUG= ;;
2822 # Make sure we can run config.sub.
2823 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2824 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2827 $as_echo_n "checking build system type... " >&6; }
2828 if ${ac_cv_build+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 ac_build_alias=$build_alias
2832 test "x$ac_build_alias" = x &&
2833 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2834 test "x$ac_build_alias" = x &&
2835 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2836 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2841 $as_echo "$ac_cv_build" >&6; }
2842 case $ac_cv_build in
2844 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2847 ac_save_IFS=$IFS; IFS='-'
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2857 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2861 $as_echo_n "checking host system type... " >&6; }
2862 if ${ac_cv_host+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 if test "x$host_alias" = x; then
2866 ac_cv_host=$ac_cv_build
2868 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2869 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2874 $as_echo "$ac_cv_host" >&6; }
2877 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2880 ac_save_IFS=$IFS; IFS='-'
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2890 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2898 opt_with_installed_readline=no
2902 case "${host_cpu}-${host_os}" in
2903 # mostly obsolete platforms
2904 alpha*-*) opt_bush_malloc=no ;; # alpha running osf/1 or linux
2905 *[Cc]ray*-*) opt_bush_malloc=no ;; # Crays
2906 *-osf1*) opt_bush_malloc=no ;; # other osf/1 machines
2907 *-dgux*) opt_bush_malloc=no ;; # DG/UX machines
2908 sparc-svr4*) opt_bush_malloc=no ;; # sparc SVR4, SVR4.2
2909 m68k-sysv) opt_bush_malloc=no ;; # fixes file descriptor leak in closedir
2910 *-bsdi2.1|*-bsdi3.?) opt_bush_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2911 *-opennt*|*-interix*) opt_bush_malloc=no ;; # Interix, now owned by Microsoft
2912 *-beos*) opt_bush_malloc=no ;; # they say it's suitable
2913 # These need additional investigation
2914 sparc-linux*) opt_bush_malloc=no ;; # sparc running linux; requires ELF
2915 *-aix*) opt_bush_malloc=no ;; # AIX machines
2916 *-cygwin*) opt_bush_malloc=no ;; # Cygnus's CYGWIN environment
2917 # These lack a working sbrk(2)
2918 aarch64-freebsd*) opt_bush_malloc=no ;;
2919 riscv*-freebsd*) opt_bush_malloc=no ;;
2920 # Mach-derived systems have a ton of extra malloc functions and lack sbrk(2)
2921 *-nextstep*) opt_bush_malloc=no ;; # NeXT machines running NeXTstep
2922 *-openstep*) opt_bush_malloc=no ;; # i386/Sparc/HP machines running Openstep
2923 *-macos*) opt_bush_malloc=no ;; # Apple MacOS X
2924 *-rhapsody*) opt_bush_malloc=no ;; # Apple Rhapsody (MacOS X)
2925 *-darwin*) opt_bush_malloc=no ;; # Apple Darwin (MacOS X)
2926 *-machten4) opt_bush_malloc=no ;; # MachTen 4.x
2927 # Niche or non-mainstream-shell-user systems
2928 *-qnx*) opt_bush_malloc=no ;; # QNX 4.2, QNX [67].x
2929 *-nsk*) opt_bush_malloc=no ;; # HP NonStop
2930 *-haiku*) opt_bush_malloc=no ;; # Haiku OS
2931 *-genode*) opt_bush_malloc=no ;; # Genode has no sbrk
2934 # memory scrambling on free()
2935 case "${host_os}" in
2936 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2937 *) opt_memscramble=yes ;;
2943 @%:@ Check whether --with-afs was given.
2944 if test "${with_afs+set}" = set; then :
2945 withval=$with_afs; opt_afs=$withval
2949 @%:@ Check whether --with-bush-malloc was given.
2950 if test "${with_bush_malloc+set}" = set; then :
2951 withval=$with_bush_malloc; opt_bush_malloc=$withval
2955 @%:@ Check whether --with-curses was given.
2956 if test "${with_curses+set}" = set; then :
2957 withval=$with_curses; opt_curses=$withval
2961 @%:@ Check whether --with-gnu-malloc was given.
2962 if test "${with_gnu_malloc+set}" = set; then :
2963 withval=$with_gnu_malloc; opt_bush_malloc=$withval
2967 @%:@ Check whether --with-installed-readline was given.
2968 if test "${with_installed_readline+set}" = set; then :
2969 withval=$with_installed_readline; opt_with_installed_readline=$withval
2973 if test "$opt_bush_malloc" = yes; then
2974 MALLOC_TARGET=malloc
2977 MALLOC_LIB='-lmalloc'
2978 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2979 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2980 MALLOC_DEP='$(MALLOC_LIBRARY)'
2982 $as_echo "@%:@define USING_BUSH_MALLOC 1" >>confdefs.h
2991 if test "$opt_afs" = yes; then
2992 $as_echo "@%:@define AFS 1" >>confdefs.h
2996 if test "$opt_curses" = yes; then
3000 if test -z "${DEBUGGER_START_FILE}"; then
3001 DEBUGGER_START_FILE='${datadir}/bushdb/bushdb-main.inc'
3004 opt_minimal_config=no
3010 opt_bang_history=yes
3013 opt_process_subst=yes
3014 opt_prompt_decoding=yes
3017 opt_array_variables=yes
3018 opt_dparen_arith=yes
3019 opt_extended_glob=yes
3020 opt_brace_expansion=yes
3021 opt_disabled_builtins=no
3022 opt_command_timing=yes
3025 opt_cond_command=yes
3028 opt_arith_for_command=yes
3031 opt_separate_help=no
3034 opt_single_longdoc_strings=yes
3035 opt_casemod_attrs=yes
3036 opt_casemod_expansions=yes
3037 opt_extglob_default=no
3038 opt_dircomplete_expand_default=no
3039 opt_globascii_default=yes
3040 opt_function_import=yes
3041 opt_dev_fd_stat_broken=no
3046 @%:@ Check whether --enable-minimal-config was given.
3047 if test "${enable_minimal_config+set}" = set; then :
3048 enableval=$enable_minimal_config; opt_minimal_config=$enableval
3052 if test $opt_minimal_config = yes; then
3053 opt_job_control=no opt_alias=no opt_readline=no
3054 opt_history=no opt_bang_history=no opt_dirstack=no
3055 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
3056 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
3057 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
3058 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
3059 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3060 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3061 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3062 opt_globascii_default=yes
3065 @%:@ Check whether --enable-alias was given.
3066 if test "${enable_alias+set}" = set; then :
3067 enableval=$enable_alias; opt_alias=$enableval
3070 @%:@ Check whether --enable-arith-for-command was given.
3071 if test "${enable_arith_for_command+set}" = set; then :
3072 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3075 @%:@ Check whether --enable-array-variables was given.
3076 if test "${enable_array_variables+set}" = set; then :
3077 enableval=$enable_array_variables; opt_array_variables=$enableval
3080 @%:@ Check whether --enable-bang-history was given.
3081 if test "${enable_bang_history+set}" = set; then :
3082 enableval=$enable_bang_history; opt_bang_history=$enableval
3085 @%:@ Check whether --enable-brace-expansion was given.
3086 if test "${enable_brace_expansion+set}" = set; then :
3087 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3090 @%:@ Check whether --enable-casemod-attributes was given.
3091 if test "${enable_casemod_attributes+set}" = set; then :
3092 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3095 @%:@ Check whether --enable-casemod-expansions was given.
3096 if test "${enable_casemod_expansions+set}" = set; then :
3097 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3100 @%:@ Check whether --enable-command-timing was given.
3101 if test "${enable_command_timing+set}" = set; then :
3102 enableval=$enable_command_timing; opt_command_timing=$enableval
3105 @%:@ Check whether --enable-cond-command was given.
3106 if test "${enable_cond_command+set}" = set; then :
3107 enableval=$enable_cond_command; opt_cond_command=$enableval
3110 @%:@ Check whether --enable-cond-regexp was given.
3111 if test "${enable_cond_regexp+set}" = set; then :
3112 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3115 @%:@ Check whether --enable-coprocesses was given.
3116 if test "${enable_coprocesses+set}" = set; then :
3117 enableval=$enable_coprocesses; opt_coproc=$enableval
3120 @%:@ Check whether --enable-debugger was given.
3121 if test "${enable_debugger+set}" = set; then :
3122 enableval=$enable_debugger; opt_debugger=$enableval
3125 @%:@ Check whether --enable-dev-fd-stat-broken was given.
3126 if test "${enable_dev_fd_stat_broken+set}" = set; then :
3127 enableval=$enable_dev_fd_stat_broken; opt_dev_fd_stat_broken=$enableval
3130 @%:@ Check whether --enable-direxpand-default was given.
3131 if test "${enable_direxpand_default+set}" = set; then :
3132 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3135 @%:@ Check whether --enable-directory-stack was given.
3136 if test "${enable_directory_stack+set}" = set; then :
3137 enableval=$enable_directory_stack; opt_dirstack=$enableval
3140 @%:@ Check whether --enable-disabled-builtins was given.
3141 if test "${enable_disabled_builtins+set}" = set; then :
3142 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3145 @%:@ Check whether --enable-dparen-arithmetic was given.
3146 if test "${enable_dparen_arithmetic+set}" = set; then :
3147 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3150 @%:@ Check whether --enable-extended-glob was given.
3151 if test "${enable_extended_glob+set}" = set; then :
3152 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3155 @%:@ Check whether --enable-extended-glob-default was given.
3156 if test "${enable_extended_glob_default+set}" = set; then :
3157 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3160 @%:@ Check whether --enable-function-import was given.
3161 if test "${enable_function_import+set}" = set; then :
3162 enableval=$enable_function_import; opt_function_import=$enableval
3165 @%:@ Check whether --enable-glob-asciiranges-default was given.
3166 if test "${enable_glob_asciiranges_default+set}" = set; then :
3167 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3170 @%:@ Check whether --enable-help-builtin was given.
3171 if test "${enable_help_builtin+set}" = set; then :
3172 enableval=$enable_help_builtin; opt_help=$enableval
3175 @%:@ Check whether --enable-history was given.
3176 if test "${enable_history+set}" = set; then :
3177 enableval=$enable_history; opt_history=$enableval
3180 @%:@ Check whether --enable-job-control was given.
3181 if test "${enable_job_control+set}" = set; then :
3182 enableval=$enable_job_control; opt_job_control=$enableval
3185 @%:@ Check whether --enable-multibyte was given.
3186 if test "${enable_multibyte+set}" = set; then :
3187 enableval=$enable_multibyte; opt_multibyte=$enableval
3190 @%:@ Check whether --enable-net-redirections was given.
3191 if test "${enable_net_redirections+set}" = set; then :
3192 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3195 @%:@ Check whether --enable-process-substitution was given.
3196 if test "${enable_process_substitution+set}" = set; then :
3197 enableval=$enable_process_substitution; opt_process_subst=$enableval
3200 @%:@ Check whether --enable-progcomp was given.
3201 if test "${enable_progcomp+set}" = set; then :
3202 enableval=$enable_progcomp; opt_progcomp=$enableval
3205 @%:@ Check whether --enable-prompt-string-decoding was given.
3206 if test "${enable_prompt_string_decoding+set}" = set; then :
3207 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3210 @%:@ Check whether --enable-readline was given.
3211 if test "${enable_readline+set}" = set; then :
3212 enableval=$enable_readline; opt_readline=$enableval
3215 @%:@ Check whether --enable-restricted was given.
3216 if test "${enable_restricted+set}" = set; then :
3217 enableval=$enable_restricted; opt_restricted=$enableval
3220 @%:@ Check whether --enable-select was given.
3221 if test "${enable_select+set}" = set; then :
3222 enableval=$enable_select; opt_select=$enableval
3225 @%:@ Check whether --enable-separate-helpfiles was given.
3226 if test "${enable_separate_helpfiles+set}" = set; then :
3227 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3230 @%:@ Check whether --enable-single-help-strings was given.
3231 if test "${enable_single_help_strings+set}" = set; then :
3232 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3235 @%:@ Check whether --enable-strict-posix-default was given.
3236 if test "${enable_strict_posix_default+set}" = set; then :
3237 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3240 @%:@ Check whether --enable-usg-echo-default was given.
3241 if test "${enable_usg_echo_default+set}" = set; then :
3242 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3245 @%:@ Check whether --enable-xpg-echo-default was given.
3246 if test "${enable_xpg_echo_default+set}" = set; then :
3247 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3251 @%:@ Check whether --enable-mem-scramble was given.
3252 if test "${enable_mem_scramble+set}" = set; then :
3253 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3256 @%:@ Check whether --enable-profiling was given.
3257 if test "${enable_profiling+set}" = set; then :
3258 enableval=$enable_profiling; opt_profiling=$enableval
3261 @%:@ Check whether --enable-static-link was given.
3262 if test "${enable_static_link+set}" = set; then :
3263 enableval=$enable_static_link; opt_static_link=$enableval
3274 if test $opt_alias = yes; then
3275 $as_echo "@%:@define ALIAS 1" >>confdefs.h
3278 if test $opt_dirstack = yes; then
3279 $as_echo "@%:@define PUSHD_AND_POPD 1" >>confdefs.h
3282 if test $opt_restricted = yes; then
3283 $as_echo "@%:@define RESTRICTED_SHELL 1" >>confdefs.h
3286 if test $opt_process_subst = yes; then
3287 $as_echo "@%:@define PROCESS_SUBSTITUTION 1" >>confdefs.h
3290 if test $opt_prompt_decoding = yes; then
3291 $as_echo "@%:@define PROMPT_STRING_DECODE 1" >>confdefs.h
3294 if test $opt_select = yes; then
3295 $as_echo "@%:@define SELECT_COMMAND 1" >>confdefs.h
3298 if test $opt_help = yes; then
3299 $as_echo "@%:@define HELP_BUILTIN 1" >>confdefs.h
3302 if test $opt_array_variables = yes; then
3303 $as_echo "@%:@define ARRAY_VARS 1" >>confdefs.h
3306 if test $opt_dparen_arith = yes; then
3307 $as_echo "@%:@define DPAREN_ARITHMETIC 1" >>confdefs.h
3310 if test $opt_brace_expansion = yes; then
3311 $as_echo "@%:@define BRACE_EXPANSION 1" >>confdefs.h
3314 if test $opt_disabled_builtins = yes; then
3315 $as_echo "@%:@define DISABLED_BUILTINS 1" >>confdefs.h
3318 if test $opt_command_timing = yes; then
3319 $as_echo "@%:@define COMMAND_TIMING 1" >>confdefs.h
3322 if test $opt_xpg_echo = yes ; then
3323 $as_echo "@%:@define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3326 if test $opt_strict_posix = yes; then
3327 $as_echo "@%:@define STRICT_POSIX 1" >>confdefs.h
3330 if test $opt_extended_glob = yes ; then
3331 $as_echo "@%:@define EXTENDED_GLOB 1" >>confdefs.h
3334 if test $opt_extglob_default = yes; then
3335 $as_echo "@%:@define EXTGLOB_DEFAULT 1" >>confdefs.h
3338 $as_echo "@%:@define EXTGLOB_DEFAULT 0" >>confdefs.h
3341 if test $opt_cond_command = yes ; then
3342 $as_echo "@%:@define COND_COMMAND 1" >>confdefs.h
3345 if test $opt_cond_regexp = yes ; then
3346 $as_echo "@%:@define COND_REGEXP 1" >>confdefs.h
3349 if test $opt_coproc = yes; then
3350 $as_echo "@%:@define COPROCESS_SUPPORT 1" >>confdefs.h
3353 if test $opt_arith_for_command = yes; then
3354 $as_echo "@%:@define ARITH_FOR_COMMAND 1" >>confdefs.h
3357 if test $opt_net_redirs = yes; then
3358 $as_echo "@%:@define NETWORK_REDIRECTIONS 1" >>confdefs.h
3361 if test $opt_progcomp = yes; then
3362 $as_echo "@%:@define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3365 if test $opt_multibyte = no; then
3366 $as_echo "@%:@define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3369 if test $opt_debugger = yes; then
3370 $as_echo "@%:@define DEBUGGER 1" >>confdefs.h
3373 if test $opt_casemod_attrs = yes; then
3374 $as_echo "@%:@define CASEMOD_ATTRS 1" >>confdefs.h
3377 if test $opt_casemod_expansions = yes; then
3378 $as_echo "@%:@define CASEMOD_EXPANSIONS 1" >>confdefs.h
3381 if test $opt_dircomplete_expand_default = yes; then
3382 $as_echo "@%:@define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3385 if test $opt_globascii_default = yes; then
3386 $as_echo "@%:@define GLOBASCII_DEFAULT 1" >>confdefs.h
3389 $as_echo "@%:@define GLOBASCII_DEFAULT 0" >>confdefs.h
3392 if test $opt_function_import = yes; then
3393 $as_echo "@%:@define FUNCTION_IMPORT 1" >>confdefs.h
3396 if test $opt_dev_fd_stat_broken = yes; then
3397 $as_echo "@%:@define DEV_FD_STAT_BROKEN 1" >>confdefs.h
3401 if test $opt_memscramble = yes; then
3402 $as_echo "@%:@define MEMSCRAMBLE 1" >>confdefs.h
3406 if test "$opt_minimal_config" = yes; then
3407 TESTSCRIPT=run-minimal
3412 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3413 if test "$opt_separate_help" != no; then
3414 if test "$opt_separate_help" = "yes" ; then
3415 HELPDIR='${datadir}/bush'
3417 HELPDIR=$opt_separate_help
3419 HELPDIRDEFINE='-H ${HELPDIR}'
3420 HELPINSTALL='install-help'
3421 HELPFILES_TARGET='helpdoc'
3424 if test "$opt_single_longdoc_strings" != "yes"; then
3445 if test -z "$CFLAGS"; then
3450 echo "Beginning configuration for bush-$BUSHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3626 if test $@%:@ != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3735 if test "x$ac_ct_CC" = x; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770 if test -s conftest.err; then
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805 for ac_file in $ac_files
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 if { { ac_try="$ac_link_default"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3830 for ac_file in $ac_files ''
3832 test -f "$ac_file" || continue
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3837 # We found the default executable, but exeext='' is most
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 @%:@include <stdio.h>
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3964 if test "$cross_compiling" = maybe; then
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4140 if test "$GCC" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_prog_cc_c89=no
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4172 s = g (p, va_arg (v,int));
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 rm -f conftest.$ac_ext
4220 case "x$ac_cv_prog_cc_c89" in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 if test -n "$want_auto_cflags"; then
4244 AUTO_CFLAGS="-g ${GCC+-O2}"
4245 AUTO_LDFLAGS="-g ${GCC+-O2}"
4246 STYLE_CFLAGS="${GCC+-Wno-parentheses} ${GCC+-Wno-format-security}"
4248 AUTO_CFLAGS= AUTO_LDFLAGS= STYLE_CFLAGS=
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4253 $as_echo_n "checking for library containing strerror... " >&6; }
4254 if ${ac_cv_search_strerror+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 ac_func_search_save_LIBS=$LIBS
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 /* Override any GCC internal prototype to avoid an error.
4262 Use char because int might match the return type of a GCC
4263 builtin and then its argument prototype would still apply. */
4276 for ac_lib in '' cposix; do
4277 if test -z "$ac_lib"; then
4278 ac_res="none required"
4281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4283 if ac_fn_c_try_link "$LINENO"; then :
4284 ac_cv_search_strerror=$ac_res
4286 rm -f core conftest.err conftest.$ac_objext \
4288 if ${ac_cv_search_strerror+:} false; then :
4292 if ${ac_cv_search_strerror+:} false; then :
4295 ac_cv_search_strerror=no
4298 LIBS=$ac_func_search_save_LIBS
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4301 $as_echo "$ac_cv_search_strerror" >&6; }
4302 ac_res=$ac_cv_search_strerror
4303 if test "$ac_res" != no; then :
4304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4315 # On Suns, sometimes $CPP names a directory.
4316 if test -n "$CPP" && test -d "$CPP"; then
4319 if test -z "$CPP"; then
4320 if ${ac_cv_prog_CPP+:} false; then :
4321 $as_echo_n "(cached) " >&6
4323 # Double quotes because CPP needs to be expanded
4324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4338 @%:@ include <limits.h>
4340 @%:@ include <assert.h>
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: fails on valid input.
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 @%:@include <ac_nonexistent.h>
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4362 # Passes both tests.
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.i conftest.err conftest.$ac_ext
4371 if $ac_preproc_ok; then :
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4384 $as_echo "$CPP" >&6; }
4386 for ac_c_preproc_warn_flag in '' yes
4388 # Use a header file that comes with gcc, so configuring glibc
4389 # with a fresh cross-compiler works.
4390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4391 # <limits.h> exists even on freestanding compilers.
4392 # On the NeXT, cc -E runs the code through the compiler's parser,
4393 # not just through cpp. "Syntax error" is here to catch this case.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 @%:@ include <limits.h>
4399 @%:@ include <assert.h>
4403 if ac_fn_c_try_cpp "$LINENO"; then :
4406 # Broken: fails on valid input.
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4411 # OK, works on sane cases. Now check whether nonexistent headers
4412 # can be detected and how.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 @%:@include <ac_nonexistent.h>
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4418 # Broken: success on invalid input.
4421 # Passes both tests.
4425 rm -f conftest.err conftest.i conftest.$ac_ext
4428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429 rm -f conftest.i conftest.err conftest.$ac_ext
4430 if $ac_preproc_ok; then :
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4436 See \`config.log' for more details" "$LINENO" 5; }
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4447 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4448 if ${ac_cv_path_GREP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 if test -z "$GREP"; then
4452 ac_path_GREP_found=false
4453 # Loop through the user's path and test for each of PROGNAME-LIST
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4458 test -z "$as_dir" && as_dir=.
4459 for ac_prog in grep ggrep; do
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4462 as_fn_executable_p "$ac_path_GREP" || continue
4463 # Check for GNU ac_path_GREP and select it if it is found.
4464 # Check for GNU $ac_path_GREP
4465 case `"$ac_path_GREP" --version 2>&1` in
4467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4470 $as_echo_n 0123456789 >"conftest.in"
4473 cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 mv "conftest.tmp" "conftest.in"
4475 cp "conftest.in" "conftest.nl"
4476 $as_echo 'GREP' >> "conftest.nl"
4477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4481 # Best one so far, save it but keep looking for a better one
4482 ac_cv_path_GREP="$ac_path_GREP"
4483 ac_path_GREP_max=$ac_count
4485 # 10*(2^10) chars as input seems more than enough
4486 test $ac_count -gt 10 && break
4488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4491 $ac_path_GREP_found && break 3
4496 if test -z "$ac_cv_path_GREP"; then
4497 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4500 ac_cv_path_GREP=$GREP
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4505 $as_echo "$ac_cv_path_GREP" >&6; }
4506 GREP="$ac_cv_path_GREP"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4510 $as_echo_n "checking for egrep... " >&6; }
4511 if ${ac_cv_path_EGREP+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4515 then ac_cv_path_EGREP="$GREP -E"
4517 if test -z "$EGREP"; then
4518 ac_path_EGREP_found=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524 test -z "$as_dir" && as_dir=.
4525 for ac_prog in egrep; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4528 as_fn_executable_p "$ac_path_EGREP" || continue
4529 # Check for GNU ac_path_EGREP and select it if it is found.
4530 # Check for GNU $ac_path_EGREP
4531 case `"$ac_path_EGREP" --version 2>&1` in
4533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4536 $as_echo_n 0123456789 >"conftest.in"
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'EGREP' >> "conftest.nl"
4543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545 as_fn_arith $ac_count + 1 && ac_count=$as_val
4546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_EGREP="$ac_path_EGREP"
4549 ac_path_EGREP_max=$ac_count
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557 $ac_path_EGREP_found && break 3
4562 if test -z "$ac_cv_path_EGREP"; then
4563 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 ac_cv_path_EGREP=$EGREP
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4572 $as_echo "$ac_cv_path_EGREP" >&6; }
4573 EGREP="$ac_cv_path_EGREP"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4577 $as_echo_n "checking for ANSI C header files... " >&6; }
4578 if ${ac_cv_header_stdc+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 ac_cv_header_stdc=yes
4599 ac_cv_header_stdc=no
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "memchr" >/dev/null 2>&1; then :
4614 ac_cv_header_stdc=no
4620 if test $ac_cv_header_stdc = yes; then
4621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "free" >/dev/null 2>&1; then :
4631 ac_cv_header_stdc=no
4637 if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then :
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4669 if ac_fn_c_try_run "$LINENO"; then :
4672 ac_cv_header_stdc=no
4674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4675 conftest.$ac_objext conftest.beam conftest.$ac_ext
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4681 $as_echo "$ac_cv_header_stdc" >&6; }
4682 if test $ac_cv_header_stdc = yes; then
4684 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4690 inttypes.h stdint.h unistd.h
4692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4696 cat >>confdefs.h <<_ACEOF
4697 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4706 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4707 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4714 if test "$MINIX" = yes; then
4716 $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4719 $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4722 $as_echo "@%:@define _MINIX 1" >>confdefs.h
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4728 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4729 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 # define __EXTENSIONS__ 1
4736 $ac_includes_default
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_safe_to_define___extensions__=yes
4748 ac_cv_safe_to_define___extensions__=no
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4753 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4754 test $ac_cv_safe_to_define___extensions__ = yes &&
4755 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4757 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4759 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4761 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4763 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4768 @%:@ Check whether --enable-largefile was given.
4769 if test "${enable_largefile+set}" = set; then :
4770 enableval=$enable_largefile;
4773 if test "$enable_largefile" != no; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4776 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4777 if ${ac_cv_sys_largefile_CC+:} false; then :
4778 $as_echo_n "(cached) " >&6
4780 ac_cv_sys_largefile_CC=no
4781 if test "$GCC" != yes; then
4784 # IRIX 6.2 and later do not support large files by default,
4785 # so use the C compiler's -n32 option if that helps.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 @%:@include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791 since some C++ compilers masquerading as C compilers
4792 incorrectly reject 9223372036854775807. */
4793 @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795 && LARGE_OFF_T % 2147483647 == 1)
4805 if ac_fn_c_try_compile "$LINENO"; then :
4808 rm -f core conftest.err conftest.$ac_objext
4810 if ac_fn_c_try_compile "$LINENO"; then :
4811 ac_cv_sys_largefile_CC=' -n32'; break
4813 rm -f core conftest.err conftest.$ac_objext
4817 rm -f conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4821 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4822 if test "$ac_cv_sys_largefile_CC" != no; then
4823 CC=$CC$ac_cv_sys_largefile_CC
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4827 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4828 if ${ac_cv_sys_file_offset_bits+:} false; then :
4829 $as_echo_n "(cached) " >&6
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 @%:@include <sys/types.h>
4835 /* Check that off_t can represent 2**63 - 1 correctly.
4836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4837 since some C++ compilers masquerading as C compilers
4838 incorrectly reject 9223372036854775807. */
4839 @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4841 && LARGE_OFF_T % 2147483647 == 1)
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_sys_file_offset_bits=no; break
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 @%:@define _FILE_OFFSET_BITS 64
4858 @%:@include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861 since some C++ compilers masquerading as C compilers
4862 incorrectly reject 9223372036854775807. */
4863 @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865 && LARGE_OFF_T % 2147483647 == 1)
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_sys_file_offset_bits=64; break
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_cv_sys_file_offset_bits=unknown
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4885 case $ac_cv_sys_file_offset_bits in #(
4888 cat >>confdefs.h <<_ACEOF
4889 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4894 if test $ac_cv_sys_file_offset_bits = unknown; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4897 if ${ac_cv_sys_large_files+:} false; then :
4898 $as_echo_n "(cached) " >&6
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 @%:@include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_sys_large_files=no; break
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 @%:@define _LARGE_FILES 1
4927 @%:@include <sys/types.h>
4928 /* Check that off_t can represent 2**63 - 1 correctly.
4929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4930 since some C++ compilers masquerading as C compilers
4931 incorrectly reject 9223372036854775807. */
4932 @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4934 && LARGE_OFF_T % 2147483647 == 1)
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_sys_large_files=1; break
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_sys_large_files=unknown
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4953 $as_echo "$ac_cv_sys_large_files" >&6; }
4954 case $ac_cv_sys_large_files in #(
4957 cat >>confdefs.h <<_ACEOF
4958 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4971 SIGNAMES_H=src/lsignames.h
4976 if test "x$cross_compiling" = "xyes"; then
4979 cross_cache=${srcdir}/cross-build/cygwin32.cache
4982 cross_cache=${srcdir}/cross-build/cygwin32.cache
4985 cross_cache=${srcdir}/cross-build/x86-beos.cache
4988 cross_cache=${srcdir}/cross-build/qnx.cache
4990 *) echo "configure: cross-compiling for $host is not supported" >&2
4993 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4994 echo "loading cross-build cache file ${cross_cache}"
4998 SIGNAMES_O='signames.o'
4999 CROSS_COMPILE='-DCROSS_COMPILING'
5006 CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
5007 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
5009 if test "$opt_profiling" = "yes"; then
5012 solaris2*|linux*) ;;
5013 *) opt_static_link=yes ;;
5015 DEBUG= MALLOC_DEBUG=
5021 if test "$opt_static_link" = yes; then
5024 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5025 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5028 solaris2*|linux*) ;;
5029 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5034 # set the appropriate make variables for building the "build tools"
5035 # modify defaults based on whether or not we are cross compiling, since the
5036 # options for the target host may not be appropriate for the build host
5037 if test "X$cross_compiling" = "Xno"; then
5038 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
5039 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
5040 if test X"$opt_profiling" = Xyes; then
5041 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(BASE_LDFLAGS)'}
5043 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5045 # CFLAGS set above to default value if not passed in environment
5046 if test -n "$want_auto_cflags" ; then
5047 CFLAGS_FOR_BUILD="${CFLAGS} ${STYLE_CFLAGS}"
5049 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5051 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
5053 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
5054 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5055 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5056 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
5057 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
5071 if test $ac_cv_c_compiler_gnu = yes; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5073 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5074 if ${ac_cv_prog_gcc_traditional+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 ac_pattern="Autoconf.*'x'"
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5084 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5085 ac_cv_prog_gcc_traditional=yes
5087 ac_cv_prog_gcc_traditional=no
5092 if test $ac_cv_prog_gcc_traditional = no; then
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5100 ac_cv_prog_gcc_traditional=yes
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5107 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5108 if test $ac_cv_prog_gcc_traditional = yes; then
5109 CC="$CC -traditional"
5115 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5117 # If the user specified --with-installed-readline=PREFIX and PREFIX
5118 # is not `yes', set ac_cv_rl_prefix to PREFIX
5119 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5122 if test "X$bush_cv_termcap_lib" = "X"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5126 $as_echo_n "checking which library has the termcap functions... " >&6; }
5129 if ${bush_cv_termcap_lib+:} false; then :
5130 $as_echo_n "(cached) " >&6
5132 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5133 if test "x$ac_cv_func_tgetent" = xyes; then :
5134 bush_cv_termcap_lib=libc
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5137 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5138 if ${ac_cv_lib_termcap_tgetent+:} false; then :
5139 $as_echo_n "(cached) " >&6
5141 ac_check_lib_save_LIBS=$LIBS
5142 LIBS="-ltermcap $LIBS"
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5146 /* Override any GCC internal prototype to avoid an error.
5147 Use char because int might match the return type of a GCC
5148 builtin and then its argument prototype would still apply. */
5161 if ac_fn_c_try_link "$LINENO"; then :
5162 ac_cv_lib_termcap_tgetent=yes
5164 ac_cv_lib_termcap_tgetent=no
5166 rm -f core conftest.err conftest.$ac_objext \
5167 conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5171 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5172 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5173 bush_cv_termcap_lib=libtermcap
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5176 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5177 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5178 $as_echo_n "(cached) " >&6
5180 ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-ltinfo $LIBS"
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5185 /* Override any GCC internal prototype to avoid an error.
5186 Use char because int might match the return type of a GCC
5187 builtin and then its argument prototype would still apply. */
5200 if ac_fn_c_try_link "$LINENO"; then :
5201 ac_cv_lib_tinfo_tgetent=yes
5203 ac_cv_lib_tinfo_tgetent=no
5205 rm -f core conftest.err conftest.$ac_objext \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5210 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5211 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5212 bush_cv_termcap_lib=libtinfo
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5215 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5216 if ${ac_cv_lib_curses_tgetent+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 ac_check_lib_save_LIBS=$LIBS
5220 LIBS="-lcurses $LIBS"
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5224 /* Override any GCC internal prototype to avoid an error.
5225 Use char because int might match the return type of a GCC
5226 builtin and then its argument prototype would still apply. */
5239 if ac_fn_c_try_link "$LINENO"; then :
5240 ac_cv_lib_curses_tgetent=yes
5242 ac_cv_lib_curses_tgetent=no
5244 rm -f core conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5249 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5250 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
5251 bush_cv_termcap_lib=libcurses
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5254 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5255 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 ac_check_lib_save_LIBS=$LIBS
5259 LIBS="-lncurses $LIBS"
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 /* Override any GCC internal prototype to avoid an error.
5264 Use char because int might match the return type of a GCC
5265 builtin and then its argument prototype would still apply. */
5278 if ac_fn_c_try_link "$LINENO"; then :
5279 ac_cv_lib_ncurses_tgetent=yes
5281 ac_cv_lib_ncurses_tgetent=no
5283 rm -f core conftest.err conftest.$ac_objext \
5284 conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_check_lib_save_LIBS
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5288 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5289 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5290 bush_cv_termcap_lib=libncurses
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
5293 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
5294 if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lncursesw $LIBS"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 ac_cv_lib_ncursesw_tgetent=yes
5320 ac_cv_lib_ncursesw_tgetent=no
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
5327 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
5328 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
5329 bush_cv_termcap_lib=libncursesw
5331 bush_cv_termcap_lib=gnutermcap
5346 if test "X$_bush_needmsg" = "Xyes"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5348 $as_echo_n "checking which library has the termcap functions... " >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bush_cv_termcap_lib" >&5
5351 $as_echo "using $bush_cv_termcap_lib" >&6; }
5352 if test $bush_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5353 LDFLAGS="$LDFLAGS -L./lib/termcap"
5354 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5355 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5356 elif test $bush_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5357 TERMCAP_LIB=-ltermcap
5359 elif test $bush_cv_termcap_lib = libtinfo; then
5362 elif test $bush_cv_termcap_lib = libncurses; then
5363 TERMCAP_LIB=-lncurses
5365 elif test $bush_cv_termcap_lib = libc; then
5369 TERMCAP_LIB=-lcurses
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5377 $as_echo_n "checking version of installed readline library... " >&6; }
5379 # What a pain in the ass this is.
5381 # save cpp and ld options
5382 _save_CFLAGS="$CFLAGS"
5383 _save_LDFLAGS="$LDFLAGS"
5386 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5387 # allows the caller to do something like $_rl_prefix=$withval if the user
5388 # specifies --with-installed-readline=PREFIX as an argument to configure
5390 if test -z "$ac_cv_rl_prefix"; then
5391 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5394 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5395 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5397 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5398 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5399 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5401 if ${ac_cv_rl_version+:} false; then :
5402 $as_echo_n "(cached) " >&6
5404 if test "$cross_compiling" = yes; then :
5405 ac_cv_rl_version='8.0'
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 #include <readline/readline.h>
5414 extern int rl_gnu_readline_p;
5420 fp = fopen("conftest.rlv", "w");
5423 if (rl_gnu_readline_p != 1)
5424 fprintf(fp, "0.0\n");
5426 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5432 if ac_fn_c_try_run "$LINENO"; then :
5433 ac_cv_rl_version=`cat conftest.rlv`
5435 ac_cv_rl_version='0.0'
5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438 conftest.$ac_objext conftest.beam conftest.$ac_ext
5444 CFLAGS="$_save_CFLAGS"
5445 LDFLAGS="$_save_LDFLAGS"
5452 case "$ac_cv_rl_version" in
5453 2*|3*|4*|5*|6*|7*|8*|9*)
5454 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5455 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5461 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5462 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5468 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5469 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5473 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5475 # Readline versions greater than 4.2 have these defines in readline.h
5477 if test $ac_cv_rl_version = '0.0' ; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5479 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5480 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5481 # set these for use by the caller
5482 RL_PREFIX=$ac_cv_rl_prefix
5483 RL_LIBDIR=$ac_cv_rl_libdir
5484 RL_INCLUDEDIR=$ac_cv_rl_includedir
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5486 $as_echo "$ac_cv_rl_version" >&6; }
5490 cat >>confdefs.h <<_ACEOF
5491 @%:@define RL_READLINE_VERSION $RL_VERSION
5495 cat >>confdefs.h <<_ACEOF
5496 @%:@define RL_VERSION_MAJOR $RL_MAJOR
5500 cat >>confdefs.h <<_ACEOF
5501 @%:@define RL_VERSION_MINOR $RL_MINOR
5509 # set these for use by the caller
5510 RL_PREFIX=$ac_cv_rl_prefix
5511 RL_LIBDIR=$ac_cv_rl_libdir
5512 RL_INCLUDEDIR=$ac_cv_rl_includedir
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5515 $as_echo "$ac_cv_rl_version" >&6; }
5520 case "$ac_cv_rl_version" in
5522 *) opt_with_installed_readline=no
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bush" >&5
5524 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bush" >&2;}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bush version" >&5
5526 $as_echo "$as_me: WARNING: using private bush version" >&2;}
5532 if test $opt_readline = yes; then
5533 $as_echo "@%:@define READLINE 1" >>confdefs.h
5535 if test "$opt_with_installed_readline" != "no" ; then
5536 case "$opt_with_installed_readline" in
5538 *) case "$RL_INCLUDEDIR" in
5540 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5545 READLINE_LIB=-lreadline
5546 # section for OS versions that don't allow unresolved symbols
5547 # to be compiled into dynamic libraries.
5549 cygwin*) TILDE_LIB= ;;
5552 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5553 READLINE_DEP='$(READLINE_LIBRARY)'
5554 # section for OS versions that ship an older/broken version of
5555 # readline as a standard dynamic library and don't allow a
5556 # static version specified as -llibname to override the
5558 case "${host_os}" in
5559 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5560 *) READLINE_LIB=-lreadline ;;
5564 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5565 READLINE_LIB= READLINE_DEP=
5567 if test $opt_history = yes || test $opt_bang_history = yes; then
5568 if test $opt_history = yes; then
5569 $as_echo "@%:@define HISTORY 1" >>confdefs.h
5572 if test $opt_bang_history = yes; then
5573 $as_echo "@%:@define BANG_HISTORY 1" >>confdefs.h
5576 if test "$opt_with_installed_readline" != "no"; then
5577 HIST_LIBDIR=$RL_LIBDIR
5579 HISTORY_LIB=-lhistory
5580 case "$opt_with_installed_readline" in
5582 *) case "$RL_INCLUDEDIR" in
5584 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5589 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5590 HISTORY_DEP='$(HISTORY_LIBRARY)'
5591 # section for OS versions that ship an older version of
5592 # readline as a standard dynamic library and don't allow a
5593 # static version specified as -llibname to override the
5595 case "${host_os}" in
5596 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5597 *) HISTORY_LIB=-lhistory ;;
5601 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5602 HISTORY_LIB= HISTORY_DEP=
5615 # Find a good install program. We prefer a C program (faster),
5616 # so one script is as good as another. But avoid the broken or
5617 # incompatible versions:
5618 # SysV /etc/install, /usr/sbin/install
5619 # SunOS /usr/etc/install
5620 # IRIX /sbin/install
5622 # AmigaOS /C/install, which installs bootblocks on floppy discs
5623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5626 # OS/2's system install, which has a completely different semantic
5627 # ./install, which can be erroneously created by make from ./install.sh.
5628 # Reject install programs that cannot install multiple files.
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5630 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5631 if test -z "$INSTALL"; then
5632 if ${ac_cv_path_install+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 # Account for people who put trailing slashes in PATH elements.
5641 case $as_dir/ in @%:@((
5642 ./ | .// | /[cC]/* | \
5643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5644 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5647 # OSF1 and SCO ODT 3.0 have their own names for install.
5648 # Don't use installbsd from OSF since it installs stuff as root
5650 for ac_prog in ginstall scoinst install; do
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5653 if test $ac_prog = install &&
5654 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5655 # AIX install. It has an incompatible calling convention.
5657 elif test $ac_prog = install &&
5658 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5659 # program-specific install script used by HP pwplus--don't use.
5662 rm -rf conftest.one conftest.two conftest.dir
5663 echo one > conftest.one
5664 echo two > conftest.two
5666 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5667 test -s conftest.one && test -s conftest.two &&
5668 test -s conftest.dir/conftest.one &&
5669 test -s conftest.dir/conftest.two
5671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5684 rm -rf conftest.one conftest.two conftest.dir
5687 if test "${ac_cv_path_install+set}" = set; then
5688 INSTALL=$ac_cv_path_install
5690 # As a last resort, use the slow shell script. Don't cache a
5691 # value for INSTALL within a source directory, because that will
5692 # break other packages using the cache if that directory is
5693 # removed, or if the value is a relative name.
5694 INSTALL=$ac_install_sh
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5698 $as_echo "$INSTALL" >&6; }
5700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5701 # It thinks the first close brace ends the variable substitution.
5702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5704 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5708 if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}ar; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_AR+:} false; then :
5714 $as_echo_n "(cached) " >&6
5716 if test -n "$AR"; then
5717 ac_cv_prog_AR="$AR" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_AR="${ac_tool_prefix}ar"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 if test -n "$AR"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5739 $as_echo "$AR" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5747 if test -z "$ac_cv_prog_AR"; then
5749 # Extract the first word of "ar", so it can be a program name with args.
5750 set dummy ar; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 if test -n "$ac_ct_AR"; then
5757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_ac_ct_AR="ar"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5777 if test -n "$ac_ct_AR"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5779 $as_echo "$ac_ct_AR" >&6; }
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5785 if test "x$ac_ct_AR" = x; then
5788 case $cross_compiling:$ac_tool_warned in
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792 ac_tool_warned=yes ;;
5800 test -n "$ARFLAGS" || ARFLAGS="cr"
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_RANLIB+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 if test -n "$RANLIB"; then
5810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 RANLIB=$ac_cv_prog_RANLIB
5830 if test -n "$RANLIB"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5832 $as_echo "$RANLIB" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5840 if test -z "$ac_cv_prog_RANLIB"; then
5841 ac_ct_RANLIB=$RANLIB
5842 # Extract the first word of "ranlib", so it can be a program name with args.
5843 set dummy ranlib; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5847 $as_echo_n "(cached) " >&6
5849 if test -n "$ac_ct_RANLIB"; then
5850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_RANLIB="ranlib"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5870 if test -n "$ac_ct_RANLIB"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5872 $as_echo "$ac_ct_RANLIB" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5878 if test "x$ac_ct_RANLIB" = x; then
5881 case $cross_compiling:$ac_tool_warned in
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5887 RANLIB=$ac_ct_RANLIB
5890 RANLIB="$ac_cv_prog_RANLIB"
5893 for ac_prog in 'bison -y' byacc
5895 # Extract the first word of "$ac_prog", so it can be a program name with args.
5896 set dummy $ac_prog; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_prog_YACC+:} false; then :
5900 $as_echo_n "(cached) " >&6
5902 if test -n "$YACC"; then
5903 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_YACC="$ac_prog"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 YACC=$ac_cv_prog_YACC
5923 if test -n "$YACC"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5925 $as_echo "$YACC" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5932 test -n "$YACC" && break
5934 test -n "$YACC" || YACC="yacc"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5941 $as_echo_n "(cached) " >&6
5943 cat >conftest.make <<\_ACEOF
5946 @echo '@@@%%%=$(MAKE)=@@@%%%'
5948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5951 eval ac_cv_prog_make_${ac_make}_set=yes;;
5953 eval ac_cv_prog_make_${ac_make}_set=no;;
5957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5959 $as_echo "yes" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 SET_MAKE="MAKE=${MAKE-make}"
5968 case "$ac_cv_prog_YACC" in
5970 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
5971 $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
5975 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5976 *) MAKE_SHELL=/bin/sh ;;
5980 if test x$SIZE = x; then
5981 if test x$ac_tool_prefix = x; then
5984 SIZE=${ac_tool_prefix}size
5985 save_IFS=$IFS ; IFS=:
5987 for dir in $PATH; do
5988 if test -x $dir/$SIZE ; then
5993 if test $size_found -eq 0; then
6001 # Checks for stat-related time functions.
6003 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
6006 # This file is free software; the Free Software Foundation
6007 # gives unlimited permission to copy and/or distribute it,
6008 # with or without modifications, as long as this notice is preserved.
6011 # st_atim.tv_nsec - Linux, Solaris, Cygwin
6012 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
6013 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
6014 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
6016 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
6017 # st_birthtim - Cygwin 1.7.0+
6021 # Configure checks for struct timespec
6023 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
6025 # This file is free software; the Free Software Foundation
6026 # gives unlimited permission to copy and/or distribute it,
6027 # with or without modifications, as long as this notice is preserved.
6029 # Original written by Paul Eggert and Jim Meyering.
6030 # Modified by Chet Ramey for bush
6037 # codeset.m4 serial 5 (gettext-0.18.2)
6046 # fcntl-o.m4 serial 6
6051 # Test whether the flags O_NOATIME and O_NOFOLLOW actually work.
6052 # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise.
6053 # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise.
6056 # gettext.m4 serial 69 (gettext-0.19.9)
6074 # glibc2.m4 serial 3
6076 # Test for the GNU C Library, version 2.0 or newer.
6077 # From Bruno Haible.
6081 # glibc21.m4 serial 5
6083 # Test for the GNU C Library, version 2.1 or newer, or uClibc.
6084 # From Bruno Haible.
6088 # host-cpu-c-abi.m4 serial 11
6096 # iconv.m4 serial 21
6106 # intdiv0.m4 serial 6 (gettext-0.18.2)
6111 # intl.m4 serial 34 (gettext-0.19.9)
6123 # intlmacosx.m4 serial 6 (gettext-0.19.9)
6127 # intl-thread-locale.m4 serial 4
6133 # intmax.m4 serial 6 (gettext-0.18.2)
6138 # inttypes-pri.m4 serial 7 (gettext-0.18.2)
6143 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
6144 # macros to non-string values. This is the case on AIX 4.3.3.
6148 # inttypes.m4 serial 27
6155 # Ensure that the PRI* and SCN* macros are defined appropriately.
6158 # Define the symbol $1 to be 1 if the condition is true, 0 otherwise.
6159 # If $2 is true, the condition is $3; otherwise if long long int is supported
6160 # approximate the condition with $4; otherwise, assume the condition is false.
6161 # The condition should work on all C99 platforms; the approximations should be
6162 # good enough to work on all practical pre-C99 platforms.
6163 # $2 is evaluated by the C preprocessor, $3 and $4 as compile-time constants.
6170 # inttypes_h.m4 serial 10
6173 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
6174 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6178 # lcmessage.m4 serial 7 (gettext-0.18.2)
6181 # Check whether LC_MESSAGES is available in <locale.h>.
6185 # lib-ld.m4 serial 9
6192 # lib-link.m4 serial 28
6211 # lib-prefix.m4 serial 14
6227 # Prerequisites of lib/glthread/lock.c.
6230 # nls.m4 serial 5 (gettext-0.18)
6250 # printf-posix.m4 serial 6 (gettext-0.18.2)
6255 # progtest.m4 serial 7 (gettext-0.18.2)
6260 # Search path for a program which passes the given test.
6264 # pthread_rwlock_rdlock.m4 serial 2
6269 # size_max.m4 serial 11
6276 # stdint_h.m4 serial 9
6279 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
6280 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6284 # threadlib.m4 serial 16
6306 # uintmax_t.m4 serial 12
6311 # Define uintmax_t to 'unsigned long' or 'unsigned long long'
6312 # if it is not already defined in <stdint.h> or <inttypes.h>.
6316 # ulonglong.m4 serial 10
6318 # visibility.m4 serial 6
6324 # wchar_t.m4 serial 4 (gettext-0.18.2)
6329 # wint_t.m4 serial 7
6341 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6346 if ${ac_cv_c_const+:} false; then :
6347 $as_echo_n "(cached) " >&6
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6357 /* Ultrix mips cc rejects this sort of thing. */
6358 typedef int charset[2];
6359 const charset cs = { 0, 0 };
6360 /* SunOS 4.1.1 cc rejects this. */
6361 char const *const *pcpcc;
6363 /* NEC SVR4.0.2 mips cc rejects this. */
6364 struct point {int x, y;};
6365 static struct point const zero = {0,0};
6366 /* AIX XL C 1.02.0.0 rejects this.
6367 It does not let you subtract one const X* pointer from another in
6368 an arm of an if-expression whose if-part is not a constant
6370 const char *g = "string";
6371 pcpcc = &g + (g ? g-g : 0);
6372 /* HPUX 7.0 cc rejects these. */
6374 ppc = (char**) pcpcc;
6375 pcpcc = (char const *const *) ppc;
6376 { /* SCO 3.2v4 cc rejects this sort of thing. */
6379 char const *s = 0 ? (char *) 0 : (char const *) 0;
6384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6386 const int *foo = &x[0];
6389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6390 typedef const int *iptr;
6394 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6396 struct s { int j; const int *ap[3]; } bx;
6397 struct s *b = &bx; b->j = 5;
6399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6403 return !cs[0] && !zero.x;
6410 if ac_fn_c_try_compile "$LINENO"; then :
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6418 $as_echo "$ac_cv_c_const" >&6; }
6419 if test $ac_cv_c_const = no; then
6421 $as_echo "@%:@define const /**/" >>confdefs.h
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6426 $as_echo_n "checking for inline... " >&6; }
6427 if ${ac_cv_c_inline+:} false; then :
6428 $as_echo_n "(cached) " >&6
6431 for ac_kw in inline __inline__ __inline; do
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6436 static $ac_kw foo_t static_foo () {return 0; }
6437 $ac_kw foo_t foo () {return 0; }
6441 if ac_fn_c_try_compile "$LINENO"; then :
6442 ac_cv_c_inline=$ac_kw
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 test "$ac_cv_c_inline" != no && break
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6450 $as_echo "$ac_cv_c_inline" >&6; }
6452 case $ac_cv_c_inline in
6455 case $ac_cv_c_inline in
6457 *) ac_val=$ac_cv_c_inline;;
6459 cat >>confdefs.h <<_ACEOF
6461 #define inline $ac_val
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6468 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6469 if ${ac_cv_c_bigendian+:} false; then :
6470 $as_echo_n "(cached) " >&6
6472 ac_cv_c_bigendian=unknown
6473 # See if we're dealing with a universal compiler.
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 #ifndef __APPLE_CC__
6477 not a universal capable compiler
6482 if ac_fn_c_try_compile "$LINENO"; then :
6484 # Check for potential -arch flags. It is not universal unless
6485 # there are at least two -arch flags with different values.
6488 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6489 if test -n "$ac_prev"; then
6491 i?86 | x86_64 | ppc | ppc64)
6492 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6495 ac_cv_c_bigendian=universal
6501 elif test "x$ac_word" = "x-arch"; then
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 if test $ac_cv_c_bigendian = unknown; then
6508 # See if sys/param.h defines the BYTE_ORDER macro.
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <sys/types.h>
6512 #include <sys/param.h>
6517 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6518 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 # It does; now see whether it defined to BIG_ENDIAN or not.
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6532 #include <sys/param.h>
6537 #if BYTE_ORDER != BIG_ENDIAN
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 ac_cv_c_bigendian=yes
6548 ac_cv_c_bigendian=no
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 if test $ac_cv_c_bigendian = unknown; then
6555 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6563 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572 # It does; now see whether it defined to _BIG_ENDIAN or not.
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 ac_cv_c_bigendian=yes
6591 ac_cv_c_bigendian=no
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 if test $ac_cv_c_bigendian = unknown; then
6598 # Compile a test program.
6599 if test "$cross_compiling" = yes; then :
6600 # Try to guess by grepping values from an object file.
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 short int ascii_mm[] =
6604 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6605 short int ascii_ii[] =
6606 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6607 int use_ascii (int i) {
6608 return ascii_mm[i] + ascii_ii[i];
6610 short int ebcdic_ii[] =
6611 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6612 short int ebcdic_mm[] =
6613 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6614 int use_ebcdic (int i) {
6615 return ebcdic_mm[i] + ebcdic_ii[i];
6622 return use_ascii (foo) == use_ebcdic (foo);
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6629 ac_cv_c_bigendian=yes
6631 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6632 if test "$ac_cv_c_bigendian" = unknown; then
6633 ac_cv_c_bigendian=no
6635 # finding both strings is unlikely to happen, but who knows?
6636 ac_cv_c_bigendian=unknown
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 $ac_includes_default
6649 /* Are we little or big endian? From Harbison&Steele. */
6653 char c[sizeof (long int)];
6656 return u.c[sizeof (long int) - 1] == 1;
6662 if ac_fn_c_try_run "$LINENO"; then :
6663 ac_cv_c_bigendian=no
6665 ac_cv_c_bigendian=yes
6667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6668 conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6674 $as_echo "$ac_cv_c_bigendian" >&6; }
6675 case $ac_cv_c_bigendian in #(
6677 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
6683 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6687 as_fn_error $? "unknown endianness
6688 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6692 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6693 if ${ac_cv_c_stringize+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6700 char *s = x(teststring);
6702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6703 $EGREP "@%:@teststring" >/dev/null 2>&1; then :
6704 ac_cv_c_stringize=no
6706 ac_cv_c_stringize=yes
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6712 $as_echo "$ac_cv_c_stringize" >&6; }
6713 if test $ac_cv_c_stringize = yes; then
6715 $as_echo "@%:@define HAVE_STRINGIZE 1" >>confdefs.h
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6722 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6723 if ${ac_cv_type_long_double_wider+:} false; then :
6724 $as_echo_n "(cached) " >&6
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6729 long double const a[] =
6731 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6732 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6737 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6738 + (x ? f (x) : 'c'));
6744 static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6745 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6746 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6747 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6748 && (int) LDBL_EPSILON == 0
6750 test_array @<:@0@:>@ = 0;
6751 return test_array @<:@0@:>@;
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 ac_cv_type_long_double_wider=yes
6760 ac_cv_type_long_double_wider=no
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6765 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6766 if test $ac_cv_type_long_double_wider = yes; then
6768 $as_echo "@%:@define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6772 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6773 if test $ac_cv_c_long_double = yes; then
6775 $as_echo "@%:@define HAVE_LONG_DOUBLE 1" >>confdefs.h
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6780 $as_echo_n "checking for function prototypes... " >&6; }
6781 if test "$ac_cv_prog_cc_c89" != no; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6783 $as_echo "yes" >&6; }
6785 $as_echo "@%:@define PROTOTYPES 1" >>confdefs.h
6788 $as_echo "@%:@define __PROTOTYPES 1" >>confdefs.h
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6796 $as_echo_n "checking whether char is unsigned... " >&6; }
6797 if ${ac_cv_c_char_unsigned+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 $ac_includes_default
6806 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
6807 test_array @<:@0@:>@ = 0;
6808 return test_array @<:@0@:>@;
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 ac_cv_c_char_unsigned=no
6817 ac_cv_c_char_unsigned=yes
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6822 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6823 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6824 $as_echo "@%:@define __CHAR_UNSIGNED__ 1" >>confdefs.h
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6829 $as_echo_n "checking for working volatile... " >&6; }
6830 if ${ac_cv_c_volatile+:} false; then :
6831 $as_echo_n "(cached) " >&6
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6841 int * volatile y = (int *) 0;
6847 if ac_fn_c_try_compile "$LINENO"; then :
6848 ac_cv_c_volatile=yes
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6855 $as_echo "$ac_cv_c_volatile" >&6; }
6856 if test $ac_cv_c_volatile = no; then
6858 $as_echo "@%:@define volatile /**/" >>confdefs.h
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6863 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6864 if ${ac_cv_c_restrict+:} false; then :
6865 $as_echo_n "(cached) " >&6
6868 # The order here caters to the fact that C++ does not require restrict.
6869 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 typedef int * int_ptr;
6873 int foo (int_ptr $ac_kw ip) {
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 ac_cv_c_restrict=$ac_kw
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 test "$ac_cv_c_restrict" != no && break
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6896 $as_echo "$ac_cv_c_restrict" >&6; }
6898 case $ac_cv_c_restrict in
6900 no) $as_echo "@%:@define restrict /**/" >>confdefs.h
6902 *) cat >>confdefs.h <<_ACEOF
6903 @%:@define restrict $ac_cv_c_restrict
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6910 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6911 if test -z "$MKDIR_P"; then
6912 if ${ac_cv_path_mkdir+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6919 test -z "$as_dir" && as_dir=.
6920 for ac_prog in mkdir gmkdir; do
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6924 'mkdir (GNU coreutils) '* | \
6925 'mkdir (coreutils) '* | \
6926 'mkdir (fileutils) '4.1*)
6927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6937 test -d ./--version && rmdir ./--version
6938 if test "${ac_cv_path_mkdir+set}" = set; then
6939 MKDIR_P="$ac_cv_path_mkdir -p"
6941 # As a last resort, use the slow shell script. Don't cache a
6942 # value for MKDIR_P within a source directory, because that will
6943 # break other packages using the cache if that directory is
6944 # removed, or if the value is a relative name.
6945 MKDIR_P="$ac_install_sh -d"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6949 $as_echo "$MKDIR_P" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6952 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6953 if ${ac_cv_path_SED+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6957 for ac_i in 1 2 3 4 5 6 7; do
6958 ac_script="$ac_script$as_nl$ac_script"
6960 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6961 { ac_script=; unset ac_script;}
6962 if test -z "$SED"; then
6963 ac_path_SED_found=false
6964 # Loop through the user's path and test for each of PROGNAME-LIST
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_prog in sed gsed; do
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6973 as_fn_executable_p "$ac_path_SED" || continue
6974 # Check for GNU ac_path_SED and select it if it is found.
6975 # Check for GNU $ac_path_SED
6976 case `"$ac_path_SED" --version 2>&1` in
6978 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6981 $as_echo_n 0123456789 >"conftest.in"
6984 cat "conftest.in" "conftest.in" >"conftest.tmp"
6985 mv "conftest.tmp" "conftest.in"
6986 cp "conftest.in" "conftest.nl"
6987 $as_echo '' >> "conftest.nl"
6988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6990 as_fn_arith $ac_count + 1 && ac_count=$as_val
6991 if test $ac_count -gt ${ac_path_SED_max-0}; then
6992 # Best one so far, save it but keep looking for a better one
6993 ac_cv_path_SED="$ac_path_SED"
6994 ac_path_SED_max=$ac_count
6996 # 10*(2^10) chars as input seems more than enough
6997 test $ac_count -gt 10 && break
6999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7002 $ac_path_SED_found && break 3
7007 if test -z "$ac_cv_path_SED"; then
7008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7016 $as_echo "$ac_cv_path_SED" >&6; }
7017 SED="$ac_cv_path_SED"
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7022 $as_echo_n "checking whether NLS is requested... " >&6; }
7023 @%:@ Check whether --enable-nls was given.
7024 if test "${enable_nls+set}" = set; then :
7025 enableval=$enable_nls; USE_NLS=$enableval
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7031 $as_echo "$USE_NLS" >&6; }
7036 GETTEXT_MACRO_VERSION=0.19
7041 # Prepare PATH_SEPARATOR.
7042 # The user is always right.
7043 if test "${PATH_SEPARATOR+set}" != set; then
7044 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7045 # contains only /bin. Note that ksh looks also at the FPATH variable,
7046 # so we have to set that as well for the test.
7048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7049 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7050 || PATH_SEPARATOR=';'
7054 # Find out how to test for executable files. Don't use a zero-byte file,
7055 # as systems may use methods other than mode bits to determine executability.
7056 cat >conf$$.file <<_ASEOF
7060 chmod +x conf$$.file
7061 if test -x conf$$.file >/dev/null 2>&1; then
7062 ac_executable_p="test -x"
7064 ac_executable_p="test -f"
7068 # Extract the first word of "msgfmt", so it can be a program name with args.
7069 set dummy msgfmt; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_path_MSGFMT+:} false; then :
7073 $as_echo_n "(cached) " >&6
7077 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7080 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7081 for ac_dir in $PATH; do
7083 test -z "$ac_dir" && ac_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7086 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7087 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7088 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7089 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7096 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7100 MSGFMT="$ac_cv_path_MSGFMT"
7101 if test "$MSGFMT" != ":"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7103 $as_echo "$MSGFMT" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7109 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7110 set dummy gmsgfmt; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_path_GMSGFMT+:} false; then :
7114 $as_echo_n "(cached) " >&6
7118 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7140 GMSGFMT=$ac_cv_path_GMSGFMT
7141 if test -n "$GMSGFMT"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7143 $as_echo "$GMSGFMT" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7151 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7152 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7153 *) MSGFMT_015=$MSGFMT ;;
7156 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7157 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7158 *) GMSGFMT_015=$GMSGFMT ;;
7163 # Prepare PATH_SEPARATOR.
7164 # The user is always right.
7165 if test "${PATH_SEPARATOR+set}" != set; then
7166 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7167 # contains only /bin. Note that ksh looks also at the FPATH variable,
7168 # so we have to set that as well for the test.
7170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7171 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7172 || PATH_SEPARATOR=';'
7176 # Find out how to test for executable files. Don't use a zero-byte file,
7177 # as systems may use methods other than mode bits to determine executability.
7178 cat >conf$$.file <<_ASEOF
7182 chmod +x conf$$.file
7183 if test -x conf$$.file >/dev/null 2>&1; then
7184 ac_executable_p="test -x"
7186 ac_executable_p="test -f"
7190 # Extract the first word of "xgettext", so it can be a program name with args.
7191 set dummy xgettext; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_path_XGETTEXT+:} false; then :
7195 $as_echo_n "(cached) " >&6
7199 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7202 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7203 for ac_dir in $PATH; do
7205 test -z "$ac_dir" && ac_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7208 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7209 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7210 (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
7211 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7218 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7222 XGETTEXT="$ac_cv_path_XGETTEXT"
7223 if test "$XGETTEXT" != ":"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7225 $as_echo "$XGETTEXT" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7234 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7235 *) XGETTEXT_015=$XGETTEXT ;;
7240 # Prepare PATH_SEPARATOR.
7241 # The user is always right.
7242 if test "${PATH_SEPARATOR+set}" != set; then
7243 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7244 # contains only /bin. Note that ksh looks also at the FPATH variable,
7245 # so we have to set that as well for the test.
7247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7248 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7249 || PATH_SEPARATOR=';'
7253 # Find out how to test for executable files. Don't use a zero-byte file,
7254 # as systems may use methods other than mode bits to determine executability.
7255 cat >conf$$.file <<_ASEOF
7259 chmod +x conf$$.file
7260 if test -x conf$$.file >/dev/null 2>&1; then
7261 ac_executable_p="test -x"
7263 ac_executable_p="test -f"
7267 # Extract the first word of "msgmerge", so it can be a program name with args.
7268 set dummy msgmerge; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_path_MSGMERGE+:} false; then :
7272 $as_echo_n "(cached) " >&6
7276 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7280 for ac_dir in $PATH; do
7282 test -z "$ac_dir" && ac_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7285 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7286 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7287 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7294 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7298 MSGMERGE="$ac_cv_path_MSGMERGE"
7299 if test "$MSGMERGE" != ":"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7301 $as_echo "$MSGMERGE" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7308 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7311 ac_config_commands="$ac_config_commands po-directories"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7316 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7317 if ${ac_cv_gnu_library_2+:} false; then :
7318 $as_echo_n "(cached) " >&6
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7323 #include <features.h>
7324 #ifdef __GNU_LIBRARY__
7325 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
7331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7333 ac_cv_gnu_library_2=yes
7335 ac_cv_gnu_library_2=no
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
7343 $as_echo "$ac_cv_gnu_library_2" >&6; }
7345 GLIBC2="$ac_cv_gnu_library_2"
7352 if test -n "$GCC"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
7354 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
7355 if ${gl_cv_cc_vis_werror+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 gl_save_CFLAGS="$CFLAGS"
7359 CFLAGS="$CFLAGS -Werror"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7371 if ac_fn_c_try_compile "$LINENO"; then :
7372 gl_cv_cc_vis_werror=yes
7374 gl_cv_cc_vis_werror=no
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 CFLAGS="$gl_save_CFLAGS"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
7381 $as_echo "$gl_cv_cc_vis_werror" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
7383 $as_echo_n "checking for simple visibility declarations... " >&6; }
7384 if ${gl_cv_cc_visibility+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 gl_save_CFLAGS="$CFLAGS"
7388 CFLAGS="$CFLAGS -fvisibility=hidden"
7389 if test $gl_cv_cc_vis_werror = yes; then
7390 CFLAGS="$CFLAGS -Werror"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
7395 extern __attribute__((__visibility__("default"))) int exportedvar;
7396 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
7397 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
7398 void dummyfunc (void) {}
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 gl_cv_cc_visibility=yes
7411 gl_cv_cc_visibility=no
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 CFLAGS="$gl_save_CFLAGS"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
7418 $as_echo "$gl_cv_cc_visibility" >&6; }
7419 if test $gl_cv_cc_visibility = yes; then
7420 CFLAG_VISIBILITY="-fvisibility=hidden"
7427 cat >>confdefs.h <<_ACEOF
7428 @%:@define HAVE_VISIBILITY $HAVE_VISIBILITY
7432 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7433 if test "x$ac_cv_type_size_t" = xyes; then :
7437 cat >>confdefs.h <<_ACEOF
7438 @%:@define size_t unsigned int
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7445 $as_echo_n "checking for stdint.h... " >&6; }
7446 if ${gl_cv_header_stdint_h+:} false; then :
7447 $as_echo_n "(cached) " >&6
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 #include <sys/types.h>
7456 uintmax_t i = (uintmax_t) -1; return !i;
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 gl_cv_header_stdint_h=yes
7464 gl_cv_header_stdint_h=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7469 $as_echo "$gl_cv_header_stdint_h" >&6; }
7470 if test $gl_cv_header_stdint_h = yes; then
7472 cat >>confdefs.h <<_ACEOF
7473 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
7478 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7479 # for constant arguments. Useless!
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7481 $as_echo_n "checking for working alloca.h... " >&6; }
7482 if ${ac_cv_working_alloca_h+:} false; then :
7483 $as_echo_n "(cached) " >&6
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 @%:@include <alloca.h>
7491 char *p = (char *) alloca (2 * sizeof (int));
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 ac_cv_working_alloca_h=yes
7500 ac_cv_working_alloca_h=no
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7506 $as_echo "$ac_cv_working_alloca_h" >&6; }
7507 if test $ac_cv_working_alloca_h = yes; then
7509 $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7514 $as_echo_n "checking for alloca... " >&6; }
7515 if ${ac_cv_func_alloca_works+:} false; then :
7516 $as_echo_n "(cached) " >&6
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7521 # define alloca __builtin_alloca
7524 # include <malloc.h>
7525 # define alloca _alloca
7527 # ifdef HAVE_ALLOCA_H
7528 # include <alloca.h>
7533 # ifndef alloca /* predefined by HP cc +Olibcalls */
7534 void *alloca (size_t);
7544 char *p = (char *) alloca (1);
7550 if ac_fn_c_try_link "$LINENO"; then :
7551 ac_cv_func_alloca_works=yes
7553 ac_cv_func_alloca_works=no
7555 rm -f core conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7559 $as_echo "$ac_cv_func_alloca_works" >&6; }
7561 if test $ac_cv_func_alloca_works = yes; then
7563 $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
7566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7567 # that cause trouble. Some versions do not even contain alloca or
7568 # contain a buggy version. If you still want to use their alloca,
7569 # use ar to extract alloca.o from them instead of compiling alloca.c.
7571 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7573 $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7577 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7578 if ${ac_cv_os_cray+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #if defined CRAY && ! defined CRAY2
7590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7591 $EGREP "webecray" >/dev/null 2>&1; then :
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7600 $as_echo "$ac_cv_os_cray" >&6; }
7601 if test $ac_cv_os_cray = yes; then
7602 for ac_func in _getb67 GETB67 getb67; do
7603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7605 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7607 cat >>confdefs.h <<_ACEOF
7608 @%:@define CRAY_STACKSEG_END $ac_func
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7618 $as_echo_n "checking stack direction for C alloca... " >&6; }
7619 if ${ac_cv_c_stack_direction+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 if test "$cross_compiling" = yes; then :
7623 ac_cv_c_stack_direction=0
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 $ac_includes_default
7629 find_stack_direction (int *addr, int depth)
7634 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7635 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7640 main (int argc, char **argv)
7642 return find_stack_direction (0, argc + !argv + 20) < 0;
7645 if ac_fn_c_try_run "$LINENO"; then :
7646 ac_cv_c_stack_direction=1
7648 ac_cv_c_stack_direction=-1
7650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7651 conftest.$ac_objext conftest.beam conftest.$ac_ext
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7656 $as_echo "$ac_cv_c_stack_direction" >&6; }
7657 cat >>confdefs.h <<_ACEOF
7658 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7667 for ac_header in $ac_header_list
7669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7673 cat >>confdefs.h <<_ACEOF
7674 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7688 for ac_func in getpagesize
7690 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7691 if test "x$ac_cv_func_getpagesize" = xyes; then :
7692 cat >>confdefs.h <<_ACEOF
7693 @%:@define HAVE_GETPAGESIZE 1
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7700 $as_echo_n "checking for working mmap... " >&6; }
7701 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7702 $as_echo_n "(cached) " >&6
7704 if test "$cross_compiling" = yes; then :
7705 ac_cv_func_mmap_fixed_mapped=no
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 $ac_includes_default
7710 /* malloc might have been renamed as rpl_malloc. */
7713 /* Thanks to Mike Haertel and Jim Avera for this test.
7714 Here is a matrix of mmap possibilities:
7715 mmap private not fixed
7716 mmap private fixed at somewhere currently unmapped
7717 mmap private fixed at somewhere already mapped
7718 mmap shared not fixed
7719 mmap shared fixed at somewhere currently unmapped
7720 mmap shared fixed at somewhere already mapped
7721 For private mappings, we should verify that changes cannot be read()
7722 back from the file, nor mmap's back from the file at a different
7723 address. (There have been systems where private was not correctly
7724 implemented like the infamous i386 svr4.0, and systems where the
7725 VM page cache was not coherent with the file system buffer cache
7726 like early versions of FreeBSD and possibly contemporary NetBSD.)
7727 For shared mappings, we should conversely verify that changes get
7728 propagated back to all the places they're supposed to be.
7730 Grep wants private fixed already mapped.
7731 The main things grep needs to know about mmap are:
7732 * does it exist and is it safe to write into the mmap'd area
7733 * how to use it (BSD variants) */
7736 #include <sys/mman.h>
7738 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7742 /* This mess was copied from the GNU getpagesize.h. */
7743 #ifndef HAVE_GETPAGESIZE
7744 # ifdef _SC_PAGESIZE
7745 # define getpagesize() sysconf(_SC_PAGESIZE)
7746 # else /* no _SC_PAGESIZE */
7747 # ifdef HAVE_SYS_PARAM_H
7748 # include <sys/param.h>
7749 # ifdef EXEC_PAGESIZE
7750 # define getpagesize() EXEC_PAGESIZE
7751 # else /* no EXEC_PAGESIZE */
7753 # define getpagesize() NBPG * CLSIZE
7756 # endif /* no CLSIZE */
7757 # else /* no NBPG */
7759 # define getpagesize() NBPC
7760 # else /* no NBPC */
7762 # define getpagesize() PAGESIZE
7763 # endif /* PAGESIZE */
7764 # endif /* no NBPC */
7765 # endif /* no NBPG */
7766 # endif /* no EXEC_PAGESIZE */
7767 # else /* no HAVE_SYS_PARAM_H */
7768 # define getpagesize() 8192 /* punt totally */
7769 # endif /* no HAVE_SYS_PARAM_H */
7770 # endif /* no _SC_PAGESIZE */
7772 #endif /* no HAVE_GETPAGESIZE */
7777 char *data, *data2, *data3;
7782 pagesize = getpagesize ();
7784 /* First, make a file with some known garbage in it. */
7785 data = (char *) malloc (pagesize);
7788 for (i = 0; i < pagesize; ++i)
7789 *(data + i) = rand ();
7791 fd = creat ("conftest.mmap", 0600);
7794 if (write (fd, data, pagesize) != pagesize)
7798 /* Next, check that the tail of a page is zero-filled. File must have
7799 non-zero length, otherwise we risk SIGBUS for entire page. */
7800 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7804 if (write (fd2, cdata2, 1) != 1)
7806 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7807 if (data2 == MAP_FAILED)
7809 for (i = 0; i < pagesize; ++i)
7813 if (munmap (data2, pagesize))
7816 /* Next, try to mmap the file at a fixed address which already has
7817 something else allocated at it. If we can, also make sure that
7818 we see the same garbage. */
7819 fd = open ("conftest.mmap", O_RDWR);
7822 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7823 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7825 for (i = 0; i < pagesize; ++i)
7826 if (*(data + i) != *(data2 + i))
7829 /* Finally, make sure that changes to the mapped area do not
7830 percolate back to the file as seen by read(). (This is a bug on
7831 some variants of i386 svr4.0.) */
7832 for (i = 0; i < pagesize; ++i)
7833 *(data2 + i) = *(data2 + i) + 1;
7834 data3 = (char *) malloc (pagesize);
7837 if (read (fd, data3, pagesize) != pagesize)
7839 for (i = 0; i < pagesize; ++i)
7840 if (*(data + i) != *(data3 + i))
7846 if ac_fn_c_try_run "$LINENO"; then :
7847 ac_cv_func_mmap_fixed_mapped=yes
7849 ac_cv_func_mmap_fixed_mapped=no
7851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7852 conftest.$ac_objext conftest.beam conftest.$ac_ext
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7857 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7858 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7860 $as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h
7863 rm -f conftest.mmap conftest.txt
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7868 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7869 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7870 $as_echo_n "(cached) " >&6
7873 gt_cv_int_divbyzero_sigfpe=
7875 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7876 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7877 # compiling. If we were to perform the real test, 1 Crash Report
7878 # dialog window would pop up.
7880 i[34567]86 | x86_64)
7881 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7885 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7886 if test "$cross_compiling" = yes; then :
7888 # Guess based on the CPU.
7890 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7891 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7893 gt_cv_int_divbyzero_sigfpe="guessing no";;
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7904 sigfpe_handler (int sig)
7906 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7907 exit (sig != SIGFPE);
7917 signal (SIGFPE, sigfpe_handler);
7918 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7919 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7920 signal (SIGTRAP, sigfpe_handler);
7922 /* Linux/SPARC yields signal SIGILL. */
7923 #if defined (__sparc__) && defined (__linux__)
7924 signal (SIGILL, sigfpe_handler);
7933 if ac_fn_c_try_run "$LINENO"; then :
7934 gt_cv_int_divbyzero_sigfpe=yes
7936 gt_cv_int_divbyzero_sigfpe=no
7938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7939 conftest.$ac_objext conftest.beam conftest.$ac_ext
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7946 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7947 case "$gt_cv_int_divbyzero_sigfpe" in
7952 cat >>confdefs.h <<_ACEOF
7953 @%:@define INTDIV0_RAISES_SIGFPE $value
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7959 $as_echo_n "checking for inttypes.h... " >&6; }
7960 if ${gl_cv_header_inttypes_h+:} false; then :
7961 $as_echo_n "(cached) " >&6
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 #include <sys/types.h>
7967 #include <inttypes.h>
7972 uintmax_t i = (uintmax_t) -1; return !i;
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 gl_cv_header_inttypes_h=yes
7980 gl_cv_header_inttypes_h=no
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7985 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7986 if test $gl_cv_header_inttypes_h = yes; then
7988 cat >>confdefs.h <<_ACEOF
7989 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7996 $as_echo_n "checking for unsigned long long int... " >&6; }
7997 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7998 $as_echo_n "(cached) " >&6
8000 ac_cv_type_unsigned_long_long_int=yes
8001 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8005 /* For now, do not test the preprocessor; as of 2007 there are too many
8006 implementations with broken preprocessors. Perhaps this can
8007 be revisited in 2012. In the meantime, code should not expect
8008 #if to work with literals wider than 32 bits. */
8009 /* Test literals. */
8010 long long int ll = 9223372036854775807ll;
8011 long long int nll = -9223372036854775807LL;
8012 unsigned long long int ull = 18446744073709551615ULL;
8013 /* Test constant expressions. */
8014 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8016 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8022 /* Test availability of runtime routines for shift and division. */
8023 long long int llmax = 9223372036854775807ll;
8024 unsigned long long int ullmax = 18446744073709551615ull;
8025 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8026 | (llmax / ll) | (llmax % ll)
8027 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8028 | (ullmax / ull) | (ullmax % ull));
8034 if ac_fn_c_try_link "$LINENO"; then :
8037 ac_cv_type_unsigned_long_long_int=no
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8044 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8045 if test $ac_cv_type_unsigned_long_long_int = yes; then
8047 $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8054 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8056 test $ac_cv_type_unsigned_long_long_int = yes \
8057 && ac_type='unsigned long long' \
8058 || ac_type='unsigned long'
8060 cat >>confdefs.h <<_ACEOF
8061 @%:@define uintmax_t $ac_type
8066 $as_echo "@%:@define HAVE_UINTMAX_T 1" >>confdefs.h
8071 for ac_header in inttypes.h
8073 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8074 if test "x$ac_cv_header_inttypes_h" = xyes; then :
8075 cat >>confdefs.h <<_ACEOF
8076 @%:@define HAVE_INTTYPES_H 1
8083 if test $ac_cv_header_inttypes_h = yes; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8085 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8086 if ${gt_cv_inttypes_pri_broken+:} false; then :
8087 $as_echo_n "(cached) " >&6
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8093 #include <inttypes.h>
8106 if ac_fn_c_try_compile "$LINENO"; then :
8107 gt_cv_inttypes_pri_broken=no
8109 gt_cv_inttypes_pri_broken=yes
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8115 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8117 if test "$gt_cv_inttypes_pri_broken" = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 @%:@define PRI_MACROS_BROKEN 1
8134 @%:@ Check whether --enable-threads was given.
8135 if test "${enable_threads+set}" = set; then :
8136 enableval=$enable_threads; gl_use_threads=$enableval
8138 if test -n "$gl_use_threads_default"; then
8139 gl_use_threads="$gl_use_threads_default"
8142 osf*) gl_use_threads=no ;;
8145 1.[0-5].*) gl_use_threads=no ;;
8146 *) gl_use_threads=yes ;;
8149 *) gl_use_threads=yes ;;
8155 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8156 # For using <pthread.h>:
8159 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8160 # groks <pthread.h>. cc also understands the flag -pthread, but
8161 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8162 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8163 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8164 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8165 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8168 # Some systems optimize for single-threaded programs by default, and
8169 # need special flags to disable these optimizations. For example, the
8170 # definition of 'errno' in <errno.h>.
8172 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8173 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8181 if test "X$prefix" = "XNONE"; then
8182 acl_final_prefix="$ac_default_prefix"
8184 acl_final_prefix="$prefix"
8186 if test "X$exec_prefix" = "XNONE"; then
8187 acl_final_exec_prefix='${prefix}'
8189 acl_final_exec_prefix="$exec_prefix"
8191 acl_save_prefix="$prefix"
8192 prefix="$acl_final_prefix"
8193 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8194 prefix="$acl_save_prefix"
8198 @%:@ Check whether --with-gnu-ld was given.
8199 if test "${with_gnu_ld+set}" = set; then :
8200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8205 # Prepare PATH_SEPARATOR.
8206 # The user is always right.
8207 if test "${PATH_SEPARATOR+set}" != set; then
8208 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8209 # contains only /bin. Note that ksh looks also at the FPATH variable,
8210 # so we have to set that as well for the test.
8212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8213 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8214 || PATH_SEPARATOR=';'
8218 if test -n "$LD"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8220 $as_echo_n "checking for ld... " >&6; }
8221 elif test "$GCC" = yes; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8223 $as_echo_n "checking for ld used by $CC... " >&6; }
8224 elif test "$with_gnu_ld" = yes; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8226 $as_echo_n "checking for GNU ld... " >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8229 $as_echo_n "checking for non-GNU ld... " >&6; }
8231 if test -n "$LD"; then
8232 # Let the user override the test with a path.
8235 if ${acl_cv_path_LD+:} false; then :
8236 $as_echo_n "(cached) " >&6
8239 acl_cv_path_LD= # Final result of this test
8240 ac_prog=ld # Program to search in $PATH
8241 if test "$GCC" = yes; then
8242 # Check if gcc -print-prog-name=ld gives a path.
8245 # gcc leaves a trailing carriage return which upsets mingw
8246 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8248 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8251 # Accept absolute paths.
8253 re_direlt='/[^/][^/]*/\.\./'
8254 # Canonicalize the pathname of ld
8255 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8256 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8257 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8259 # Got the pathname. No search in PATH is needed.
8260 acl_cv_path_LD="$acl_output"
8264 # If it fails, then pretend we aren't using GCC.
8267 # If it is relative, then search for the first ld in PATH.
8272 if test -n "$ac_prog"; then
8273 # Search for $ac_prog in $PATH.
8274 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275 for ac_dir in $PATH; do
8277 test -z "$ac_dir" && ac_dir=.
8278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8279 acl_cv_path_LD="$ac_dir/$ac_prog"
8280 # Check to see if the program is GNU ld. I'd rather use --version,
8281 # but apparently some variants of GNU ld only accept -v.
8282 # Break only if it was the GNU/non-GNU ld that we prefer.
8283 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8284 *GNU* | *'with BFD'*)
8285 test "$with_gnu_ld" != no && break
8288 test "$with_gnu_ld" != yes && break
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #if defined __powerpc64__ || defined _ARCH_PPC64
8306 if ac_fn_c_try_compile "$LINENO"; then :
8307 # The compiler produces 64-bit code. Add option '-b64' so that the
8308 # linker groks 64-bit object files.
8309 case "$acl_cv_path_LD " in
8311 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 #if defined __sparcv9 || defined __arch64__
8327 if ac_fn_c_try_compile "$LINENO"; then :
8330 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8331 # so that the linker groks 32-bit object files.
8332 case "$acl_cv_path_LD " in
8333 *" -m elf32_sparc "*) ;;
8334 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 LD="$acl_cv_path_LD"
8346 if test -n "$LD"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8348 $as_echo "$LD" >&6; }
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8355 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8356 if ${acl_cv_prog_gnu_ld+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8360 case `$LD -v 2>&1 </dev/null` in
8361 *GNU* | *'with BFD'*)
8362 acl_cv_prog_gnu_ld=yes
8365 acl_cv_prog_gnu_ld=no
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8370 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8371 with_gnu_ld=$acl_cv_prog_gnu_ld
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8377 $as_echo_n "checking for shared library run path origin... " >&6; }
8378 if ${acl_cv_rpath+:} false; then :
8379 $as_echo_n "(cached) " >&6
8382 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8383 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8390 $as_echo "$acl_cv_rpath" >&6; }
8392 acl_libext="$acl_cv_libext"
8393 acl_shlibext="$acl_cv_shlibext"
8394 acl_libname_spec="$acl_cv_libname_spec"
8395 acl_library_names_spec="$acl_cv_library_names_spec"
8396 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8397 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8398 acl_hardcode_direct="$acl_cv_hardcode_direct"
8399 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8400 @%:@ Check whether --enable-rpath was given.
8401 if test "${enable_rpath+set}" = set; then :
8402 enableval=$enable_rpath; :
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8411 $as_echo_n "checking 32-bit host C ABI... " >&6; }
8412 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
8413 $as_echo_n "(cached) " >&6
8415 if test -n "$gl_cv_host_cpu_c_abi"; then
8416 case "$gl_cv_host_cpu_c_abi" in
8417 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8418 gl_cv_host_cpu_c_abi_32bit=yes ;;
8420 gl_cv_host_cpu_c_abi_32bit=no ;;
8426 gl_cv_host_cpu_c_abi_32bit=yes
8430 # On x86_64 systems, the C compiler may be generating code in one of
8432 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8433 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8434 # with native Windows (mingw, MSVC).
8435 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8436 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #if (defined __x86_64__ || defined __amd64__ \
8440 || defined _M_X64 || defined _M_AMD64) \
8441 && !(defined __ILP32__ || defined _ILP32)
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 gl_cv_host_cpu_c_abi_32bit=no
8451 gl_cv_host_cpu_c_abi_32bit=yes
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 # Assume arm with EABI.
8458 # On arm64 systems, the C compiler may be generating code in one of
8460 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8461 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8462 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 gl_cv_host_cpu_c_abi_32bit=no
8475 gl_cv_host_cpu_c_abi_32bit=yes
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8481 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8482 # code. In the latter case, it defines _LP64 and __LP64__.
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 gl_cv_host_cpu_c_abi_32bit=no
8495 gl_cv_host_cpu_c_abi_32bit=yes
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8502 # 32-bit code. In the latter case, it defines _ILP32.
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 gl_cv_host_cpu_c_abi_32bit=yes
8515 gl_cv_host_cpu_c_abi_32bit=no
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 gl_cv_host_cpu_c_abi_32bit=no
8535 gl_cv_host_cpu_c_abi_32bit=yes
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8542 # No need to distinguish them here; the caller may distinguish
8543 # them based on the OS.
8544 # On powerpc64 systems, the C compiler may still be generating
8545 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8546 # be generating 64-bit code.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #if defined __powerpc64__ || defined _ARCH_PPC64
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 gl_cv_host_cpu_c_abi_32bit=no
8559 gl_cv_host_cpu_c_abi_32bit=yes
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 gl_cv_host_cpu_c_abi_32bit=yes
8569 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8570 # Size of 'long' and 'void *':
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 #if defined __LP64__
8580 if ac_fn_c_try_compile "$LINENO"; then :
8581 gl_cv_host_cpu_c_abi_32bit=no
8583 gl_cv_host_cpu_c_abi_32bit=yes
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8590 # or 31-bit (= s390) code.
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #if defined __LP64__ || defined __s390x__
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 gl_cv_host_cpu_c_abi_32bit=no
8603 gl_cv_host_cpu_c_abi_32bit=yes
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8610 # C compiler still generates 32-bit code.
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 #if defined __sparcv9 || defined __arch64__
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 gl_cv_host_cpu_c_abi_32bit=no
8623 gl_cv_host_cpu_c_abi_32bit=yes
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 gl_cv_host_cpu_c_abi_32bit=no
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
8636 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
8638 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8647 $as_echo_n "checking for 64-bit host... " >&6; }
8648 if ${gl_cv_solaris_64bit+:} false; then :
8649 $as_echo_n "(cached) " >&6
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 gl_cv_solaris_64bit=yes
8663 gl_cv_solaris_64bit=no
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8669 $as_echo "$gl_cv_solaris_64bit" >&6; };;
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
8673 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
8674 if ${acl_cv_libdirstems+:} false; then :
8675 $as_echo_n "(cached) " >&6
8681 if test $gl_cv_solaris_64bit = yes; then
8682 acl_libdirstem=lib/64
8684 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8685 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8690 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
8691 searchpath=`(if test -f /usr/bin/gcc \
8692 && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
8693 LC_ALL=C /usr/bin/gcc -print-search-dirs; \
8695 LC_ALL=C $CC -print-search-dirs; \
8697 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8698 if test -n "$searchpath"; then
8699 acl_save_IFS="${IFS= }"; IFS=":"
8700 for searchdir in $searchpath; do
8701 if test -d "$searchdir"; then
8702 case "$searchdir" in
8703 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8705 # Better ignore directories of this form. They are misleading.
8707 *) searchdir=`cd "$searchdir" && pwd`
8708 case "$searchdir" in
8709 */lib64 ) acl_libdirstem=lib64 ;;
8719 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8720 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
8724 $as_echo "$acl_cv_libdirstems" >&6; }
8725 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
8726 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
8727 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
8736 if test "$gl_use_threads" != no; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
8738 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
8739 if ${gl_cv_have_weak+:} false; then :
8740 $as_echo_n "(cached) " >&6
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 extern void xyzzy ();
8755 if ac_fn_c_try_link "$LINENO"; then :
8756 gl_cv_have_weak=maybe
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 if test $gl_cv_have_weak = maybe; then
8761 if test "$cross_compiling" = yes; then :
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8765 Extensible Linking Format
8769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8770 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
8771 gl_cv_have_weak="guessing yes"
8773 gl_cv_have_weak="guessing no"
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8786 return (fputs == NULL);
8789 if ac_fn_c_try_run "$LINENO"; then :
8794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8795 conftest.$ac_objext conftest.beam conftest.$ac_ext
8799 case " $LDFLAGS " in
8800 *" -static "*) gl_cv_have_weak=no ;;
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
8805 $as_echo "$gl_cv_have_weak" >&6; }
8806 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8807 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
8808 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
8809 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8810 if test "x$ac_cv_header_pthread_h" = xyes; then :
8811 gl_have_pthread_h=yes
8813 gl_have_pthread_h=no
8817 if test "$gl_have_pthread_h" = yes; then
8818 # Other possible tests:
8819 # -lpthreads (FSU threads, PCthreads)
8822 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8823 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8824 # the second one only in libpthread, and lock.c needs it.
8826 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
8827 # needs -pthread for some reason. See:
8828 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
8830 for gl_pthread in '' '-pthread'; do
8831 LIBS="$LIBS $gl_pthread"
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <pthread.h>
8836 pthread_mutexattr_t ma;
8841 pthread_mutex_lock (&m);
8842 pthread_mutexattr_init (&ma);
8847 if ac_fn_c_try_link "$LINENO"; then :
8849 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
8850 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8855 test -n "$gl_have_pthread" && break
8858 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8859 # since it is defined as a macro on OSF/1.)
8860 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
8861 # The program links fine without libpthread. But it may actually
8862 # need to link with libpthread in order to create multiple threads.
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8864 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8865 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-lpthread $LIBS"
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8879 char pthread_kill ();
8883 return pthread_kill ();
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 ac_cv_lib_pthread_pthread_kill=yes
8891 ac_cv_lib_pthread_pthread_kill=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8898 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8899 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8900 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8901 # On Solaris and HP-UX, most pthread functions exist also in libc.
8902 # Therefore pthread_in_use() needs to actually try to create a
8903 # thread: pthread_create from libc will fail, whereas
8904 # pthread_create will actually create a thread.
8905 # On Solaris 10 or newer, this test is no longer needed, because
8906 # libc contains the fully functional pthread functions.
8908 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
8910 $as_echo "@%:@define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8916 elif test -z "$gl_have_pthread"; then
8917 # Some library is needed. Try libpthread and libc_r.
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8919 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8920 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8921 $as_echo_n "(cached) " >&6
8923 ac_check_lib_save_LIBS=$LIBS
8924 LIBS="-lpthread $LIBS"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8928 /* Override any GCC internal prototype to avoid an error.
8929 Use char because int might match the return type of a GCC
8930 builtin and then its argument prototype would still apply. */
8934 char pthread_kill ();
8938 return pthread_kill ();
8943 if ac_fn_c_try_link "$LINENO"; then :
8944 ac_cv_lib_pthread_pthread_kill=yes
8946 ac_cv_lib_pthread_pthread_kill=no
8948 rm -f core conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8953 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8954 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8956 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8957 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8960 if test -z "$gl_have_pthread"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8963 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8964 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8965 $as_echo_n "(cached) " >&6
8967 ac_check_lib_save_LIBS=$LIBS
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8972 /* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8978 char pthread_kill ();
8982 return pthread_kill ();
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_c_r_pthread_kill=yes
8990 ac_cv_lib_c_r_pthread_kill=no
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8997 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8998 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9000 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9001 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9006 if test -n "$gl_have_pthread"; then
9007 gl_threads_api=posix
9009 $as_echo "@%:@define USE_POSIX_THREADS 1" >>confdefs.h
9011 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9012 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9014 $as_echo "@%:@define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9023 if test -z "$gl_have_pthread"; then
9024 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9025 gl_have_solaristhread=
9026 gl_save_LIBS="$LIBS"
9027 LIBS="$LIBS -lthread"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 gl_have_solaristhread=yes
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 LIBS="$gl_save_LIBS"
9048 if test -n "$gl_have_solaristhread"; then
9049 gl_threads_api=solaris
9051 LTLIBTHREAD=-lthread
9052 LIBMULTITHREAD="$LIBTHREAD"
9053 LTLIBMULTITHREAD="$LTLIBTHREAD"
9055 $as_echo "@%:@define USE_SOLARIS_THREADS 1" >>confdefs.h
9057 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9059 $as_echo "@%:@define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9067 if test "$gl_use_threads" = pth; then
9068 gl_save_CPPFLAGS="$CPPFLAGS"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9075 $as_echo_n "checking how to link with libpth... " >&6; }
9076 if ${ac_cv_libpth_libs+:} false; then :
9077 $as_echo_n "(cached) " >&6
9088 acl_save_prefix="$prefix"
9089 prefix="$acl_final_prefix"
9090 acl_save_exec_prefix="$exec_prefix"
9091 exec_prefix="$acl_final_exec_prefix"
9093 eval additional_includedir=\"$includedir\"
9094 eval additional_libdir=\"$libdir\"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9100 @%:@ Check whether --with-libpth-prefix was given.
9101 if test "${with_libpth_prefix+set}" = set; then :
9102 withval=$with_libpth_prefix;
9103 if test "X$withval" = "Xno"; then
9106 if test "X$withval" = "X"; then
9108 acl_save_prefix="$prefix"
9109 prefix="$acl_final_prefix"
9110 acl_save_exec_prefix="$exec_prefix"
9111 exec_prefix="$acl_final_exec_prefix"
9113 eval additional_includedir=\"$includedir\"
9114 eval additional_libdir=\"$libdir\"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9120 additional_includedir="$withval/include"
9121 additional_libdir="$withval/$acl_libdirstem"
9122 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9123 && test ! -d "$withval/$acl_libdirstem"; then
9124 additional_libdir="$withval/$acl_libdirstem2"
9138 names_already_handled=
9139 names_next_round='pth '
9140 while test -n "$names_next_round"; do
9141 names_this_round="$names_next_round"
9143 for name in $names_this_round; do
9145 for n in $names_already_handled; do
9146 if test "$n" = "$name"; then
9151 if test -z "$already_handled"; then
9152 names_already_handled="$names_already_handled $name"
9153 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9154 eval value=\"\$HAVE_LIB$uppername\"
9155 if test -n "$value"; then
9156 if test "$value" = yes; then
9157 eval value=\"\$LIB$uppername\"
9158 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9159 eval value=\"\$LTLIB$uppername\"
9160 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9169 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9170 if test -n "$acl_shlibext"; then
9171 shrext=".$acl_shlibext" # typically: shrext=.so
9175 if test $use_additional = yes; then
9176 dir="$additional_libdir"
9177 if test -n "$acl_shlibext"; then
9178 if test -f "$dir/$libname$shrext"; then
9180 found_so="$dir/$libname$shrext"
9182 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9183 ver=`(cd "$dir" && \
9184 for f in "$libname$shrext".*; do echo "$f"; done \
9185 | sed -e "s,^$libname$shrext\\\\.,," \
9186 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9187 | sed 1q ) 2>/dev/null`
9188 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9190 found_so="$dir/$libname$shrext.$ver"
9193 eval library_names=\"$acl_library_names_spec\"
9194 for f in $library_names; do
9195 if test -f "$dir/$f"; then
9204 if test "X$found_dir" = "X"; then
9205 if test -f "$dir/$libname.$acl_libext"; then
9207 found_a="$dir/$libname.$acl_libext"
9210 if test "X$found_dir" != "X"; then
9211 if test -f "$dir/$libname.la"; then
9212 found_la="$dir/$libname.la"
9216 if test "X$found_dir" = "X"; then
9217 for x in $LDFLAGS $LTLIBPTH; do
9219 acl_save_prefix="$prefix"
9220 prefix="$acl_final_prefix"
9221 acl_save_exec_prefix="$exec_prefix"
9222 exec_prefix="$acl_final_exec_prefix"
9224 exec_prefix="$acl_save_exec_prefix"
9225 prefix="$acl_save_prefix"
9229 dir=`echo "X$x" | sed -e 's/^X-L//'`
9230 if test -n "$acl_shlibext"; then
9231 if test -f "$dir/$libname$shrext"; then
9233 found_so="$dir/$libname$shrext"
9235 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9236 ver=`(cd "$dir" && \
9237 for f in "$libname$shrext".*; do echo "$f"; done \
9238 | sed -e "s,^$libname$shrext\\\\.,," \
9239 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9240 | sed 1q ) 2>/dev/null`
9241 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9243 found_so="$dir/$libname$shrext.$ver"
9246 eval library_names=\"$acl_library_names_spec\"
9247 for f in $library_names; do
9248 if test -f "$dir/$f"; then
9257 if test "X$found_dir" = "X"; then
9258 if test -f "$dir/$libname.$acl_libext"; then
9260 found_a="$dir/$libname.$acl_libext"
9263 if test "X$found_dir" != "X"; then
9264 if test -f "$dir/$libname.la"; then
9265 found_la="$dir/$libname.la"
9270 if test "X$found_dir" != "X"; then
9275 if test "X$found_dir" != "X"; then
9276 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9277 if test "X$found_so" != "X"; then
9278 if test "$enable_rpath" = no \
9279 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9280 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9281 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9284 for x in $ltrpathdirs; do
9285 if test "X$x" = "X$found_dir"; then
9290 if test -z "$haveit"; then
9291 ltrpathdirs="$ltrpathdirs $found_dir"
9293 if test "$acl_hardcode_direct" = yes; then
9294 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9296 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9297 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9299 for x in $rpathdirs; do
9300 if test "X$x" = "X$found_dir"; then
9305 if test -z "$haveit"; then
9306 rpathdirs="$rpathdirs $found_dir"
9310 for x in $LDFLAGS $LIBPTH; do
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9317 exec_prefix="$acl_save_exec_prefix"
9318 prefix="$acl_save_prefix"
9320 if test "X$x" = "X-L$found_dir"; then
9325 if test -z "$haveit"; then
9326 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9328 if test "$acl_hardcode_minus_L" != no; then
9329 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9331 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9337 if test "X$found_a" != "X"; then
9338 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
9340 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9343 additional_includedir=
9344 case "$found_dir" in
9345 */$acl_libdirstem | */$acl_libdirstem/)
9346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9347 if test "$name" = 'pth'; then
9348 LIBPTH_PREFIX="$basedir"
9350 additional_includedir="$basedir/include"
9352 */$acl_libdirstem2 | */$acl_libdirstem2/)
9353 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9354 if test "$name" = 'pth'; then
9355 LIBPTH_PREFIX="$basedir"
9357 additional_includedir="$basedir/include"
9360 if test "X$additional_includedir" != "X"; then
9361 if test "X$additional_includedir" != "X/usr/include"; then
9363 if test "X$additional_includedir" = "X/usr/local/include"; then
9364 if test -n "$GCC"; then
9366 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9370 if test -z "$haveit"; then
9371 for x in $CPPFLAGS $INCPTH; do
9373 acl_save_prefix="$prefix"
9374 prefix="$acl_final_prefix"
9375 acl_save_exec_prefix="$exec_prefix"
9376 exec_prefix="$acl_final_exec_prefix"
9378 exec_prefix="$acl_save_exec_prefix"
9379 prefix="$acl_save_prefix"
9381 if test "X$x" = "X-I$additional_includedir"; then
9386 if test -z "$haveit"; then
9387 if test -d "$additional_includedir"; then
9388 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
9394 if test -n "$found_la"; then
9395 save_libdir="$libdir"
9397 */* | *\\*) . "$found_la" ;;
9398 *) . "./$found_la" ;;
9400 libdir="$save_libdir"
9401 for dep in $dependency_libs; do
9404 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9405 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9406 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9408 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9409 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9410 if test -n "$GCC"; then
9412 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9416 if test -z "$haveit"; then
9418 for x in $LDFLAGS $LIBPTH; do
9420 acl_save_prefix="$prefix"
9421 prefix="$acl_final_prefix"
9422 acl_save_exec_prefix="$exec_prefix"
9423 exec_prefix="$acl_final_exec_prefix"
9425 exec_prefix="$acl_save_exec_prefix"
9426 prefix="$acl_save_prefix"
9428 if test "X$x" = "X-L$additional_libdir"; then
9433 if test -z "$haveit"; then
9434 if test -d "$additional_libdir"; then
9435 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
9439 for x in $LDFLAGS $LTLIBPTH; do
9441 acl_save_prefix="$prefix"
9442 prefix="$acl_final_prefix"
9443 acl_save_exec_prefix="$exec_prefix"
9444 exec_prefix="$acl_final_exec_prefix"
9446 exec_prefix="$acl_save_exec_prefix"
9447 prefix="$acl_save_prefix"
9449 if test "X$x" = "X-L$additional_libdir"; then
9454 if test -z "$haveit"; then
9455 if test -d "$additional_libdir"; then
9456 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9463 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9464 if test "$enable_rpath" != no; then
9466 for x in $rpathdirs; do
9467 if test "X$x" = "X$dir"; then
9472 if test -z "$haveit"; then
9473 rpathdirs="$rpathdirs $dir"
9476 for x in $ltrpathdirs; do
9477 if test "X$x" = "X$dir"; then
9482 if test -z "$haveit"; then
9483 ltrpathdirs="$ltrpathdirs $dir"
9488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9494 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
9495 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
9501 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9502 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9508 if test "X$rpathdirs" != "X"; then
9509 if test -n "$acl_hardcode_libdir_separator"; then
9511 for found_dir in $rpathdirs; do
9512 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9514 acl_save_libdir="$libdir"
9516 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9517 libdir="$acl_save_libdir"
9518 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9520 for found_dir in $rpathdirs; do
9521 acl_save_libdir="$libdir"
9523 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9524 libdir="$acl_save_libdir"
9525 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9529 if test "X$ltrpathdirs" != "X"; then
9530 for found_dir in $ltrpathdirs; do
9531 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
9539 ac_cv_libpth_libs="$LIBPTH"
9540 ac_cv_libpth_ltlibs="$LTLIBPTH"
9541 ac_cv_libpth_cppflags="$INCPTH"
9542 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
9546 $as_echo "$ac_cv_libpth_libs" >&6; }
9547 LIBPTH="$ac_cv_libpth_libs"
9548 LTLIBPTH="$ac_cv_libpth_ltlibs"
9549 INCPTH="$ac_cv_libpth_cppflags"
9550 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
9552 for element in $INCPTH; do
9554 for x in $CPPFLAGS; do
9556 acl_save_prefix="$prefix"
9557 prefix="$acl_final_prefix"
9558 acl_save_exec_prefix="$exec_prefix"
9559 exec_prefix="$acl_final_exec_prefix"
9561 exec_prefix="$acl_save_exec_prefix"
9562 prefix="$acl_save_prefix"
9564 if test "X$x" = "X$element"; then
9569 if test -z "$haveit"; then
9570 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9582 gl_save_LIBS="$LIBS"
9583 LIBS="$LIBS $LIBPTH"
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9595 if ac_fn_c_try_link "$LINENO"; then :
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LIBS="$gl_save_LIBS"
9601 if test -n "$gl_have_pth"; then
9604 LTLIBTHREAD="$LTLIBPTH"
9605 LIBMULTITHREAD="$LIBTHREAD"
9606 LTLIBMULTITHREAD="$LTLIBTHREAD"
9608 $as_echo "@%:@define USE_PTH_THREADS 1" >>confdefs.h
9610 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9611 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9613 $as_echo "@%:@define USE_PTH_THREADS_WEAK 1" >>confdefs.h
9620 CPPFLAGS="$gl_save_CPPFLAGS"
9623 if test -z "$gl_have_pthread"; then
9624 case "$gl_use_threads" in
9625 yes | windows | win32) # The 'win32' is for backward compatibility.
9626 if { case "$host_os" in
9631 gl_threads_api=windows
9633 $as_echo "@%:@define USE_WINDOWS_THREADS 1" >>confdefs.h
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
9641 $as_echo_n "checking for multithread API to use... " >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
9643 $as_echo "$gl_threads_api" >&6; }
9655 if test "$gl_threads_api" = posix; then
9656 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
9657 # pthread_rwlock_* functions.
9659 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
9661 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
9664 $as_echo "@%:@define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
9668 if $has_rwlock; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
9672 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
9673 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
9674 $as_echo_n "(cached) " >&6
9677 LIBS="$LIBS $LIBMULTITHREAD"
9678 if test "$cross_compiling" = yes; then :
9679 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9685 #include <pthread.h>
9689 #define SUCCEED() exit (0)
9690 #define FAILURE() exit (1)
9691 #define UNEXPECTED(n) (exit (10 + (n)))
9693 /* The main thread creates the waiting writer and the requesting reader threads
9694 in the default way; this guarantees that they have the same priority.
9695 We can reuse the main thread as first reader thread. */
9697 static pthread_rwlock_t lock;
9698 static pthread_t reader1;
9699 static pthread_t writer;
9700 static pthread_t reader2;
9701 static pthread_t timer;
9702 /* Used to pass control from writer to reader2 and from reader2 to timer,
9704 Passing control from one running thread to another running thread
9705 is most likely faster than to create the second thread. */
9706 static pthread_mutex_t baton;
9709 timer_func (void *ignored)
9711 /* Step 13 (can be before or after step 12):
9712 The timer thread takes the baton, then waits a moment to make sure
9713 it can tell whether the second reader thread is blocked at step 12. */
9714 if (pthread_mutex_lock (&baton))
9717 /* By the time we get here, it's clear that the second reader thread is
9718 blocked at step 12. This is the desired behaviour. */
9723 reader2_func (void *ignored)
9727 /* Step 8 (can be before or after step 7):
9728 The second reader thread takes the baton, then waits a moment to make sure
9729 the writer thread has reached step 7. */
9730 if (pthread_mutex_lock (&baton))
9733 /* Step 9: The second reader thread requests the lock. */
9734 err = pthread_rwlock_tryrdlock (&lock);
9737 else if (err != EBUSY)
9739 /* Step 10: Launch a timer, to test whether the next call blocks. */
9740 if (pthread_create (&timer, NULL, timer_func, NULL))
9742 /* Step 11: Release the baton. */
9743 if (pthread_mutex_unlock (&baton))
9745 /* Step 12: The second reader thread requests the lock. */
9746 err = pthread_rwlock_rdlock (&lock);
9754 writer_func (void *ignored)
9756 /* Step 4: Take the baton, so that the second reader thread does not go ahead
9758 if (pthread_mutex_lock (&baton))
9760 /* Step 5: Create the second reader thread. */
9761 if (pthread_create (&reader2, NULL, reader2_func, NULL))
9763 /* Step 6: Release the baton. */
9764 if (pthread_mutex_unlock (&baton))
9766 /* Step 7: The writer thread requests the lock. */
9767 if (pthread_rwlock_wrlock (&lock))
9775 reader1 = pthread_self ();
9777 /* Step 1: The main thread initializes the lock and the baton. */
9778 if (pthread_rwlock_init (&lock, NULL))
9780 if (pthread_mutex_init (&baton, NULL))
9782 /* Step 2: The main thread acquires the lock as a reader. */
9783 if (pthread_rwlock_rdlock (&lock))
9785 /* Step 3: Create the writer thread. */
9786 if (pthread_create (&writer, NULL, writer_func, NULL))
9788 /* Job done. Go to sleep. */
9796 if ac_fn_c_try_run "$LINENO"; then :
9797 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
9799 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
9801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9802 conftest.$ac_objext conftest.beam conftest.$ac_ext
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
9809 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
9810 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
9813 $as_echo "@%:@define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
9819 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9823 #include <pthread.h>
9828 #if __FreeBSD__ == 4
9829 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
9830 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
9831 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
9832 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
9834 int x = (int)PTHREAD_MUTEX_RECURSIVE;
9842 if ac_fn_c_try_compile "$LINENO"; then :
9844 $as_echo "@%:@define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863 acl_save_prefix="$prefix"
9864 prefix="$acl_final_prefix"
9865 acl_save_exec_prefix="$exec_prefix"
9866 exec_prefix="$acl_final_exec_prefix"
9868 eval additional_includedir=\"$includedir\"
9869 eval additional_libdir=\"$libdir\"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9875 @%:@ Check whether --with-libiconv-prefix was given.
9876 if test "${with_libiconv_prefix+set}" = set; then :
9877 withval=$with_libiconv_prefix;
9878 if test "X$withval" = "Xno"; then
9881 if test "X$withval" = "X"; then
9883 acl_save_prefix="$prefix"
9884 prefix="$acl_final_prefix"
9885 acl_save_exec_prefix="$exec_prefix"
9886 exec_prefix="$acl_final_exec_prefix"
9888 eval additional_includedir=\"$includedir\"
9889 eval additional_libdir=\"$libdir\"
9891 exec_prefix="$acl_save_exec_prefix"
9892 prefix="$acl_save_prefix"
9895 additional_includedir="$withval/include"
9896 additional_libdir="$withval/$acl_libdirstem"
9897 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9898 && test ! -d "$withval/$acl_libdirstem"; then
9899 additional_libdir="$withval/$acl_libdirstem2"
9913 names_already_handled=
9914 names_next_round='iconv '
9915 while test -n "$names_next_round"; do
9916 names_this_round="$names_next_round"
9918 for name in $names_this_round; do
9920 for n in $names_already_handled; do
9921 if test "$n" = "$name"; then
9926 if test -z "$already_handled"; then
9927 names_already_handled="$names_already_handled $name"
9928 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9929 eval value=\"\$HAVE_LIB$uppername\"
9930 if test -n "$value"; then
9931 if test "$value" = yes; then
9932 eval value=\"\$LIB$uppername\"
9933 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9934 eval value=\"\$LTLIB$uppername\"
9935 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9944 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9945 if test -n "$acl_shlibext"; then
9946 shrext=".$acl_shlibext" # typically: shrext=.so
9950 if test $use_additional = yes; then
9951 dir="$additional_libdir"
9952 if test -n "$acl_shlibext"; then
9953 if test -f "$dir/$libname$shrext"; then
9955 found_so="$dir/$libname$shrext"
9957 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9958 ver=`(cd "$dir" && \
9959 for f in "$libname$shrext".*; do echo "$f"; done \
9960 | sed -e "s,^$libname$shrext\\\\.,," \
9961 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9962 | sed 1q ) 2>/dev/null`
9963 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9965 found_so="$dir/$libname$shrext.$ver"
9968 eval library_names=\"$acl_library_names_spec\"
9969 for f in $library_names; do
9970 if test -f "$dir/$f"; then
9979 if test "X$found_dir" = "X"; then
9980 if test -f "$dir/$libname.$acl_libext"; then
9982 found_a="$dir/$libname.$acl_libext"
9985 if test "X$found_dir" != "X"; then
9986 if test -f "$dir/$libname.la"; then
9987 found_la="$dir/$libname.la"
9991 if test "X$found_dir" = "X"; then
9992 for x in $LDFLAGS $LTLIBICONV; do
9994 acl_save_prefix="$prefix"
9995 prefix="$acl_final_prefix"
9996 acl_save_exec_prefix="$exec_prefix"
9997 exec_prefix="$acl_final_exec_prefix"
9999 exec_prefix="$acl_save_exec_prefix"
10000 prefix="$acl_save_prefix"
10004 dir=`echo "X$x" | sed -e 's/^X-L//'`
10005 if test -n "$acl_shlibext"; then
10006 if test -f "$dir/$libname$shrext"; then
10008 found_so="$dir/$libname$shrext"
10010 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10011 ver=`(cd "$dir" && \
10012 for f in "$libname$shrext".*; do echo "$f"; done \
10013 | sed -e "s,^$libname$shrext\\\\.,," \
10014 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10015 | sed 1q ) 2>/dev/null`
10016 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10018 found_so="$dir/$libname$shrext.$ver"
10021 eval library_names=\"$acl_library_names_spec\"
10022 for f in $library_names; do
10023 if test -f "$dir/$f"; then
10032 if test "X$found_dir" = "X"; then
10033 if test -f "$dir/$libname.$acl_libext"; then
10035 found_a="$dir/$libname.$acl_libext"
10038 if test "X$found_dir" != "X"; then
10039 if test -f "$dir/$libname.la"; then
10040 found_la="$dir/$libname.la"
10045 if test "X$found_dir" != "X"; then
10050 if test "X$found_dir" != "X"; then
10051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10052 if test "X$found_so" != "X"; then
10053 if test "$enable_rpath" = no \
10054 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10055 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10059 for x in $ltrpathdirs; do
10060 if test "X$x" = "X$found_dir"; then
10065 if test -z "$haveit"; then
10066 ltrpathdirs="$ltrpathdirs $found_dir"
10068 if test "$acl_hardcode_direct" = yes; then
10069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10071 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10074 for x in $rpathdirs; do
10075 if test "X$x" = "X$found_dir"; then
10080 if test -z "$haveit"; then
10081 rpathdirs="$rpathdirs $found_dir"
10085 for x in $LDFLAGS $LIBICONV; do
10087 acl_save_prefix="$prefix"
10088 prefix="$acl_final_prefix"
10089 acl_save_exec_prefix="$exec_prefix"
10090 exec_prefix="$acl_final_exec_prefix"
10092 exec_prefix="$acl_save_exec_prefix"
10093 prefix="$acl_save_prefix"
10095 if test "X$x" = "X-L$found_dir"; then
10100 if test -z "$haveit"; then
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10103 if test "$acl_hardcode_minus_L" != no; then
10104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10112 if test "X$found_a" != "X"; then
10113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10115 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10118 additional_includedir=
10119 case "$found_dir" in
10120 */$acl_libdirstem | */$acl_libdirstem/)
10121 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10122 if test "$name" = 'iconv'; then
10123 LIBICONV_PREFIX="$basedir"
10125 additional_includedir="$basedir/include"
10127 */$acl_libdirstem2 | */$acl_libdirstem2/)
10128 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10129 if test "$name" = 'iconv'; then
10130 LIBICONV_PREFIX="$basedir"
10132 additional_includedir="$basedir/include"
10135 if test "X$additional_includedir" != "X"; then
10136 if test "X$additional_includedir" != "X/usr/include"; then
10138 if test "X$additional_includedir" = "X/usr/local/include"; then
10139 if test -n "$GCC"; then
10141 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10145 if test -z "$haveit"; then
10146 for x in $CPPFLAGS $INCICONV; do
10148 acl_save_prefix="$prefix"
10149 prefix="$acl_final_prefix"
10150 acl_save_exec_prefix="$exec_prefix"
10151 exec_prefix="$acl_final_exec_prefix"
10153 exec_prefix="$acl_save_exec_prefix"
10154 prefix="$acl_save_prefix"
10156 if test "X$x" = "X-I$additional_includedir"; then
10161 if test -z "$haveit"; then
10162 if test -d "$additional_includedir"; then
10163 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10169 if test -n "$found_la"; then
10170 save_libdir="$libdir"
10171 case "$found_la" in
10172 */* | *\\*) . "$found_la" ;;
10173 *) . "./$found_la" ;;
10175 libdir="$save_libdir"
10176 for dep in $dependency_libs; do
10179 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10180 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10181 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10183 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10184 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10185 if test -n "$GCC"; then
10187 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10191 if test -z "$haveit"; then
10193 for x in $LDFLAGS $LIBICONV; do
10195 acl_save_prefix="$prefix"
10196 prefix="$acl_final_prefix"
10197 acl_save_exec_prefix="$exec_prefix"
10198 exec_prefix="$acl_final_exec_prefix"
10200 exec_prefix="$acl_save_exec_prefix"
10201 prefix="$acl_save_prefix"
10203 if test "X$x" = "X-L$additional_libdir"; then
10208 if test -z "$haveit"; then
10209 if test -d "$additional_libdir"; then
10210 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10214 for x in $LDFLAGS $LTLIBICONV; do
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 acl_save_exec_prefix="$exec_prefix"
10219 exec_prefix="$acl_final_exec_prefix"
10221 exec_prefix="$acl_save_exec_prefix"
10222 prefix="$acl_save_prefix"
10224 if test "X$x" = "X-L$additional_libdir"; then
10229 if test -z "$haveit"; then
10230 if test -d "$additional_libdir"; then
10231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10238 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10239 if test "$enable_rpath" != no; then
10241 for x in $rpathdirs; do
10242 if test "X$x" = "X$dir"; then
10247 if test -z "$haveit"; then
10248 rpathdirs="$rpathdirs $dir"
10251 for x in $ltrpathdirs; do
10252 if test "X$x" = "X$dir"; then
10257 if test -z "$haveit"; then
10258 ltrpathdirs="$ltrpathdirs $dir"
10263 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10269 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10270 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10276 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10283 if test "X$rpathdirs" != "X"; then
10284 if test -n "$acl_hardcode_libdir_separator"; then
10286 for found_dir in $rpathdirs; do
10287 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10289 acl_save_libdir="$libdir"
10291 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10292 libdir="$acl_save_libdir"
10293 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10295 for found_dir in $rpathdirs; do
10296 acl_save_libdir="$libdir"
10297 libdir="$found_dir"
10298 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10299 libdir="$acl_save_libdir"
10300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10304 if test "X$ltrpathdirs" != "X"; then
10305 for found_dir in $ltrpathdirs; do
10306 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10320 am_save_CPPFLAGS="$CPPFLAGS"
10322 for element in $INCICONV; do
10324 for x in $CPPFLAGS; do
10326 acl_save_prefix="$prefix"
10327 prefix="$acl_final_prefix"
10328 acl_save_exec_prefix="$exec_prefix"
10329 exec_prefix="$acl_final_exec_prefix"
10331 exec_prefix="$acl_save_exec_prefix"
10332 prefix="$acl_save_prefix"
10334 if test "X$x" = "X$element"; then
10339 if test -z "$haveit"; then
10340 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10346 $as_echo_n "checking for iconv... " >&6; }
10347 if ${am_cv_func_iconv+:} false; then :
10348 $as_echo_n "(cached) " >&6
10351 am_cv_func_iconv="no, consider installing GNU libiconv"
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 #include <stdlib.h>
10362 iconv_t cd = iconv_open("","");
10363 iconv(cd,NULL,NULL,NULL,NULL);
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 am_cv_func_iconv=yes
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 if test "$am_cv_func_iconv" != yes; then
10375 am_save_LIBS="$LIBS"
10376 LIBS="$LIBS $LIBICONV"
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10380 #include <stdlib.h>
10386 iconv_t cd = iconv_open("","");
10387 iconv(cd,NULL,NULL,NULL,NULL);
10393 if ac_fn_c_try_link "$LINENO"; then :
10394 am_cv_lib_iconv=yes
10395 am_cv_func_iconv=yes
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS="$am_save_LIBS"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10404 $as_echo "$am_cv_func_iconv" >&6; }
10405 if test "$am_cv_func_iconv" = yes; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10407 $as_echo_n "checking for working iconv... " >&6; }
10408 if ${am_cv_func_iconv_works+:} false; then :
10409 $as_echo_n "(cached) " >&6
10412 am_save_LIBS="$LIBS"
10413 if test $am_cv_lib_iconv = yes; then
10414 LIBS="$LIBS $LIBICONV"
10416 am_cv_func_iconv_works=no
10417 for ac_iconv_const in '' 'const'; do
10418 if test "$cross_compiling" = yes; then :
10420 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10421 *) am_cv_func_iconv_works="guessing yes" ;;
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10428 #include <string.h>
10430 #ifndef ICONV_CONST
10431 # define ICONV_CONST $ac_iconv_const
10438 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10441 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10442 if (cd_utf8_to_88591 != (iconv_t)(-1))
10444 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10446 ICONV_CONST char *inptr = input;
10447 size_t inbytesleft = strlen (input);
10448 char *outptr = buf;
10449 size_t outbytesleft = sizeof (buf);
10450 size_t res = iconv (cd_utf8_to_88591,
10451 &inptr, &inbytesleft,
10452 &outptr, &outbytesleft);
10455 iconv_close (cd_utf8_to_88591);
10458 /* Test against Solaris 10 bug: Failures are not distinguishable from
10459 successful returns. */
10461 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10462 if (cd_ascii_to_88591 != (iconv_t)(-1))
10464 static ICONV_CONST char input[] = "\263";
10466 ICONV_CONST char *inptr = input;
10467 size_t inbytesleft = strlen (input);
10468 char *outptr = buf;
10469 size_t outbytesleft = sizeof (buf);
10470 size_t res = iconv (cd_ascii_to_88591,
10471 &inptr, &inbytesleft,
10472 &outptr, &outbytesleft);
10475 iconv_close (cd_ascii_to_88591);
10478 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10480 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10481 if (cd_88591_to_utf8 != (iconv_t)(-1))
10483 static ICONV_CONST char input[] = "\304";
10484 static char buf[2] = { (char)0xDE, (char)0xAD };
10485 ICONV_CONST char *inptr = input;
10486 size_t inbytesleft = 1;
10487 char *outptr = buf;
10488 size_t outbytesleft = 1;
10489 size_t res = iconv (cd_88591_to_utf8,
10490 &inptr, &inbytesleft,
10491 &outptr, &outbytesleft);
10492 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10494 iconv_close (cd_88591_to_utf8);
10497 #if 0 /* This bug could be worked around by the caller. */
10498 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10500 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10501 if (cd_88591_to_utf8 != (iconv_t)(-1))
10503 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10505 ICONV_CONST char *inptr = input;
10506 size_t inbytesleft = strlen (input);
10507 char *outptr = buf;
10508 size_t outbytesleft = sizeof (buf);
10509 size_t res = iconv (cd_88591_to_utf8,
10510 &inptr, &inbytesleft,
10511 &outptr, &outbytesleft);
10514 iconv_close (cd_88591_to_utf8);
10518 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10521 /* Try standardized names. */
10522 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10523 /* Try IRIX, OSF/1 names. */
10524 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10525 /* Try AIX names. */
10526 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10527 /* Try HP-UX names. */
10528 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10529 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10530 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10532 if (cd1 != (iconv_t)(-1))
10534 if (cd2 != (iconv_t)(-1))
10536 if (cd3 != (iconv_t)(-1))
10538 if (cd4 != (iconv_t)(-1))
10547 if ac_fn_c_try_run "$LINENO"; then :
10548 am_cv_func_iconv_works=yes
10550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10551 conftest.$ac_objext conftest.beam conftest.$ac_ext
10554 test "$am_cv_func_iconv_works" = no || break
10556 LIBS="$am_save_LIBS"
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10560 $as_echo "$am_cv_func_iconv_works" >&6; }
10561 case "$am_cv_func_iconv_works" in
10562 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10563 *) am_func_iconv=yes ;;
10566 am_func_iconv=no am_cv_lib_iconv=no
10568 if test "$am_func_iconv" = yes; then
10570 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
10573 if test "$am_cv_lib_iconv" = yes; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10575 $as_echo_n "checking how to link with libiconv... " >&6; }
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10577 $as_echo "$LIBICONV" >&6; }
10579 CPPFLAGS="$am_save_CPPFLAGS"
10586 if test "$am_cv_func_iconv" = yes; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10588 $as_echo_n "checking for iconv declaration... " >&6; }
10589 if ${am_cv_proto_iconv+:} false; then :
10590 $as_echo_n "(cached) " >&6
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10596 #include <stdlib.h>
10602 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
10603 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10616 if ac_fn_c_try_compile "$LINENO"; then :
10617 am_cv_proto_iconv_arg1=""
10619 am_cv_proto_iconv_arg1="const"
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 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);"
10625 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
10627 $am_cv_proto_iconv" >&5
10629 $am_cv_proto_iconv" >&6; }
10631 am_cv_proto_iconv_arg1=""
10634 cat >>confdefs.h <<_ACEOF
10635 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
10654 if ac_fn_c_try_link "$LINENO"; then :
10656 $as_echo "@%:@define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10662 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
10664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10667 cat >>confdefs.h <<_ACEOF
10668 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
10676 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
10677 argz_next __fsetlocking
10679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10682 cat >>confdefs.h <<_ACEOF
10683 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10690 for ac_func in localeconv
10692 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
10693 if test "x$ac_cv_func_localeconv" = xyes; then :
10694 cat >>confdefs.h <<_ACEOF
10695 @%:@define HAVE_LOCALECONV 1
10702 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
10704 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
10710 cat >>confdefs.h <<_ACEOF
10711 @%:@define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
10713 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
10715 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
10721 cat >>confdefs.h <<_ACEOF
10722 @%:@define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
10728 for ac_prog in bison
10730 # Extract the first word of "$ac_prog", so it can be a program name with args.
10731 set dummy $ac_prog; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_prog_INTLBISON+:} false; then :
10735 $as_echo_n "(cached) " >&6
10737 if test -n "$INTLBISON"; then
10738 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10747 ac_cv_prog_INTLBISON="$ac_prog"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 INTLBISON=$ac_cv_prog_INTLBISON
10758 if test -n "$INTLBISON"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
10760 $as_echo "$INTLBISON" >&6; }
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10767 test -n "$INTLBISON" && break
10770 if test -z "$INTLBISON"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
10774 $as_echo_n "checking version of bison... " >&6; }
10775 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10776 case $ac_prog_version in
10777 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10778 2.[7-9]* | [3-9].*)
10779 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10780 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
10783 $as_echo "$ac_prog_version" >&6; }
10785 if test $ac_verc_fail = yes; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10792 $as_echo_n "checking for long long int... " >&6; }
10793 if ${ac_cv_type_long_long_int+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 ac_cv_type_long_long_int=yes
10797 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10798 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10799 if test $ac_cv_type_long_long_int = yes; then
10800 if test "$cross_compiling" = yes; then :
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 @%:@include <limits.h>
10806 @%:@ifndef LLONG_MAX
10808 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10809 @%:@ define LLONG_MAX (HALF - 1 + HALF)
10814 long long int n = 1;
10818 long long int m = n << i;
10821 if (LLONG_MAX / 2 < m)
10829 if ac_fn_c_try_run "$LINENO"; then :
10832 ac_cv_type_long_long_int=no
10834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10835 conftest.$ac_objext conftest.beam conftest.$ac_ext
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10842 $as_echo "$ac_cv_type_long_long_int" >&6; }
10843 if test $ac_cv_type_long_long_int = yes; then
10845 $as_echo "@%:@define HAVE_LONG_LONG_INT 1" >>confdefs.h
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10851 $as_echo_n "checking for wchar_t... " >&6; }
10852 if ${gt_cv_c_wchar_t+:} false; then :
10853 $as_echo_n "(cached) " >&6
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857 #include <stddef.h>
10858 wchar_t foo = (wchar_t)'\0';
10867 if ac_fn_c_try_compile "$LINENO"; then :
10868 gt_cv_c_wchar_t=yes
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10875 $as_echo "$gt_cv_c_wchar_t" >&6; }
10876 if test $gt_cv_c_wchar_t = yes; then
10878 $as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10884 $as_echo_n "checking for wint_t... " >&6; }
10885 if ${gt_cv_c_wint_t+:} false; then :
10886 $as_echo_n "(cached) " >&6
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10893 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10894 before <wchar.h>. */
10895 #include <stddef.h>
10899 wint_t foo = (wchar_t)'\0';
10908 if ac_fn_c_try_compile "$LINENO"; then :
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10916 $as_echo "$gt_cv_c_wint_t" >&6; }
10917 if test $gt_cv_c_wint_t = yes; then
10919 $as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
10923 $as_echo_n "checking whether wint_t is too small... " >&6; }
10924 if ${gl_cv_type_wint_t_too_small+:} false; then :
10925 $as_echo_n "(cached) " >&6
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10932 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10933 included before <wchar.h>. */
10934 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10935 # include <stddef.h>
10936 # include <stdio.h>
10940 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 gl_cv_type_wint_t_too_small=no
10953 gl_cv_type_wint_t_too_small=yes
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
10958 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
10959 if test $gl_cv_type_wint_t_too_small = yes; then
10960 GNULIB_OVERRIDES_WINT_T=1
10962 GNULIB_OVERRIDES_WINT_T=0
10965 GNULIB_OVERRIDES_WINT_T=0
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10973 $as_echo_n "checking for intmax_t... " >&6; }
10974 if ${gt_cv_c_intmax_t+:} false; then :
10975 $as_echo_n "(cached) " >&6
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10980 #include <stddef.h>
10981 #include <stdlib.h>
10982 #if HAVE_STDINT_H_WITH_UINTMAX
10983 #include <stdint.h>
10985 #if HAVE_INTTYPES_H_WITH_UINTMAX
10986 #include <inttypes.h>
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 gt_cv_c_intmax_t=yes
11001 gt_cv_c_intmax_t=no
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11006 $as_echo "$gt_cv_c_intmax_t" >&6; }
11007 if test $gt_cv_c_intmax_t = yes; then
11009 $as_echo "@%:@define HAVE_INTMAX_T 1" >>confdefs.h
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11016 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
11017 if ${gt_cv_func_printf_posix+:} false; then :
11018 $as_echo_n "(cached) " >&6
11021 if test "$cross_compiling" = yes; then :
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11032 $EGREP "notposix" >/dev/null 2>&1; then :
11033 gt_cv_func_printf_posix="guessing no"
11035 gt_cv_func_printf_posix="guessing yes"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11045 #include <string.h>
11046 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11047 dollar expansion (possibly an autoconf bug). */
11048 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11049 static char buf[100];
11052 sprintf (buf, format, 33, 55);
11053 return (strcmp (buf, "55 33") != 0);
11056 if ac_fn_c_try_run "$LINENO"; then :
11057 gt_cv_func_printf_posix=yes
11059 gt_cv_func_printf_posix=no
11061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11062 conftest.$ac_objext conftest.beam conftest.$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11068 $as_echo "$gt_cv_func_printf_posix" >&6; }
11069 case $gt_cv_func_printf_posix in
11072 $as_echo "@%:@define HAVE_POSIX_PRINTF 1" >>confdefs.h
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11079 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11080 if ${ac_cv_gnu_library_2_1+:} false; then :
11081 $as_echo_n "(cached) " >&6
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 #include <features.h>
11087 #ifdef __GNU_LIBRARY__
11088 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11098 $EGREP "Lucky" >/dev/null 2>&1; then :
11099 ac_cv_gnu_library_2_1=yes
11101 ac_cv_gnu_library_2_1=no
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11109 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11111 GLIBC21="$ac_cv_gnu_library_2_1"
11115 for ac_header in stdint.h
11117 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11118 if test "x$ac_cv_header_stdint_h" = xyes; then :
11119 cat >>confdefs.h <<_ACEOF
11120 @%:@define HAVE_STDINT_H 1
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11128 $as_echo_n "checking for SIZE_MAX... " >&6; }
11129 if ${gl_cv_size_max+:} false; then :
11130 $as_echo_n "(cached) " >&6
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11137 #include <limits.h>
11139 #include <stdint.h>
11146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11147 $EGREP "Found it" >/dev/null 2>&1; then :
11152 if test -z "$gl_cv_size_max"; then
11153 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11154 #include <limits.h>"; then :
11157 size_t_bits_minus_1=
11160 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
11166 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
11167 if test $fits_in_uint = 1; then
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11170 #include <stddef.h>
11172 extern unsigned long foo;
11182 if ac_fn_c_try_compile "$LINENO"; then :
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 if test $fits_in_uint = 1; then
11188 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
11190 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
11193 gl_cv_size_max='((size_t)~(size_t)0)'
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
11199 $as_echo "$gl_cv_size_max" >&6; }
11200 if test "$gl_cv_size_max" != yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 @%:@define SIZE_MAX $gl_cv_size_max
11211 for ac_header in stdint.h
11213 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11214 if test "x$ac_cv_header_stdint_h" = xyes; then :
11215 cat >>confdefs.h <<_ACEOF
11216 @%:@define HAVE_STDINT_H 1
11227 for ac_func in $ac_func_list
11229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11232 cat >>confdefs.h <<_ACEOF
11233 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11247 $as_echo_n "checking for working fcntl.h... " >&6; }
11248 if ${gl_cv_header_working_fcntl_h+:} false; then :
11249 $as_echo_n "(cached) " >&6
11251 if test "$cross_compiling" = yes; then :
11253 # Guess 'no' on native Windows.
11254 mingw*) gl_cv_header_working_fcntl_h='no' ;;
11255 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 #include <sys/types.h>
11262 #include <sys/stat.h>
11264 # include <unistd.h>
11265 #else /* on Windows with MSVC */
11267 # include <stdlib.h>
11268 # defined sleep(n) _sleep ((n) * 1000)
11272 #define O_NOATIME 0
11275 #define O_NOFOLLOW 0
11277 static int const constants[] =
11279 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11280 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11287 int result = !constants;
11290 static char const sym[] = "conftest.sym";
11291 if (symlink ("/dev/null", sym) != 0)
11295 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
11302 if (unlink (sym) != 0 || symlink (".", sym) != 0)
11306 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
11317 static char const file[] = "confdefs.h";
11318 int fd = open (file, O_RDONLY | O_NOATIME);
11324 if (fstat (fd, &st0) != 0)
11330 if (read (fd, &c, 1) != 1)
11334 if (close (fd) != 0)
11339 if (stat (file, &st1) != 0)
11342 if (st0.st_atime != st1.st_atime)
11354 if ac_fn_c_try_run "$LINENO"; then :
11355 gl_cv_header_working_fcntl_h=yes
11358 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11359 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11360 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11361 *) gl_cv_header_working_fcntl_h='no';;
11364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11365 conftest.$ac_objext conftest.beam conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11371 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11373 case $gl_cv_header_working_fcntl_h in #(
11374 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11378 cat >>confdefs.h <<_ACEOF
11379 @%:@define HAVE_WORKING_O_NOATIME $ac_val
11383 case $gl_cv_header_working_fcntl_h in #(
11384 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11388 cat >>confdefs.h <<_ACEOF
11389 @%:@define HAVE_WORKING_O_NOFOLLOW $ac_val
11407 if test $ac_cv_func_uselocale = yes; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
11410 $as_echo_n "checking whether uselocale works... " >&6; }
11411 if ${gt_cv_func_uselocale_works+:} false; then :
11412 $as_echo_n "(cached) " >&6
11414 if test "$cross_compiling" = yes; then :
11415 # Guess no on AIX, yes otherwise.
11417 aix*) gt_cv_func_uselocale_works="guessing no" ;;
11418 *) gt_cv_func_uselocale_works="guessing yes" ;;
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 #include <locale.h>
11427 # include <xlocale.h>
11432 setlocale (LC_ALL, "en_US.UTF-8");
11436 if ac_fn_c_try_run "$LINENO"; then :
11437 gt_cv_func_uselocale_works=yes
11439 gt_cv_func_uselocale_works=no
11441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11442 conftest.$ac_objext conftest.beam conftest.$ac_ext
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
11448 $as_echo "$gt_cv_func_uselocale_works" >&6; }
11450 gt_cv_func_uselocale_works=no
11452 case "$gt_cv_func_uselocale_works" in
11455 $as_echo "@%:@define HAVE_WORKING_USELOCALE 1" >>confdefs.h
11461 case "$gt_cv_func_uselocale_works" in
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
11465 $as_echo_n "checking for fake locale system (OpenBSD)... " >&6; }
11466 if ${gt_cv_locale_fake+:} false; then :
11467 $as_echo_n "(cached) " >&6
11469 if test "$cross_compiling" = yes; then :
11471 openbsd*) gt_cv_locale_fake="guessing yes" ;;
11472 *) gt_cv_locale_fake="guessing no" ;;
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 #include <locale.h>
11481 # include <xlocale.h>
11485 locale_t loc1, loc2;
11486 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
11487 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
11488 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
11489 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
11490 return !(loc1 == loc2);
11493 if ac_fn_c_try_run "$LINENO"; then :
11494 gt_cv_locale_fake=yes
11496 gt_cv_locale_fake=no
11498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11499 conftest.$ac_objext conftest.beam conftest.$ac_ext
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
11505 $as_echo "$gt_cv_locale_fake" >&6; }
11507 *) gt_cv_locale_fake=no ;;
11509 case "$gt_cv_locale_fake" in
11512 $as_echo "@%:@define HAVE_FAKE_LOCALES 1" >>confdefs.h
11517 case "$gt_cv_func_uselocale_works" in
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
11520 $as_echo_n "checking for Solaris 11.4 locale system... " >&6; }
11521 if ${gt_cv_locale_solaris114+:} false; then :
11522 $as_echo_n "(cached) " >&6
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11529 #include <locale.h>
11530 struct _LC_locale_t *x;
11541 if ac_fn_c_try_compile "$LINENO"; then :
11542 gt_cv_locale_solaris114=yes
11544 gt_cv_locale_solaris114=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 *) gt_cv_locale_solaris114=no ;;
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
11553 $as_echo "$gt_cv_locale_solaris114" >&6; }
11555 *) gt_cv_locale_solaris114=no ;;
11557 if test $gt_cv_locale_solaris114 = yes; then
11559 $as_echo "@%:@define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
11563 case "$gt_cv_func_uselocale_works" in
11565 for ac_func in getlocalename_l
11567 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
11568 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
11569 cat >>confdefs.h <<_ACEOF
11570 @%:@define HAVE_GETLOCALENAME_L 1
11579 gt_nameless_locales=no
11581 gt_nameless_locales=yes
11583 $as_echo "@%:@define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11589 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11590 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
11591 $as_echo_n "(cached) " >&6
11593 gt_save_LIBS="$LIBS"
11594 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #include <CoreFoundation/CFPreferences.h>
11601 CFPreferencesCopyAppValue(NULL, NULL)
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 gt_cv_func_CFPreferencesCopyAppValue=yes
11609 gt_cv_func_CFPreferencesCopyAppValue=no
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS="$gt_save_LIBS"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11616 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11617 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11619 $as_echo "@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11623 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11624 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11625 $as_echo_n "(cached) " >&6
11627 gt_save_LIBS="$LIBS"
11628 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 #include <CoreFoundation/CFLocale.h>
11635 CFLocaleCopyCurrent();
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 gt_cv_func_CFLocaleCopyCurrent=yes
11643 gt_cv_func_CFLocaleCopyCurrent=no
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS="$gt_save_LIBS"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11650 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11651 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11653 $as_echo "@%:@define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
11657 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
11658 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
11659 $as_echo_n "(cached) " >&6
11661 gt_save_LIBS="$LIBS"
11662 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #include <CoreFoundation/CFLocale.h>
11669 CFLocaleCopyPreferredLanguages();
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
11677 gt_cv_func_CFLocaleCopyPreferredLanguages=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS="$gt_save_LIBS"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
11684 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
11685 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
11687 $as_echo "@%:@define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
11691 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
11692 || test $gt_cv_func_CFLocaleCopyCurrent = yes \
11693 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
11694 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11705 $as_echo_n "checking for flexible array members... " >&6; }
11706 if ${ac_cv_c_flexmember+:} false; then :
11707 $as_echo_n "(cached) " >&6
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 #include <stdlib.h>
11713 #include <stddef.h>
11714 struct s { int n; double d[]; };
11718 int m = getchar ();
11719 struct s *p = malloc (offsetof (struct s, d)
11720 + m * sizeof (double));
11722 return p->d != (double *) NULL;
11727 if ac_fn_c_try_compile "$LINENO"; then :
11728 ac_cv_c_flexmember=yes
11730 ac_cv_c_flexmember=no
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11735 $as_echo "$ac_cv_c_flexmember" >&6; }
11736 if test $ac_cv_c_flexmember = yes; then
11738 $as_echo "@%:@define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11741 $as_echo "@%:@define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11752 if test -n "$ac_tool_prefix"; then
11753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11754 set dummy ${ac_tool_prefix}ar; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if ${ac_cv_prog_AR+:} false; then :
11758 $as_echo_n "(cached) " >&6
11760 if test -n "$AR"; then
11761 ac_cv_prog_AR="$AR" # Let the user override the test.
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_prog_AR="${ac_tool_prefix}ar"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 if test -n "$AR"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11783 $as_echo "$AR" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11791 if test -z "$ac_cv_prog_AR"; then
11793 # Extract the first word of "ar", so it can be a program name with args.
11794 set dummy ar; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11798 $as_echo_n "(cached) " >&6
11800 if test -n "$ac_ct_AR"; then
11801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11810 ac_cv_prog_ac_ct_AR="ar"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11821 if test -n "$ac_ct_AR"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11823 $as_echo "$ac_ct_AR" >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11829 if test "x$ac_ct_AR" = x; then
11832 case $cross_compiling:$ac_tool_warned in
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11836 ac_tool_warned=yes ;;
11841 AR="$ac_cv_prog_AR"
11844 if test -z "$ARFLAGS"; then
11851 case "$enable_silent_rules" in
11852 yes) INTL_DEFAULT_VERBOSITY=0;;
11853 no) INTL_DEFAULT_VERBOSITY=1;;
11854 *) INTL_DEFAULT_VERBOSITY=1;;
11858 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11859 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11863 $as_echo "@%:@define ptrdiff_t long" >>confdefs.h
11868 for ac_header in features.h stddef.h stdlib.h string.h
11870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11873 cat >>confdefs.h <<_ACEOF
11874 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11881 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
11882 snprintf strnlen uselocale wcslen wcsnlen mbrtowc wcrtomb
11884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11887 cat >>confdefs.h <<_ACEOF
11888 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11895 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
11897 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
11903 cat >>confdefs.h <<_ACEOF
11904 @%:@define HAVE_DECL__SNPRINTF $ac_have_decl
11906 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
11908 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
11914 cat >>confdefs.h <<_ACEOF
11915 @%:@define HAVE_DECL__SNWPRINTF $ac_have_decl
11919 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
11921 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11927 cat >>confdefs.h <<_ACEOF
11928 @%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11932 case $gt_cv_func_printf_posix in
11933 *yes) HAVE_POSIX_PRINTF=1 ;;
11934 *) HAVE_POSIX_PRINTF=0 ;;
11937 if test "$ac_cv_func_asprintf" = yes; then
11943 if test "$ac_cv_func_snprintf" = yes; then
11949 if test "$ac_cv_func_newlocale" = yes; then
11955 if test "$ac_cv_func_wprintf" = yes; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11964 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11965 if ${am_cv_langinfo_codeset+:} false; then :
11966 $as_echo_n "(cached) " >&6
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 #include <langinfo.h>
11974 char* cs = nl_langinfo(CODESET); return !cs;
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 am_cv_langinfo_codeset=yes
11982 am_cv_langinfo_codeset=no
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11989 $as_echo "$am_cv_langinfo_codeset" >&6; }
11990 if test $am_cv_langinfo_codeset = yes; then
11992 $as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11998 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11999 if ${gt_cv_val_LC_MESSAGES+:} false; then :
12000 $as_echo_n "(cached) " >&6
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004 #include <locale.h>
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 gt_cv_val_LC_MESSAGES=yes
12016 gt_cv_val_LC_MESSAGES=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
12022 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
12023 if test $gt_cv_val_LC_MESSAGES = yes; then
12025 $as_echo "@%:@define HAVE_LC_MESSAGES 1" >>confdefs.h
12030 if test $gt_nameless_locales = yes; then
12031 HAVE_NAMELESS_LOCALES=1
12033 HAVE_NAMELESS_LOCALES=0
12037 if test "$enable_shared" = yes; then
12039 mingw* | cygwin*) is_woe32dll=yes ;;
12040 *) is_woe32dll=no ;;
12045 WOE32DLL=$is_woe32dll
12049 mingw* | cygwin*) is_woe32=yes ;;
12054 if test $WOE32 = yes; then
12055 if test -n "$ac_tool_prefix"; then
12056 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12057 set dummy ${ac_tool_prefix}windres; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_prog_WINDRES+:} false; then :
12061 $as_echo_n "(cached) " >&6
12063 if test -n "$WINDRES"; then
12064 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083 WINDRES=$ac_cv_prog_WINDRES
12084 if test -n "$WINDRES"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12086 $as_echo "$WINDRES" >&6; }
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12094 if test -z "$ac_cv_prog_WINDRES"; then
12095 ac_ct_WINDRES=$WINDRES
12096 # Extract the first word of "windres", so it can be a program name with args.
12097 set dummy windres; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
12101 $as_echo_n "(cached) " >&6
12103 if test -n "$ac_ct_WINDRES"; then
12104 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_prog_ac_ct_WINDRES="windres"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
12124 if test -n "$ac_ct_WINDRES"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
12126 $as_echo "$ac_ct_WINDRES" >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12132 if test "x$ac_ct_WINDRES" = x; then
12135 case $cross_compiling:$ac_tool_warned in
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12139 ac_tool_warned=yes ;;
12141 WINDRES=$ac_ct_WINDRES
12144 WINDRES="$ac_cv_prog_WINDRES"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12175 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12176 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12177 $as_echo_n "(cached) " >&6
12179 gt_save_LIBS="$LIBS"
12180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <CoreFoundation/CFPreferences.h>
12187 CFPreferencesCopyAppValue(NULL, NULL)
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 gt_cv_func_CFPreferencesCopyAppValue=yes
12195 gt_cv_func_CFPreferencesCopyAppValue=no
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS="$gt_save_LIBS"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12202 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12203 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12205 $as_echo "@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12209 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12210 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 gt_save_LIBS="$LIBS"
12214 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 #include <CoreFoundation/CFLocale.h>
12221 CFLocaleCopyCurrent();
12226 if ac_fn_c_try_link "$LINENO"; then :
12227 gt_cv_func_CFLocaleCopyCurrent=yes
12229 gt_cv_func_CFLocaleCopyCurrent=no
12231 rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233 LIBS="$gt_save_LIBS"
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12236 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12237 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12239 $as_echo "@%:@define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12243 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12244 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
12245 $as_echo_n "(cached) " >&6
12247 gt_save_LIBS="$LIBS"
12248 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <CoreFoundation/CFLocale.h>
12255 CFLocaleCopyPreferredLanguages();
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12263 gt_cv_func_CFLocaleCopyPreferredLanguages=no
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS="$gt_save_LIBS"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12270 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12271 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12273 $as_echo "@%:@define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12277 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12278 || test $gt_cv_func_CFLocaleCopyCurrent = yes \
12279 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12280 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12288 BUILD_INCLUDED_LIBINTL=no
12289 USE_INCLUDED_LIBINTL=no
12295 case " $gt_needs " in
12296 *" need-formatstring-macros "*) gt_api_version=3 ;;
12297 *" need-ngettext "*) gt_api_version=2 ;;
12298 *) gt_api_version=1 ;;
12300 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12301 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12303 if test "$USE_NLS" = "yes"; then
12304 gt_use_preinstalled_gnugettext=no
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
12307 $as_echo_n "checking whether included gettext is requested... " >&6; }
12309 @%:@ Check whether --with-included-gettext was given.
12310 if test "${with_included_gettext+set}" = set; then :
12311 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12313 nls_cv_force_use_gnu_gettext=no
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
12317 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
12319 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12320 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12323 if test $gt_api_version -ge 3; then
12324 gt_revision_test_code='
12325 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12326 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12328 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12331 gt_revision_test_code=
12333 if test $gt_api_version -ge 2; then
12334 gt_expression_test_code=' + * ngettext ("", "", 0)'
12336 gt_expression_test_code=
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12340 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12341 if eval \${$gt_func_gnugettext_libc+:} false; then :
12342 $as_echo_n "(cached) " >&6
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 #include <libintl.h>
12348 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12349 extern int _nl_msg_cat_cntr;
12350 extern int *_nl_domain_bindings;
12351 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12353 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12355 $gt_revision_test_code
12361 bindtextdomain ("", "");
12362 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 eval "$gt_func_gnugettext_libc=yes"
12371 eval "$gt_func_gnugettext_libc=no"
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12376 eval ac_res=\$$gt_func_gnugettext_libc
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12378 $as_echo "$ac_res" >&6; }
12380 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12390 acl_save_prefix="$prefix"
12391 prefix="$acl_final_prefix"
12392 acl_save_exec_prefix="$exec_prefix"
12393 exec_prefix="$acl_final_exec_prefix"
12395 eval additional_includedir=\"$includedir\"
12396 eval additional_libdir=\"$libdir\"
12398 exec_prefix="$acl_save_exec_prefix"
12399 prefix="$acl_save_prefix"
12402 @%:@ Check whether --with-libintl-prefix was given.
12403 if test "${with_libintl_prefix+set}" = set; then :
12404 withval=$with_libintl_prefix;
12405 if test "X$withval" = "Xno"; then
12408 if test "X$withval" = "X"; then
12410 acl_save_prefix="$prefix"
12411 prefix="$acl_final_prefix"
12412 acl_save_exec_prefix="$exec_prefix"
12413 exec_prefix="$acl_final_exec_prefix"
12415 eval additional_includedir=\"$includedir\"
12416 eval additional_libdir=\"$libdir\"
12418 exec_prefix="$acl_save_exec_prefix"
12419 prefix="$acl_save_prefix"
12422 additional_includedir="$withval/include"
12423 additional_libdir="$withval/$acl_libdirstem"
12424 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12425 && test ! -d "$withval/$acl_libdirstem"; then
12426 additional_libdir="$withval/$acl_libdirstem2"
12440 names_already_handled=
12441 names_next_round='intl '
12442 while test -n "$names_next_round"; do
12443 names_this_round="$names_next_round"
12445 for name in $names_this_round; do
12447 for n in $names_already_handled; do
12448 if test "$n" = "$name"; then
12449 already_handled=yes
12453 if test -z "$already_handled"; then
12454 names_already_handled="$names_already_handled $name"
12455 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12456 eval value=\"\$HAVE_LIB$uppername\"
12457 if test -n "$value"; then
12458 if test "$value" = yes; then
12459 eval value=\"\$LIB$uppername\"
12460 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12461 eval value=\"\$LTLIB$uppername\"
12462 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12471 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12472 if test -n "$acl_shlibext"; then
12473 shrext=".$acl_shlibext" # typically: shrext=.so
12477 if test $use_additional = yes; then
12478 dir="$additional_libdir"
12479 if test -n "$acl_shlibext"; then
12480 if test -f "$dir/$libname$shrext"; then
12482 found_so="$dir/$libname$shrext"
12484 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12485 ver=`(cd "$dir" && \
12486 for f in "$libname$shrext".*; do echo "$f"; done \
12487 | sed -e "s,^$libname$shrext\\\\.,," \
12488 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12489 | sed 1q ) 2>/dev/null`
12490 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12492 found_so="$dir/$libname$shrext.$ver"
12495 eval library_names=\"$acl_library_names_spec\"
12496 for f in $library_names; do
12497 if test -f "$dir/$f"; then
12506 if test "X$found_dir" = "X"; then
12507 if test -f "$dir/$libname.$acl_libext"; then
12509 found_a="$dir/$libname.$acl_libext"
12512 if test "X$found_dir" != "X"; then
12513 if test -f "$dir/$libname.la"; then
12514 found_la="$dir/$libname.la"
12518 if test "X$found_dir" = "X"; then
12519 for x in $LDFLAGS $LTLIBINTL; do
12521 acl_save_prefix="$prefix"
12522 prefix="$acl_final_prefix"
12523 acl_save_exec_prefix="$exec_prefix"
12524 exec_prefix="$acl_final_exec_prefix"
12526 exec_prefix="$acl_save_exec_prefix"
12527 prefix="$acl_save_prefix"
12531 dir=`echo "X$x" | sed -e 's/^X-L//'`
12532 if test -n "$acl_shlibext"; then
12533 if test -f "$dir/$libname$shrext"; then
12535 found_so="$dir/$libname$shrext"
12537 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12538 ver=`(cd "$dir" && \
12539 for f in "$libname$shrext".*; do echo "$f"; done \
12540 | sed -e "s,^$libname$shrext\\\\.,," \
12541 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12542 | sed 1q ) 2>/dev/null`
12543 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12545 found_so="$dir/$libname$shrext.$ver"
12548 eval library_names=\"$acl_library_names_spec\"
12549 for f in $library_names; do
12550 if test -f "$dir/$f"; then
12559 if test "X$found_dir" = "X"; then
12560 if test -f "$dir/$libname.$acl_libext"; then
12562 found_a="$dir/$libname.$acl_libext"
12565 if test "X$found_dir" != "X"; then
12566 if test -f "$dir/$libname.la"; then
12567 found_la="$dir/$libname.la"
12572 if test "X$found_dir" != "X"; then
12577 if test "X$found_dir" != "X"; then
12578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12579 if test "X$found_so" != "X"; then
12580 if test "$enable_rpath" = no \
12581 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12582 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12583 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12586 for x in $ltrpathdirs; do
12587 if test "X$x" = "X$found_dir"; then
12592 if test -z "$haveit"; then
12593 ltrpathdirs="$ltrpathdirs $found_dir"
12595 if test "$acl_hardcode_direct" = yes; then
12596 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12598 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12599 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12601 for x in $rpathdirs; do
12602 if test "X$x" = "X$found_dir"; then
12607 if test -z "$haveit"; then
12608 rpathdirs="$rpathdirs $found_dir"
12612 for x in $LDFLAGS $LIBINTL; do
12614 acl_save_prefix="$prefix"
12615 prefix="$acl_final_prefix"
12616 acl_save_exec_prefix="$exec_prefix"
12617 exec_prefix="$acl_final_exec_prefix"
12619 exec_prefix="$acl_save_exec_prefix"
12620 prefix="$acl_save_prefix"
12622 if test "X$x" = "X-L$found_dir"; then
12627 if test -z "$haveit"; then
12628 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12630 if test "$acl_hardcode_minus_L" != no; then
12631 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12633 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12639 if test "X$found_a" != "X"; then
12640 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12642 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12645 additional_includedir=
12646 case "$found_dir" in
12647 */$acl_libdirstem | */$acl_libdirstem/)
12648 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12649 if test "$name" = 'intl'; then
12650 LIBINTL_PREFIX="$basedir"
12652 additional_includedir="$basedir/include"
12654 */$acl_libdirstem2 | */$acl_libdirstem2/)
12655 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12656 if test "$name" = 'intl'; then
12657 LIBINTL_PREFIX="$basedir"
12659 additional_includedir="$basedir/include"
12662 if test "X$additional_includedir" != "X"; then
12663 if test "X$additional_includedir" != "X/usr/include"; then
12665 if test "X$additional_includedir" = "X/usr/local/include"; then
12666 if test -n "$GCC"; then
12668 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12672 if test -z "$haveit"; then
12673 for x in $CPPFLAGS $INCINTL; do
12675 acl_save_prefix="$prefix"
12676 prefix="$acl_final_prefix"
12677 acl_save_exec_prefix="$exec_prefix"
12678 exec_prefix="$acl_final_exec_prefix"
12680 exec_prefix="$acl_save_exec_prefix"
12681 prefix="$acl_save_prefix"
12683 if test "X$x" = "X-I$additional_includedir"; then
12688 if test -z "$haveit"; then
12689 if test -d "$additional_includedir"; then
12690 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12696 if test -n "$found_la"; then
12697 save_libdir="$libdir"
12698 case "$found_la" in
12699 */* | *\\*) . "$found_la" ;;
12700 *) . "./$found_la" ;;
12702 libdir="$save_libdir"
12703 for dep in $dependency_libs; do
12706 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12707 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12708 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12710 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12711 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12712 if test -n "$GCC"; then
12714 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12718 if test -z "$haveit"; then
12720 for x in $LDFLAGS $LIBINTL; do
12722 acl_save_prefix="$prefix"
12723 prefix="$acl_final_prefix"
12724 acl_save_exec_prefix="$exec_prefix"
12725 exec_prefix="$acl_final_exec_prefix"
12727 exec_prefix="$acl_save_exec_prefix"
12728 prefix="$acl_save_prefix"
12730 if test "X$x" = "X-L$additional_libdir"; then
12735 if test -z "$haveit"; then
12736 if test -d "$additional_libdir"; then
12737 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12741 for x in $LDFLAGS $LTLIBINTL; do
12743 acl_save_prefix="$prefix"
12744 prefix="$acl_final_prefix"
12745 acl_save_exec_prefix="$exec_prefix"
12746 exec_prefix="$acl_final_exec_prefix"
12748 exec_prefix="$acl_save_exec_prefix"
12749 prefix="$acl_save_prefix"
12751 if test "X$x" = "X-L$additional_libdir"; then
12756 if test -z "$haveit"; then
12757 if test -d "$additional_libdir"; then
12758 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12765 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12766 if test "$enable_rpath" != no; then
12768 for x in $rpathdirs; do
12769 if test "X$x" = "X$dir"; then
12774 if test -z "$haveit"; then
12775 rpathdirs="$rpathdirs $dir"
12778 for x in $ltrpathdirs; do
12779 if test "X$x" = "X$dir"; then
12784 if test -z "$haveit"; then
12785 ltrpathdirs="$ltrpathdirs $dir"
12790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12796 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12797 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12803 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12804 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12810 if test "X$rpathdirs" != "X"; then
12811 if test -n "$acl_hardcode_libdir_separator"; then
12813 for found_dir in $rpathdirs; do
12814 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12816 acl_save_libdir="$libdir"
12818 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12819 libdir="$acl_save_libdir"
12820 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12822 for found_dir in $rpathdirs; do
12823 acl_save_libdir="$libdir"
12824 libdir="$found_dir"
12825 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12826 libdir="$acl_save_libdir"
12827 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12831 if test "X$ltrpathdirs" != "X"; then
12832 for found_dir in $ltrpathdirs; do
12833 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12842 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12843 if eval \${$gt_func_gnugettext_libintl+:} false; then :
12844 $as_echo_n "(cached) " >&6
12846 gt_save_CPPFLAGS="$CPPFLAGS"
12847 CPPFLAGS="$CPPFLAGS $INCINTL"
12848 gt_save_LIBS="$LIBS"
12849 LIBS="$LIBS $LIBINTL"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 #include <libintl.h>
12854 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12855 extern int _nl_msg_cat_cntr;
12860 const char *_nl_expand_alias (const char *);
12861 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
12863 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12865 $gt_revision_test_code
12871 bindtextdomain ("", "");
12872 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 eval "$gt_func_gnugettext_libintl=yes"
12881 eval "$gt_func_gnugettext_libintl=no"
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12886 LIBS="$LIBS $LIBICONV"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 #include <libintl.h>
12891 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12892 extern int _nl_msg_cat_cntr;
12897 const char *_nl_expand_alias (const char *);
12898 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
12900 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12902 $gt_revision_test_code
12908 bindtextdomain ("", "");
12909 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 LIBINTL="$LIBINTL $LIBICONV"
12917 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12918 eval "$gt_func_gnugettext_libintl=yes"
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 CPPFLAGS="$gt_save_CPPFLAGS"
12925 LIBS="$gt_save_LIBS"
12927 eval ac_res=\$$gt_func_gnugettext_libintl
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12929 $as_echo "$ac_res" >&6; }
12932 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12933 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12934 && test "$PACKAGE" != gettext-runtime \
12935 && test "$PACKAGE" != gettext-tools; }; then
12936 gt_use_preinstalled_gnugettext=yes
12944 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12945 nls_cv_use_gnu_gettext=yes
12949 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12950 BUILD_INCLUDED_LIBINTL=yes
12951 USE_INCLUDED_LIBINTL=yes
12952 LIBINTL="lib/intl/libintl.a $LIBICONV $LIBTHREAD"
12953 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12954 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12958 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12959 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12964 if test -n "$INTL_MACOSX_LIBS"; then
12965 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12966 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12967 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12968 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12972 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12973 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12975 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12983 $as_echo_n "checking whether to use NLS... " >&6; }
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12985 $as_echo "$USE_NLS" >&6; }
12986 if test "$USE_NLS" = "yes"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12988 $as_echo_n "checking where the gettext function comes from... " >&6; }
12989 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12990 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12991 gt_source="external libintl"
12996 gt_source="included intl directory"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12999 $as_echo "$gt_source" >&6; }
13002 if test "$USE_NLS" = "yes"; then
13004 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13005 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13007 $as_echo_n "checking how to link with libintl... " >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13009 $as_echo "$LIBINTL" >&6; }
13011 for element in $INCINTL; do
13013 for x in $CPPFLAGS; do
13015 acl_save_prefix="$prefix"
13016 prefix="$acl_final_prefix"
13017 acl_save_exec_prefix="$exec_prefix"
13018 exec_prefix="$acl_final_exec_prefix"
13020 exec_prefix="$acl_save_exec_prefix"
13021 prefix="$acl_save_prefix"
13023 if test "X$x" = "X$element"; then
13028 if test -z "$haveit"; then
13029 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13036 $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
13039 $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
13047 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13048 BUILD_INCLUDED_LIBINTL=yes
13055 nls_cv_header_intl=
13056 nls_cv_header_libgt=
13068 if test "$USE_INCLUDED_LIBINTL" = yes; then
13069 INTLOBJS="\$(GETTOBJS)"
13073 INTL_LIBTOOL_SUFFIX_PREFIX=
13077 INTLLIBS="$LIBINTL"
13085 ac_header_dirent=no
13086 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13087 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13089 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13090 if eval \${$as_ac_Header+:} false; then :
13091 $as_echo_n "(cached) " >&6
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include <sys/types.h>
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 eval "$as_ac_Header=yes"
13110 eval "$as_ac_Header=no"
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 eval ac_res=\$$as_ac_Header
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13116 $as_echo "$ac_res" >&6; }
13117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13118 cat >>confdefs.h <<_ACEOF
13119 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13122 ac_header_dirent=$ac_hdr; break
13126 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13127 if test $ac_header_dirent = dirent.h; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13129 $as_echo_n "checking for library containing opendir... " >&6; }
13130 if ${ac_cv_search_opendir+:} false; then :
13131 $as_echo_n "(cached) " >&6
13133 ac_func_search_save_LIBS=$LIBS
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13152 for ac_lib in '' dir; do
13153 if test -z "$ac_lib"; then
13154 ac_res="none required"
13157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13159 if ac_fn_c_try_link "$LINENO"; then :
13160 ac_cv_search_opendir=$ac_res
13162 rm -f core conftest.err conftest.$ac_objext \
13164 if ${ac_cv_search_opendir+:} false; then :
13168 if ${ac_cv_search_opendir+:} false; then :
13171 ac_cv_search_opendir=no
13173 rm conftest.$ac_ext
13174 LIBS=$ac_func_search_save_LIBS
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13177 $as_echo "$ac_cv_search_opendir" >&6; }
13178 ac_res=$ac_cv_search_opendir
13179 if test "$ac_res" != no; then :
13180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13186 $as_echo_n "checking for library containing opendir... " >&6; }
13187 if ${ac_cv_search_opendir+:} false; then :
13188 $as_echo_n "(cached) " >&6
13190 ac_func_search_save_LIBS=$LIBS
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 /* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13209 for ac_lib in '' x; do
13210 if test -z "$ac_lib"; then
13211 ac_res="none required"
13214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13216 if ac_fn_c_try_link "$LINENO"; then :
13217 ac_cv_search_opendir=$ac_res
13219 rm -f core conftest.err conftest.$ac_objext \
13221 if ${ac_cv_search_opendir+:} false; then :
13225 if ${ac_cv_search_opendir+:} false; then :
13228 ac_cv_search_opendir=no
13230 rm conftest.$ac_ext
13231 LIBS=$ac_func_search_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13234 $as_echo "$ac_cv_search_opendir" >&6; }
13235 ac_res=$ac_cv_search_opendir
13236 if test "$ac_res" != no; then :
13237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13244 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13245 if ${ac_cv_header_time+:} false; then :
13246 $as_echo_n "(cached) " >&6
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250 #include <sys/types.h>
13251 #include <sys/time.h>
13257 if ((struct tm *) 0)
13263 if ac_fn_c_try_compile "$LINENO"; then :
13264 ac_cv_header_time=yes
13266 ac_cv_header_time=no
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13271 $as_echo "$ac_cv_header_time" >&6; }
13272 if test $ac_cv_header_time = yes; then
13274 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
13279 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
13280 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
13281 $as_echo_n "(cached) " >&6
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 @%:@include <sys/types.h>
13289 return makedev(0, 0);
13294 if ac_fn_c_try_link "$LINENO"; then :
13295 ac_cv_header_sys_types_h_makedev=yes
13297 ac_cv_header_sys_types_h_makedev=no
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
13304 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
13306 if test $ac_cv_header_sys_types_h_makedev = no; then
13307 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13308 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
13310 $as_echo "@%:@define MAJOR_IN_MKDEV 1" >>confdefs.h
13316 if test $ac_cv_header_sys_mkdev_h = no; then
13317 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13318 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
13320 $as_echo "@%:@define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13330 for ac_header in inttypes.h
13332 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13333 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13334 cat >>confdefs.h <<_ACEOF
13335 @%:@define HAVE_INTTYPES_H 1
13344 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
13345 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
13346 stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \
13347 regex.h syslog.h ulimit.h
13349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13350 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13352 cat >>confdefs.h <<_ACEOF
13353 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13360 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h sys/ioctl.h \
13361 sys/mman.h sys/param.h sys/random.h sys/socket.h sys/stat.h \
13362 sys/time.h sys/times.h sys/types.h sys/wait.h
13364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13367 cat >>confdefs.h <<_ACEOF
13368 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13375 for ac_header in netinet/in.h arpa/inet.h
13377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13378 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13380 cat >>confdefs.h <<_ACEOF
13381 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13389 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
13390 #if HAVE_SYS_STREAM_H
13391 # include <sys/stream.h>
13395 if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
13401 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
13402 #if HAVE_SYS_TIME_H
13403 # include <sys/time.h>
13407 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
13408 $as_echo "@%:@define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
13414 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13415 # for constant arguments. Useless!
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13417 $as_echo_n "checking for working alloca.h... " >&6; }
13418 if ${ac_cv_working_alloca_h+:} false; then :
13419 $as_echo_n "(cached) " >&6
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 @%:@include <alloca.h>
13427 char *p = (char *) alloca (2 * sizeof (int));
13433 if ac_fn_c_try_link "$LINENO"; then :
13434 ac_cv_working_alloca_h=yes
13436 ac_cv_working_alloca_h=no
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13442 $as_echo "$ac_cv_working_alloca_h" >&6; }
13443 if test $ac_cv_working_alloca_h = yes; then
13445 $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13450 $as_echo_n "checking for alloca... " >&6; }
13451 if ${ac_cv_func_alloca_works+:} false; then :
13452 $as_echo_n "(cached) " >&6
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13457 # define alloca __builtin_alloca
13460 # include <malloc.h>
13461 # define alloca _alloca
13463 # ifdef HAVE_ALLOCA_H
13464 # include <alloca.h>
13469 # ifndef alloca /* predefined by HP cc +Olibcalls */
13470 void *alloca (size_t);
13480 char *p = (char *) alloca (1);
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 ac_cv_func_alloca_works=yes
13489 ac_cv_func_alloca_works=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13495 $as_echo "$ac_cv_func_alloca_works" >&6; }
13497 if test $ac_cv_func_alloca_works = yes; then
13499 $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
13502 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13503 # that cause trouble. Some versions do not even contain alloca or
13504 # contain a buggy version. If you still want to use their alloca,
13505 # use ar to extract alloca.o from them instead of compiling alloca.c.
13507 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13509 $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13513 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13514 if ${ac_cv_os_cray+:} false; then :
13515 $as_echo_n "(cached) " >&6
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13519 #if defined CRAY && ! defined CRAY2
13526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13527 $EGREP "webecray" >/dev/null 2>&1; then :
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13536 $as_echo "$ac_cv_os_cray" >&6; }
13537 if test $ac_cv_os_cray = yes; then
13538 for ac_func in _getb67 GETB67 getb67; do
13539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13543 cat >>confdefs.h <<_ACEOF
13544 @%:@define CRAY_STACKSEG_END $ac_func
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13554 $as_echo_n "checking stack direction for C alloca... " >&6; }
13555 if ${ac_cv_c_stack_direction+:} false; then :
13556 $as_echo_n "(cached) " >&6
13558 if test "$cross_compiling" = yes; then :
13559 ac_cv_c_stack_direction=0
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 $ac_includes_default
13565 find_stack_direction (int *addr, int depth)
13567 int dir, dummy = 0;
13570 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13571 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13572 return dir + dummy;
13576 main (int argc, char **argv)
13578 return find_stack_direction (0, argc + !argv + 20) < 0;
13581 if ac_fn_c_try_run "$LINENO"; then :
13582 ac_cv_c_stack_direction=1
13584 ac_cv_c_stack_direction=-1
13586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13587 conftest.$ac_objext conftest.beam conftest.$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13592 $as_echo "$ac_cv_c_stack_direction" >&6; }
13593 cat >>confdefs.h <<_ACEOF
13594 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13601 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13602 if ${ac_cv_type_uid_t+:} false; then :
13603 $as_echo_n "(cached) " >&6
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 #include <sys/types.h>
13610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611 $EGREP "uid_t" >/dev/null 2>&1; then :
13612 ac_cv_type_uid_t=yes
13614 ac_cv_type_uid_t=no
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13620 $as_echo "$ac_cv_type_uid_t" >&6; }
13621 if test $ac_cv_type_uid_t = no; then
13623 $as_echo "@%:@define uid_t int" >>confdefs.h
13626 $as_echo "@%:@define gid_t int" >>confdefs.h
13630 for ac_header in unistd.h
13632 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13633 if test "x$ac_cv_header_unistd_h" = xyes; then :
13634 cat >>confdefs.h <<_ACEOF
13635 @%:@define HAVE_UNISTD_H 1
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
13643 $as_echo_n "checking for working chown... " >&6; }
13644 if ${ac_cv_func_chown_works+:} false; then :
13645 $as_echo_n "(cached) " >&6
13647 if test "$cross_compiling" = yes; then :
13648 ac_cv_func_chown_works=no
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 $ac_includes_default
13658 char *f = "conftest.chown";
13659 struct stat before, after;
13661 if (creat (f, 0600) < 0)
13663 if (stat (f, &before) < 0)
13665 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
13667 if (stat (f, &after) < 0)
13669 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
13675 if ac_fn_c_try_run "$LINENO"; then :
13676 ac_cv_func_chown_works=yes
13678 ac_cv_func_chown_works=no
13680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13681 conftest.$ac_objext conftest.beam conftest.$ac_ext
13684 rm -f conftest.chown
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
13688 $as_echo "$ac_cv_func_chown_works" >&6; }
13689 if test $ac_cv_func_chown_works = yes; then
13691 $as_echo "@%:@define HAVE_CHOWN 1" >>confdefs.h
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13696 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13697 if ${ac_cv_func_getpgrp_void+:} false; then :
13698 $as_echo_n "(cached) " >&6
13700 # Use it with a single arg.
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 $ac_includes_default
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 ac_cv_func_getpgrp_void=no
13715 ac_cv_func_getpgrp_void=yes
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13721 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13722 if test $ac_cv_func_getpgrp_void = yes; then
13724 $as_echo "@%:@define GETPGRP_VOID 1" >>confdefs.h
13728 if ${ac_cv_func_setvbuf_reversed+:} false; then :
13729 $as_echo_n "(cached) " >&6
13731 ac_cv_func_setvbuf_reversed=no
13735 for ac_func in vprintf
13737 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13738 if test "x$ac_cv_func_vprintf" = xyes; then :
13739 cat >>confdefs.h <<_ACEOF
13740 @%:@define HAVE_VPRINTF 1
13743 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13744 if test "x$ac_cv_func__doprnt" = xyes; then :
13746 $as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
13755 $as_echo_n "checking for working strcoll... " >&6; }
13756 if ${ac_cv_func_strcoll_works+:} false; then :
13757 $as_echo_n "(cached) " >&6
13759 if test "$cross_compiling" = yes; then :
13760 ac_cv_func_strcoll_works=no
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 $ac_includes_default
13768 return (strcoll ("abc", "def") >= 0 ||
13769 strcoll ("ABC", "DEF") >= 0 ||
13770 strcoll ("123", "456") >= 0)
13775 if ac_fn_c_try_run "$LINENO"; then :
13776 ac_cv_func_strcoll_works=yes
13778 ac_cv_func_strcoll_works=no
13780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13781 conftest.$ac_objext conftest.beam conftest.$ac_ext
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
13786 $as_echo "$ac_cv_func_strcoll_works" >&6; }
13787 if test $ac_cv_func_strcoll_works = yes; then
13789 $as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h
13795 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bush_malloc" = "no"; then
13796 MALLOC_TARGET=alloca
13797 MALLOC_SRC=alloca.c
13799 MALLOC_LIB='-lmalloc'
13800 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
13801 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
13802 MALLOC_DEP='$(MALLOC_LIBRARY)'
13805 if test "$ac_cv_func_vprintf" = no; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
13807 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13814 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then :
13815 ac_cv_func_vprintf=yes
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
13820 $as_echo "$ac_cv_func_vprintf" >&6; }
13821 if test $ac_cv_func_vprintf = yes; then
13822 $as_echo "@%:@define HAVE_VPRINTF 1" >>confdefs.h
13827 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
13828 case " $LIB@&t@OBJS " in
13829 *" vprint.$ac_objext "* ) ;;
13830 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext"
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13837 $as_echo_n "checking return type of signal handlers... " >&6; }
13838 if ${ac_cv_type_signal+:} false; then :
13839 $as_echo_n "(cached) " >&6
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <sys/types.h>
13844 #include <signal.h>
13849 return *(signal (0, 0)) (0) == 1;
13854 if ac_fn_c_try_compile "$LINENO"; then :
13855 ac_cv_type_signal=int
13857 ac_cv_type_signal=void
13859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13862 $as_echo "$ac_cv_type_signal" >&6; }
13864 cat >>confdefs.h <<_ACEOF
13865 @%:@define RETSIGTYPE $ac_cv_type_signal
13870 ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype"
13871 if test "x$ac_cv_func___setostype" = xyes; then :
13872 $as_echo "@%:@define HAVE_SETOSTYPE 1" >>confdefs.h
13876 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
13877 if test "x$ac_cv_func_wait3" = xyes; then :
13878 $as_echo "@%:@define HAVE_WAIT3 1" >>confdefs.h
13883 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
13884 if test "x$ac_cv_func_mkfifo" = xyes; then :
13885 $as_echo "@%:@define HAVE_MKFIFO 1" >>confdefs.h
13888 $as_echo "@%:@define MKFIFO_MISSING 1" >>confdefs.h
13893 for ac_func in dup2 eaccess fcntl getdtablesize getentropy getgroups \
13894 gethostname getpagesize getpeername getrandom getrlimit \
13895 getrusage gettimeofday kill killpg lstat pselect readlink \
13896 select setdtablesize setitimer tcgetpgrp uname ulimit waitpid
13898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13901 cat >>confdefs.h <<_ACEOF
13902 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13908 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
13909 if test "x$ac_cv_func_rename" = xyes; then :
13910 $as_echo "@%:@define HAVE_RENAME 1" >>confdefs.h
13913 case " $LIB@&t@OBJS " in
13914 *" rename.$ac_objext "* ) ;;
13915 *) LIB@&t@OBJS="$LIB@&t@OBJS rename.$ac_objext"
13923 for ac_func in bcopy bzero confstr faccessat fnmatch \
13924 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13925 imaxdiv memmove pathconf putenv raise random regcomp regexec \
13926 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13927 sysconf syslog tcgetattr times ttyname tzset unsetenv
13929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13932 cat >>confdefs.h <<_ACEOF
13933 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13940 for ac_func in vasprintf asprintf
13942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13945 cat >>confdefs.h <<_ACEOF
13946 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13952 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13957 cat >>confdefs.h <<_ACEOF
13958 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13964 for ac_func in getpwent getpwnam getpwuid
13966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13969 cat >>confdefs.h <<_ACEOF
13970 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13976 for ac_func in mkstemp mkdtemp
13978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13981 cat >>confdefs.h <<_ACEOF
13982 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13988 for ac_func in arc4random
13990 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
13991 if test "x$ac_cv_func_arc4random" = xyes; then :
13992 cat >>confdefs.h <<_ACEOF
13993 @%:@define HAVE_ARC4RANDOM 1
14000 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
14001 if test "x$ac_cv_func_getcwd" = xyes; then :
14002 $as_echo "@%:@define HAVE_GETCWD 1" >>confdefs.h
14005 case " $LIB@&t@OBJS " in
14006 *" getcwd.$ac_objext "* ) ;;
14007 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
14013 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
14014 if test "x$ac_cv_func_memset" = xyes; then :
14015 $as_echo "@%:@define HAVE_MEMSET 1" >>confdefs.h
14018 case " $LIB@&t@OBJS " in
14019 *" memset.$ac_objext "* ) ;;
14020 *) LIB@&t@OBJS="$LIB@&t@OBJS memset.$ac_objext"
14027 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
14028 if test "x$ac_cv_func_strcasecmp" = xyes; then :
14029 $as_echo "@%:@define HAVE_STRCASECMP 1" >>confdefs.h
14032 case " $LIB@&t@OBJS " in
14033 *" strcasecmp.$ac_objext "* ) ;;
14034 *) LIB@&t@OBJS="$LIB@&t@OBJS strcasecmp.$ac_objext"
14040 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14041 if test "x$ac_cv_func_strcasestr" = xyes; then :
14042 $as_echo "@%:@define HAVE_STRCASESTR 1" >>confdefs.h
14045 case " $LIB@&t@OBJS " in
14046 *" strcasestr.$ac_objext "* ) ;;
14047 *) LIB@&t@OBJS="$LIB@&t@OBJS strcasestr.$ac_objext"
14053 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14054 if test "x$ac_cv_func_strerror" = xyes; then :
14055 $as_echo "@%:@define HAVE_STRERROR 1" >>confdefs.h
14058 case " $LIB@&t@OBJS " in
14059 *" strerror.$ac_objext "* ) ;;
14060 *) LIB@&t@OBJS="$LIB@&t@OBJS strerror.$ac_objext"
14066 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14067 if test "x$ac_cv_func_strftime" = xyes; then :
14068 $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
14071 case " $LIB@&t@OBJS " in
14072 *" strftime.$ac_objext "* ) ;;
14073 *) LIB@&t@OBJS="$LIB@&t@OBJS strftime.$ac_objext"
14079 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
14080 if test "x$ac_cv_func_strnlen" = xyes; then :
14081 $as_echo "@%:@define HAVE_STRNLEN 1" >>confdefs.h
14084 case " $LIB@&t@OBJS " in
14085 *" strnlen.$ac_objext "* ) ;;
14086 *) LIB@&t@OBJS="$LIB@&t@OBJS strnlen.$ac_objext"
14092 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
14093 if test "x$ac_cv_func_strpbrk" = xyes; then :
14094 $as_echo "@%:@define HAVE_STRPBRK 1" >>confdefs.h
14097 case " $LIB@&t@OBJS " in
14098 *" strpbrk.$ac_objext "* ) ;;
14099 *) LIB@&t@OBJS="$LIB@&t@OBJS strpbrk.$ac_objext"
14105 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
14106 if test "x$ac_cv_func_strstr" = xyes; then :
14107 $as_echo "@%:@define HAVE_STRSTR 1" >>confdefs.h
14110 case " $LIB@&t@OBJS " in
14111 *" strstr.$ac_objext "* ) ;;
14112 *) LIB@&t@OBJS="$LIB@&t@OBJS strstr.$ac_objext"
14119 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
14120 if test "x$ac_cv_func_strtod" = xyes; then :
14121 $as_echo "@%:@define HAVE_STRTOD 1" >>confdefs.h
14124 case " $LIB@&t@OBJS " in
14125 *" strtod.$ac_objext "* ) ;;
14126 *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
14132 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
14133 if test "x$ac_cv_func_strtol" = xyes; then :
14134 $as_echo "@%:@define HAVE_STRTOL 1" >>confdefs.h
14137 case " $LIB@&t@OBJS " in
14138 *" strtol.$ac_objext "* ) ;;
14139 *) LIB@&t@OBJS="$LIB@&t@OBJS strtol.$ac_objext"
14145 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
14146 if test "x$ac_cv_func_strtoul" = xyes; then :
14147 $as_echo "@%:@define HAVE_STRTOUL 1" >>confdefs.h
14150 case " $LIB@&t@OBJS " in
14151 *" strtoul.$ac_objext "* ) ;;
14152 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoul.$ac_objext"
14158 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
14159 if test "x$ac_cv_func_strtoll" = xyes; then :
14160 $as_echo "@%:@define HAVE_STRTOLL 1" >>confdefs.h
14163 case " $LIB@&t@OBJS " in
14164 *" strtoll.$ac_objext "* ) ;;
14165 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoll.$ac_objext"
14171 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
14172 if test "x$ac_cv_func_strtoull" = xyes; then :
14173 $as_echo "@%:@define HAVE_STRTOULL 1" >>confdefs.h
14176 case " $LIB@&t@OBJS " in
14177 *" strtoull.$ac_objext "* ) ;;
14178 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoull.$ac_objext"
14184 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
14185 if test "x$ac_cv_func_strtoimax" = xyes; then :
14186 $as_echo "@%:@define HAVE_STRTOIMAX 1" >>confdefs.h
14189 case " $LIB@&t@OBJS " in
14190 *" strtoimax.$ac_objext "* ) ;;
14191 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoimax.$ac_objext"
14197 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
14198 if test "x$ac_cv_func_strtoumax" = xyes; then :
14199 $as_echo "@%:@define HAVE_STRTOUMAX 1" >>confdefs.h
14202 case " $LIB@&t@OBJS " in
14203 *" strtoumax.$ac_objext "* ) ;;
14204 *) LIB@&t@OBJS="$LIB@&t@OBJS strtoumax.$ac_objext"
14211 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14212 if test "x$ac_cv_func_dprintf" = xyes; then :
14213 $as_echo "@%:@define HAVE_DPRINTF 1" >>confdefs.h
14216 case " $LIB@&t@OBJS " in
14217 *" dprintf.$ac_objext "* ) ;;
14218 *) LIB@&t@OBJS="$LIB@&t@OBJS dprintf.$ac_objext"
14225 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
14226 if test "x$ac_cv_func_strchrnul" = xyes; then :
14227 $as_echo "@%:@define HAVE_STRCHRNUL 1" >>confdefs.h
14230 case " $LIB@&t@OBJS " in
14231 *" strchrnul.$ac_objext "* ) ;;
14232 *) LIB@&t@OBJS="$LIB@&t@OBJS strchrnul.$ac_objext"
14239 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
14240 if test "x$ac_cv_func_strdup" = xyes; then :
14241 $as_echo "@%:@define HAVE_STRDUP 1" >>confdefs.h
14244 case " $LIB@&t@OBJS " in
14245 *" strdup.$ac_objext "* ) ;;
14246 *) LIB@&t@OBJS="$LIB@&t@OBJS strdup.$ac_objext"
14254 for ac_header in libaudit.h
14256 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
14257 if test "x$ac_cv_header_libaudit_h" = xyes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 @%:@define HAVE_LIBAUDIT_H 1
14266 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
14268 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
14274 cat >>confdefs.h <<_ACEOF
14275 @%:@define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
14279 ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
14280 if test "x$ac_cv_have_decl_confstr" = xyes; then :
14286 cat >>confdefs.h <<_ACEOF
14287 @%:@define HAVE_DECL_CONFSTR $ac_have_decl
14290 ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
14291 if test "x$ac_cv_have_decl_printf" = xyes; then :
14297 cat >>confdefs.h <<_ACEOF
14298 @%:@define HAVE_DECL_PRINTF $ac_have_decl
14301 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
14302 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
14308 cat >>confdefs.h <<_ACEOF
14309 @%:@define HAVE_DECL_SBRK $ac_have_decl
14312 ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
14313 if test "x$ac_cv_have_decl_setregid" = xyes; then :
14319 cat >>confdefs.h <<_ACEOF
14320 @%:@define HAVE_DECL_SETREGID $ac_have_decl
14323 ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
14324 if test "x$ac_cv_have_decl_strcpy" = xyes; then :
14330 cat >>confdefs.h <<_ACEOF
14331 @%:@define HAVE_DECL_STRCPY $ac_have_decl
14334 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
14335 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
14341 cat >>confdefs.h <<_ACEOF
14342 @%:@define HAVE_DECL_STRSIGNAL $ac_have_decl
14346 for ac_func in setresuid setresgid
14348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14351 cat >>confdefs.h <<_ACEOF
14352 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14359 ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
14360 if test "x$ac_cv_have_decl_strtold" = xyes; then :
14366 cat >>confdefs.h <<_ACEOF
14367 @%:@define HAVE_DECL_STRTOLD $ac_have_decl
14369 if test $ac_have_decl = 1; then :
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
14372 $as_echo_n "checking for broken strtold... " >&6; }
14373 if ${bush_cv_strtold_broken+:} false; then :
14374 $as_echo_n "(cached) " >&6
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 #include <stdlib.h>
14382 long double r; char *foo, bar; r = strtold(foo, &bar);
14387 if ac_fn_c_try_compile "$LINENO"; then :
14388 bush_cv_strtold_broken=no
14390 bush_cv_strtold_broken=yes
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_strtold_broken" >&5
14398 $as_echo "$bush_cv_strtold_broken" >&6; }
14399 if test "$bush_cv_strtold_broken" = "yes" ; then
14400 $as_echo "@%:@define STRTOLD_BROKEN 1" >>confdefs.h
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
14411 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14412 if ${bush_cv_decl_strtoimax+:} false; then :
14413 $as_echo_n "(cached) " >&6
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14419 # include <stdlib.h>
14421 #if HAVE_INTTYPES_H
14422 # include <inttypes.h>
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 bush_cv_decl_strtoimax=yes
14436 bush_cv_decl_strtoimax=no
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoimax" >&5
14442 $as_echo "$bush_cv_decl_strtoimax" >&6; }
14443 bush_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14444 if test $bush_cv_decl_strtoimax = yes; then
14445 cat >>confdefs.h <<_ACEOF
14446 @%:@define $bush_tr_func 1
14450 cat >>confdefs.h <<_ACEOF
14451 @%:@define $bush_tr_func 0
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
14460 $as_echo_n "checking for declaration of strtol... " >&6; }
14461 if ${bush_cv_decl_strtol+:} false; then :
14462 $as_echo_n "(cached) " >&6
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14468 # include <stdlib.h>
14470 #if HAVE_INTTYPES_H
14471 # include <inttypes.h>
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 bush_cv_decl_strtol=yes
14485 bush_cv_decl_strtol=no
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtol" >&5
14491 $as_echo "$bush_cv_decl_strtol" >&6; }
14492 bush_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14493 if test $bush_cv_decl_strtol = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 @%:@define $bush_tr_func 1
14499 cat >>confdefs.h <<_ACEOF
14500 @%:@define $bush_tr_func 0
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
14509 $as_echo_n "checking for declaration of strtoll... " >&6; }
14510 if ${bush_cv_decl_strtoll+:} false; then :
14511 $as_echo_n "(cached) " >&6
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14517 # include <stdlib.h>
14519 #if HAVE_INTTYPES_H
14520 # include <inttypes.h>
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 bush_cv_decl_strtoll=yes
14534 bush_cv_decl_strtoll=no
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoll" >&5
14540 $as_echo "$bush_cv_decl_strtoll" >&6; }
14541 bush_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14542 if test $bush_cv_decl_strtoll = yes; then
14543 cat >>confdefs.h <<_ACEOF
14544 @%:@define $bush_tr_func 1
14548 cat >>confdefs.h <<_ACEOF
14549 @%:@define $bush_tr_func 0
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
14558 $as_echo_n "checking for declaration of strtoul... " >&6; }
14559 if ${bush_cv_decl_strtoul+:} false; then :
14560 $as_echo_n "(cached) " >&6
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14566 # include <stdlib.h>
14568 #if HAVE_INTTYPES_H
14569 # include <inttypes.h>
14580 if ac_fn_c_try_link "$LINENO"; then :
14581 bush_cv_decl_strtoul=yes
14583 bush_cv_decl_strtoul=no
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoul" >&5
14589 $as_echo "$bush_cv_decl_strtoul" >&6; }
14590 bush_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14591 if test $bush_cv_decl_strtoul = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 @%:@define $bush_tr_func 1
14597 cat >>confdefs.h <<_ACEOF
14598 @%:@define $bush_tr_func 0
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
14607 $as_echo_n "checking for declaration of strtoull... " >&6; }
14608 if ${bush_cv_decl_strtoull+:} false; then :
14609 $as_echo_n "(cached) " >&6
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14615 # include <stdlib.h>
14617 #if HAVE_INTTYPES_H
14618 # include <inttypes.h>
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 bush_cv_decl_strtoull=yes
14632 bush_cv_decl_strtoull=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoull" >&5
14638 $as_echo "$bush_cv_decl_strtoull" >&6; }
14639 bush_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14640 if test $bush_cv_decl_strtoull = yes; then
14641 cat >>confdefs.h <<_ACEOF
14642 @%:@define $bush_tr_func 1
14646 cat >>confdefs.h <<_ACEOF
14647 @%:@define $bush_tr_func 0
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
14656 $as_echo_n "checking for declaration of strtoumax... " >&6; }
14657 if ${bush_cv_decl_strtoumax+:} false; then :
14658 $as_echo_n "(cached) " >&6
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14664 # include <stdlib.h>
14666 #if HAVE_INTTYPES_H
14667 # include <inttypes.h>
14678 if ac_fn_c_try_link "$LINENO"; then :
14679 bush_cv_decl_strtoumax=yes
14681 bush_cv_decl_strtoumax=no
14683 rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoumax" >&5
14687 $as_echo "$bush_cv_decl_strtoumax" >&6; }
14688 bush_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14689 if test $bush_cv_decl_strtoumax = yes; then
14690 cat >>confdefs.h <<_ACEOF
14691 @%:@define $bush_tr_func 1
14695 cat >>confdefs.h <<_ACEOF
14696 @%:@define $bush_tr_func 0
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14709 $as_echo_n "checking for working mktime... " >&6; }
14710 if ${ac_cv_func_working_mktime+:} false; then :
14711 $as_echo_n "(cached) " >&6
14713 if test "$cross_compiling" = yes; then :
14714 ac_cv_func_working_mktime=no
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14718 /* Test program from Paul Eggert and Tony Leneis. */
14719 #ifdef TIME_WITH_SYS_TIME
14720 # include <sys/time.h>
14723 # ifdef HAVE_SYS_TIME_H
14724 # include <sys/time.h>
14730 #include <limits.h>
14731 #include <stdlib.h>
14733 #ifdef HAVE_UNISTD_H
14734 # include <unistd.h>
14738 # define alarm(X) /* empty */
14741 /* Work around redefinition to rpl_putenv by other config tests. */
14744 static time_t time_t_max;
14745 static time_t time_t_min;
14747 /* Values we'll use to set the TZ environment variable. */
14748 static const char *tz_strings[] = {
14749 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
14750 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14752 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14754 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14755 Based on a problem report from Andreas Jaeger. */
14757 spring_forward_gap ()
14759 /* glibc (up to about 1998-10-07) failed this test. */
14762 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14763 instead of "TZ=America/Vancouver" in order to detect the bug even
14764 on systems that don't support the Olson extension, or don't have the
14765 full zoneinfo tables installed. */
14766 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
14775 return mktime (&tm) != (time_t) -1;
14779 mktime_test1 (time_t now)
14782 return ! (lt = localtime (&now)) || mktime (lt) == now;
14786 mktime_test (time_t now)
14788 return (mktime_test1 (now)
14789 && mktime_test1 ((time_t) (time_t_max - now))
14790 && mktime_test1 ((time_t) (time_t_min + now)));
14796 /* Based on code from Ariel Faigon. */
14806 return tm.tm_mon == 2 && tm.tm_mday == 31;
14810 bigtime_test (int j)
14814 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14815 now = mktime (&tm);
14816 if (now != (time_t) -1)
14818 struct tm *lt = localtime (&now);
14820 && lt->tm_year == tm.tm_year
14821 && lt->tm_mon == tm.tm_mon
14822 && lt->tm_mday == tm.tm_mday
14823 && lt->tm_hour == tm.tm_hour
14824 && lt->tm_min == tm.tm_min
14825 && lt->tm_sec == tm.tm_sec
14826 && lt->tm_yday == tm.tm_yday
14827 && lt->tm_wday == tm.tm_wday
14828 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14829 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14838 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14839 ignoring leap seconds. */
14840 unsigned long int answer = 2527315200UL;
14844 tm.tm_year = 2050 - 1900;
14847 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14850 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14851 instead of "TZ=America/Vancouver" in order to detect the bug even
14852 on systems that don't support the Olson extension, or don't have the
14853 full zoneinfo tables installed. */
14854 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
14858 /* Check that the result is either a failure, or close enough
14859 to the correct answer that we can assume the discrepancy is
14860 due to leap seconds. */
14861 return (t == (time_t) -1
14862 || (0 < t && answer - 120 <= t && t <= answer + 120));
14871 /* This test makes some buggy mktime implementations loop.
14872 Give up after 60 seconds; a mktime slower than that
14873 isn't worth using anyway. */
14878 t = (time_t_max << 1) + 1;
14879 if (t <= time_t_max)
14883 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14885 delta = time_t_max / 997; /* a suitable prime number */
14886 for (i = 0; i < N_STRINGS; i++)
14889 putenv ((char*) tz_strings[i]);
14891 for (t = 0; t <= time_t_max - delta; t += delta)
14892 if (! mktime_test (t))
14894 if (! (mktime_test ((time_t) 1)
14895 && mktime_test ((time_t) (60 * 60))
14896 && mktime_test ((time_t) (60 * 60 * 24))))
14899 for (j = 1; ; j <<= 1)
14900 if (! bigtime_test (j))
14902 else if (INT_MAX / 2 < j)
14904 if (! bigtime_test (INT_MAX))
14907 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
14910 if ac_fn_c_try_run "$LINENO"; then :
14911 ac_cv_func_working_mktime=yes
14913 ac_cv_func_working_mktime=no
14915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14916 conftest.$ac_objext conftest.beam conftest.$ac_ext
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14921 $as_echo "$ac_cv_func_working_mktime" >&6; }
14922 if test $ac_cv_func_working_mktime = no; then
14923 case " $LIB@&t@OBJS " in
14924 *" mktime.$ac_objext "* ) ;;
14925 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext"
14933 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14938 cat >>confdefs.h <<_ACEOF
14939 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14948 for ac_func in getpagesize
14950 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14951 if test "x$ac_cv_func_getpagesize" = xyes; then :
14952 cat >>confdefs.h <<_ACEOF
14953 @%:@define HAVE_GETPAGESIZE 1
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14960 $as_echo_n "checking for working mmap... " >&6; }
14961 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14962 $as_echo_n "(cached) " >&6
14964 if test "$cross_compiling" = yes; then :
14965 ac_cv_func_mmap_fixed_mapped=no
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 $ac_includes_default
14970 /* malloc might have been renamed as rpl_malloc. */
14973 /* Thanks to Mike Haertel and Jim Avera for this test.
14974 Here is a matrix of mmap possibilities:
14975 mmap private not fixed
14976 mmap private fixed at somewhere currently unmapped
14977 mmap private fixed at somewhere already mapped
14978 mmap shared not fixed
14979 mmap shared fixed at somewhere currently unmapped
14980 mmap shared fixed at somewhere already mapped
14981 For private mappings, we should verify that changes cannot be read()
14982 back from the file, nor mmap's back from the file at a different
14983 address. (There have been systems where private was not correctly
14984 implemented like the infamous i386 svr4.0, and systems where the
14985 VM page cache was not coherent with the file system buffer cache
14986 like early versions of FreeBSD and possibly contemporary NetBSD.)
14987 For shared mappings, we should conversely verify that changes get
14988 propagated back to all the places they're supposed to be.
14990 Grep wants private fixed already mapped.
14991 The main things grep needs to know about mmap are:
14992 * does it exist and is it safe to write into the mmap'd area
14993 * how to use it (BSD variants) */
14996 #include <sys/mman.h>
14998 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15002 /* This mess was copied from the GNU getpagesize.h. */
15003 #ifndef HAVE_GETPAGESIZE
15004 # ifdef _SC_PAGESIZE
15005 # define getpagesize() sysconf(_SC_PAGESIZE)
15006 # else /* no _SC_PAGESIZE */
15007 # ifdef HAVE_SYS_PARAM_H
15008 # include <sys/param.h>
15009 # ifdef EXEC_PAGESIZE
15010 # define getpagesize() EXEC_PAGESIZE
15011 # else /* no EXEC_PAGESIZE */
15013 # define getpagesize() NBPG * CLSIZE
15016 # endif /* no CLSIZE */
15017 # else /* no NBPG */
15019 # define getpagesize() NBPC
15020 # else /* no NBPC */
15022 # define getpagesize() PAGESIZE
15023 # endif /* PAGESIZE */
15024 # endif /* no NBPC */
15025 # endif /* no NBPG */
15026 # endif /* no EXEC_PAGESIZE */
15027 # else /* no HAVE_SYS_PARAM_H */
15028 # define getpagesize() 8192 /* punt totally */
15029 # endif /* no HAVE_SYS_PARAM_H */
15030 # endif /* no _SC_PAGESIZE */
15032 #endif /* no HAVE_GETPAGESIZE */
15037 char *data, *data2, *data3;
15038 const char *cdata2;
15042 pagesize = getpagesize ();
15044 /* First, make a file with some known garbage in it. */
15045 data = (char *) malloc (pagesize);
15048 for (i = 0; i < pagesize; ++i)
15049 *(data + i) = rand ();
15051 fd = creat ("conftest.mmap", 0600);
15054 if (write (fd, data, pagesize) != pagesize)
15058 /* Next, check that the tail of a page is zero-filled. File must have
15059 non-zero length, otherwise we risk SIGBUS for entire page. */
15060 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15064 if (write (fd2, cdata2, 1) != 1)
15066 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15067 if (data2 == MAP_FAILED)
15069 for (i = 0; i < pagesize; ++i)
15073 if (munmap (data2, pagesize))
15076 /* Next, try to mmap the file at a fixed address which already has
15077 something else allocated at it. If we can, also make sure that
15078 we see the same garbage. */
15079 fd = open ("conftest.mmap", O_RDWR);
15082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15085 for (i = 0; i < pagesize; ++i)
15086 if (*(data + i) != *(data2 + i))
15089 /* Finally, make sure that changes to the mapped area do not
15090 percolate back to the file as seen by read(). (This is a bug on
15091 some variants of i386 svr4.0.) */
15092 for (i = 0; i < pagesize; ++i)
15093 *(data2 + i) = *(data2 + i) + 1;
15094 data3 = (char *) malloc (pagesize);
15097 if (read (fd, data3, pagesize) != pagesize)
15099 for (i = 0; i < pagesize; ++i)
15100 if (*(data + i) != *(data3 + i))
15106 if ac_fn_c_try_run "$LINENO"; then :
15107 ac_cv_func_mmap_fixed_mapped=yes
15109 ac_cv_func_mmap_fixed_mapped=no
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15117 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15120 $as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h
15123 rm -f conftest.mmap conftest.txt
15125 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
15126 munmap mremap stpcpy strcspn
15128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15131 cat >>confdefs.h <<_ACEOF
15132 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139 INTL_DEP= INTL_INC= LIBINTL_H=
15140 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15141 INTL_DEP='${INTL_LIBDIR}/libintl.a'
15142 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15143 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15151 for ac_header in wctype.h
15153 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
15154 if test "x$ac_cv_header_wctype_h" = xyes; then :
15155 cat >>confdefs.h <<_ACEOF
15156 @%:@define HAVE_WCTYPE_H 1
15163 for ac_header in wchar.h
15165 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
15166 if test "x$ac_cv_header_wchar_h" = xyes; then :
15167 cat >>confdefs.h <<_ACEOF
15168 @%:@define HAVE_WCHAR_H 1
15175 for ac_header in langinfo.h
15177 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
15178 if test "x$ac_cv_header_langinfo_h" = xyes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 @%:@define HAVE_LANGINFO_H 1
15188 for ac_header in mbstr.h
15190 ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
15191 if test "x$ac_cv_header_mbstr_h" = xyes; then :
15192 cat >>confdefs.h <<_ACEOF
15193 @%:@define HAVE_MBSTR_H 1
15201 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
15202 if test "x$ac_cv_func_mbrlen" = xyes; then :
15203 $as_echo "@%:@define HAVE_MBRLEN 1" >>confdefs.h
15207 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
15208 if test "x$ac_cv_func_mbscasecmp" = xyes; then :
15209 $as_echo "@%:@define HAVE_MBSCMP 1" >>confdefs.h
15213 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
15214 if test "x$ac_cv_func_mbscmp" = xyes; then :
15215 $as_echo "@%:@define HAVE_MBSCMP 1" >>confdefs.h
15219 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
15220 if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
15221 $as_echo "@%:@define HAVE_MBSNRTOWCS 1" >>confdefs.h
15225 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
15226 if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
15227 $as_echo "@%:@define HAVE_MBSRTOWCS 1" >>confdefs.h
15232 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
15233 if test "x$ac_cv_func_mbschr" = xyes; then :
15234 $as_echo "@%:@define HAVE_MBSCHR 1" >>confdefs.h
15237 case " $LIB@&t@OBJS " in
15238 *" mbschr.$ac_objext "* ) ;;
15239 *) LIB@&t@OBJS="$LIB@&t@OBJS mbschr.$ac_objext"
15247 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
15248 if test "x$ac_cv_func_wcrtomb" = xyes; then :
15249 $as_echo "@%:@define HAVE_WCRTOMB 1" >>confdefs.h
15253 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
15254 if test "x$ac_cv_func_wcscoll" = xyes; then :
15255 $as_echo "@%:@define HAVE_WCSCOLL 1" >>confdefs.h
15259 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
15260 if test "x$ac_cv_func_wcsdup" = xyes; then :
15261 $as_echo "@%:@define HAVE_WCSDUP 1" >>confdefs.h
15265 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
15266 if test "x$ac_cv_func_wcwidth" = xyes; then :
15267 $as_echo "@%:@define HAVE_WCWIDTH 1" >>confdefs.h
15271 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
15272 if test "x$ac_cv_func_wctype" = xyes; then :
15273 $as_echo "@%:@define HAVE_WCTYPE 1" >>confdefs.h
15278 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
15279 if test "x$ac_cv_func_wcswidth" = xyes; then :
15280 $as_echo "@%:@define HAVE_WCSWIDTH 1" >>confdefs.h
15283 case " $LIB@&t@OBJS " in
15284 *" wcswidth.$ac_objext "* ) ;;
15285 *) LIB@&t@OBJS="$LIB@&t@OBJS wcswidth.$ac_objext"
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
15295 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
15296 if ${ac_cv_func_mbrtowc+:} false; then :
15297 $as_echo_n "(cached) " >&6
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301 @%:@include <wchar.h>
15306 char const s[] = "";
15309 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15314 if ac_fn_c_try_link "$LINENO"; then :
15315 ac_cv_func_mbrtowc=yes
15317 ac_cv_func_mbrtowc=no
15319 rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15323 $as_echo "$ac_cv_func_mbrtowc" >&6; }
15324 if test $ac_cv_func_mbrtowc = yes; then
15326 $as_echo "@%:@define HAVE_MBRTOWC 1" >>confdefs.h
15330 if test $ac_cv_func_mbrtowc = yes; then
15331 $as_echo "@%:@define HAVE_MBSTATE_T 1" >>confdefs.h
15335 for ac_func in iswlower iswupper towlower towupper iswctype
15337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15340 cat >>confdefs.h <<_ACEOF
15341 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15349 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15350 if ${bush_cv_langinfo_codeset+:} false; then :
15351 $as_echo_n "(cached) " >&6
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 #include <langinfo.h>
15359 char* cs = nl_langinfo(CODESET);
15364 if ac_fn_c_try_link "$LINENO"; then :
15365 bush_cv_langinfo_codeset=yes
15367 bush_cv_langinfo_codeset=no
15369 rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_langinfo_codeset" >&5
15373 $as_echo "$bush_cv_langinfo_codeset" >&6; }
15374 if test $bush_cv_langinfo_codeset = yes; then
15375 $as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
15380 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
15381 if ${bush_cv_type_wchar_t+:} false; then :
15382 $as_echo_n "(cached) " >&6
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15399 if ac_fn_c_try_compile "$LINENO"; then :
15400 bush_cv_type_wchar_t=yes
15402 bush_cv_type_wchar_t=no
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_wchar_t" >&5
15407 $as_echo "$bush_cv_type_wchar_t" >&6; }
15408 if test $bush_cv_type_wchar_t = yes; then
15410 $as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
15415 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
15416 if ${bush_cv_type_wctype_t+:} false; then :
15417 $as_echo_n "(cached) " >&6
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 #include <wctype.h>
15433 if ac_fn_c_try_compile "$LINENO"; then :
15434 bush_cv_type_wctype_t=yes
15436 bush_cv_type_wctype_t=no
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_wctype_t" >&5
15441 $as_echo "$bush_cv_type_wctype_t" >&6; }
15442 if test $bush_cv_type_wctype_t = yes; then
15444 $as_echo "@%:@define HAVE_WCTYPE_T 1" >>confdefs.h
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
15449 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
15450 if ${bush_cv_type_wint_t+:} false; then :
15451 $as_echo_n "(cached) " >&6
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <wctype.h>
15467 if ac_fn_c_try_compile "$LINENO"; then :
15468 bush_cv_type_wint_t=yes
15470 bush_cv_type_wint_t=no
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_wint_t" >&5
15475 $as_echo "$bush_cv_type_wint_t" >&6; }
15476 if test $bush_cv_type_wint_t = yes; then
15478 $as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
15483 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
15484 if ${bush_cv_wcwidth_broken+:} false; then :
15485 $as_echo_n "(cached) " >&6
15487 if test "$cross_compiling" = yes; then :
15488 bush_cv_wcwidth_broken=no
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15493 #include <unistd.h>
15494 #include <stdlib.h>
15497 #include <locale.h>
15507 setlocale(LC_ALL, "en_US.UTF-8");
15508 w = wcwidth (0x0301);
15509 exit (w == 0); /* exit 0 if wcwidth broken */
15513 if ac_fn_c_try_run "$LINENO"; then :
15514 bush_cv_wcwidth_broken=yes
15516 bush_cv_wcwidth_broken=no
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_wcwidth_broken" >&5
15524 $as_echo "$bush_cv_wcwidth_broken" >&6; }
15525 if test "$bush_cv_wcwidth_broken" = yes; then
15527 $as_echo "@%:@define WCWIDTH_BROKEN 1" >>confdefs.h
15531 if test "$am_cv_func_iconv" = yes; then
15533 LIBS="$LIBS $LIBINTL $LIBICONV"
15534 for ac_func in locale_charset
15536 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
15537 if test "x$ac_cv_func_locale_charset" = xyes; then :
15538 cat >>confdefs.h <<_ACEOF
15539 @%:@define HAVE_LOCALE_CHARSET 1
15548 # The cast to long int works around a bug in the HP C Compiler
15549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15551 # This bug is HP SR number 8606223364.
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
15553 $as_echo_n "checking size of wchar_t... " >&6; }
15554 if ${ac_cv_sizeof_wchar_t+:} false; then :
15555 $as_echo_n "(cached) " >&6
15557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
15560 if test "$ac_cv_type_wchar_t" = yes; then
15561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15563 as_fn_error 77 "cannot compute sizeof (wchar_t)
15564 See \`config.log' for more details" "$LINENO" 5; }
15566 ac_cv_sizeof_wchar_t=0
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
15572 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
15576 cat >>confdefs.h <<_ACEOF
15577 @%:@define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15584 if test "$opt_static_link" != yes; then
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15586 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15587 if ${ac_cv_lib_dl_dlopen+:} false; then :
15588 $as_echo_n "(cached) " >&6
15590 ac_check_lib_save_LIBS=$LIBS
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15595 /* Override any GCC internal prototype to avoid an error.
15596 Use char because int might match the return type of a GCC
15597 builtin and then its argument prototype would still apply. */
15610 if ac_fn_c_try_link "$LINENO"; then :
15611 ac_cv_lib_dl_dlopen=yes
15613 ac_cv_lib_dl_dlopen=no
15615 rm -f core conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15621 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15622 cat >>confdefs.h <<_ACEOF
15623 @%:@define HAVE_LIBDL 1
15630 for ac_func in dlopen dlclose dlsym
15632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15635 cat >>confdefs.h <<_ACEOF
15636 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15644 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
15645 /* NetBSD declares sys_siglist in unistd.h. */
15646 #ifdef HAVE_UNISTD_H
15647 # include <unistd.h>
15651 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
15657 cat >>confdefs.h <<_ACEOF
15658 @%:@define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15663 if test "$ac_cv_func_inet_aton" != 'yes'; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
15666 $as_echo_n "checking for inet_aton... " >&6; }
15667 if ${bush_cv_func_inet_aton+:} false; then :
15668 $as_echo_n "(cached) " >&6
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15673 #include <sys/types.h>
15674 #include <netinet/in.h>
15675 #include <arpa/inet.h>
15680 inet_aton("127.0.0.1", &ap);
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 bush_cv_func_inet_aton=yes
15688 bush_cv_func_inet_aton=no
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_inet_aton" >&5
15694 $as_echo "$bush_cv_func_inet_aton" >&6; }
15695 if test $bush_cv_func_inet_aton = yes; then
15696 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
15699 case " $LIB@&t@OBJS " in
15700 *" inet_aton.$ac_objext "* ) ;;
15701 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext"
15710 irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
15711 $as_echo_n "checking for getpwent in -lsun... " >&6; }
15712 if ${ac_cv_lib_sun_getpwent+:} false; then :
15713 $as_echo_n "(cached) " >&6
15715 ac_check_lib_save_LIBS=$LIBS
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15730 return getpwent ();
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 ac_cv_lib_sun_getpwent=yes
15738 ac_cv_lib_sun_getpwent=no
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
15745 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
15746 if test "x$ac_cv_lib_sun_getpwent" = xyes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 @%:@define HAVE_LIBSUN 1
15757 if test "$ac_cv_func_getpeername" = no; then
15759 if test "X$bush_cv_have_socklib" = "X"; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
15763 $as_echo_n "checking for socket library... " >&6; }
15766 if ${bush_cv_have_socklib+:} false; then :
15767 $as_echo_n "(cached) " >&6
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
15770 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
15771 if ${ac_cv_lib_socket_getpeername+:} false; then :
15772 $as_echo_n "(cached) " >&6
15774 ac_check_lib_save_LIBS=$LIBS
15775 LIBS="-lsocket -lnsl $LIBS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15785 char getpeername ();
15789 return getpeername ();
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 ac_cv_lib_socket_getpeername=yes
15797 ac_cv_lib_socket_getpeername=no
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_lib_save_LIBS
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
15804 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
15805 if test "x$ac_cv_lib_socket_getpeername" = xyes; then :
15806 bush_cv_have_socklib=yes
15808 bush_cv_have_socklib=no
15813 if test "X$_bush_needmsg" = Xyes; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_socklib" >&5
15815 $as_echo "$bush_cv_have_socklib" >&6; }
15818 if test $bush_cv_have_socklib = yes; then
15819 # check for libnsl, add it to LIBS if present
15820 if test "X$bush_cv_have_libnsl" = "X"; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
15824 $as_echo_n "checking for libnsl... " >&6; }
15827 if ${bush_cv_have_libnsl+:} false; then :
15828 $as_echo_n "(cached) " >&6
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
15831 $as_echo_n "checking for t_open in -lnsl... " >&6; }
15832 if ${ac_cv_lib_nsl_t_open+:} false; then :
15833 $as_echo_n "(cached) " >&6
15835 ac_check_lib_save_LIBS=$LIBS
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 /* Override any GCC internal prototype to avoid an error.
15841 Use char because int might match the return type of a GCC
15842 builtin and then its argument prototype would still apply. */
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 ac_cv_lib_nsl_t_open=yes
15858 ac_cv_lib_nsl_t_open=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
15865 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
15866 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
15867 bush_cv_have_libnsl=yes
15869 bush_cv_have_libnsl=no
15874 if test "X$_bush_needmsg" = Xyes; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_libnsl" >&5
15876 $as_echo "$bush_cv_have_libnsl" >&6; }
15879 if test $bush_cv_have_libnsl = yes; then
15880 LIBS="-lsocket -lnsl $LIBS"
15882 LIBS="-lsocket $LIBS"
15884 $as_echo "@%:@define HAVE_LIBSOCKET 1" >>confdefs.h
15886 $as_echo "@%:@define HAVE_GETPEERNAME 1" >>confdefs.h
15891 if test "$ac_cv_func_gethostbyname" = no; then
15892 if test "X$bush_cv_have_gethostbyname" = "X"; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
15896 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
15899 if ${bush_cv_have_gethostbyname+:} false; then :
15900 $as_echo_n "(cached) " >&6
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15908 struct hostent *hp;
15909 hp = gethostbyname("localhost");
15915 if ac_fn_c_try_link "$LINENO"; then :
15916 bush_cv_have_gethostbyname=yes
15918 bush_cv_have_gethostbyname=no
15920 rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15925 if test "X$_bush_needmsg" = Xyes; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
15927 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_gethostbyname" >&5
15930 $as_echo "$bush_cv_have_gethostbyname" >&6; }
15931 if test "$bush_cv_have_gethostbyname" = yes; then
15932 $as_echo "@%:@define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
15939 $as_echo_n "checking type of array argument to getgroups... " >&6; }
15940 if ${ac_cv_type_getgroups+:} false; then :
15941 $as_echo_n "(cached) " >&6
15943 if test "$cross_compiling" = yes; then :
15944 ac_cv_type_getgroups=cross
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948 /* Thanks to Mike Rendell for this test. */
15949 $ac_includes_default
15952 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15957 gid_t gidset[NGID];
15959 union { gid_t gval; long int lval; } val;
15962 for (i = 0; i < NGID; i++)
15963 gidset[i] = val.gval;
15964 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15966 /* Exit non-zero if getgroups seems to require an array of ints. This
15967 happens when gid_t is short int but getgroups modifies an array
15969 return n > 0 && gidset[n] != val.gval;
15972 if ac_fn_c_try_run "$LINENO"; then :
15973 ac_cv_type_getgroups=gid_t
15975 ac_cv_type_getgroups=int
15977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978 conftest.$ac_objext conftest.beam conftest.$ac_ext
15981 if test $ac_cv_type_getgroups = cross; then
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 #include <unistd.h>
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
15989 ac_cv_type_getgroups=gid_t
15991 ac_cv_type_getgroups=int
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
15998 $as_echo "$ac_cv_type_getgroups" >&6; }
16000 cat >>confdefs.h <<_ACEOF
16001 @%:@define GETGROUPS_T $ac_cv_type_getgroups
16005 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16006 if test "x$ac_cv_type_off_t" = xyes; then :
16010 cat >>confdefs.h <<_ACEOF
16011 @%:@define off_t long int
16016 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16017 if test "x$ac_cv_type_mode_t" = xyes; then :
16021 cat >>confdefs.h <<_ACEOF
16022 @%:@define mode_t int
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16028 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16029 if ${ac_cv_type_uid_t+:} false; then :
16030 $as_echo_n "(cached) " >&6
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034 #include <sys/types.h>
16037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16038 $EGREP "uid_t" >/dev/null 2>&1; then :
16039 ac_cv_type_uid_t=yes
16041 ac_cv_type_uid_t=no
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16047 $as_echo "$ac_cv_type_uid_t" >&6; }
16048 if test $ac_cv_type_uid_t = no; then
16050 $as_echo "@%:@define uid_t int" >>confdefs.h
16053 $as_echo "@%:@define gid_t int" >>confdefs.h
16057 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16058 if test "x$ac_cv_type_pid_t" = xyes; then :
16062 cat >>confdefs.h <<_ACEOF
16063 @%:@define pid_t int
16068 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16069 if test "x$ac_cv_type_size_t" = xyes; then :
16073 cat >>confdefs.h <<_ACEOF
16074 @%:@define size_t unsigned int
16080 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16081 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16083 $as_echo "@%:@define HAVE_UINTPTR_T 1" >>confdefs.h
16086 for ac_type in 'unsigned int' 'unsigned long int' \
16087 'unsigned long long int'; do
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16090 $ac_includes_default
16094 static int test_array @<:@1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))@:>@;
16095 test_array @<:@0@:>@ = 0;
16096 return test_array @<:@0@:>@;
16102 if ac_fn_c_try_compile "$LINENO"; then :
16104 cat >>confdefs.h <<_ACEOF
16105 @%:@define uintptr_t $ac_type
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 test -z "$ac_type" && break
16117 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16118 if test "x$ac_cv_type_ssize_t" = xyes; then :
16122 cat >>confdefs.h <<_ACEOF
16123 @%:@define ssize_t int
16128 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
16129 if test "x$ac_cv_type_time_t" = xyes; then :
16133 cat >>confdefs.h <<_ACEOF
16134 @%:@define time_t long
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
16142 $as_echo_n "checking for long long... " >&6; }
16143 if ${bush_cv_type_long_long+:} false; then :
16144 $as_echo_n "(cached) " >&6
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16149 long long ll = 1; int i = 63;
16154 long long llm = (long long) -1;
16155 return ll << i | ll >> i | llm / ll | llm % ll;
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 bush_cv_type_long_long='long long'
16164 bush_cv_type_long_long='long'
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_long_long" >&5
16170 $as_echo "$bush_cv_type_long_long" >&6; }
16171 if test "$bush_cv_type_long_long" = 'long long'; then
16172 $as_echo "@%:@define HAVE_LONG_LONG 1" >>confdefs.h
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
16178 $as_echo_n "checking for unsigned long long... " >&6; }
16179 if ${bush_cv_type_unsigned_long_long+:} false; then :
16180 $as_echo_n "(cached) " >&6
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16185 unsigned long long ull = 1; int i = 63;
16190 unsigned long long ullmax = (unsigned long long) -1;
16191 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 bush_cv_type_unsigned_long_long='unsigned long long'
16200 bush_cv_type_unsigned_long_long='unsigned long'
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_unsigned_long_long" >&5
16206 $as_echo "$bush_cv_type_unsigned_long_long" >&6; }
16207 if test "$bush_cv_type_unsigned_long_long" = 'unsigned long long'; then
16208 $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16214 $as_echo_n "checking return type of signal handlers... " >&6; }
16215 if ${ac_cv_type_signal+:} false; then :
16216 $as_echo_n "(cached) " >&6
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <sys/types.h>
16221 #include <signal.h>
16226 return *(signal (0, 0)) (0) == 1;
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232 ac_cv_type_signal=int
16234 ac_cv_type_signal=void
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16239 $as_echo "$ac_cv_type_signal" >&6; }
16241 cat >>confdefs.h <<_ACEOF
16242 @%:@define RETSIGTYPE $ac_cv_type_signal
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
16247 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
16248 if ${ac_cv_have_sig_atomic_t+:} false; then :
16249 $as_echo_n "(cached) " >&6
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16254 #include <signal.h>
16264 if ac_fn_c_try_link "$LINENO"; then :
16265 ac_cv_have_sig_atomic_t=yes
16267 ac_cv_have_sig_atomic_t=no
16269 rm -f core conftest.err conftest.$ac_objext \
16270 conftest$ac_exeext conftest.$ac_ext
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
16273 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
16274 if test "$ac_cv_have_sig_atomic_t" = "no"
16276 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
16277 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
16281 cat >>confdefs.h <<_ACEOF
16282 @%:@define sig_atomic_t int
16290 # The cast to long int works around a bug in the HP C Compiler
16291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16293 # This bug is HP SR number 8606223364.
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16295 $as_echo_n "checking size of char... " >&6; }
16296 if ${ac_cv_sizeof_char+:} false; then :
16297 $as_echo_n "(cached) " >&6
16299 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16302 if test "$ac_cv_type_char" = yes; then
16303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16305 as_fn_error 77 "cannot compute sizeof (char)
16306 See \`config.log' for more details" "$LINENO" 5; }
16308 ac_cv_sizeof_char=0
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16314 $as_echo "$ac_cv_sizeof_char" >&6; }
16318 cat >>confdefs.h <<_ACEOF
16319 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
16323 # The cast to long int works around a bug in the HP C Compiler
16324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16326 # This bug is HP SR number 8606223364.
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16328 $as_echo_n "checking size of short... " >&6; }
16329 if ${ac_cv_sizeof_short+:} false; then :
16330 $as_echo_n "(cached) " >&6
16332 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16335 if test "$ac_cv_type_short" = yes; then
16336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16338 as_fn_error 77 "cannot compute sizeof (short)
16339 See \`config.log' for more details" "$LINENO" 5; }
16341 ac_cv_sizeof_short=0
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16347 $as_echo "$ac_cv_sizeof_short" >&6; }
16351 cat >>confdefs.h <<_ACEOF
16352 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
16356 # The cast to long int works around a bug in the HP C Compiler
16357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16359 # This bug is HP SR number 8606223364.
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16361 $as_echo_n "checking size of int... " >&6; }
16362 if ${ac_cv_sizeof_int+:} false; then :
16363 $as_echo_n "(cached) " >&6
16365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16368 if test "$ac_cv_type_int" = yes; then
16369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16371 as_fn_error 77 "cannot compute sizeof (int)
16372 See \`config.log' for more details" "$LINENO" 5; }
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16380 $as_echo "$ac_cv_sizeof_int" >&6; }
16384 cat >>confdefs.h <<_ACEOF
16385 @%:@define SIZEOF_INT $ac_cv_sizeof_int
16389 # The cast to long int works around a bug in the HP C Compiler
16390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16392 # This bug is HP SR number 8606223364.
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16394 $as_echo_n "checking size of long... " >&6; }
16395 if ${ac_cv_sizeof_long+:} false; then :
16396 $as_echo_n "(cached) " >&6
16398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16401 if test "$ac_cv_type_long" = yes; then
16402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16404 as_fn_error 77 "cannot compute sizeof (long)
16405 See \`config.log' for more details" "$LINENO" 5; }
16407 ac_cv_sizeof_long=0
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16413 $as_echo "$ac_cv_sizeof_long" >&6; }
16417 cat >>confdefs.h <<_ACEOF
16418 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
16422 # The cast to long int works around a bug in the HP C Compiler
16423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16425 # This bug is HP SR number 8606223364.
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
16427 $as_echo_n "checking size of char *... " >&6; }
16428 if ${ac_cv_sizeof_char_p+:} false; then :
16429 $as_echo_n "(cached) " >&6
16431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
16434 if test "$ac_cv_type_char_p" = yes; then
16435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16437 as_fn_error 77 "cannot compute sizeof (char *)
16438 See \`config.log' for more details" "$LINENO" 5; }
16440 ac_cv_sizeof_char_p=0
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
16446 $as_echo "$ac_cv_sizeof_char_p" >&6; }
16450 cat >>confdefs.h <<_ACEOF
16451 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
16455 # The cast to long int works around a bug in the HP C Compiler
16456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16458 # This bug is HP SR number 8606223364.
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16460 $as_echo_n "checking size of double... " >&6; }
16461 if ${ac_cv_sizeof_double+:} false; then :
16462 $as_echo_n "(cached) " >&6
16464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16467 if test "$ac_cv_type_double" = yes; then
16468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16470 as_fn_error 77 "cannot compute sizeof (double)
16471 See \`config.log' for more details" "$LINENO" 5; }
16473 ac_cv_sizeof_double=0
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16479 $as_echo "$ac_cv_sizeof_double" >&6; }
16483 cat >>confdefs.h <<_ACEOF
16484 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
16488 # The cast to long int works around a bug in the HP C Compiler
16489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16491 # This bug is HP SR number 8606223364.
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16493 $as_echo_n "checking size of long long... " >&6; }
16494 if ${ac_cv_sizeof_long_long+:} false; then :
16495 $as_echo_n "(cached) " >&6
16497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16500 if test "$ac_cv_type_long_long" = yes; then
16501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16503 as_fn_error 77 "cannot compute sizeof (long long)
16504 See \`config.log' for more details" "$LINENO" 5; }
16506 ac_cv_sizeof_long_long=0
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16512 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16516 cat >>confdefs.h <<_ACEOF
16517 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16522 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
16523 if test "x$ac_cv_type_u_int" = xyes; then :
16527 cat >>confdefs.h <<_ACEOF
16528 @%:@define u_int unsigned int
16533 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
16534 if test "x$ac_cv_type_u_long" = xyes; then :
16538 cat >>confdefs.h <<_ACEOF
16539 @%:@define u_long unsigned long
16546 if test "$ac_cv_sizeof_short" = 2; then
16547 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
16548 if test "x$ac_cv_type_bits16_t" = xyes; then :
16552 cat >>confdefs.h <<_ACEOF
16553 @%:@define bits16_t short
16558 elif test "$ac_cv_sizeof_char" = 2; then
16559 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
16560 if test "x$ac_cv_type_bits16_t" = xyes; then :
16564 cat >>confdefs.h <<_ACEOF
16565 @%:@define bits16_t char
16571 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
16572 if test "x$ac_cv_type_bits16_t" = xyes; then :
16576 cat >>confdefs.h <<_ACEOF
16577 @%:@define bits16_t short
16585 if test "$ac_cv_sizeof_short" = 2; then
16586 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
16587 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
16591 cat >>confdefs.h <<_ACEOF
16592 @%:@define u_bits16_t unsigned short
16597 elif test "$ac_cv_sizeof_char" = 2; then
16598 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
16599 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
16603 cat >>confdefs.h <<_ACEOF
16604 @%:@define u_bits16_t unsigned char
16610 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
16611 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
16615 cat >>confdefs.h <<_ACEOF
16616 @%:@define u_bits16_t unsigned short
16624 if test "$ac_cv_sizeof_int" = 4; then
16625 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
16626 if test "x$ac_cv_type_bits32_t" = xyes; then :
16630 cat >>confdefs.h <<_ACEOF
16631 @%:@define bits32_t int
16636 elif test "$ac_cv_sizeof_long" = 4; then
16637 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
16638 if test "x$ac_cv_type_bits32_t" = xyes; then :
16642 cat >>confdefs.h <<_ACEOF
16643 @%:@define bits32_t long
16649 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
16650 if test "x$ac_cv_type_bits32_t" = xyes; then :
16654 cat >>confdefs.h <<_ACEOF
16655 @%:@define bits32_t int
16663 if test "$ac_cv_sizeof_int" = 4; then
16664 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
16665 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
16669 cat >>confdefs.h <<_ACEOF
16670 @%:@define u_bits32_t unsigned int
16675 elif test "$ac_cv_sizeof_long" = 4; then
16676 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
16677 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
16681 cat >>confdefs.h <<_ACEOF
16682 @%:@define u_bits32_t unsigned long
16688 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
16689 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
16693 cat >>confdefs.h <<_ACEOF
16694 @%:@define u_bits32_t unsigned int
16702 if test "$ac_cv_sizeof_char_p" = 8; then
16703 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16704 if test "x$ac_cv_type_bits64_t" = xyes; then :
16708 cat >>confdefs.h <<_ACEOF
16709 @%:@define bits64_t char *
16714 elif test "$ac_cv_sizeof_double" = 8; then
16715 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16716 if test "x$ac_cv_type_bits64_t" = xyes; then :
16720 cat >>confdefs.h <<_ACEOF
16721 @%:@define bits64_t double
16726 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
16727 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16728 if test "x$ac_cv_type_bits64_t" = xyes; then :
16732 cat >>confdefs.h <<_ACEOF
16733 @%:@define bits64_t long long
16738 elif test "$ac_cv_sizeof_long" = 8; then
16739 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16740 if test "x$ac_cv_type_bits64_t" = xyes; then :
16744 cat >>confdefs.h <<_ACEOF
16745 @%:@define bits64_t long
16751 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16752 if test "x$ac_cv_type_bits64_t" = xyes; then :
16756 cat >>confdefs.h <<_ACEOF
16757 @%:@define bits64_t double
16766 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
16767 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16768 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16772 cat >>confdefs.h <<_ACEOF
16773 @%:@define ptrdiff_t int
16778 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
16779 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16780 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16784 cat >>confdefs.h <<_ACEOF
16785 @%:@define ptrdiff_t long
16790 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
16791 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16792 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16796 cat >>confdefs.h <<_ACEOF
16797 @%:@define ptrdiff_t long long
16803 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16804 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16808 cat >>confdefs.h <<_ACEOF
16809 @%:@define ptrdiff_t int
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16818 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16819 if ${ac_cv_header_stat_broken+:} false; then :
16820 $as_echo_n "(cached) " >&6
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 #include <sys/types.h>
16825 #include <sys/stat.h>
16827 #if defined S_ISBLK && defined S_IFDIR
16828 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16831 #if defined S_ISBLK && defined S_IFCHR
16832 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16835 #if defined S_ISLNK && defined S_IFREG
16836 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16839 #if defined S_ISSOCK && defined S_IFREG
16840 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16844 if ac_fn_c_try_compile "$LINENO"; then :
16845 ac_cv_header_stat_broken=no
16847 ac_cv_header_stat_broken=yes
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16852 $as_echo "$ac_cv_header_stat_broken" >&6; }
16853 if test $ac_cv_header_stat_broken = yes; then
16855 $as_echo "@%:@define STAT_MACROS_BROKEN 1" >>confdefs.h
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether @%:@! works in shell scripts" >&5
16861 $as_echo_n "checking whether @%:@! works in shell scripts... " >&6; }
16862 if ${ac_cv_sys_interpreter+:} false; then :
16863 $as_echo_n "(cached) " >&6
16869 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
16870 if test $? -ne 69; then
16871 ac_cv_sys_interpreter=yes
16873 ac_cv_sys_interpreter=no
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
16878 $as_echo "$ac_cv_sys_interpreter" >&6; }
16879 interpval=$ac_cv_sys_interpreter
16881 if test $ac_cv_sys_interpreter = yes; then
16882 $as_echo "@%:@define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
16886 if test "$ac_cv_func_lstat" = "no"; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
16888 $as_echo_n "checking for lstat... " >&6; }
16889 if ${bush_cv_func_lstat+:} false; then :
16890 $as_echo_n "(cached) " >&6
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16895 #include <sys/types.h>
16896 #include <sys/stat.h>
16901 lstat(".",(struct stat *)0);
16906 if ac_fn_c_try_link "$LINENO"; then :
16907 bush_cv_func_lstat=yes
16909 bush_cv_func_lstat=no
16911 rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_lstat" >&5
16915 $as_echo "$bush_cv_func_lstat" >&6; }
16916 if test $bush_cv_func_lstat = yes; then
16917 $as_echo "@%:@define HAVE_LSTAT 1" >>confdefs.h
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
16925 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
16926 if ${bush_cv_func_ctype_nonascii+:} false; then :
16927 $as_echo_n "(cached) " >&6
16929 if test "$cross_compiling" = yes; then :
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
16931 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
16932 bush_cv_func_ctype_nonascii=no
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16938 #ifdef HAVE_LOCALE_H
16939 #include <locale.h>
16943 #include <stdlib.h>
16954 #ifdef HAVE_SETLOCALE
16955 /* We take a shot here. If that locale is not known, try the
16956 system default. We try this one because '\342' (226) is
16957 known to be a printable character in that locale. */
16958 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
16959 if (deflocale == 0)
16960 deflocale = setlocale(LC_ALL, "");
16967 exit (r1 == 0 || r2 == 0);
16971 if ac_fn_c_try_run "$LINENO"; then :
16972 bush_cv_func_ctype_nonascii=yes
16974 bush_cv_func_ctype_nonascii=no
16976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16977 conftest.$ac_objext conftest.beam conftest.$ac_ext
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_ctype_nonascii" >&5
16983 $as_echo "$bush_cv_func_ctype_nonascii" >&6; }
16984 if test $bush_cv_func_ctype_nonascii = yes; then
16985 $as_echo "@%:@define CTYPE_NON_ASCII 1" >>confdefs.h
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
16990 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
16991 if ${bush_cv_dup2_broken+:} false; then :
16992 $as_echo_n "(cached) " >&6
16994 if test "$cross_compiling" = yes; then :
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
16996 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
16997 bush_cv_dup2_broken=no
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17002 #include <sys/types.h>
17004 #include <stdlib.h>
17009 fd1 = open("/dev/null", 2);
17010 if (fcntl(fd1, 2, 1) < 0)
17012 fd2 = dup2(fd1, 1);
17015 fl = fcntl(fd2, 1, 0);
17016 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
17021 if ac_fn_c_try_run "$LINENO"; then :
17022 bush_cv_dup2_broken=yes
17024 bush_cv_dup2_broken=no
17026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17027 conftest.$ac_objext conftest.beam conftest.$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dup2_broken" >&5
17034 $as_echo "$bush_cv_dup2_broken" >&6; }
17035 if test $bush_cv_dup2_broken = yes; then
17036 $as_echo "@%:@define DUP2_BROKEN 1" >>confdefs.h
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
17042 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
17043 if ${bush_cv_pgrp_pipe+:} false; then :
17044 $as_echo_n "(cached) " >&6
17046 if test "$cross_compiling" = yes; then :
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
17048 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
17049 bush_cv_pgrp_pipe=no
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17054 #ifdef HAVE_UNISTD_H
17055 # include <unistd.h>
17057 #ifdef HAVE_SYS_WAIT_H
17058 # include <sys/wait.h>
17060 #include <stdlib.h>
17064 # ifdef GETPGRP_VOID
17065 # define getpgID() getpgrp()
17067 # define getpgID() getpgrp(0)
17068 # define setpgid(x,y) setpgrp(x,y)
17070 int pid1, pid2, fds[2];
17074 switch (pid1 = fork()) {
17078 setpgid(0, getpid());
17081 setpgid(pid1, pid1);
17083 sleep(2); /* let first child die */
17088 switch (pid2 = fork()) {
17093 ok = getpgID() == pid1;
17094 write(fds[1], &ok, 1);
17097 setpgid(pid2, pid1);
17100 if (read(fds[0], &ok, 1) != 1)
17108 if ac_fn_c_try_run "$LINENO"; then :
17109 bush_cv_pgrp_pipe=no
17111 bush_cv_pgrp_pipe=yes
17113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17114 conftest.$ac_objext conftest.beam conftest.$ac_ext
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_pgrp_pipe" >&5
17121 $as_echo "$bush_cv_pgrp_pipe" >&6; }
17122 if test $bush_cv_pgrp_pipe = yes; then
17123 $as_echo "@%:@define PGRP_PIPE 1" >>confdefs.h
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
17129 $as_echo_n "checking for type of signal functions... " >&6; }
17130 if ${bush_cv_signal_vintage+:} false; then :
17131 $as_echo_n "(cached) " >&6
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136 #include <signal.h>
17142 struct sigaction sa;
17143 sigemptyset(&ss); sigsuspend(&ss);
17144 sigaction(SIGINT, &sa, (struct sigaction *) 0);
17145 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
17151 if ac_fn_c_try_link "$LINENO"; then :
17152 bush_cv_signal_vintage=posix
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 #include <signal.h>
17162 int mask = sigmask(SIGINT);
17163 sigsetmask(mask); sigblock(mask); sigpause(mask);
17169 if ac_fn_c_try_link "$LINENO"; then :
17170 bush_cv_signal_vintage=4.2bsd
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17176 #include <signal.h>
17177 RETSIGTYPE foo() { }
17182 int mask = sigmask(SIGINT);
17183 sigset(SIGINT, foo); sigrelse(SIGINT);
17184 sighold(SIGINT); sigpause(SIGINT);
17190 if ac_fn_c_try_link "$LINENO"; then :
17191 bush_cv_signal_vintage=svr3
17193 bush_cv_signal_vintage=v7
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17204 rm -f core conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_signal_vintage" >&5
17210 $as_echo "$bush_cv_signal_vintage" >&6; }
17211 if test "$bush_cv_signal_vintage" = posix; then
17212 $as_echo "@%:@define HAVE_POSIX_SIGNALS 1" >>confdefs.h
17214 elif test "$bush_cv_signal_vintage" = "4.2bsd"; then
17215 $as_echo "@%:@define HAVE_BSD_SIGNALS 1" >>confdefs.h
17217 elif test "$bush_cv_signal_vintage" = svr3; then
17218 $as_echo "@%:@define HAVE_USG_SIGHOLD 1" >>confdefs.h
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
17224 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
17225 if ${bush_cv_sys_errlist+:} false; then :
17226 $as_echo_n "(cached) " >&6
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17234 extern char *sys_errlist[];
17235 extern int sys_nerr;
17236 char *msg = sys_errlist[sys_nerr - 1];
17241 if ac_fn_c_try_link "$LINENO"; then :
17242 bush_cv_sys_errlist=yes
17244 bush_cv_sys_errlist=no
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_errlist" >&5
17250 $as_echo "$bush_cv_sys_errlist" >&6; }
17251 if test $bush_cv_sys_errlist = yes; then
17252 $as_echo "@%:@define HAVE_SYS_ERRLIST 1" >>confdefs.h
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
17258 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
17259 if ${bush_cv_sys_siglist+:} false; then :
17260 $as_echo_n "(cached) " >&6
17262 if test "$cross_compiling" = yes; then :
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
17264 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
17265 bush_cv_sys_siglist=no
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17270 #include <sys/types.h>
17271 #include <signal.h>
17272 #ifdef HAVE_UNISTD_H
17273 #include <unistd.h>
17275 #include <stdlib.h>
17276 #if !HAVE_DECL_SYS_SIGLIST
17277 extern char *sys_siglist[];
17282 char *msg = sys_siglist[2];
17286 if ac_fn_c_try_run "$LINENO"; then :
17287 bush_cv_sys_siglist=yes
17289 bush_cv_sys_siglist=no
17291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17292 conftest.$ac_objext conftest.beam conftest.$ac_ext
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_siglist" >&5
17298 $as_echo "$bush_cv_sys_siglist" >&6; }
17299 if test $bush_cv_sys_siglist = yes; then
17300 $as_echo "@%:@define HAVE_SYS_SIGLIST 1" >>confdefs.h
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
17305 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
17306 if ${bush_cv_decl_under_sys_siglist+:} false; then :
17307 $as_echo_n "(cached) " >&6
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17312 #include <sys/types.h>
17313 #include <signal.h>
17314 #ifdef HAVE_UNISTD_H
17315 #include <unistd.h>
17320 char *msg = _sys_siglist[2];
17325 if ac_fn_c_try_compile "$LINENO"; then :
17326 bush_cv_decl_under_sys_siglist=yes
17328 bush_cv_decl_under_sys_siglist=no
17330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_under_sys_siglist" >&5
17333 $as_echo "$bush_cv_decl_under_sys_siglist" >&6; }
17334 if test $bush_cv_decl_under_sys_siglist = yes; then
17335 $as_echo "@%:@define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
17341 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
17342 if ${bush_cv_under_sys_siglist+:} false; then :
17343 $as_echo_n "(cached) " >&6
17345 if test "$cross_compiling" = yes; then :
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
17347 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
17348 bush_cv_under_sys_siglist=no
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17353 #include <sys/types.h>
17354 #include <signal.h>
17355 #ifdef HAVE_UNISTD_H
17356 #include <unistd.h>
17358 #include <stdlib.h>
17359 #ifndef UNDER_SYS_SIGLIST_DECLARED
17360 extern char *_sys_siglist[];
17365 char *msg = (char *)_sys_siglist[2];
17369 if ac_fn_c_try_run "$LINENO"; then :
17370 bush_cv_under_sys_siglist=yes
17372 bush_cv_under_sys_siglist=no
17374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17375 conftest.$ac_objext conftest.beam conftest.$ac_ext
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_under_sys_siglist" >&5
17381 $as_echo "$bush_cv_under_sys_siglist" >&6; }
17382 if test $bush_cv_under_sys_siglist = yes; then
17383 $as_echo "@%:@define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
17389 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
17390 if ${bush_cv_void_sighandler+:} false; then :
17391 $as_echo_n "(cached) " >&6
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17395 #include <sys/types.h>
17396 #include <signal.h>
17403 void (*signal ()) ();
17412 if ac_fn_c_try_compile "$LINENO"; then :
17413 bush_cv_void_sighandler=yes
17415 bush_cv_void_sighandler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_void_sighandler" >&5
17420 $as_echo "$bush_cv_void_sighandler" >&6; }
17421 if test $bush_cv_void_sighandler = yes; then
17422 $as_echo "@%:@define VOID_SIGHANDLER 1" >>confdefs.h
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
17429 $as_echo_n "checking for clock_t... " >&6; }
17430 if ${bush_cv_type_clock_t+:} false; then :
17431 $as_echo_n "(cached) " >&6
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17435 #include <sys/types.h>
17437 #include <stdlib.h>
17438 #include <stddef.h>
17440 #if HAVE_INTTYPES_H
17441 #include <inttypes.h>
17444 #include <stdint.h>
17446 #include <sys/times.h>
17449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17450 $EGREP "clock_t" >/dev/null 2>&1; then :
17451 bush_cv_type_clock_t=yes
17453 bush_cv_type_clock_t=no
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_clock_t" >&5
17460 $as_echo "$bush_cv_type_clock_t" >&6; }
17462 if test $bush_cv_type_clock_t = no; then
17463 cat >>confdefs.h <<_ACEOF
17464 @%:@define clock_t long
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
17472 $as_echo_n "checking for sigset_t... " >&6; }
17473 if ${bush_cv_type_sigset_t+:} false; then :
17474 $as_echo_n "(cached) " >&6
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478 #include <sys/types.h>
17480 #include <stdlib.h>
17481 #include <stddef.h>
17483 #if HAVE_INTTYPES_H
17484 #include <inttypes.h>
17487 #include <stdint.h>
17489 #include <signal.h>
17492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17493 $EGREP "sigset_t" >/dev/null 2>&1; then :
17494 bush_cv_type_sigset_t=yes
17496 bush_cv_type_sigset_t=no
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_sigset_t" >&5
17503 $as_echo "$bush_cv_type_sigset_t" >&6; }
17505 if test $bush_cv_type_sigset_t = no; then
17506 cat >>confdefs.h <<_ACEOF
17507 @%:@define sigset_t int
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
17515 $as_echo_n "checking for sig_atomic_t... " >&6; }
17516 if ${bush_cv_type_sig_atomic_t+:} false; then :
17517 $as_echo_n "(cached) " >&6
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521 #include <sys/types.h>
17523 #include <stdlib.h>
17524 #include <stddef.h>
17526 #if HAVE_INTTYPES_H
17527 #include <inttypes.h>
17530 #include <stdint.h>
17532 #include <signal.h>
17535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17536 $EGREP "sig_atomic_t" >/dev/null 2>&1; then :
17537 bush_cv_type_sig_atomic_t=yes
17539 bush_cv_type_sig_atomic_t=no
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_sig_atomic_t" >&5
17546 $as_echo "$bush_cv_type_sig_atomic_t" >&6; }
17548 if test $bush_cv_type_sig_atomic_t = no; then
17549 cat >>confdefs.h <<_ACEOF
17550 @%:@define sig_atomic_t int
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
17558 $as_echo_n "checking for quad_t... " >&6; }
17559 if ${bush_cv_type_quad_t+:} false; then :
17560 $as_echo_n "(cached) " >&6
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564 #include <sys/types.h>
17566 #include <stdlib.h>
17567 #include <stddef.h>
17569 #if HAVE_INTTYPES_H
17570 #include <inttypes.h>
17573 #include <stdint.h>
17578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17579 $EGREP "quad_t" >/dev/null 2>&1; then :
17580 bush_cv_type_quad_t=yes
17582 bush_cv_type_quad_t=no
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_quad_t" >&5
17589 $as_echo "$bush_cv_type_quad_t" >&6; }
17590 if test $bush_cv_type_quad_t = yes; then
17591 $as_echo "@%:@define HAVE_QUAD_T 1" >>confdefs.h
17594 if test $bush_cv_type_quad_t = no; then
17595 cat >>confdefs.h <<_ACEOF
17596 @%:@define quad_t long
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
17604 $as_echo_n "checking for intmax_t... " >&6; }
17605 if ${bush_cv_type_intmax_t+:} false; then :
17606 $as_echo_n "(cached) " >&6
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 #include <sys/types.h>
17612 #include <stdlib.h>
17613 #include <stddef.h>
17615 #if HAVE_INTTYPES_H
17616 #include <inttypes.h>
17619 #include <stdint.h>
17624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17625 $EGREP "intmax_t" >/dev/null 2>&1; then :
17626 bush_cv_type_intmax_t=yes
17628 bush_cv_type_intmax_t=no
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_intmax_t" >&5
17635 $as_echo "$bush_cv_type_intmax_t" >&6; }
17637 if test $bush_cv_type_intmax_t = no; then
17638 cat >>confdefs.h <<_ACEOF
17639 @%:@define intmax_t $bush_cv_type_long_long
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
17647 $as_echo_n "checking for uintmax_t... " >&6; }
17648 if ${bush_cv_type_uintmax_t+:} false; then :
17649 $as_echo_n "(cached) " >&6
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653 #include <sys/types.h>
17655 #include <stdlib.h>
17656 #include <stddef.h>
17658 #if HAVE_INTTYPES_H
17659 #include <inttypes.h>
17662 #include <stdint.h>
17667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17668 $EGREP "uintmax_t" >/dev/null 2>&1; then :
17669 bush_cv_type_uintmax_t=yes
17671 bush_cv_type_uintmax_t=no
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_uintmax_t" >&5
17678 $as_echo "$bush_cv_type_uintmax_t" >&6; }
17680 if test $bush_cv_type_uintmax_t = no; then
17681 cat >>confdefs.h <<_ACEOF
17682 @%:@define uintmax_t $bush_cv_type_unsigned_long_long
17687 if test "$ac_cv_header_sys_socket_h" = "yes"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17691 $as_echo_n "checking for socklen_t... " >&6; }
17692 if ${bush_cv_type_socklen_t+:} false; then :
17693 $as_echo_n "(cached) " >&6
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17697 #include <sys/types.h>
17699 #include <stdlib.h>
17700 #include <stddef.h>
17702 #if HAVE_INTTYPES_H
17703 #include <inttypes.h>
17706 #include <stdint.h>
17708 #include <sys/socket.h>
17711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17712 $EGREP "socklen_t" >/dev/null 2>&1; then :
17713 bush_cv_type_socklen_t=yes
17715 bush_cv_type_socklen_t=no
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_socklen_t" >&5
17722 $as_echo "$bush_cv_type_socklen_t" >&6; }
17723 if test $bush_cv_type_socklen_t = yes; then
17724 $as_echo "@%:@define HAVE_SOCKLEN_T 1" >>confdefs.h
17727 if test $bush_cv_type_socklen_t = no; then
17728 cat >>confdefs.h <<_ACEOF
17729 @%:@define socklen_t unsigned int
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
17736 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
17737 if ${bush_cv_type_rlimit+:} false; then :
17738 $as_echo_n "(cached) " >&6
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17742 #include <sys/types.h>
17743 #include <sys/resource.h>
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753 bush_cv_type_rlimit=rlim_t
17756 if test "$cross_compiling" = yes; then :
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
17758 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
17759 bush_cv_type_rlimit=long
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 #include <sys/types.h>
17765 #include <sys/time.h>
17766 #include <sys/resource.h>
17767 #include <stdlib.h>
17773 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
17779 if ac_fn_c_try_run "$LINENO"; then :
17780 bush_cv_type_rlimit=quad_t
17782 bush_cv_type_rlimit=long
17784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17785 conftest.$ac_objext conftest.beam conftest.$ac_ext
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_rlimit" >&5
17794 $as_echo "$bush_cv_type_rlimit" >&6; }
17795 if test $bush_cv_type_rlimit = quad_t; then
17796 $as_echo "@%:@define RLIMTYPE quad_t" >>confdefs.h
17798 elif test $bush_cv_type_rlimit = rlim_t; then
17799 $as_echo "@%:@define RLIMTYPE rlim_t" >>confdefs.h
17804 # The cast to long int works around a bug in the HP C Compiler
17805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17807 # This bug is HP SR number 8606223364.
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
17809 $as_echo_n "checking size of intmax_t... " >&6; }
17810 if ${ac_cv_sizeof_intmax_t+:} false; then :
17811 $as_echo_n "(cached) " >&6
17813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
17816 if test "$ac_cv_type_intmax_t" = yes; then
17817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17819 as_fn_error 77 "cannot compute sizeof (intmax_t)
17820 See \`config.log' for more details" "$LINENO" 5; }
17822 ac_cv_sizeof_intmax_t=0
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
17828 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
17832 cat >>confdefs.h <<_ACEOF
17833 @%:@define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
17839 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
17840 #include <sys/types.h>
17841 #include <termios.h>
17844 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
17845 $as_echo "@%:@define TERMIOS_LDISC 1" >>confdefs.h
17851 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
17852 #include <sys/types.h>
17853 #include <termio.h>
17856 if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
17857 $as_echo "@%:@define TERMIO_LDISC 1" >>confdefs.h
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
17864 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
17865 if ${bush_cv_dirent_has_dino+:} false; then :
17866 $as_echo_n "(cached) " >&6
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17872 #include <sys/types.h>
17873 #ifdef HAVE_UNISTD_H
17874 # include <unistd.h>
17875 #endif /* HAVE_UNISTD_H */
17876 #if defined(HAVE_DIRENT_H)
17877 # include <dirent.h>
17879 # define dirent direct
17880 # ifdef HAVE_SYS_NDIR_H
17881 # include <sys/ndir.h>
17882 # endif /* SYSNDIR */
17883 # ifdef HAVE_SYS_DIR_H
17884 # include <sys/dir.h>
17885 # endif /* SYSDIR */
17886 # ifdef HAVE_NDIR_H
17889 #endif /* HAVE_DIRENT_H */
17895 struct dirent d; int z; z = d.d_ino;
17901 if ac_fn_c_try_compile "$LINENO"; then :
17902 bush_cv_dirent_has_dino=yes
17904 bush_cv_dirent_has_dino=no
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dirent_has_dino" >&5
17910 $as_echo "$bush_cv_dirent_has_dino" >&6; }
17911 if test $bush_cv_dirent_has_dino = yes; then
17912 $as_echo "@%:@define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
17918 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
17919 if ${bush_cv_dirent_has_d_fileno+:} false; then :
17920 $as_echo_n "(cached) " >&6
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17926 #include <sys/types.h>
17927 #ifdef HAVE_UNISTD_H
17928 # include <unistd.h>
17929 #endif /* HAVE_UNISTD_H */
17930 #if defined(HAVE_DIRENT_H)
17931 # include <dirent.h>
17933 # define dirent direct
17934 # ifdef HAVE_SYS_NDIR_H
17935 # include <sys/ndir.h>
17936 # endif /* SYSNDIR */
17937 # ifdef HAVE_SYS_DIR_H
17938 # include <sys/dir.h>
17939 # endif /* SYSDIR */
17940 # ifdef HAVE_NDIR_H
17943 #endif /* HAVE_DIRENT_H */
17949 struct dirent d; int z; z = d.d_fileno;
17955 if ac_fn_c_try_compile "$LINENO"; then :
17956 bush_cv_dirent_has_d_fileno=yes
17958 bush_cv_dirent_has_d_fileno=no
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dirent_has_d_fileno" >&5
17964 $as_echo "$bush_cv_dirent_has_d_fileno" >&6; }
17965 if test $bush_cv_dirent_has_d_fileno = yes; then
17966 $as_echo "@%:@define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
17972 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
17973 if ${bush_cv_dirent_has_d_namlen+:} false; then :
17974 $as_echo_n "(cached) " >&6
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17980 #include <sys/types.h>
17981 #ifdef HAVE_UNISTD_H
17982 # include <unistd.h>
17983 #endif /* HAVE_UNISTD_H */
17984 #if defined(HAVE_DIRENT_H)
17985 # include <dirent.h>
17987 # define dirent direct
17988 # ifdef HAVE_SYS_NDIR_H
17989 # include <sys/ndir.h>
17990 # endif /* SYSNDIR */
17991 # ifdef HAVE_SYS_DIR_H
17992 # include <sys/dir.h>
17993 # endif /* SYSDIR */
17994 # ifdef HAVE_NDIR_H
17997 #endif /* HAVE_DIRENT_H */
18003 struct dirent d; int z; z = d.d_namlen;
18009 if ac_fn_c_try_compile "$LINENO"; then :
18010 bush_cv_dirent_has_d_namlen=yes
18012 bush_cv_dirent_has_d_namlen=no
18014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dirent_has_d_namlen" >&5
18018 $as_echo "$bush_cv_dirent_has_d_namlen" >&6; }
18019 if test $bush_cv_dirent_has_d_namlen = yes; then
18020 $as_echo "@%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
18025 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
18026 if ${bush_cv_struct_winsize_header+:} false; then :
18027 $as_echo_n "(cached) " >&6
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <sys/types.h>
18032 #include <sys/ioctl.h>
18041 if ac_fn_c_try_compile "$LINENO"; then :
18042 bush_cv_struct_winsize_header=ioctl_h
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 #include <sys/types.h>
18047 #include <termios.h>
18056 if ac_fn_c_try_compile "$LINENO"; then :
18057 bush_cv_struct_winsize_header=termios_h
18059 bush_cv_struct_winsize_header=other
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067 if test $bush_cv_struct_winsize_header = ioctl_h; then
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
18069 $as_echo "sys/ioctl.h" >&6; }
18070 $as_echo "@%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
18072 elif test $bush_cv_struct_winsize_header = termios_h; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
18074 $as_echo "termios.h" >&6; }
18075 $as_echo "@%:@define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18079 $as_echo "not found" >&6; }
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
18083 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
18084 if ${bush_cv_struct_timeval+:} false; then :
18085 $as_echo_n "(cached) " >&6
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 #if HAVE_SYS_TIME_H
18090 #include <sys/time.h>
18097 static struct timeval x; x.tv_sec = x.tv_usec;
18103 if ac_fn_c_try_compile "$LINENO"; then :
18104 bush_cv_struct_timeval=yes
18106 bush_cv_struct_timeval=no
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_struct_timeval" >&5
18113 $as_echo "$bush_cv_struct_timeval" >&6; }
18114 if test $bush_cv_struct_timeval = yes; then
18115 $as_echo "@%:@define HAVE_TIMEVAL 1" >>confdefs.h
18119 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
18120 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
18122 cat >>confdefs.h <<_ACEOF
18123 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18130 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18131 if ${ac_cv_struct_tm+:} false; then :
18132 $as_echo_n "(cached) " >&6
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #include <sys/types.h>
18143 int *p = &tm.tm_sec;
18149 if ac_fn_c_try_compile "$LINENO"; then :
18150 ac_cv_struct_tm=time.h
18152 ac_cv_struct_tm=sys/time.h
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18157 $as_echo "$ac_cv_struct_tm" >&6; }
18158 if test $ac_cv_struct_tm = sys/time.h; then
18160 $as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
18164 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18165 #include <$ac_cv_struct_tm>
18168 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
18170 cat >>confdefs.h <<_ACEOF
18171 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
18177 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18179 $as_echo "@%:@define HAVE_TM_ZONE 1" >>confdefs.h
18182 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18184 if test "x$ac_cv_have_decl_tzname" = xyes; then :
18190 cat >>confdefs.h <<_ACEOF
18191 @%:@define HAVE_DECL_TZNAME $ac_have_decl
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18195 $as_echo_n "checking for tzname... " >&6; }
18196 if ${ac_cv_var_tzname+:} false; then :
18197 $as_echo_n "(cached) " >&6
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18202 #if !HAVE_DECL_TZNAME
18203 extern char *tzname[];
18209 return tzname[0][0];
18214 if ac_fn_c_try_link "$LINENO"; then :
18215 ac_cv_var_tzname=yes
18217 ac_cv_var_tzname=no
18219 rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18223 $as_echo "$ac_cv_var_tzname" >&6; }
18224 if test $ac_cv_var_tzname = yes; then
18226 $as_echo "@%:@define HAVE_TZNAME 1" >>confdefs.h
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
18232 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
18233 if ${bush_cv_struct_timezone+:} false; then :
18234 $as_echo_n "(cached) " >&6
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 #include <sys/time.h>
18242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18243 $EGREP "struct timezone" >/dev/null 2>&1; then :
18244 bush_cv_struct_timezone=yes
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18252 $EGREP "struct timezone" >/dev/null 2>&1; then :
18253 bush_cv_struct_timezone=yes
18255 bush_cv_struct_timezone=no
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_struct_timezone" >&5
18266 $as_echo "$bush_cv_struct_timezone" >&6; }
18267 if test $bush_cv_struct_timezone = yes; then
18268 $as_echo "@%:@define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
18274 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
18275 if ${bush_cv_wexitstatus_offset+:} false; then :
18276 $as_echo_n "(cached) " >&6
18278 if test "$cross_compiling" = yes; then :
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
18280 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
18281 bush_cv_wexitstatus_offset=0
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18287 #include <stdlib.h>
18288 #include <unistd.h>
18290 #include <sys/wait.h>
18305 /* wait for the process */
18311 for (i = 0; i < (sizeof(s) * 8); i++)
18313 n = (s >> i) & 0xff;
18322 if ac_fn_c_try_run "$LINENO"; then :
18323 bush_cv_wexitstatus_offset=0
18325 bush_cv_wexitstatus_offset=$?
18327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18328 conftest.$ac_objext conftest.beam conftest.$ac_ext
18333 if test "$bush_cv_wexitstatus_offset" -gt 32 ; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
18335 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
18336 bush_cv_wexitstatus_offset=0
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_wexitstatus_offset" >&5
18339 $as_echo "$bush_cv_wexitstatus_offset" >&6; }
18341 cat >>confdefs.h <<_ACEOF
18342 @%:@define WEXITSTATUS_OFFSET $bush_cv_wexitstatus_offset
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18350 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18351 if ${bush_cv_sys_struct_timespec_in_time_h+:} false; then :
18352 $as_echo_n "(cached) " >&6
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18361 static struct timespec x; x.tv_sec = x.tv_nsec;
18366 if ac_fn_c_try_compile "$LINENO"; then :
18367 bush_cv_sys_struct_timespec_in_time_h=yes
18369 bush_cv_sys_struct_timespec_in_time_h=no
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_struct_timespec_in_time_h" >&5
18374 $as_echo "$bush_cv_sys_struct_timespec_in_time_h" >&6; }
18376 HAVE_STRUCT_TIMESPEC=0
18377 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18378 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18379 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18380 if test $bush_cv_sys_struct_timespec_in_time_h = yes; then
18381 $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18383 $as_echo "@%:@define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
18385 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18388 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18389 if ${bush_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
18390 $as_echo_n "(cached) " >&6
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394 #include <sys/time.h>
18399 static struct timespec x; x.tv_sec = x.tv_nsec;
18404 if ac_fn_c_try_compile "$LINENO"; then :
18405 bush_cv_sys_struct_timespec_in_sys_time_h=yes
18407 bush_cv_sys_struct_timespec_in_sys_time_h=no
18409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_struct_timespec_in_sys_time_h" >&5
18412 $as_echo "$bush_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18413 if test $bush_cv_sys_struct_timespec_in_sys_time_h = yes; then
18414 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18415 $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18417 $as_echo "@%:@define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18421 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18422 if ${bush_cv_sys_struct_timespec_in_pthread_h+:} false; then :
18423 $as_echo_n "(cached) " >&6
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18427 #include <pthread.h>
18432 static struct timespec x; x.tv_sec = x.tv_nsec;
18437 if ac_fn_c_try_compile "$LINENO"; then :
18438 bush_cv_sys_struct_timespec_in_pthread_h=yes
18440 bush_cv_sys_struct_timespec_in_pthread_h=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_struct_timespec_in_pthread_h" >&5
18445 $as_echo "$bush_cv_sys_struct_timespec_in_pthread_h" >&6; }
18446 if test $bush_cv_sys_struct_timespec_in_pthread_h = yes; then
18447 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18448 $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18450 $as_echo "@%:@define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
18464 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>
18465 #include <sys/stat.h>
18467 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
18469 cat >>confdefs.h <<_ACEOF
18470 @%:@define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
18474 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
18475 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
18476 $as_echo_n "(cached) " >&6
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18481 #include <sys/types.h>
18482 #include <sys/stat.h>
18483 #if HAVE_SYS_TIME_H
18484 # include <sys/time.h>
18487 struct timespec ts;
18500 if ac_fn_c_try_compile "$LINENO"; then :
18501 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
18503 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
18505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
18508 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
18509 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
18511 $as_echo "@%:@define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
18515 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>
18516 #include <sys/stat.h>
18518 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
18520 cat >>confdefs.h <<_ACEOF
18521 @%:@define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
18526 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
18527 #include <sys/stat.h>
18529 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
18531 cat >>confdefs.h <<_ACEOF
18532 @%:@define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
18537 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>
18538 #include <sys/stat.h>
18540 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
18542 cat >>confdefs.h <<_ACEOF
18543 @%:@define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
18559 $as_echo_n "checking for sbrk... " >&6; }
18560 if ${ac_cv_func_sbrk+:} false; then :
18561 $as_echo_n "(cached) " >&6
18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564 /* end confdefs.h. */
18565 #include <unistd.h>
18569 void *x = sbrk (4096);
18574 if ac_fn_c_try_link "$LINENO"; then :
18575 ac_cv_func_sbrk=yes
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sbrk" >&5
18584 $as_echo "$ac_cv_func_sbrk" >&6; }
18585 if test X$ac_cv_func_sbrk = Xyes; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sbrk" >&5
18587 $as_echo_n "checking for working sbrk... " >&6; }
18588 if ${bush_cv_func_sbrk+:} false; then :
18589 $as_echo_n "(cached) " >&6
18591 if test "$cross_compiling" = yes; then :
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working sbrk if cross-compiling" >&5
18593 $as_echo "$as_me: WARNING: cannot check working sbrk if cross-compiling" >&2;}
18594 bush_cv_func_sbrk=yes
18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598 /* end confdefs.h. */
18600 #include <stdlib.h>
18601 #include <unistd.h>
18604 main(int c, char **v)
18609 exit ((x == (void *)-1) ? 1 : 0);
18613 if ac_fn_c_try_run "$LINENO"; then :
18614 bush_cv_func_sbrk=yes
18616 bush_cv_func_snprintf=sbrk
18618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18619 conftest.$ac_objext conftest.beam conftest.$ac_ext
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_sbrk" >&5
18624 $as_echo "$bush_cv_func_sbrk" >&6; }
18625 if test $bush_cv_func_sbrk = no; then
18629 if test $ac_cv_func_sbrk = yes; then
18631 $as_echo "@%:@define HAVE_SBRK 1" >>confdefs.h
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
18637 $as_echo_n "checking for the existence of strsignal... " >&6; }
18638 if ${bush_cv_have_strsignal+:} false; then :
18639 $as_echo_n "(cached) " >&6
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 #include <sys/types.h>
18644 #include <signal.h>
18645 #include <string.h>
18649 char *s = (char *)strsignal(2);
18654 if ac_fn_c_try_link "$LINENO"; then :
18655 bush_cv_have_strsignal=yes
18657 bush_cv_have_strsignal=no
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_strsignal" >&5
18664 $as_echo "$bush_cv_have_strsignal" >&6; }
18665 if test $bush_cv_have_strsignal = yes; then
18666 $as_echo "@%:@define HAVE_STRSIGNAL 1" >>confdefs.h
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
18671 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
18672 if ${bush_cv_opendir_not_robust+:} false; then :
18673 $as_echo_n "(cached) " >&6
18675 if test "$cross_compiling" = yes; then :
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
18677 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
18678 bush_cv_opendir_not_robust=no
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18685 #include <sys/types.h>
18687 #ifdef HAVE_UNISTD_H
18688 # include <unistd.h>
18689 #endif /* HAVE_UNISTD_H */
18690 #ifdef HAVE_SYS_STAT_H
18691 #include <sys/stat.h>
18693 #if defined(HAVE_DIRENT_H)
18694 # include <dirent.h>
18696 # define dirent direct
18697 # ifdef HAVE_SYS_NDIR_H
18698 # include <sys/ndir.h>
18699 # endif /* SYSNDIR */
18700 # ifdef HAVE_SYS_DIR_H
18701 # include <sys/dir.h>
18702 # endif /* SYSDIR */
18703 # ifdef HAVE_NDIR_H
18706 #endif /* HAVE_DIRENT_H */
18707 #include <stdlib.h>
18713 err = mkdir("bush-aclocal", 0700);
18718 unlink("bush-aclocal/not_a_directory");
18719 fd = open("bush-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
18720 write(fd, "\n", 1);
18722 dir = opendir("bush-aclocal/not_a_directory");
18723 unlink("bush-aclocal/not_a_directory");
18724 rmdir("bush-aclocal");
18728 if ac_fn_c_try_run "$LINENO"; then :
18729 bush_cv_opendir_not_robust=yes
18731 bush_cv_opendir_not_robust=no
18733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18734 conftest.$ac_objext conftest.beam conftest.$ac_ext
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_opendir_not_robust" >&5
18740 $as_echo "$bush_cv_opendir_not_robust" >&6; }
18741 if test $bush_cv_opendir_not_robust = yes; then
18742 $as_echo "@%:@define OPENDIR_NOT_ROBUST 1" >>confdefs.h
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
18747 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
18748 if ${bush_cv_ulimit_maxfds+:} false; then :
18749 $as_echo_n "(cached) " >&6
18751 if test "$cross_compiling" = yes; then :
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
18753 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
18754 bush_cv_ulimit_maxfds=no
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 #include <stdlib.h>
18761 #ifdef HAVE_ULIMIT_H
18762 #include <ulimit.h>
18767 long maxfds = ulimit(4, 0L);
18768 exit (maxfds == -1L);
18772 if ac_fn_c_try_run "$LINENO"; then :
18773 bush_cv_ulimit_maxfds=yes
18775 bush_cv_ulimit_maxfds=no
18777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18778 conftest.$ac_objext conftest.beam conftest.$ac_ext
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_ulimit_maxfds" >&5
18784 $as_echo "$bush_cv_ulimit_maxfds" >&6; }
18785 if test $bush_cv_ulimit_maxfds = yes; then
18786 $as_echo "@%:@define ULIMIT_MAXFDS 1" >>confdefs.h
18797 ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
18799 if test "x$ac_cv_have_decl_fpurge" = xyes; then :
18805 cat >>confdefs.h <<_ACEOF
18806 @%:@define HAVE_DECL_FPURGE $ac_have_decl
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
18811 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
18812 if ${bush_cv_getenv_redef+:} false; then :
18813 $as_echo_n "(cached) " >&6
18815 if test "$cross_compiling" = yes; then :
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
18817 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
18818 bush_cv_getenv_redef=yes
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 #ifdef HAVE_UNISTD_H
18825 # include <unistd.h>
18827 #include <stdlib.h>
18835 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
18839 #endif /* !__linux__ && !__bsdi__ && !convex */
18847 /* The next allows this program to run, but does not allow bush to link
18848 when it redefines getenv. I'm not really interested in figuring out
18853 s = getenv("ABCDE");
18854 exit(s == 0); /* force optimizer to leave getenv in */
18858 if ac_fn_c_try_run "$LINENO"; then :
18859 bush_cv_getenv_redef=yes
18861 bush_cv_getenv_redef=no
18863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18864 conftest.$ac_objext conftest.beam conftest.$ac_ext
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_getenv_redef" >&5
18870 $as_echo "$bush_cv_getenv_redef" >&6; }
18871 if test $bush_cv_getenv_redef = yes; then
18872 $as_echo "@%:@define CAN_REDEFINE_GETENV 1" >>confdefs.h
18876 if test "$ac_cv_func_getcwd" = "yes"; then
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
18878 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
18879 if ${bush_cv_getcwd_malloc+:} false; then :
18880 $as_echo_n "(cached) " >&6
18882 if test "$cross_compiling" = yes; then :
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
18884 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
18885 bush_cv_getcwd_malloc=no
18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h. */
18892 #ifdef HAVE_UNISTD_H
18893 #include <unistd.h>
18895 #include <stdlib.h>
18901 xpwd = getcwd(0, 0);
18906 if ac_fn_c_try_run "$LINENO"; then :
18907 bush_cv_getcwd_malloc=yes
18909 bush_cv_getcwd_malloc=no
18911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18912 conftest.$ac_objext conftest.beam conftest.$ac_ext
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_getcwd_malloc" >&5
18918 $as_echo "$bush_cv_getcwd_malloc" >&6; }
18919 if test $bush_cv_getcwd_malloc = no; then
18920 $as_echo "@%:@define GETCWD_BROKEN 1" >>confdefs.h
18922 case " $LIB@&t@OBJS " in
18923 *" getcwd.$ac_objext "* ) ;;
18924 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
18933 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
18934 if ${bush_cv_func_sigsetjmp+:} false; then :
18935 $as_echo_n "(cached) " >&6
18937 if test "$cross_compiling" = yes; then :
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
18939 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
18940 bush_cv_func_sigsetjmp=missing
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18946 #ifdef HAVE_UNISTD_H
18947 #include <unistd.h>
18949 #include <sys/types.h>
18950 #include <signal.h>
18951 #include <setjmp.h>
18952 #include <stdlib.h>
18957 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
18962 sigset_t set, oset;
18967 sigemptyset(&oset);
18968 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
18969 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
18972 code = sigsetjmp(xx, 1);
18974 exit(0); /* could get sigmask and compare to oset here. */
18977 sigaddset(&set, SIGINT);
18978 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
18980 /* and siglongjmp */
18981 siglongjmp(xx, 10);
18986 if ac_fn_c_try_run "$LINENO"; then :
18987 bush_cv_func_sigsetjmp=present
18989 bush_cv_func_sigsetjmp=missing
18991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18992 conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_sigsetjmp" >&5
18998 $as_echo "$bush_cv_func_sigsetjmp" >&6; }
18999 if test $bush_cv_func_sigsetjmp = present; then
19000 $as_echo "@%:@define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
19006 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
19007 if ${bush_cv_func_strcoll_broken+:} false; then :
19008 $as_echo_n "(cached) " >&6
19010 if test "$cross_compiling" = yes; then :
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
19012 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
19013 bush_cv_func_strcoll_broken=no
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19020 #if defined (HAVE_LOCALE_H)
19021 #include <locale.h>
19023 #include <string.h>
19024 #include <stdlib.h>
19032 char *deflocale, *defcoll;
19034 #ifdef HAVE_SETLOCALE
19035 deflocale = setlocale(LC_ALL, "");
19036 defcoll = setlocale(LC_COLLATE, "");
19039 #ifdef HAVE_STRCOLL
19040 /* These two values are taken from tests/glob-test. */
19041 r1 = strcoll("abd", "aXd");
19045 r2 = strcmp("abd", "aXd");
19047 /* These two should both be greater than 0. It is permissible for
19048 a system to return different values, as long as the sign is the
19051 /* Exit with 1 (failure) if these two values are both > 0, since
19052 this tests whether strcoll(3) is broken with respect to strcmp(3)
19053 in the default locale. */
19054 exit (r1 > 0 && r2 > 0);
19058 if ac_fn_c_try_run "$LINENO"; then :
19059 bush_cv_func_strcoll_broken=yes
19061 bush_cv_func_strcoll_broken=no
19063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19064 conftest.$ac_objext conftest.beam conftest.$ac_ext
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_strcoll_broken" >&5
19070 $as_echo "$bush_cv_func_strcoll_broken" >&6; }
19071 if test $bush_cv_func_strcoll_broken = yes; then
19072 $as_echo "@%:@define STRCOLL_BROKEN 1" >>confdefs.h
19080 if test X$ac_cv_func_snprintf = Xyes; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
19082 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
19083 if ${bush_cv_func_snprintf+:} false; then :
19084 $as_echo_n "(cached) " >&6
19086 if test "$cross_compiling" = yes; then :
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
19088 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
19089 bush_cv_func_snprintf=yes
19092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h. */
19096 #include <stdlib.h>
19102 n = snprintf (0, 0, "%s", "0123456");
19107 if ac_fn_c_try_run "$LINENO"; then :
19108 bush_cv_func_snprintf=yes
19110 bush_cv_func_snprintf=no
19112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19113 conftest.$ac_objext conftest.beam conftest.$ac_ext
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_snprintf" >&5
19118 $as_echo "$bush_cv_func_snprintf" >&6; }
19119 if test $bush_cv_func_snprintf = no; then
19120 ac_cv_func_snprintf=no
19123 if test $ac_cv_func_snprintf = no; then
19125 $as_echo "@%:@define HAVE_SNPRINTF 0" >>confdefs.h
19133 if test X$ac_cv_func_vsnprintf = Xyes; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
19135 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
19136 if ${bush_cv_func_vsnprintf+:} false; then :
19137 $as_echo_n "(cached) " >&6
19139 if test "$cross_compiling" = yes; then :
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
19141 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
19142 bush_cv_func_vsnprintf=yes
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19149 #include <stdarg.h>
19151 #include <varargs.h>
19154 #include <stdlib.h>
19158 foo(const char *fmt, ...)
19160 foo(format, va_alist)
19161 const char *format;
19169 va_start(args, fmt);
19173 n = vsnprintf(0, 0, fmt, args);
19182 n = foo("%s", "0123456");
19187 if ac_fn_c_try_run "$LINENO"; then :
19188 bush_cv_func_vsnprintf=yes
19190 bush_cv_func_vsnprintf=no
19192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19193 conftest.$ac_objext conftest.beam conftest.$ac_ext
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_vsnprintf" >&5
19198 $as_echo "$bush_cv_func_vsnprintf" >&6; }
19199 if test $bush_cv_func_vsnprintf = no; then
19200 ac_cv_func_vsnprintf=no
19203 if test $ac_cv_func_vsnprintf = no; then
19205 $as_echo "@%:@define HAVE_VSNPRINTF 0" >>confdefs.h
19211 if test "$ac_cv_func_putenv" = "yes"; then
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
19216 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
19217 if ${bush_cv_std_putenv+:} false; then :
19218 $as_echo_n "(cached) " >&6
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19224 #include <stdlib.h>
19225 #include <stddef.h>
19233 extern int putenv (char *);
19235 extern int putenv ();
19241 return (putenv == 0);
19246 if ac_fn_c_try_link "$LINENO"; then :
19247 bush_cv_std_putenv=yes
19249 bush_cv_std_putenv=no
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_std_putenv" >&5
19256 $as_echo "$bush_cv_std_putenv" >&6; }
19257 if test $bush_cv_std_putenv = yes; then
19258 $as_echo "@%:@define HAVE_STD_PUTENV 1" >>confdefs.h
19263 $as_echo "@%:@define HAVE_STD_PUTENV 1" >>confdefs.h
19266 if test "$ac_cv_func_unsetenv" = "yes"; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
19271 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
19272 if ${bush_cv_std_unsetenv+:} false; then :
19273 $as_echo_n "(cached) " >&6
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19279 #include <stdlib.h>
19280 #include <stddef.h>
19288 extern int unsetenv (const char *);
19290 extern int unsetenv ();
19296 return (unsetenv == 0);
19301 if ac_fn_c_try_link "$LINENO"; then :
19302 bush_cv_std_unsetenv=yes
19304 bush_cv_std_unsetenv=no
19307 rm -f core conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_std_unsetenv" >&5
19311 $as_echo "$bush_cv_std_unsetenv" >&6; }
19312 if test $bush_cv_std_unsetenv = yes; then
19313 $as_echo "@%:@define HAVE_STD_UNSETENV 1" >>confdefs.h
19318 $as_echo "@%:@define HAVE_STD_UNSETENV 1" >>confdefs.h
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
19323 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
19324 if ${bush_cv_printf_a_format+:} false; then :
19325 $as_echo_n "(cached) " >&6
19327 if test "$cross_compiling" = yes; then :
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
19329 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
19330 bush_cv_printf_a_format=no
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19337 #include <string.h>
19338 #include <stdlib.h>
19346 sprintf(abuf, "%A", y);
19347 exit(strchr(abuf, 'P') == (char *)0);
19351 if ac_fn_c_try_run "$LINENO"; then :
19352 bush_cv_printf_a_format=yes
19354 bush_cv_printf_a_format=no
19356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19357 conftest.$ac_objext conftest.beam conftest.$ac_ext
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_printf_a_format" >&5
19363 $as_echo "$bush_cv_printf_a_format" >&6; }
19364 if test $bush_cv_printf_a_format = yes; then
19365 $as_echo "@%:@define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fnmatch can be used to check bracket equivalence classes" >&5
19371 $as_echo_n "checking whether fnmatch can be used to check bracket equivalence classes... " >&6; }
19372 if ${bush_cv_fnmatch_equiv_fallback+:} false; then :
19373 $as_echo_n "(cached) " >&6
19375 if test "$cross_compiling" = yes; then :
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&5
19377 $as_echo "$as_me: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&2;}
19378 bush_cv_fnmatch_equiv_fallback=no
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19384 #include <stdlib.h>
19385 #include <unistd.h>
19387 #include <fnmatch.h>
19388 #include <locale.h>
19390 char *pattern = "[[=a=]]";
19392 /* char *string = "ä"; */
19393 unsigned char string[4] = { '\xc3', '\xa4', '\0' };
19396 main (int c, char **v)
19398 setlocale (LC_ALL, "en_US.UTF-8");
19399 if (fnmatch (pattern, (const char *)string, 0) != FNM_NOMATCH)
19406 if ac_fn_c_try_run "$LINENO"; then :
19407 bush_cv_fnmatch_equiv_fallback=yes
19409 bush_cv_fnmatch_equiv_fallback=no
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19412 conftest.$ac_objext conftest.beam conftest.$ac_ext
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_fnmatch_equiv_fallback" >&5
19418 $as_echo "$bush_cv_fnmatch_equiv_fallback" >&6; }
19419 if test "$bush_cv_fnmatch_equiv_fallback" = "yes" ; then
19420 bush_cv_fnmatch_equiv_value=1
19422 bush_cv_fnmatch_equiv_value=0
19425 cat >>confdefs.h <<_ACEOF
19426 @%:@define FNMATCH_EQUIV_FALLBACK $bush_cv_fnmatch_equiv_value
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
19434 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
19435 if ${bush_cv_must_reinstall_sighandlers+:} false; then :
19436 $as_echo_n "(cached) " >&6
19438 if test "$cross_compiling" = yes; then :
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
19440 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
19441 bush_cv_must_reinstall_sighandlers=no
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19447 #include <signal.h>
19448 #ifdef HAVE_UNISTD_H
19449 #include <unistd.h>
19451 #include <stdlib.h>
19453 typedef RETSIGTYPE sigfunc();
19455 volatile int nsigint;
19457 #ifdef HAVE_POSIX_SIGNALS
19459 set_signal_handler(sig, handler)
19463 struct sigaction act, oact;
19464 act.sa_handler = handler;
19466 sigemptyset (&act.sa_mask);
19467 sigemptyset (&oact.sa_mask);
19468 sigaction (sig, &act, &oact);
19469 return (oact.sa_handler);
19472 #define set_signal_handler(s, h) signal(s, h)
19486 set_signal_handler(SIGINT, sigint);
19487 kill((int)getpid(), SIGINT);
19488 kill((int)getpid(), SIGINT);
19489 exit(nsigint != 2);
19493 if ac_fn_c_try_run "$LINENO"; then :
19494 bush_cv_must_reinstall_sighandlers=no
19496 bush_cv_must_reinstall_sighandlers=yes
19498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19499 conftest.$ac_objext conftest.beam conftest.$ac_ext
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_must_reinstall_sighandlers" >&5
19505 $as_echo "$bush_cv_must_reinstall_sighandlers" >&6; }
19506 if test $bush_cv_must_reinstall_sighandlers = yes; then
19507 $as_echo "@%:@define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
19513 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
19514 if ${bush_cv_job_control_missing+:} false; then :
19515 $as_echo_n "(cached) " >&6
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19520 #include <sys/types.h>
19521 #ifdef HAVE_SYS_WAIT_H
19522 #include <sys/wait.h>
19524 #ifdef HAVE_UNISTD_H
19525 #include <unistd.h>
19527 #include <signal.h>
19529 /* add more tests in here as appropriate */
19532 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
19536 /* signals and tty control. */
19537 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
19541 /* process control */
19542 #if !defined (WNOHANG) || !defined (WUNTRACED)
19546 /* Posix systems have tcgetpgrp and waitpid. */
19547 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
19551 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
19555 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
19556 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
19569 if ac_fn_c_try_compile "$LINENO"; then :
19570 bush_cv_job_control_missing=present
19572 bush_cv_job_control_missing=missing
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_job_control_missing" >&5
19579 $as_echo "$bush_cv_job_control_missing" >&6; }
19580 if test $bush_cv_job_control_missing = missing; then
19581 $as_echo "@%:@define JOB_CONTROL_MISSING 1" >>confdefs.h
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
19586 $as_echo_n "checking for presence of named pipes... " >&6; }
19587 if ${bush_cv_sys_named_pipes+:} false; then :
19588 $as_echo_n "(cached) " >&6
19590 if test "$cross_compiling" = yes; then :
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
19592 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
19593 bush_cv_sys_named_pipes=missing
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19599 #include <sys/types.h>
19600 #include <sys/stat.h>
19601 #ifdef HAVE_UNISTD_H
19602 #include <unistd.h>
19605 #include <stdlib.h>
19607 /* Add more tests in here as appropriate. */
19613 #if defined (HAVE_MKFIFO)
19617 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
19624 err = mkdir("bush-aclocal", 0700);
19629 fd = mknod ("bush-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
19631 rmdir ("bush-aclocal");
19635 unlink ("bush-aclocal/sh-np-autoconf");
19636 rmdir ("bush-aclocal");
19640 if ac_fn_c_try_run "$LINENO"; then :
19641 bush_cv_sys_named_pipes=present
19643 bush_cv_sys_named_pipes=missing
19645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19646 conftest.$ac_objext conftest.beam conftest.$ac_ext
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_named_pipes" >&5
19652 $as_echo "$bush_cv_sys_named_pipes" >&6; }
19653 if test $bush_cv_sys_named_pipes = missing; then
19654 $as_echo "@%:@define NAMED_PIPES_MISSING 1" >>confdefs.h
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
19660 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
19661 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
19662 $as_echo_n "(cached) " >&6
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <sys/types.h>
19667 #include <termios.h>
19673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19674 $EGREP "yes" >/dev/null 2>&1; then :
19675 ac_cv_sys_tiocgwinsz_in_termios_h=yes
19677 ac_cv_sys_tiocgwinsz_in_termios_h=no
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
19683 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
19685 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
19687 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
19688 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
19689 $as_echo_n "(cached) " >&6
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19693 #include <sys/types.h>
19694 #include <sys/ioctl.h>
19700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19701 $EGREP "yes" >/dev/null 2>&1; then :
19702 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
19704 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
19710 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
19712 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
19714 $as_echo "@%:@define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
19720 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
19721 if ${bush_cv_tiocstat_in_ioctl+:} false; then :
19722 $as_echo_n "(cached) " >&6
19724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19725 /* end confdefs.h. */
19726 #include <sys/types.h>
19727 #include <sys/ioctl.h>
19736 if ac_fn_c_try_compile "$LINENO"; then :
19737 bush_cv_tiocstat_in_ioctl=yes
19739 bush_cv_tiocstat_in_ioctl=no
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_tiocstat_in_ioctl" >&5
19745 $as_echo "$bush_cv_tiocstat_in_ioctl" >&6; }
19746 if test $bush_cv_tiocstat_in_ioctl = yes; then
19747 $as_echo "@%:@define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
19752 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
19753 if ${bush_cv_fionread_in_ioctl+:} false; then :
19754 $as_echo_n "(cached) " >&6
19756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h. */
19758 #include <sys/types.h>
19759 #include <sys/ioctl.h>
19768 if ac_fn_c_try_compile "$LINENO"; then :
19769 bush_cv_fionread_in_ioctl=yes
19771 bush_cv_fionread_in_ioctl=no
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_fionread_in_ioctl" >&5
19777 $as_echo "$bush_cv_fionread_in_ioctl" >&6; }
19778 if test $bush_cv_fionread_in_ioctl = yes; then
19779 $as_echo "@%:@define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
19786 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
19787 if ${bush_cv_wcontinued_broken+:} false; then :
19788 $as_echo_n "(cached) " >&6
19790 if test "$cross_compiling" = yes; then :
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
19792 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
19793 bush_cv_wcontinued_broken=no
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19799 #include <sys/types.h>
19800 #include <sys/wait.h>
19801 #include <unistd.h>
19803 #include <stdlib.h>
19813 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
19814 if (x == -1 && errno == EINVAL)
19821 if ac_fn_c_try_run "$LINENO"; then :
19822 bush_cv_wcontinued_broken=no
19824 bush_cv_wcontinued_broken=yes
19826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19827 conftest.$ac_objext conftest.beam conftest.$ac_ext
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_wcontinued_broken" >&5
19833 $as_echo "$bush_cv_wcontinued_broken" >&6; }
19834 if test $bush_cv_wcontinued_broken = yes; then
19835 $as_echo "@%:@define WCONTINUED_BROKEN 1" >>confdefs.h
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
19841 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
19842 if ${bush_cv_speed_t_in_sys_types+:} false; then :
19843 $as_echo_n "(cached) " >&6
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19847 #include <sys/types.h>
19856 if ac_fn_c_try_compile "$LINENO"; then :
19857 bush_cv_speed_t_in_sys_types=yes
19859 bush_cv_speed_t_in_sys_types=no
19861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_speed_t_in_sys_types" >&5
19865 $as_echo "$bush_cv_speed_t_in_sys_types" >&6; }
19866 if test $bush_cv_speed_t_in_sys_types = yes; then
19867 $as_echo "@%:@define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
19872 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
19873 if ${bush_cv_getpw_declared+:} false; then :
19874 $as_echo_n "(cached) " >&6
19876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19879 #include <sys/types.h>
19880 #ifdef HAVE_UNISTD_H
19881 # include <unistd.h>
19886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19887 $EGREP "getpwuid" >/dev/null 2>&1; then :
19888 bush_cv_getpw_declared=yes
19890 bush_cv_getpw_declared=no
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_getpw_declared" >&5
19897 $as_echo "$bush_cv_getpw_declared" >&6; }
19898 if test $bush_cv_getpw_declared = yes; then
19899 $as_echo "@%:@define HAVE_GETPW_DECLS 1" >>confdefs.h
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
19904 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
19905 if ${bush_cv_unusable_rtsigs+:} false; then :
19906 $as_echo_n "(cached) " >&6
19908 if test "$cross_compiling" = yes; then :
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
19910 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
19911 bush_cv_unusable_rtsigs=yes
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19917 #include <sys/types.h>
19918 #include <signal.h>
19919 #include <stdlib.h>
19928 int n_sigs = 2 * NSIG;
19930 int rtmin = SIGRTMIN;
19935 exit(rtmin < n_sigs);
19938 if ac_fn_c_try_run "$LINENO"; then :
19939 bush_cv_unusable_rtsigs=yes
19941 bush_cv_unusable_rtsigs=no
19943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19944 conftest.$ac_objext conftest.beam conftest.$ac_ext
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_unusable_rtsigs" >&5
19950 $as_echo "$bush_cv_unusable_rtsigs" >&6; }
19951 if test $bush_cv_unusable_rtsigs = yes; then
19952 $as_echo "@%:@define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
19960 if test "$bush_cv_sys_siglist" = no && test "$bush_cv_under_sys_siglist" = no && test "$bush_cv_have_strsignal" = no; then
19961 SIGLIST_O=siglist.o
19969 hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
19970 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
19971 if ${bush_cv_kernel_rlimit+:} false; then :
19972 $as_echo_n "(cached) " >&6
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19977 #include <sys/types.h>
19978 #include <sys/resource.h>
19991 if ac_fn_c_try_compile "$LINENO"; then :
19992 bush_cv_kernel_rlimit=no
19994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19997 #include <sys/types.h>
19999 #include <sys/resource.h>
20013 if ac_fn_c_try_compile "$LINENO"; then :
20014 bush_cv_kernel_rlimit=yes
20016 bush_cv_kernel_rlimit=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_kernel_rlimit" >&5
20025 $as_echo "$bush_cv_kernel_rlimit" >&6; }
20026 if test $bush_cv_kernel_rlimit = yes; then
20027 $as_echo "@%:@define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
20033 if test "$opt_readline" = yes; then
20035 aix*) prefer_curses=yes ;;
20038 if test "X$bush_cv_termcap_lib" = "X"; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
20042 $as_echo_n "checking which library has the termcap functions... " >&6; }
20045 if ${bush_cv_termcap_lib+:} false; then :
20046 $as_echo_n "(cached) " >&6
20048 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
20049 if test "x$ac_cv_func_tgetent" = xyes; then :
20050 bush_cv_termcap_lib=libc
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20053 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20054 if ${ac_cv_lib_termcap_tgetent+:} false; then :
20055 $as_echo_n "(cached) " >&6
20057 ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-ltermcap $LIBS"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20077 if ac_fn_c_try_link "$LINENO"; then :
20078 ac_cv_lib_termcap_tgetent=yes
20080 ac_cv_lib_termcap_tgetent=no
20082 rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
20087 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
20088 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
20089 bush_cv_termcap_lib=libtermcap
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
20092 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
20093 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
20094 $as_echo_n "(cached) " >&6
20096 ac_check_lib_save_LIBS=$LIBS
20097 LIBS="-ltinfo $LIBS"
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20101 /* Override any GCC internal prototype to avoid an error.
20102 Use char because int might match the return type of a GCC
20103 builtin and then its argument prototype would still apply. */
20116 if ac_fn_c_try_link "$LINENO"; then :
20117 ac_cv_lib_tinfo_tgetent=yes
20119 ac_cv_lib_tinfo_tgetent=no
20121 rm -f core conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LIBS=$ac_check_lib_save_LIBS
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
20126 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
20127 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
20128 bush_cv_termcap_lib=libtinfo
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
20131 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
20132 if ${ac_cv_lib_curses_tgetent+:} false; then :
20133 $as_echo_n "(cached) " >&6
20135 ac_check_lib_save_LIBS=$LIBS
20136 LIBS="-lcurses $LIBS"
20137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h. */
20140 /* Override any GCC internal prototype to avoid an error.
20141 Use char because int might match the return type of a GCC
20142 builtin and then its argument prototype would still apply. */
20155 if ac_fn_c_try_link "$LINENO"; then :
20156 ac_cv_lib_curses_tgetent=yes
20158 ac_cv_lib_curses_tgetent=no
20160 rm -f core conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
20165 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
20166 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
20167 bush_cv_termcap_lib=libcurses
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20170 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20171 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
20172 $as_echo_n "(cached) " >&6
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lncurses $LIBS"
20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20179 /* Override any GCC internal prototype to avoid an error.
20180 Use char because int might match the return type of a GCC
20181 builtin and then its argument prototype would still apply. */
20194 if ac_fn_c_try_link "$LINENO"; then :
20195 ac_cv_lib_ncurses_tgetent=yes
20197 ac_cv_lib_ncurses_tgetent=no
20199 rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201 LIBS=$ac_check_lib_save_LIBS
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
20204 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
20205 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
20206 bush_cv_termcap_lib=libncurses
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
20209 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
20210 if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
20211 $as_echo_n "(cached) " >&6
20213 ac_check_lib_save_LIBS=$LIBS
20214 LIBS="-lncursesw $LIBS"
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20233 if ac_fn_c_try_link "$LINENO"; then :
20234 ac_cv_lib_ncursesw_tgetent=yes
20236 ac_cv_lib_ncursesw_tgetent=no
20238 rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
20243 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
20244 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
20245 bush_cv_termcap_lib=libncursesw
20247 bush_cv_termcap_lib=gnutermcap
20262 if test "X$_bush_needmsg" = "Xyes"; then
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
20264 $as_echo_n "checking which library has the termcap functions... " >&6; }
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bush_cv_termcap_lib" >&5
20267 $as_echo "using $bush_cv_termcap_lib" >&6; }
20268 if test $bush_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
20269 LDFLAGS="$LDFLAGS -L./lib/termcap"
20270 TERMCAP_LIB="./lib/termcap/libtermcap.a"
20271 TERMCAP_DEP="./lib/termcap/libtermcap.a"
20272 elif test $bush_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
20273 TERMCAP_LIB=-ltermcap
20275 elif test $bush_cv_termcap_lib = libtinfo; then
20276 TERMCAP_LIB=-ltinfo
20278 elif test $bush_cv_termcap_lib = libncurses; then
20279 TERMCAP_LIB=-lncurses
20281 elif test $bush_cv_termcap_lib = libc; then
20285 TERMCAP_LIB=-lcurses
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
20294 $as_echo_n "checking whether /dev/fd is available... " >&6; }
20295 if ${bush_cv_dev_fd+:} false; then :
20296 $as_echo_n "(cached) " >&6
20299 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
20300 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
20301 if (exec test -r /dev/fd/3 3</dev/null) ; then
20302 bush_cv_dev_fd=standard
20304 bush_cv_dev_fd=absent
20307 if test -z "$bush_cv_dev_fd" ; then
20308 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
20309 bush_cv_dev_fd=whacky
20311 bush_cv_dev_fd=absent
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dev_fd" >&5
20318 $as_echo "$bush_cv_dev_fd" >&6; }
20319 if test $bush_cv_dev_fd = "standard"; then
20320 $as_echo "@%:@define HAVE_DEV_FD 1" >>confdefs.h
20322 $as_echo "@%:@define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
20324 elif test $bush_cv_dev_fd = "whacky"; then
20325 $as_echo "@%:@define HAVE_DEV_FD 1" >>confdefs.h
20327 $as_echo "@%:@define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
20332 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
20333 if ${bush_cv_dev_stdin+:} false; then :
20334 $as_echo_n "(cached) " >&6
20336 if (exec test -r /dev/stdin < /dev/null) ; then
20337 bush_cv_dev_stdin=present
20339 bush_cv_dev_stdin=absent
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dev_stdin" >&5
20345 $as_echo "$bush_cv_dev_stdin" >&6; }
20346 if test $bush_cv_dev_stdin = "present"; then
20347 $as_echo "@%:@define HAVE_DEV_STDIN 1" >>confdefs.h
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
20352 $as_echo_n "checking for default mail directory... " >&6; }
20353 if ${bush_cv_mail_dir+:} false; then :
20354 $as_echo_n "(cached) " >&6
20356 if test -d /var/mail; then
20357 bush_cv_mail_dir=/var/mail
20358 elif test -d /var/spool/mail; then
20359 bush_cv_mail_dir=/var/spool/mail
20360 elif test -d /usr/mail; then
20361 bush_cv_mail_dir=/usr/mail
20362 elif test -d /usr/spool/mail; then
20363 bush_cv_mail_dir=/usr/spool/mail
20365 bush_cv_mail_dir=unknown
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_mail_dir" >&5
20371 $as_echo "$bush_cv_mail_dir" >&6; }
20372 cat >>confdefs.h <<_ACEOF
20373 @%:@define DEFAULT_MAIL_DIRECTORY "$bush_cv_mail_dir"
20378 if test "$bush_cv_job_control_missing" = missing; then
20382 if test "$opt_job_control" = yes; then
20383 $as_echo "@%:@define JOB_CONTROL 1" >>confdefs.h
20396 case "${host_os}" in
20397 sysv4.2*) $as_echo "@%:@define SVR4_2 1" >>confdefs.h
20399 $as_echo "@%:@define SVR4 1" >>confdefs.h
20401 sysv4*) $as_echo "@%:@define SVR4 1" >>confdefs.h
20403 sysv5*) $as_echo "@%:@define SVR5 1" >>confdefs.h
20405 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
20406 hpux*) LOCAL_CFLAGS="-DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
20407 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
20408 isc*) LOCAL_CFLAGS=-Disc386 ;;
20409 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
20410 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
20411 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
20412 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
20413 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
20414 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
20415 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
20416 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
20417 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
20418 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
20419 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
20420 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
20421 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
20422 case "`uname -r`" in
20423 1.*|2.[0123]*) : ;;
20424 *) $as_echo "@%:@define PGRP_PIPE 1" >>confdefs.h
20427 netbsd*|openbsd*) LOCAL_CFLAGS="-DDEV_FD_STAT_BROKEN" ;;
20428 freebsd*) LOCAL_CFLAGS='-DHEREDOC_PIPESIZE=4096' ;;
20429 *qnx[67]*) LOCAL_LIBS="-lncurses" ;;
20430 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
20431 powerux*) LOCAL_LIBS="-lgen" ;;
20432 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
20433 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
20434 *openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;;
20437 case "${host_os}-${CC}" in
20438 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
20439 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
20440 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
20441 bsdi5*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
20442 hpux11*-gcc*) LOCAL_LDFLAGS="-Wl,-E" ;; # allow dynamic loading
20445 case "${host_os}" in
20447 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
20448 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
20450 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
20451 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
20454 case "$host_cpu" in
20455 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
20458 case "$host_cpu-$host_os" in
20459 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
20462 case "$host_cpu-$host_vendor-$host_os" in
20463 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
20464 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
20467 # turn off paren warnings in gcc
20468 CFLAGS="$CFLAGS ${STYLE_CFLAGS}"
20471 # Shared object configuration section. These values are generated by
20472 # ${srcdir}/support/shobj-conf
20474 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
20477 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
20478 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
20487 $as_echo "$SHOBJ_STATUS" >&6; }
20489 SHOBJ_STATUS=unsupported
20493 # try to create a directory tree if the source is elsewhere
20494 # this should be packaged into a script accessible via ${srcdir}/support
20497 *) for d in doc tests support lib examples; do # dirs
20498 test -d $d || mkdir $d
20500 for ld in readline glob tilde malloc sh termcap; do # libdirs
20501 test -d lib/$ld || mkdir lib/$ld
20503 test -d examples/loadables || mkdir examples/loadables # loadable builtins
20504 test -d examples/loadables/perl || mkdir examples/loadables/perl
20509 case "$BUILD_DIR" in
20510 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
20514 if test -z "$localedir"; then
20515 localedir='${datarootdir}/locale'
20517 if test -z "$datarootdir"; then
20518 datarootdir='${prefix}/share'
20526 # Some versions of autoconf don't substitute these automatically
20530 # directory where we install dynamically loadable builtins
20531 if test -z "$loadablesdir"; then
20532 loadablesdir='${libdir}/bush'
20535 if test -z "$headersdir"; then
20536 headersdir='$(includedir)/$(PACKAGE_NAME)'
20558 #AC_SUBST(ALLOCA_SOURCE)
20559 #AC_SUBST(ALLOCA_OBJECT)
20561 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/Makefile.inc examples/loadables/perl/Makefile support/bush.pc support/bushbug.sh"
20563 ac_config_commands="$ac_config_commands default"
20565 cat >confcache <<\_ACEOF
20566 # This file is a shell script that caches the results of configure
20567 # tests run on this system so they can be shared between configure
20568 # scripts and configure runs, see configure's option --config-cache.
20569 # It is not useful on other systems. If it contains results you don't
20570 # want to keep, you may remove or edit it.
20572 # config.status only pays attention to the cache file if you give it
20573 # the --recheck option to rerun configure.
20575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20577 # following values.
20581 # The following way of writing the cache mishandles newlines in values,
20582 # but we know of no workaround that is simple, portable, and efficient.
20583 # So, we kill variables containing newlines.
20584 # Ultrix sh set writes to stderr and can't be redirected directly,
20585 # and sets the high bit in the cache file unless we assign to the vars.
20587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20588 eval ac_val=\$$ac_var
20592 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20593 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20596 _ | IFS | as_nl) ;; #(
20597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20598 *) { eval $ac_var=; unset $ac_var;} ;;
20604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20605 *${as_nl}ac_space=\ *)
20606 # `set' does not quote correctly, so add quotes: double-quote
20607 # substitution turns \\\\ into \\, and sed turns \\ into \.
20610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20613 # `set' quotes correctly as required by POSIX, so do not add quotes.
20614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20627 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20628 if test -w "$cache_file"; then
20629 if test "x$cache_file" != "x/dev/null"; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20631 $as_echo "$as_me: updating cache $cache_file" >&6;}
20632 if test ! -f "$cache_file" || test -h "$cache_file"; then
20633 cat confcache >"$cache_file"
20635 case $cache_file in #(
20637 mv -f confcache "$cache_file"$$ &&
20638 mv -f "$cache_file"$$ "$cache_file" ;; #(
20640 mv -f confcache "$cache_file" ;;
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20646 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20652 # Let make expand exec_prefix.
20653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20655 DEFS=-DHAVE_CONFIG_H
20660 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20661 # 1. Remove the extension, and $U if already installed.
20662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20665 # will be set to the directory where LIBOBJS objects are built.
20666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20669 LIB@&t@OBJS=$ac_libobjs
20671 LTLIBOBJS=$ac_ltlibobjs
20676 : "${CONFIG_STATUS=./config.status}"
20678 ac_clean_files_save=$ac_clean_files
20679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20685 # Generated by $as_me.
20686 # Run this file to recreate the current configuration.
20687 # Compiler output produced by configure, useful for debugging
20688 # configure, is in config.log if it exists.
20691 ac_cs_recheck=false
20694 SHELL=\${CONFIG_SHELL-$SHELL}
20697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20698 ## -------------------- ##
20699 ## M4sh Initialization. ##
20700 ## -------------------- ##
20702 # Be more Bourne compatible
20703 DUALCASE=1; export DUALCASE # for MKS sh
20704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20708 # is contrary to our usage. Disable this feature.
20709 alias -g '${1+"$@"}'='"$@"'
20710 setopt NO_GLOB_SUBST
20712 case `(set -o) 2>/dev/null` in @%:@(
20714 set -o posix ;; @%:@(
20724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20725 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20728 # Prefer a ksh shell builtin over an external printf program on Solaris,
20729 # but without wasting forks for bash or zsh.
20730 if test -z "$BASH_VERSION$ZSH_VERSION" \
20731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20732 as_echo='print -r --'
20733 as_echo_n='print -rn --'
20734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20735 as_echo='printf %s\n'
20736 as_echo_n='printf %s'
20738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20740 as_echo_n='/usr/ucb/echo -n'
20742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20743 as_echo_n_body='eval
20747 expr "X$arg" : "X\\(.*\\)$as_nl";
20748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20752 export as_echo_n_body
20753 as_echo_n='sh -c $as_echo_n_body as_echo'
20755 export as_echo_body
20756 as_echo='sh -c $as_echo_body as_echo'
20759 # The user is always right.
20760 if test "${PATH_SEPARATOR+set}" != set; then
20762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20770 # We need space, tab and new line, in precisely that order. Quoting is
20771 # there to prevent editors from complaining about space-tab.
20772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20773 # splitting by setting IFS to empty value.)
20776 # Find who we are. Look in the path if we contain no directory separator.
20779 *[\\/]* ) as_myself=$0 ;;
20780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20781 for as_dir in $PATH
20784 test -z "$as_dir" && as_dir=.
20785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20791 # We did not find ourselves, most probably we were run as `sh COMMAND'
20792 # in which case we are not to be found in the path.
20793 if test "x$as_myself" = x; then
20796 if test ! -f "$as_myself"; then
20797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20801 # Unset variables that we do not need and which cause bugs (e.g. in
20802 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20803 # suppresses any "Segmentation fault" message there. '((' could
20804 # trigger a bug in pdksh 5.2.14.
20805 for as_var in BASH_ENV ENV MAIL MAILPATH
20806 do eval test x\${$as_var+set} = xset \
20807 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20823 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
20824 @%:@ ----------------------------------------
20825 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20826 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20827 @%:@ script with STATUS, using 1 if that was 0.
20830 as_status=$1; test $as_status -eq 0 && as_status=1
20832 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20835 $as_echo "$as_me: error: $2" >&2
20836 as_fn_exit $as_status
20840 @%:@ as_fn_set_status STATUS
20841 @%:@ -----------------------
20842 @%:@ Set @S|@? to STATUS, without forking.
20843 as_fn_set_status ()
20846 } @%:@ as_fn_set_status
20848 @%:@ as_fn_exit STATUS
20849 @%:@ -----------------
20850 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20854 as_fn_set_status $1
20858 @%:@ as_fn_unset VAR
20859 @%:@ ---------------
20860 @%:@ Portably unset VAR.
20863 { eval $1=; unset $1;}
20865 as_unset=as_fn_unset
20866 @%:@ as_fn_append VAR VALUE
20867 @%:@ ----------------------
20868 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
20869 @%:@ advantage of any shell optimizations that allow amortized linear growth over
20870 @%:@ repeated appends, instead of the typical quadratic growth present in naive
20871 @%:@ implementations.
20872 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20873 eval 'as_fn_append ()
20884 @%:@ as_fn_arith ARG...
20885 @%:@ ------------------
20886 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
20887 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
20888 @%:@ must be portable across @S|@(()) and expr.
20889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20890 eval 'as_fn_arith ()
20897 as_val=`expr "$@" || test $? -eq 1`
20902 if expr a : '\(a\)' >/dev/null 2>&1 &&
20903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20909 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20910 as_basename=basename
20915 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20921 as_me=`$as_basename -- "$0" ||
20922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20923 X"$0" : 'X\(//\)$' \| \
20924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20926 sed '/^.*\/\([^/][^/]*\)\/*$/{
20940 # Avoid depending upon Character Ranges.
20941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20944 as_cr_digits='0123456789'
20945 as_cr_alnum=$as_cr_Letters$as_cr_digits
20947 ECHO_C= ECHO_N= ECHO_T=
20948 case `echo -n x` in @%:@(((((
20950 case `echo 'xy\c'` in
20951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20960 rm -f conf$$ conf$$.exe conf$$.file
20961 if test -d conf$$.dir; then
20962 rm -f conf$$.dir/conf$$.file
20965 mkdir conf$$.dir 2>/dev/null
20967 if (echo >conf$$.file) 2>/dev/null; then
20968 if ln -s conf$$.file conf$$ 2>/dev/null; then
20970 # ... but there are two gotchas:
20971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20973 # In both cases, we have to default to `cp -pR'.
20974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20976 elif ln conf$$.file conf$$ 2>/dev/null; then
20984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20985 rmdir conf$$.dir 2>/dev/null
20990 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
20995 -*) as_dir=./$as_dir;;
20997 test -d "$as_dir" || eval $as_mkdir_p || {
21001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21002 *) as_qdir=$as_dir;;
21004 as_dirs="'$as_qdir' $as_dirs"
21005 as_dir=`$as_dirname -- "$as_dir" ||
21006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007 X"$as_dir" : 'X\(//\)[^/]' \| \
21008 X"$as_dir" : 'X\(//\)$' \| \
21009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21010 $as_echo X"$as_dir" |
21011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21015 /^X\(\/\/\)[^/].*/{
21028 test -d "$as_dir" && break
21030 test -z "$as_dirs" || eval "mkdir $as_dirs"
21031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21034 } @%:@ as_fn_mkdir_p
21035 if mkdir -p . 2>/dev/null; then
21036 as_mkdir_p='mkdir -p "$as_dir"'
21038 test -d ./-p && rmdir ./-p
21043 @%:@ as_fn_executable_p FILE
21044 @%:@ -----------------------
21045 @%:@ Test if FILE is an executable regular file.
21046 as_fn_executable_p ()
21048 test -f "$1" && test -x "$1"
21049 } @%:@ as_fn_executable_p
21050 as_test_x='test -x'
21051 as_executable_p=as_fn_executable_p
21053 # Sed expression to map a string onto a valid CPP name.
21054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21056 # Sed expression to map a string onto a valid variable name.
21057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21061 ## ----------------------------------- ##
21062 ## Main body of $CONFIG_STATUS script. ##
21063 ## ----------------------------------- ##
21065 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21068 # Save the log message, to keep $0 and so on meaningful, and to
21069 # report actual input values of CONFIG_FILES etc. instead of their
21070 # values after options handling.
21072 This file was extended by bush $as_me 5.1-release, which was
21073 generated by GNU Autoconf 2.69. Invocation command line was
21075 CONFIG_FILES = $CONFIG_FILES
21076 CONFIG_HEADERS = $CONFIG_HEADERS
21077 CONFIG_LINKS = $CONFIG_LINKS
21078 CONFIG_COMMANDS = $CONFIG_COMMANDS
21081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21086 case $ac_config_files in *"
21087 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21090 case $ac_config_headers in *"
21091 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21096 # Files that config.status was made for.
21097 config_files="$ac_config_files"
21098 config_headers="$ac_config_headers"
21099 config_commands="$ac_config_commands"
21103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21105 \`$as_me' instantiates files and other configuration actions
21106 from templates according to the current configuration. Unless the files
21107 and actions are specified as TAGs, all are instantiated by default.
21109 Usage: $0 [OPTION]... [TAG]...
21111 -h, --help print this help, then exit
21112 -V, --version print version number and configuration settings, then exit
21113 --config print configuration, then exit
21114 -q, --quiet, --silent
21115 do not print progress messages
21116 -d, --debug don't remove temporary files
21117 --recheck update $as_me by reconfiguring in the same conditions
21118 --file=FILE[:TEMPLATE]
21119 instantiate the configuration file FILE
21120 --header=FILE[:TEMPLATE]
21121 instantiate the configuration header FILE
21123 Configuration files:
21126 Configuration headers:
21129 Configuration commands:
21132 Report bugs to <bug-bush@gnu.org>."
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21138 bush config.status 5.1-release
21139 configured by $0, generated by GNU Autoconf 2.69,
21140 with options \\"\$ac_cs_config\\"
21142 Copyright (C) 2012 Free Software Foundation, Inc.
21143 This config.status script is free software; the Free Software Foundation
21144 gives unlimited permission to copy, distribute and modify it."
21150 test -n "\$AWK" || AWK=awk
21153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21154 # The default lists apply if the user does not specify any file.
21160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21177 # Handling of the options.
21178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21181 $as_echo "$ac_cs_version"; exit ;;
21182 --config | --confi | --conf | --con | --co | --c )
21183 $as_echo "$ac_cs_config"; exit ;;
21184 --debug | --debu | --deb | --de | --d | -d )
21186 --file | --fil | --fi | --f )
21189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21190 '') as_fn_error $? "missing file argument" ;;
21192 as_fn_append CONFIG_FILES " '$ac_optarg'"
21193 ac_need_defaults=false;;
21194 --header | --heade | --head | --hea )
21197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21200 ac_need_defaults=false;;
21202 # Conflict between --help and --header
21203 as_fn_error $? "ambiguous option: \`$1'
21204 Try \`$0 --help' for more information.";;
21205 --help | --hel | -h )
21206 $as_echo "$ac_cs_usage"; exit ;;
21207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21211 # This is an error.
21212 -*) as_fn_error $? "unrecognized option: \`$1'
21213 Try \`$0 --help' for more information." ;;
21215 *) as_fn_append ac_config_targets " $1"
21216 ac_need_defaults=false ;;
21222 ac_configure_extra_args=
21224 if $ac_cs_silent; then
21226 ac_configure_extra_args="$ac_configure_extra_args --silent"
21230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21231 if \$ac_cs_recheck; then
21232 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21235 CONFIG_SHELL='$SHELL'
21236 export CONFIG_SHELL
21241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21245 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21246 @%:@@%:@ Running $as_me. @%:@@%:@
21252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21256 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21257 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
21258 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
21259 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21260 LINGUAS="${LINGUAS-%UNSET%}"
21265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21267 # Handling of arguments.
21268 for ac_config_target in $ac_config_targets
21270 case $ac_config_target in
21271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21272 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21274 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
21275 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
21276 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
21277 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
21278 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
21279 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
21280 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
21281 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
21282 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21283 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
21284 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21285 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
21286 "examples/loadables/Makefile.inc") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
21287 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
21288 "support/bush.pc") CONFIG_FILES="$CONFIG_FILES support/bush.pc" ;;
21289 "support/bushbug.sh") CONFIG_FILES="$CONFIG_FILES support/bushbug.sh" ;;
21290 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21292 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21297 # If the user did not use the arguments to specify the items to instantiate,
21298 # then the envvar interface is used. Set only those that are not.
21299 # We use the long form for the default assignment because of an extremely
21300 # bizarre bug on SunOS 4.1.3.
21301 if $ac_need_defaults; then
21302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21307 # Have a temporary directory for convenience. Make it in the build tree
21308 # simply because there is no reason against having it here, and in addition,
21309 # creating and moving files from /tmp can sometimes cause problems.
21310 # Hook for its removal unless debugging.
21311 # Note that there is a small window in which the directory will not be cleaned:
21312 # after its creation but before its name has been assigned to `$tmp'.
21316 trap 'exit_status=$?
21317 : "${ac_tmp:=$tmp}"
21318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21320 trap 'as_fn_exit 1' 1 2 13 15
21322 # Create a (secure) tmp directory for tmp files.
21325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21329 tmp=./conf$$-$RANDOM
21330 (umask 077 && mkdir "$tmp")
21331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21334 # Set up the scripts for CONFIG_FILES section.
21335 # No need to generate them if there are no CONFIG_FILES.
21336 # This happens for instance with `./config.status config.h'.
21337 if test -n "$CONFIG_FILES"; then
21340 ac_cr=`echo X | tr X '\015'`
21341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21342 # But we know of no other shell where ac_cr would be empty at this
21343 # point, so we can use a bashism as a fallback.
21344 if test "x$ac_cr" = x; then
21345 eval ac_cr=\$\'\\r\'
21347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21351 ac_cs_awk_cr=$ac_cr
21354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21359 echo "cat >conf$$subs.awk <<_ACEOF" &&
21360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21362 } >conf$$subs.sh ||
21363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21366 for ac_last_try in false false false false false :; do
21367 . ./conf$$subs.sh ||
21368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21371 if test $ac_delim_n = $ac_delim_num; then
21373 elif $ac_last_try; then
21374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21379 rm -f conf$$subs.sh
21381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21386 s/^/S["/; s/!.*/"]=/
21396 s/\(.\{148\}\)..*/\1/
21398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21410 s/\(.\{148\}\)..*/\1/
21412 s/["\\]/\\&/g; s/^/"/; s/$/"/
21416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21421 ' <conf$$subs.awk | sed '
21426 ' >>$CONFIG_STATUS || ac_write_fail=1
21427 rm -f conf$$subs.awk
21428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21431 for (key in S) S_is_set[key] = 1
21437 nfields = split(line, field, "@")
21439 len = length(field[1])
21440 for (i = 2; i < nfields; i++) {
21442 keylen = length(key)
21443 if (S_is_set[key]) {
21445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21446 len += length(value) + length(field[++i])
21457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21468 # trailing colons and then remove the whole line if VPATH becomes empty
21469 # (actually we leave an empty line to preserve line numbers).
21470 if test "x$srcdir" = x.; then
21471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21490 fi # test -n "$CONFIG_FILES"
21492 # Set up the scripts for CONFIG_HEADERS section.
21493 # No need to generate them if there are no CONFIG_HEADERS.
21494 # This happens for instance with `./config.status Makefile'.
21495 if test -n "$CONFIG_HEADERS"; then
21496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21500 # Transform confdefs.h into an awk script `defines.awk', embedded as
21501 # here-document in config.status, that substitutes the proper values into
21502 # config.h.in to produce config.h.
21504 # Create a delimiter string that does not exist in confdefs.h, to ease
21505 # handling of long lines.
21507 for ac_last_try in false false :; do
21508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21509 if test -z "$ac_tt"; then
21511 elif $ac_last_try; then
21512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21518 # For the awk script, D is an array of macro values keyed by name,
21519 # likewise P contains macro parameters if any. Preserve backslash
21520 # newline sequences.
21522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21524 s/.\{148\}/&'"$ac_delim"'/g
21527 s/^[ ]*#[ ]*define[ ][ ]*/ /
21534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21541 D["\1"]=" \3\\\\\\n"\\/p
21543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21548 s/.\{148\}/&'"$ac_delim"'/g
21553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21558 ' <confdefs.h | sed '
21559 s/'"$ac_delim"'/"\\\
21560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21563 for (key in D) D_is_set[key] = 1
21566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21568 split(line, arg, " ")
21569 if (arg[1] == "#") {
21573 defundef = substr(arg[1], 2)
21576 split(mac1, mac2, "(") #)
21578 prefix = substr(line, 1, index(line, defundef) - 1)
21579 if (D_is_set[macro]) {
21580 # Preserve the white space surrounding the "#".
21581 print prefix "define", macro P[macro] D[macro]
21584 # Replace #undef with comments. This is necessary, for example,
21585 # in the case of _POSIX_SOURCE, which is predefined and required
21586 # on some systems where configure will not decide to define it.
21587 if (defundef == "undef") {
21588 print "/*", prefix defundef, macro, "*/"
21596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21598 fi # test -n "$CONFIG_HEADERS"
21601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21606 :[FHLC]) ac_mode=$ac_tag; continue;;
21608 case $ac_mode$ac_tag in
21610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21611 :[FH]-) ac_tag=-:-;;
21612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21629 -) ac_f="$ac_tmp/stdin";;
21630 *) # Look for the file first in the build tree, then in the source tree
21631 # (if the path is not absolute). The absolute path cannot be DOS-style,
21632 # because $ac_f cannot contain `:'.
21636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21641 as_fn_append ac_file_inputs " '$ac_f'"
21644 # Let's still pretend it is `configure' which instantiates (i.e., don't
21645 # use $as_me), people would be surprised to read:
21646 # /* config.h. Generated by config.status. */
21647 configure_input='Generated from '`
21648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21650 if test x"$ac_file" != x-; then
21651 configure_input="$ac_file. $configure_input"
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21653 $as_echo "$as_me: creating $ac_file" >&6;}
21655 # Neutralize special characters interpreted by sed in replacement strings.
21656 case $configure_input in #(
21657 *\&* | *\|* | *\\* )
21658 ac_sed_conf_input=`$as_echo "$configure_input" |
21659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21660 *) ac_sed_conf_input=$configure_input;;
21664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21670 ac_dir=`$as_dirname -- "$ac_file" ||
21671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672 X"$ac_file" : 'X\(//\)[^/]' \| \
21673 X"$ac_file" : 'X\(//\)$' \| \
21674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21675 $as_echo X"$ac_file" |
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21680 /^X\(\/\/\)[^/].*/{
21693 as_dir="$ac_dir"; as_fn_mkdir_p
21697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21700 # A ".." for each directory in $ac_dir_suffix.
21701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21702 case $ac_top_builddir_sub in
21703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21707 ac_abs_top_builddir=$ac_pwd
21708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21709 # for backward compatibility:
21710 ac_top_builddir=$ac_top_build_prefix
21713 .) # We are building in place.
21715 ac_top_srcdir=$ac_top_builddir_sub
21716 ac_abs_top_srcdir=$ac_pwd ;;
21717 [\\/]* | ?:[\\/]* ) # Absolute name.
21718 ac_srcdir=$srcdir$ac_dir_suffix;
21719 ac_top_srcdir=$srcdir
21720 ac_abs_top_srcdir=$srcdir ;;
21721 *) # Relative name.
21722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21723 ac_top_srcdir=$ac_top_build_prefix$srcdir
21724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21739 ac_MKDIR_P=$MKDIR_P
21741 [\\/$]* | ?:[\\/]* ) ;;
21742 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21747 # If the template does not know about datarootdir, expand it.
21748 # FIXME: This hack should be removed a few years after 2.60.
21749 ac_datarootdir_hack=; ac_datarootdir_seen=
21760 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21761 *datarootdir*) ac_datarootdir_seen=yes;;
21762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21764 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21767 ac_datarootdir_hack='
21768 s&@datadir@&$datadir&g
21769 s&@docdir@&$docdir&g
21770 s&@infodir@&$infodir&g
21771 s&@localedir@&$localedir&g
21772 s&@mandir@&$mandir&g
21773 s&\\\${datarootdir}&$datarootdir&g' ;;
21777 # Neutralize VPATH when `$srcdir' = `.'.
21778 # Shell code in configure.ac might set extrasub.
21779 # FIXME: do we really want to maintain this feature?
21780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21781 ac_sed_extra="$ac_vpsub
21784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21787 s|@configure_input@|$ac_sed_conf_input|;t t
21788 s&@top_builddir@&$ac_top_builddir_sub&;t t
21789 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21790 s&@srcdir@&$ac_srcdir&;t t
21791 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21792 s&@top_srcdir@&$ac_top_srcdir&;t t
21793 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21794 s&@builddir@&$ac_builddir&;t t
21795 s&@abs_builddir@&$ac_abs_builddir&;t t
21796 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21797 s&@INSTALL@&$ac_INSTALL&;t t
21798 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21799 $ac_datarootdir_hack
21801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21802 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21804 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21805 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21806 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21807 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21809 which seems to be undefined. Please make sure it is defined" >&5
21810 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21811 which seems to be undefined. Please make sure it is defined" >&2;}
21813 rm -f "$ac_tmp/stdin"
21815 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21816 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21824 if test x"$ac_file" != x-; then
21826 $as_echo "/* $configure_input */" \
21827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21828 } >"$ac_tmp/config.h" \
21829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21830 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21832 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21835 mv "$ac_tmp/config.h" "$ac_file" \
21836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21839 $as_echo "/* $configure_input */" \
21840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21841 || as_fn_error $? "could not create -" "$LINENO" 5
21845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21846 $as_echo "$as_me: executing $ac_file commands" >&6;}
21851 case $ac_file$ac_mode in
21852 "po-directories":C)
21853 for ac_file in $CONFIG_FILES; do
21854 # Support "outfile[:infile[:infile...]]"
21856 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21858 # PO directories have a Makefile.in generated from Makefile.in.in.
21859 case "$ac_file" in */Makefile.in)
21860 # Adjust a relative srcdir.
21861 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21862 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21863 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21864 # In autoconf-2.13 it is called $ac_given_srcdir.
21865 # In autoconf-2.50 it is called $srcdir.
21866 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21867 case "$ac_given_srcdir" in
21868 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21869 /*) top_srcdir="$ac_given_srcdir" ;;
21870 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21872 # Treat a directory as a PO directory if and only if it has a
21873 # POTFILES.in file. This allows packages to have multiple PO
21874 # directories under different names or in different locations.
21875 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21876 rm -f "$ac_dir/POTFILES"
21877 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21878 gt_tab=`printf '\t'`
21879 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"
21880 POMAKEFILEDEPS="POTFILES.in"
21881 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21882 # on $ac_dir but don't depend on user-specified configuration
21884 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21885 # The LINGUAS file contains the set of available languages.
21886 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21887 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21889 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21890 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21892 # The set of available languages was given in configure.in.
21893 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
21896 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21897 # Compute UPDATEPOFILES
21898 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21899 # Compute DUMMYPOFILES
21900 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21902 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21903 case "$ac_given_srcdir" in
21905 *) srcdirpre='$(srcdir)/' ;;
21911 for lang in $ALL_LINGUAS; do
21912 POFILES="$POFILES $srcdirpre$lang.po"
21913 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21914 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21915 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21917 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21918 # environment variable.
21920 if test -n "$ALL_LINGUAS"; then
21921 for presentlang in $ALL_LINGUAS; do
21923 if test "%UNSET%" != "$LINGUAS"; then
21924 desiredlanguages="$LINGUAS"
21926 desiredlanguages="$ALL_LINGUAS"
21928 for desiredlang in $desiredlanguages; do
21929 # Use the presentlang catalog if desiredlang is
21930 # a. equal to presentlang, or
21931 # b. a variant of presentlang (because in this case,
21932 # presentlang can be used as a fallback for messages
21933 # which are not translated in the desiredlang catalog).
21934 case "$desiredlang" in
21935 "$presentlang"*) useit=yes;;
21938 if test $useit = yes; then
21939 INST_LINGUAS="$INST_LINGUAS $presentlang"
21944 if test -n "$INST_LINGUAS"; then
21945 for lang in $INST_LINGUAS; do
21946 CATALOGS="$CATALOGS $lang.gmo"
21949 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21950 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"
21951 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21952 if test -f "$f"; then
21954 *.orig | *.bak | *~) ;;
21955 *) cat "$f" >> "$ac_dir/Makefile" ;;
21964 # Makefile uses this timestamp file to record whether config.h is up to date.
21965 echo timestamp > stamp-h
21974 ac_clean_files=$ac_clean_files_save
21976 test $ac_write_fail = 0 ||
21977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21980 # configure is writing to config.log, and then calls config.status.
21981 # config.status does its own redirection, appending to config.log.
21982 # Unfortunately, on DOS this fails, as config.log is still kept open
21983 # by configure, so config.status won't be able to write to it; its
21984 # output is simply discarded. So we exec the FD to /dev/null,
21985 # effectively closing config.log, so it can be properly (re)opened and
21986 # appended to by config.status. When coming back to configure, we
21987 # need to make the FD available again.
21988 if test "$no_create" != yes; then
21990 ac_config_status_args=
21991 test "$silent" = yes &&
21992 ac_config_status_args="$ac_config_status_args --quiet"
21994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21997 # would make configure fail if this is the last instruction.
21998 $ac_cs_success || as_fn_exit 1
22000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}