2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
593 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
619 INSTALL_STRIP_PROGRAM
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
659 UNISTD_H_DEFINES_STRUCT_TIMESPEC
660 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
661 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
662 TIME_H_DEFINES_STRUCT_TIMESPEC
663 NEXT_AS_FIRST_DIRECTIVE_TIME_H
674 HAVE_DECL_LOCALTIME_R
682 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
685 WINDOWS_64_BIT_ST_SIZE
686 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
688 NEXT_AS_FIRST_DIRECTIVE_STRING_H
690 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
692 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
694 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
696 GL_GENERATE_STDDEF_H_FALSE
697 GL_GENERATE_STDDEF_H_TRUE
703 GL_GENERATE_STDBOOL_H_FALSE
704 GL_GENERATE_STDBOOL_H_TRUE
706 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
709 REPLACE_PTHREAD_SIGMASK
711 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
712 HAVE_STRUCT_SIGACTION_SA_SIGACTION
718 HAVE_POSIX_SIGNALBLOCKING
721 GNULIB_SIGNAL_H_SIGPIPE
723 GNULIB_PTHREAD_SIGMASK
731 REPLACE_STDIO_WRITE_FUNCS
732 REPLACE_STDIO_READ_FUNCS
741 REPLACE_OBSTACK_PRINTF
766 HAVE_DECL_OBSTACK_PRINTF
772 GNULIB_VSPRINTF_POSIX
776 GNULIB_VFPRINTF_POSIX
783 GNULIB_STDIO_H_SIGPIPE
784 GNULIB_STDIO_H_NONBLOCKING
799 GNULIB_OBSTACK_PRINTF_POSIX
800 GNULIB_OBSTACK_PRINTF
993 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1028 LOCALCHARSET_TESTS_ENVIRONMENT
1030 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1032 UINT64_MAX_EQ_ULONG_MAX
1033 UINT32_MAX_LT_UINTMAX_MAX
1036 INT64_MAX_EQ_LONG_MAX
1037 INT32_MAX_LT_INTMAX_MAX
1048 GL_GENERATE_STDINT_H_FALSE
1049 GL_GENERATE_STDINT_H_TRUE
1061 HAVE_SIGNED_SIG_ATOMIC_T
1064 BITSIZEOF_SIG_ATOMIC_T
1067 APPLE_UNIVERSAL_BUILD
1069 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1074 HAVE_UNSIGNED_LONG_LONG_INT
1076 GL_GENERATE_LIMITS_H_FALSE
1077 GL_GENERATE_LIMITS_H_TRUE
1079 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1082 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1084 REPLACE_STRUCT_TIMEVAL
1085 REPLACE_GETTIMEOFDAY
1092 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1098 REPLACE_SIGNBIT_USING_GCC
1167 HAVE_DECL_REMAINDERL
1348 GL_GENERATE_FNMATCH_H_FALSE
1349 GL_GENERATE_FNMATCH_H_TRUE
1352 GL_GENERATE_FLOAT_H_FALSE
1353 GL_GENERATE_FLOAT_H_TRUE
1355 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1363 GL_GENERATE_ERRNO_H_FALSE
1364 GL_GENERATE_ERRNO_H_TRUE
1366 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1369 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1372 PRAGMA_SYSTEM_HEADER
1373 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1399 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1400 UNISTD_H_HAVE_WINSOCK2_H
1423 REPLACE_GETDTABLESIZE
1424 REPLACE_GETDOMAINNAME
1435 HAVE_DECL_SETHOSTNAME
1436 HAVE_DECL_GETUSERSHELL
1437 HAVE_DECL_GETPAGESIZE
1438 HAVE_DECL_GETLOGIN_R
1439 HAVE_DECL_GETDOMAINNAME
1478 GNULIB_UNISTD_H_SIGPIPE
1479 GNULIB_UNISTD_H_NONBLOCKING
1505 GNULIB_GETDTABLESIZE
1506 GNULIB_GETDOMAINNAME
1536 REPLACE_CANONICALIZE_FILE_NAME
1541 HAVE_STRUCT_RANDOM_DATA
1564 HAVE_DECL_GETLOADAVG
1565 HAVE_CANONICALIZE_FILE_NAME
1576 GNULIB_SECURE_GETENV
1579 GNULIB_REALLOC_POSIX
1597 GNULIB_CANONICALIZE_FILE_NAME
1601 GL_GENERATE_ALLOCA_H_FALSE
1602 GL_GENERATE_ALLOCA_H_TRUE
1605 GL_COND_LIBTOOL_FALSE
1606 GL_COND_LIBTOOL_TRUE
1633 MAINTAINER_MODE_FALSE
1634 MAINTAINER_MODE_TRUE
1662 program_transform_name
1675 enable_option_checking
1676 enable_maintainer_mode
1678 enable_dependency_tracking
1680 ac_precious_vars
='build_alias
1691 # Initialize some variables set by options.
1693 ac_init_version
=false
1694 ac_unrecognized_opts
=
1695 ac_unrecognized_sep
=
1696 # The variables have the same names as the options, with
1697 # dashes changed to underlines.
1698 cache_file
=/dev
/null
1705 program_transform_name
=s
,x
,x
,
1713 # Installation directory options.
1714 # These are left unexpanded so users can "make install exec_prefix=/foo"
1715 # and all the variables that are supposed to be based on exec_prefix
1716 # by default will actually change.
1717 # Use braces instead of parens because sh, perl, etc. also accept them.
1718 # (The list follows the same order as the GNU Coding Standards.)
1719 bindir
='${exec_prefix}/bin'
1720 sbindir
='${exec_prefix}/sbin'
1721 libexecdir
='${exec_prefix}/libexec'
1722 datarootdir
='${prefix}/share'
1723 datadir
='${datarootdir}'
1724 sysconfdir
='${prefix}/etc'
1725 sharedstatedir
='${prefix}/com'
1726 localstatedir
='${prefix}/var'
1727 includedir
='${prefix}/include'
1728 oldincludedir
='/usr/include'
1729 docdir
='${datarootdir}/doc/${PACKAGE}'
1730 infodir
='${datarootdir}/info'
1735 libdir
='${exec_prefix}/lib'
1736 localedir
='${datarootdir}/locale'
1737 mandir
='${datarootdir}/man'
1743 # If the previous option needs an argument, assign it.
1744 if test -n "$ac_prev"; then
1745 eval $ac_prev=\
$ac_option
1751 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1755 # Accept the important Cygnus configure options, so we can diagnose typos.
1757 case $ac_dashdash$ac_option in
1761 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1763 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1764 bindir
=$ac_optarg ;;
1766 -build |
--build |
--buil |
--bui |
--bu)
1767 ac_prev
=build_alias
;;
1768 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1769 build_alias
=$ac_optarg ;;
1771 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1772 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1773 ac_prev
=cache_file
;;
1774 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1775 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1776 cache_file
=$ac_optarg ;;
1778 --config-cache |
-C)
1779 cache_file
=config.cache
;;
1781 -datadir |
--datadir |
--datadi |
--datad)
1783 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1784 datadir
=$ac_optarg ;;
1786 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1787 |
--dataroo |
--dataro |
--datar)
1788 ac_prev
=datarootdir
;;
1789 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1790 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1791 datarootdir
=$ac_optarg ;;
1793 -disable-* |
--disable-*)
1794 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1795 # Reject names that are not valid shell variable names.
1796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1797 as_fn_error
"invalid feature name: $ac_useropt"
1798 ac_useropt_orig
=$ac_useropt
1799 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1800 case $ac_user_opts in
1802 "enable_
$ac_useropt"
1804 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1805 ac_unrecognized_sep
=', ';;
1807 eval enable_
$ac_useropt=no
;;
1809 -docdir |
--docdir |
--docdi |
--doc |
--do)
1811 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1812 docdir
=$ac_optarg ;;
1814 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1816 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1817 dvidir
=$ac_optarg ;;
1819 -enable-* |
--enable-*)
1820 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1821 # Reject names that are not valid shell variable names.
1822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1823 as_fn_error
"invalid feature name: $ac_useropt"
1824 ac_useropt_orig
=$ac_useropt
1825 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1826 case $ac_user_opts in
1828 "enable_
$ac_useropt"
1830 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1831 ac_unrecognized_sep
=', ';;
1833 eval enable_
$ac_useropt=\
$ac_optarg ;;
1835 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1836 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1837 |
--exec |
--exe |
--ex)
1838 ac_prev
=exec_prefix
;;
1839 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1840 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1841 |
--exec=* |
--exe=* |
--ex=*)
1842 exec_prefix
=$ac_optarg ;;
1844 -gas |
--gas |
--ga |
--g)
1845 # Obsolete; use --with-gas.
1848 -help |
--help |
--hel |
--he |
-h)
1849 ac_init_help
=long
;;
1850 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1851 ac_init_help
=recursive
;;
1852 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1853 ac_init_help
=short
;;
1855 -host |
--host |
--hos |
--ho)
1856 ac_prev
=host_alias
;;
1857 -host=* |
--host=* |
--hos=* |
--ho=*)
1858 host_alias
=$ac_optarg ;;
1860 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1862 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1864 htmldir
=$ac_optarg ;;
1866 -includedir |
--includedir |
--includedi |
--included |
--include \
1867 |
--includ |
--inclu |
--incl |
--inc)
1868 ac_prev
=includedir
;;
1869 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1870 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1871 includedir
=$ac_optarg ;;
1873 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1875 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1876 infodir
=$ac_optarg ;;
1878 -libdir |
--libdir |
--libdi |
--libd)
1880 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1881 libdir
=$ac_optarg ;;
1883 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1884 |
--libexe |
--libex |
--libe)
1885 ac_prev
=libexecdir
;;
1886 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1887 |
--libexe=* |
--libex=* |
--libe=*)
1888 libexecdir
=$ac_optarg ;;
1890 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1891 ac_prev
=localedir
;;
1892 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1893 localedir
=$ac_optarg ;;
1895 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1896 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1897 ac_prev
=localstatedir
;;
1898 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1899 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1900 localstatedir
=$ac_optarg ;;
1902 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1904 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1905 mandir
=$ac_optarg ;;
1907 -nfp |
--nfp |
--nf)
1908 # Obsolete; use --without-fp.
1911 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1912 |
--no-cr |
--no-c |
-n)
1915 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1916 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1919 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1920 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1921 |
--oldin |
--oldi |
--old |
--ol |
--o)
1922 ac_prev
=oldincludedir
;;
1923 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1924 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1925 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1926 oldincludedir
=$ac_optarg ;;
1928 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1930 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1931 prefix
=$ac_optarg ;;
1933 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1934 |
--program-pre |
--program-pr |
--program-p)
1935 ac_prev
=program_prefix
;;
1936 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1937 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1938 program_prefix
=$ac_optarg ;;
1940 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1941 |
--program-suf |
--program-su |
--program-s)
1942 ac_prev
=program_suffix
;;
1943 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1944 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1945 program_suffix
=$ac_optarg ;;
1947 -program-transform-name |
--program-transform-name \
1948 |
--program-transform-nam |
--program-transform-na \
1949 |
--program-transform-n |
--program-transform- \
1950 |
--program-transform |
--program-transfor \
1951 |
--program-transfo |
--program-transf \
1952 |
--program-trans |
--program-tran \
1953 |
--progr-tra |
--program-tr |
--program-t)
1954 ac_prev
=program_transform_name
;;
1955 -program-transform-name=* |
--program-transform-name=* \
1956 |
--program-transform-nam=* |
--program-transform-na=* \
1957 |
--program-transform-n=* |
--program-transform-=* \
1958 |
--program-transform=* |
--program-transfor=* \
1959 |
--program-transfo=* |
--program-transf=* \
1960 |
--program-trans=* |
--program-tran=* \
1961 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1962 program_transform_name
=$ac_optarg ;;
1964 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1966 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1967 pdfdir
=$ac_optarg ;;
1969 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1971 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1974 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1975 |
-silent |
--silent |
--silen |
--sile |
--sil)
1978 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1980 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1982 sbindir
=$ac_optarg ;;
1984 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1985 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1986 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1988 ac_prev
=sharedstatedir
;;
1989 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1990 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1991 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1993 sharedstatedir
=$ac_optarg ;;
1995 -site |
--site |
--sit)
1997 -site=* |
--site=* |
--sit=*)
2000 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2002 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2003 srcdir
=$ac_optarg ;;
2005 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2006 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2007 ac_prev
=sysconfdir
;;
2008 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2009 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2010 sysconfdir
=$ac_optarg ;;
2012 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2013 ac_prev
=target_alias
;;
2014 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2015 target_alias
=$ac_optarg ;;
2017 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2020 -version |
--version |
--versio |
--versi |
--vers |
-V)
2021 ac_init_version
=: ;;
2024 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2025 # Reject names that are not valid shell variable names.
2026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2027 as_fn_error
"invalid package name: $ac_useropt"
2028 ac_useropt_orig
=$ac_useropt
2029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2030 case $ac_user_opts in
2034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2035 ac_unrecognized_sep
=', ';;
2037 eval with_
$ac_useropt=\
$ac_optarg ;;
2039 -without-* |
--without-*)
2040 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2041 # Reject names that are not valid shell variable names.
2042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2043 as_fn_error
"invalid package name: $ac_useropt"
2044 ac_useropt_orig
=$ac_useropt
2045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2046 case $ac_user_opts in
2050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2051 ac_unrecognized_sep
=', ';;
2053 eval with_
$ac_useropt=no
;;
2056 # Obsolete; use --with-x.
2059 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2060 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2061 ac_prev
=x_includes
;;
2062 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2063 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2064 x_includes
=$ac_optarg ;;
2066 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2067 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2068 ac_prev
=x_libraries
;;
2069 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2070 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2071 x_libraries
=$ac_optarg ;;
2073 -*) as_fn_error
"unrecognized option: \`$ac_option'
2074 Try \`$0 --help' for more information."
2078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2079 # Reject names that are not valid shell variable names.
2080 case $ac_envvar in #(
2081 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2082 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2084 eval $ac_envvar=\
$ac_optarg
2085 export $ac_envvar ;;
2088 # FIXME: should be removed in autoconf 3.0.
2089 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2091 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2092 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2098 if test -n "$ac_prev"; then
2099 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2100 as_fn_error
"missing argument to $ac_option"
2103 if test -n "$ac_unrecognized_opts"; then
2104 case $enable_option_checking in
2106 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2107 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2111 # Check all directory arguments for consistency.
2112 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2113 datadir sysconfdir sharedstatedir localstatedir includedir \
2114 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2115 libdir localedir mandir
2117 eval ac_val
=\$
$ac_var
2118 # Remove trailing slashes.
2121 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2122 eval $ac_var=\
$ac_val;;
2124 # Be sure to have absolute directory names.
2126 [\\/$
]* | ?
:[\\/]* ) continue;;
2127 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2129 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2132 # There might be people who depend on the old broken behavior: `$host'
2133 # used to hold the argument of --host etc.
2134 # FIXME: To remove some day.
2137 target
=$target_alias
2139 # FIXME: To remove some day.
2140 if test "x$host_alias" != x
; then
2141 if test "x$build_alias" = x
; then
2142 cross_compiling
=maybe
2143 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2144 If a cross compiler is detected then cross compile mode will be used." >&2
2145 elif test "x$build_alias" != "x$host_alias"; then
2151 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2153 test "$silent" = yes && exec 6>/dev
/null
2156 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2157 ac_ls_di
=`ls -di .` &&
2158 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2159 as_fn_error
"working directory cannot be determined"
2160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2161 as_fn_error
"pwd does not report name of working directory"
2164 # Find the source files, if location was not specified.
2165 if test -z "$srcdir"; then
2166 ac_srcdir_defaulted
=yes
2167 # Try the directory containing this script, then the parent directory.
2168 ac_confdir
=`$as_dirname -- "$as_myself" ||
2169 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2170 X"$as_myself" : 'X\(//\)[^/]' \| \
2171 X"$as_myself" : 'X\(//\)$' \| \
2172 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2173 $as_echo X"$as_myself" |
2174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2192 if test ! -r "$srcdir/$ac_unique_file"; then
2196 ac_srcdir_defaulted
=no
2198 if test ! -r "$srcdir/$ac_unique_file"; then
2199 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2200 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2202 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2204 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2206 # When building in place, set srcdir=.
2207 if test "$ac_abs_confdir" = "$ac_pwd"; then
2210 # Remove unnecessary trailing slashes from srcdir.
2211 # Double slashes in file names in object file debugging info
2212 # mess up M-x gdb in Emacs.
2214 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2216 for ac_var
in $ac_precious_vars; do
2217 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2218 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2219 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2220 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2224 # Report the --help message.
2226 if test "$ac_init_help" = "long"; then
2227 # Omit some internal or obsolete options to make the list less imposing.
2228 # This message is too long to be a string in the A/UX 3.1 sh.
2230 \`configure' configures this package to adapt to many kinds of systems.
2232 Usage: $0 [OPTION]... [VAR=VALUE]...
2234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2235 VAR=VALUE. See below for descriptions of some of the useful variables.
2237 Defaults for the options are specified in brackets.
2240 -h, --help display this help and exit
2241 --help=short display options specific to this package
2242 --help=recursive display the short help of all the included packages
2243 -V, --version display version information and exit
2244 -q, --quiet, --silent do not print \`checking...' messages
2245 --cache-file=FILE cache test results in FILE [disabled]
2246 -C, --config-cache alias for \`--cache-file=config.cache'
2247 -n, --no-create do not create output files
2248 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2250 Installation directories:
2251 --prefix=PREFIX install architecture-independent files in PREFIX
2252 [$ac_default_prefix]
2253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2256 By default, \`make install' will install all the files in
2257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2259 for instance \`--prefix=\$HOME'.
2261 For better control, use the options below.
2263 Fine tuning of the installation directories:
2264 --bindir=DIR user executables [EPREFIX/bin]
2265 --sbindir=DIR system admin executables [EPREFIX/sbin]
2266 --libexecdir=DIR program executables [EPREFIX/libexec]
2267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2269 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2270 --libdir=DIR object code libraries [EPREFIX/lib]
2271 --includedir=DIR C header files [PREFIX/include]
2272 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2275 --infodir=DIR info documentation [DATAROOTDIR/info]
2276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2277 --mandir=DIR man documentation [DATAROOTDIR/man]
2278 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2279 --htmldir=DIR html documentation [DOCDIR]
2280 --dvidir=DIR dvi documentation [DOCDIR]
2281 --pdfdir=DIR pdf documentation [DOCDIR]
2282 --psdir=DIR ps documentation [DOCDIR]
2288 --program-prefix=PREFIX prepend PREFIX to installed program names
2289 --program-suffix=SUFFIX append SUFFIX to installed program names
2290 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2293 --build=BUILD configure
for building on BUILD
[guessed
]
2294 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2295 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2299 if test -n "$ac_init_help"; then
2304 --disable-option-checking ignore unrecognized
--enable/--with options
2305 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2306 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2307 --enable-maintainer-mode enable make rules and dependencies not useful
2308 (and sometimes confusing
) to the casual installer
2309 --disable-largefile omit support
for large files
2310 --disable-dependency-tracking speeds up one-time build
2311 --enable-dependency-tracking do not reject slow dependency extractors
2313 Some influential environment variables
:
2314 CC C compiler
command
2315 CFLAGS C compiler flags
2316 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2317 nonstandard directory
<lib dir
>
2318 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2319 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2320 you have headers
in a nonstandard directory
<include dir
>
2323 Use these variables to override the choices made by
`configure' or to help
2324 it to find libraries and programs with nonstandard names/locations.
2326 Report bugs to the package provider.
2331 if test "$ac_init_help" = "recursive"; then
2332 # If there are subdirs, report their specific --help.
2333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2334 test -d "$ac_dir" ||
2335 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2342 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2343 # A ".." for each directory in $ac_dir_suffix.
2344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2345 case $ac_top_builddir_sub in
2346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2350 ac_abs_top_builddir=$ac_pwd
2351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2352 # for backward compatibility:
2353 ac_top_builddir=$ac_top_build_prefix
2356 .) # We are building in place.
2358 ac_top_srcdir=$ac_top_builddir_sub
2359 ac_abs_top_srcdir=$ac_pwd ;;
2360 [\\/]* | ?:[\\/]* ) # Absolute name.
2361 ac_srcdir=$srcdir$ac_dir_suffix;
2362 ac_top_srcdir=$srcdir
2363 ac_abs_top_srcdir=$srcdir ;;
2365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2366 ac_top_srcdir=$ac_top_build_prefix$srcdir
2367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2371 cd "$ac_dir" || { ac_status=$?; continue; }
2372 # Check for guested configure.
2373 if test -f "$ac_srcdir/configure.gnu"; then
2375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2376 elif test -f "$ac_srcdir/configure"; then
2378 $SHELL "$ac_srcdir/configure" --help=recursive
2380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2382 cd "$ac_pwd" || { ac_status=$?; break; }
2386 test -n "$ac_init_help" && exit $ac_status
2387 if $ac_init_version; then
2390 generated by GNU Autoconf 2.64
2392 Copyright (C) 2009 Free Software Foundation, Inc.
2393 This configure script is free software; the Free Software Foundation
2394 gives unlimited permission to copy, distribute and modify it.
2399 ## ------------------------ ##
2400 ## Autoconf initialization. ##
2401 ## ------------------------ ##
2403 # ac_fn_c_try_compile LINENO
2404 # --------------------------
2405 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_c_try_compile ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 rm -f conftest.$ac_objext
2410 if { { ac_try="$ac_compile"
2412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2413 *) ac_try_echo
=$ac_try;;
2415 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_compile") 2>conftest.err
2419 if test -s conftest.err
; then
2420 grep -v '^ *+' conftest.err
>conftest.er1
2421 cat conftest.er1
>&5
2422 mv -f conftest.er1 conftest.err
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; } && {
2426 test -z "$ac_c_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest.
$ac_objext; then :
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.
$ac_ext >&5
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2439 } # ac_fn_c_try_compile
2441 # ac_fn_c_try_cpp LINENO
2442 # ----------------------
2443 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2446 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2447 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2456 if test -s conftest.err; then
2457 grep -v '^ *+' conftest.err >conftest.er1
2458 cat conftest.er1 >&5
2459 mv -f conftest.er1 conftest.err
2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2462 test $ac_status = 0; } >/dev/null && {
2463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2464 test ! -s conftest.err
2468 $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2479 # -------------------------------------------------------
2480 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2481 # the include files in INCLUDES and setting the cache variable VAR
2483 ac_fn_c_check_header_mongrel ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2496 # Is the header compilable?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2498 $as_echo_n "checking $2 usability... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_header_compiler=yes
2507 ac_header_compiler=no
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2511 $as_echo "$ac_header_compiler" >&6; }
2513 # Is the header present?
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2515 $as_echo_n "checking $2 presence... " >&6; }
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2520 if ac_fn_c_try_cpp "$LINENO"; then :
2521 ac_header_preproc=yes
2523 ac_header_preproc=no
2525 rm -f conftest.err conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2527 $as_echo "$ac_header_preproc" >&6; }
2529 # So? What about this header?
2530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2533 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2535 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2539 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2541 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2543 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2545 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2547 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 eval "$3=\$ac_header_compiler"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_header_mongrel
2565 # ac_fn_c_try_run LINENO
2566 # ----------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2568 # that executables *can* be run.
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 if { { ac_try="$ac_link"
2574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2575 *) ac_try_echo
=$ac_try;;
2577 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>&5
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2583 { { case "(($ac_try" in
2584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_try") 2>&5
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; }; then :
2595 $as_echo "$as_me: program exited with status $ac_status" >&5
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_retval=$ac_status
2601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2608 # -------------------------------------------------------
2609 # Tests whether HEADER exists and can be compiled using the include files in
2610 # INCLUDES, setting the cache variable VAR accordingly.
2611 ac_fn_c_check_header_compile ()
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615 $as_echo_n "checking for $2... " >&6; }
2616 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2617 $as_echo_n "(cached) " >&6
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2624 if ac_fn_c_try_compile "$LINENO"; then :
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_header_compile
2638 # ac_fn_c_try_link LINENO
2639 # -----------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2648 *) ac_try_echo
=$ac_try;;
2650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2654 if test -s conftest.err
; then
2655 grep -v '^ *+' conftest.err
>conftest.er1
2656 cat conftest.er1
>&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest
$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest
$ac_exeext
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.
$ac_ext >&5
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2682 } # ac_fn_c_try_link
2684 # ac_fn_c_check_func LINENO FUNC VAR
2685 # ----------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_c_check_func
()
2689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2693 $as_echo_n "(cached) " >&6
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2707 # include <limits.h>
2709 # include <assert.h>
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2736 if ac_fn_c_try_link
"$LINENO"; then :
2741 rm -f core conftest.err conftest.
$ac_objext \
2742 conftest
$ac_exeext conftest.
$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2749 } # ac_fn_c_check_func
2751 # ac_fn_c_check_decl LINENO SYMBOL VAR
2752 # ------------------------------------
2753 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2754 ac_fn_c_check_decl
()
2756 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2758 $as_echo_n "checking whether $2 is declared... " >&6; }
2759 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2760 $as_echo_n "(cached) " >&6
2762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2776 if ac_fn_c_try_compile
"$LINENO"; then :
2781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2788 } # ac_fn_c_check_decl
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2795 ac_fn_c_compute_int
()
2797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
2800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2806 static int test_array [1 - 2 * !(($2) >= 0)];
2813 if ac_fn_c_try_compile
"$LINENO"; then :
2816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2829 if ac_fn_c_try_compile
"$LINENO"; then :
2830 ac_hi
=$ac_mid; break
2832 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2833 if test $ac_lo -le $ac_mid; then
2837 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2848 static int test_array [1 - 2 * !(($2) < 0)];
2855 if ac_fn_c_try_compile
"$LINENO"; then :
2858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2864 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2871 if ac_fn_c_try_compile
"$LINENO"; then :
2872 ac_lo
=$ac_mid; break
2874 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2875 if test $ac_mid -le $ac_hi; then
2879 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2905 if ac_fn_c_try_compile
"$LINENO"; then :
2908 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2913 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2928 FILE *f = fopen ("conftest.val", "w");
2933 long int i = longval ();
2936 fprintf (f, "%ld", i);
2940 unsigned long int i = ulongval ();
2943 fprintf (f, "%lu", i);
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2953 if ac_fn_c_try_run
"$LINENO"; then :
2954 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2966 } # ac_fn_c_compute_int
2968 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2969 # -------------------------------------------
2970 # Tests whether TYPE exists after having included INCLUDES, setting cache
2971 # variable VAR accordingly.
2972 ac_fn_c_check_type
()
2974 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2976 $as_echo_n "checking for $2... " >&6; }
2977 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2978 $as_echo_n "(cached) " >&6
2981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2993 if ac_fn_c_try_compile
"$LINENO"; then :
2994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3006 if ac_fn_c_try_compile
"$LINENO"; then :
3011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017 $as_echo "$ac_res" >&6; }
3018 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3020 } # ac_fn_c_check_type
3021 cat >config.log
<<_ACEOF
3022 This file contains any messages produced by compilers while
3023 running configure, to aid debugging if configure makes a mistake.
3025 It was created by $as_me, which was
3026 generated by GNU Autoconf 2.64. Invocation command line was
3038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3050 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir
=.
3062 $as_echo "PATH: $as_dir"
3078 # Keep a trace of the command line.
3079 # Strip out --no-create and --no-recursion so they do not pile up.
3080 # Strip out --silent because we don't want to record it for future runs.
3081 # Also quote any args containing shell meta-characters.
3082 # Make two passes to allow for proper duplicate-argument suppression.
3086 ac_must_keep_next
=false
3092 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3093 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3094 |
-silent |
--silent |
--silen |
--sile |
--sil)
3097 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3100 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3102 as_fn_append ac_configure_args1
" '$ac_arg'"
3103 if test $ac_must_keep_next = true
; then
3104 ac_must_keep_next
=false
# Got value, back to normal.
3107 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3108 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3109 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3110 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3111 case "$ac_configure_args0 " in
3112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3115 -* ) ac_must_keep_next
=true
;;
3118 as_fn_append ac_configure_args
" '$ac_arg'"
3123 { ac_configure_args0
=; unset ac_configure_args0
;}
3124 { ac_configure_args1
=; unset ac_configure_args1
;}
3126 # When interrupted or exit'd, cleanup temporary files, and complete
3127 # config.log. We remove comments because anyway the quotes in there
3128 # would cause problems or look ugly.
3129 # WARNING: Use '\'' to represent an apostrophe within the trap.
3130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131 trap 'exit_status=$?
3132 # Save into config.log some information that might help in debugging.
3137 ## ---------------- ##
3138 ## Cache variables. ##
3139 ## ---------------- ##
3142 # The following way of writing the cache mishandles newlines in values,
3144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145 eval ac_val=\$$ac_var
3149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3153 _ | IFS | as_nl) ;; #(
3154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3155 *) { eval $ac_var=; unset $ac_var;} ;;
3160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161 *${as_nl}ac_space=\ *)
3163 "s/'\''/'\''\\\\'\'''\''/g;
3164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3175 ## ----------------- ##
3176 ## Output variables. ##
3177 ## ----------------- ##
3180 for ac_var in $ac_subst_vars
3182 eval ac_val=\$$ac_var
3184 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3186 $as_echo "$ac_var='\''$ac_val'\''"
3190 if test -n "$ac_subst_files"; then
3192 ## ------------------- ##
3193 ## File substitutions. ##
3194 ## ------------------- ##
3197 for ac_var
in $ac_subst_files
3199 eval ac_val
=\$
$ac_var
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 $as_echo "$ac_var='\''$ac_val'\''"
3208 if test -s confdefs.h; then
3218 test "$ac_signal" != 0 &&
3219 $as_echo "$as_me: caught signal $ac_signal"
3220 $as_echo "$as_me: exit $exit_status"
3222 rm -f core *.core core.conftest.* &&
3223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226 for ac_signal
in 1 2 13 15; do
3227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3232 rm -f -r conftest
* confdefs.h
3234 $as_echo "/* confdefs.h */" > confdefs.h
3236 # Predefined preprocessor variables.
3238 cat >>confdefs.h
<<_ACEOF
3239 #define PACKAGE_NAME "$PACKAGE_NAME"
3242 cat >>confdefs.h
<<_ACEOF
3243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246 cat >>confdefs.h
<<_ACEOF
3247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3250 cat >>confdefs.h
<<_ACEOF
3251 #define PACKAGE_STRING "$PACKAGE_STRING"
3254 cat >>confdefs.h
<<_ACEOF
3255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258 cat >>confdefs.h
<<_ACEOF
3259 #define PACKAGE_URL "$PACKAGE_URL"
3263 # Let the site file select an alternate cache file if it wants to.
3264 # Prefer an explicitly selected file to automatically selected ones.
3267 if test -n "$CONFIG_SITE"; then
3268 ac_site_file1
=$CONFIG_SITE
3269 elif test "x$prefix" != xNONE
; then
3270 ac_site_file1
=$prefix/share
/config.site
3271 ac_site_file2
=$prefix/etc
/config.site
3273 ac_site_file1
=$ac_default_prefix/share
/config.site
3274 ac_site_file2
=$ac_default_prefix/etc
/config.site
3276 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3278 test "x$ac_site_file" = xNONE
&& continue
3279 if test -r "$ac_site_file"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3281 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3282 sed 's/^/| /' "$ac_site_file" >&5
3287 if test -r "$cache_file"; then
3288 # Some versions of bash will fail to source /dev/null (special
3289 # files actually), so we avoid doing that.
3290 if test -f "$cache_file"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3292 $as_echo "$as_me: loading cache $cache_file" >&6;}
3294 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3295 *) .
"./$cache_file";;
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3300 $as_echo "$as_me: creating cache $cache_file" >&6;}
3304 as_fn_append ac_func_list
" canonicalize_file_name"
3305 as_fn_append ac_func_list
" getcwd"
3306 as_fn_append ac_func_list
" readlink"
3307 as_fn_append ac_func_list
" realpath"
3308 as_fn_append ac_header_list
" sys/param.h"
3309 as_fn_append ac_header_list
" dirent.h"
3310 as_fn_append ac_header_list
" unistd.h"
3311 as_fn_append ac_func_list
" btowc"
3312 as_fn_append ac_func_list
" isblank"
3313 as_fn_append ac_func_list
" iswctype"
3314 as_fn_append ac_func_list
" mbsrtowcs"
3315 as_fn_append ac_func_list
" mempcpy"
3316 as_fn_append ac_func_list
" wmemchr"
3317 as_fn_append ac_func_list
" wmemcpy"
3318 as_fn_append ac_func_list
" wmempcpy"
3319 as_fn_append ac_header_list
" wctype.h"
3320 gl_fnmatch_required
=GNU
3321 as_fn_append ac_header_list
" sys/time.h"
3322 as_fn_append ac_header_list
" sys/socket.h"
3323 as_fn_append ac_func_list
" gettimeofday"
3324 as_fn_append ac_header_list
" limits.h"
3325 as_fn_append ac_header_list
" wchar.h"
3326 as_fn_append ac_header_list
" stdint.h"
3327 as_fn_append ac_header_list
" inttypes.h"
3328 as_fn_append ac_func_list
" symlink"
3329 as_fn_append ac_func_list
" lstat"
3330 as_fn_append ac_header_list
" math.h"
3331 as_fn_append ac_func_list
" mbsinit"
3332 as_fn_append ac_func_list
" mbrtowc"
3333 as_fn_append ac_header_list
" sys/mman.h"
3334 as_fn_append ac_func_list
" mprotect"
3335 as_fn_append ac_func_list
" link"
3336 as_fn_append ac_func_list
" setenv"
3337 as_fn_append ac_header_list
" sys/stat.h"
3338 as_fn_append ac_header_list
" features.h"
3339 as_fn_append ac_func_list
" iswcntrl"
3340 # Check that the precious variables saved in the cache have kept the same
3342 ac_cache_corrupted
=false
3343 for ac_var
in $ac_precious_vars; do
3344 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3345 eval ac_new_set
=\
$ac_env_${ac_var}_set
3346 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3347 eval ac_new_val
=\
$ac_env_${ac_var}_value
3348 case $ac_old_set,$ac_new_set in
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3352 ac_cache_corrupted
=: ;;
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3356 ac_cache_corrupted
=: ;;
3359 if test "x$ac_old_val" != "x$ac_new_val"; then
3360 # differences in whitespace do not lead to failure.
3361 ac_old_val_w
=`echo x $ac_old_val`
3362 ac_new_val_w
=`echo x $ac_new_val`
3363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3366 ac_cache_corrupted
=:
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3370 eval $ac_var=\
$ac_old_val
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3378 # Pass precious variables to config.status.
3379 if test "$ac_new_set" = set; then
3381 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3382 *) ac_arg
=$ac_var=$ac_new_val ;;
3384 case " $ac_configure_args " in
3385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3386 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3390 if $ac_cache_corrupted; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3395 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3397 ## -------------------- ##
3398 ## Main body of script. ##
3399 ## -------------------- ##
3402 ac_cpp
='$CPP $CPPFLAGS'
3403 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3408 ac_config_headers
="$ac_config_headers config.h:config.in"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3417 USE_MAINTAINER_MODE
=no
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
3423 MAINTAINER_MODE_TRUE
=
3424 MAINTAINER_MODE_FALSE
='#'
3426 MAINTAINER_MODE_TRUE
='#'
3427 MAINTAINER_MODE_FALSE
=
3430 MAINT
=$MAINTAINER_MODE_TRUE
3435 ac_cpp
='$CPP $CPPFLAGS'
3436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC
="$CC" # Let the user override the test.
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_exec_ext
in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3478 if test -z "$ac_cv_prog_CC"; then
3480 # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc
; ac_word
=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3487 if test -n "$ac_ct_CC"; then
3488 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3494 test -z "$as_dir" && as_dir
=.
3495 for ac_exec_ext
in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_CC
="gcc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 $as_echo "$ac_ct_CC" >&6; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3516 if test "x$ac_ct_CC" = x
; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned
=yes ;;
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC
="$CC" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3572 if test -z "$CC"; then
3573 # Extract the first word of "cc", so it can be a program name with args.
3574 set dummy cc
; ac_word
=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC
="$CC" # Let the user override the test.
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3592 ac_prog_rejected
=yes
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test $ac_prog_rejected = yes; then
3604 # We found a bogon in the path, so make sure we never use it.
3605 set dummy
$ac_cv_prog_CC
3607 if test $# != 0; then
3608 # We chose a different compiler from the bogus one.
3609 # However, it has the same basename, so the bogon will be chosen
3610 # first if we set CC to just the basename; use the full file name.
3612 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog
in cl.exe
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC
="$CC" # Let the user override the test.
3642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir
=.
3647 for ac_exec_ext
in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3669 test -n "$CC" && break
3672 if test -z "$CC"; then
3674 for ac_prog
in cl.exe
3676 # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy
$ac_prog; ac_word
=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$ac_ct_CC"; then
3684 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir
=.
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_ac_ct_CC
="$ac_prog"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3704 if test -n "$ac_ct_CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706 $as_echo "$ac_ct_CC" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3713 test -n "$ac_ct_CC" && break
3716 if test "x$ac_ct_CC" = x
; then
3719 case $cross_compiling:$ac_tool_warned in
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned
=yes ;;
3732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error
"no acceptable C compiler found in \$PATH
3735 See \`config.log' for more details." "$LINENO" 5; }
3737 # Provide some information about the compiler.
3738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3741 for ac_option
in --version -v -V -qversion; do
3742 { { ac_try
="$ac_compiler $ac_option >&5"
3744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3751 if test -s conftest.err; then
3753 ... rest of stderr output deleted ...
3754 10q' conftest.err >conftest.er1
3755 cat conftest.er1 >&5
3756 rm -f conftest.er1 conftest.err
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3768 FILE *f = fopen ("conftest.out", "w");
3769 return ferror (f) || fclose (f) != 0;
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3781 $as_echo_n "checking for C compiler default output file name... " >&6; }
3782 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3788 for ac_file in $ac_files
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3797 if { { ac_try="$ac_link_default"
3799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3800 *) ac_try_echo
=$ac_try;;
3802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_link_default") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; then :
3808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3810 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3811 # so that the user can short-circuit this test for compilers unknown to
3813 for ac_file
in $ac_files ''
3815 test -f "$ac_file" ||
continue
3817 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3820 # We found the default executable, but exeext='' is most
3824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3826 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 # We set ac_cv_exeext here because the later test for it is not
3829 # safe: cross compilers may not add the suffix if given an `-o'
3830 # argument, so we may need to know it at that point already.
3831 # Even if this section looks crufty: it has the advantage of
3838 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3844 $as_echo "$ac_file" >&6; }
3845 if test -z "$ac_file"; then :
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.
$ac_ext >&5
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 { as_fn_set_status
77
3852 as_fn_error
"C compiler cannot create executables
3853 See \`config.log' for more details." "$LINENO" 5; }; }
3855 ac_exeext
=$ac_cv_exeext
3857 # Check that the compiler produces executables we can run. If not, either
3858 # the compiler is broken, or we cross compile.
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3860 $as_echo_n "checking whether the C compiler works... " >&6; }
3861 # If not cross compiling, check that we can run a simple program.
3862 if test "$cross_compiling" != yes; then
3863 if { ac_try
='./$ac_file'
3864 { { case "(($ac_try" in
3865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_try") 2>&5
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; }; then
3876 if test "$cross_compiling" = maybe; then
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error "cannot run C compiled programs.
3882 If you meant to cross compile
, use \
`--host'.
3883 See \`config.log
' for more details." "$LINENO" 5; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3891 ac_clean_files=$ac_clean_files_save
3892 # Check that the compiler produces executables we can run. If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { { ac_try="$ac_link"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3913 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3916 for ac_file
in conftest.exe conftest conftest.
*; do
3917 test -f "$ac_file" ||
continue
3919 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3920 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details." "$LINENO" 5; }
3931 rm -f conftest
$ac_cv_exeext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3933 $as_echo "$ac_cv_exeext" >&6; }
3935 rm -f conftest.
$ac_ext
3936 EXEEXT
=$ac_cv_exeext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 $as_echo_n "checking for suffix of object files... " >&6; }
3940 if test "${ac_cv_objext+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3954 rm -f conftest.o conftest.obj
3955 if { { ac_try
="$ac_compile"
3957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_compile") 2>&5
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; then :
3966 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue;
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of object files
: cannot compile
3981 See \
`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3986 $as_echo "$ac_cv_objext" >&6; }
3987 OBJEXT=$ac_cv_objext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3990 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3991 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4018 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4019 if test $ac_compiler_gnu = yes; then
4024 ac_test_CFLAGS=${CFLAGS+set}
4025 ac_save_CFLAGS=$CFLAGS
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4027 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4028 if test "${ac_cv_prog_cc_g+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4031 ac_save_c_werror_flag=$ac_c_werror_flag
4032 ac_c_werror_flag=yes
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4046 if ac_fn_c_try_compile "$LINENO"; then :
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_c_werror_flag=$ac_save_c_werror_flag
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4088 $as_echo "$ac_cv_prog_cc_g" >&6; }
4089 if test "$ac_test_CFLAGS" = set; then
4090 CFLAGS=$ac_save_CFLAGS
4091 elif test $ac_cv_prog_cc_g = yes; then
4092 if test "$GCC" = yes; then
4098 if test "$GCC" = yes; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4106 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4109 ac_cv_prog_cc_c89=no
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 #include <sys/stat.h>
4117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4118 struct buf { int x; };
4119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4120 static char *e (p, i)
4126 static char *f (char * (*g) (char **, int), char **p, ...)
4131 s = g (p, va_arg (v,int));
4136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4137 function prototypes and stuff, but not '\xHH' hex character constants.
4138 These don't provoke an error unfortunately, instead are silently treated
4139 as 'x'. The following induces an error, until -std is added to get
4140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4141 array size at least. It's necessary to write '\x00'==0 to get something
4142 that's true only with -std. */
4143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4146 inside strings and character constants. */
4148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150 int test (int i, double x);
4151 struct s1 {int (*f) (int a);};
4152 struct s2 {int (*f) (double a);};
4153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167 CC="$ac_save_CC $ac_arg"
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_c89=$ac_arg
4171 rm -f core conftest.err conftest.$ac_objext
4172 test "x$ac_cv_prog_cc_c89" != "xno" && break
4174 rm -f conftest.$ac_ext
4179 case "x$ac_cv_prog_cc_c89" in
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182 $as_echo "none needed" >&6; } ;;
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;;
4187 CC="$CC $ac_cv_prog_cc_c89"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4191 if test "x$ac_cv_prog_cc_c89" != xno; then :
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4213 if test -z "$CPP"; then
4214 if test "${ac_cv_prog_CPP+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 for ac_c_preproc_warn_flag in '' yes
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4232 # include <limits.h>
4234 # include <assert.h>
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4241 # Broken: fails on valid input.
4244 rm -f conftest.err conftest.$ac_ext
4246 # OK, works on sane cases. Now check whether nonexistent headers
4247 # can be detected and how.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253 # Broken: success on invalid input.
4256 # Passes both tests.
4260 rm -f conftest.err conftest.$ac_ext
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.err conftest.
$ac_ext
4265 if $ac_preproc_ok; then :
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278 $as_echo "$CPP" >&6; }
4280 for ac_c_preproc_warn_flag
in '' yes
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4291 # include <limits.h>
4293 # include <assert.h>
4297 if ac_fn_c_try_cpp
"$LINENO"; then :
4300 # Broken: fails on valid input.
4303 rm -f conftest.err conftest.
$ac_ext
4305 # OK, works on sane cases. Now check whether nonexistent headers
4306 # can be detected and how.
4307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4311 if ac_fn_c_try_cpp
"$LINENO"; then :
4312 # Broken: success on invalid input.
4315 # Passes both tests.
4319 rm -f conftest.err conftest.
$ac_ext
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.err conftest.
$ac_ext
4324 if $ac_preproc_ok; then :
4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details." "$LINENO" 5; }
4334 ac_cpp
='$CPP $CPPFLAGS'
4335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4341 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4342 if test "${ac_cv_path_GREP+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4345 if test -z "$GREP"; then
4346 ac_path_GREP_found
=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4349 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4352 test -z "$as_dir" && as_dir
=.
4353 for ac_prog
in grep ggrep
; do
4354 for ac_exec_ext
in '' $ac_executable_extensions; do
4355 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4356 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4357 # Check for GNU ac_path_GREP and select it if it is found.
4358 # Check for GNU $ac_path_GREP
4359 case `"$ac_path_GREP" --version 2>&1` in
4361 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4364 $as_echo_n 0123456789 >"conftest.in"
4367 cat "conftest.in" "conftest.in" >"conftest.tmp"
4368 mv "conftest.tmp" "conftest.in"
4369 cp "conftest.in" "conftest.nl"
4370 $as_echo 'GREP' >> "conftest.nl"
4371 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4372 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4373 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4374 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4375 # Best one so far, save it but keep looking for a better one
4376 ac_cv_path_GREP
="$ac_path_GREP"
4377 ac_path_GREP_max
=$ac_count
4379 # 10*(2^10) chars as input seems more than enough
4380 test $ac_count -gt 10 && break
4382 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4385 $ac_path_GREP_found && break 3
4390 if test -z "$ac_cv_path_GREP"; then
4391 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394 ac_cv_path_GREP
=$GREP
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4399 $as_echo "$ac_cv_path_GREP" >&6; }
4400 GREP
="$ac_cv_path_GREP"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4404 $as_echo_n "checking for egrep... " >&6; }
4405 if test "${ac_cv_path_EGREP+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4409 then ac_cv_path_EGREP
="$GREP -E"
4411 if test -z "$EGREP"; then
4412 ac_path_EGREP_found
=false
4413 # Loop through the user's path and test for each of PROGNAME-LIST
4414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4415 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4418 test -z "$as_dir" && as_dir
=.
4419 for ac_prog
in egrep; do
4420 for ac_exec_ext
in '' $ac_executable_extensions; do
4421 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4422 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4423 # Check for GNU ac_path_EGREP and select it if it is found.
4424 # Check for GNU $ac_path_EGREP
4425 case `"$ac_path_EGREP" --version 2>&1` in
4427 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4430 $as_echo_n 0123456789 >"conftest.in"
4433 cat "conftest.in" "conftest.in" >"conftest.tmp"
4434 mv "conftest.tmp" "conftest.in"
4435 cp "conftest.in" "conftest.nl"
4436 $as_echo 'EGREP' >> "conftest.nl"
4437 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4438 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4439 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4440 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4441 # Best one so far, save it but keep looking for a better one
4442 ac_cv_path_EGREP
="$ac_path_EGREP"
4443 ac_path_EGREP_max
=$ac_count
4445 # 10*(2^10) chars as input seems more than enough
4446 test $ac_count -gt 10 && break
4448 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4451 $ac_path_EGREP_found && break 3
4456 if test -z "$ac_cv_path_EGREP"; then
4457 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460 ac_cv_path_EGREP
=$EGREP
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4466 $as_echo "$ac_cv_path_EGREP" >&6; }
4467 EGREP
="$ac_cv_path_EGREP"
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4471 $as_echo_n "checking for ANSI C header files... " >&6; }
4472 if test "${ac_cv_header_stdc+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4490 if ac_fn_c_try_compile
"$LINENO"; then :
4491 ac_cv_header_stdc
=yes
4493 ac_cv_header_stdc
=no
4495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4497 if test $ac_cv_header_stdc = yes; then
4498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "memchr" >/dev
/null
2>&1; then :
4508 ac_cv_header_stdc
=no
4514 if test $ac_cv_header_stdc = yes; then
4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "free" >/dev
/null
2>&1; then :
4525 ac_cv_header_stdc
=no
4531 if test $ac_cv_header_stdc = yes; then
4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533 if test "$cross_compiling" = yes; then :
4536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4540 #if ((' ' & 0x0FF) == 0x020)
4541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4544 # define ISLOWER(c) \
4545 (('a' <= (c) && (c) <= 'i') \
4546 || ('j' <= (c) && (c) <= 'r') \
4547 || ('s' <= (c) && (c) <= 'z'))
4548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4556 for (i = 0; i < 256; i++)
4557 if (XOR (islower (i), ISLOWER (i))
4558 || toupper (i) != TOUPPER (i))
4563 if ac_fn_c_try_run
"$LINENO"; then :
4566 ac_cv_header_stdc
=no
4568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4575 $as_echo "$ac_cv_header_stdc" >&6; }
4576 if test $ac_cv_header_stdc = yes; then
4578 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4583 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4584 inttypes.h stdint.h unistd.h
4586 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4589 eval as_val
=\$
$as_ac_Header
4590 if test "x$as_val" = x
""yes; then :
4591 cat >>confdefs.h
<<_ACEOF
4592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4601 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4602 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4609 if test "$MINIX" = yes; then
4611 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4614 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4617 $as_echo "#define _MINIX 1" >>confdefs.h
4620 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4626 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4627 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 # define __EXTENSIONS__ 1
4634 $ac_includes_default
4643 if ac_fn_c_try_compile
"$LINENO"; then :
4644 ac_cv_safe_to_define___extensions__
=yes
4646 ac_cv_safe_to_define___extensions__
=no
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4652 test $ac_cv_safe_to_define___extensions__ = yes &&
4653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4657 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4663 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4665 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4667 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4669 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4671 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4673 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4675 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4677 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4680 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4681 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4684 ac_cv_should_define__xopen_source
=no
4685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4698 if ac_fn_c_try_compile
"$LINENO"; then :
4701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4704 #define _XOPEN_SOURCE 500
4715 if ac_fn_c_try_compile
"$LINENO"; then :
4716 ac_cv_should_define__xopen_source
=yes
4718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4723 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4724 test $ac_cv_should_define__xopen_source = yes &&
4725 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4738 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4739 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4753 gl_cv_c_amsterdam_compiler
=yes
4755 gl_cv_c_amsterdam_compiler
=no
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4762 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4764 if test $gl_cv_c_amsterdam_compiler = yes; then
4765 if test -z "$AR"; then
4768 if test -z "$ARFLAGS"; then
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4777 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_AR+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$AR"; then
4784 ac_cv_prog_AR
="$AR" # Let the user override the test.
4786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir
=.
4791 for ac_exec_ext
in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 if test -n "$AR"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4806 $as_echo "$AR" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4814 if test -z "$ac_cv_prog_AR"; then
4816 # Extract the first word of "ar", so it can be a program name with args.
4817 set dummy
ar; ac_word
=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$ac_ct_AR"; then
4824 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir
=.
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_ac_ct_AR
="ar"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4844 if test -n "$ac_ct_AR"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4846 $as_echo "$ac_ct_AR" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4852 if test "x$ac_ct_AR" = x
; then
4855 case $cross_compiling:$ac_tool_warned in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859 ac_tool_warned
=yes ;;
4867 if test -z "$ARFLAGS"; then
4873 if test -z "$RANLIB"; then
4874 if test $gl_cv_c_amsterdam_compiler = yes; then
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4879 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 if test -n "$RANLIB"; then
4886 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir
=.
4893 for ac_exec_ext
in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 RANLIB
=$ac_cv_prog_RANLIB
4906 if test -n "$RANLIB"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4908 $as_echo "$RANLIB" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4916 if test -z "$ac_cv_prog_RANLIB"; then
4917 ac_ct_RANLIB
=$RANLIB
4918 # Extract the first word of "ranlib", so it can be a program name with args.
4919 set dummy ranlib
; ac_word
=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4925 if test -n "$ac_ct_RANLIB"; then
4926 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir
=.
4933 for ac_exec_ext
in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4946 if test -n "$ac_ct_RANLIB"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4948 $as_echo "$ac_ct_RANLIB" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4954 if test "x$ac_ct_RANLIB" = x
; then
4957 case $cross_compiling:$ac_tool_warned in
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned
=yes ;;
4963 RANLIB
=$ac_ct_RANLIB
4966 RANLIB
="$ac_cv_prog_RANLIB"
4974 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4975 for ac_t
in install-sh
install.sh shtool
; do
4976 if test -f "$ac_dir/$ac_t"; then
4978 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4983 if test -z "$ac_aux_dir"; then
4984 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4987 # These three variables are undocumented and unsupported,
4988 # and are intended to be withdrawn in a future Autoconf release.
4989 # They can cause serious problems if a builder's source tree is in a directory
4990 # whose full name contains unusual characters.
4991 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4992 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4993 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4996 # Make sure we can run config.sub.
4997 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4998 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5001 $as_echo_n "checking build system type... " >&6; }
5002 if test "${ac_cv_build+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5005 ac_build_alias
=$build_alias
5006 test "x$ac_build_alias" = x
&&
5007 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5008 test "x$ac_build_alias" = x
&&
5009 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
5010 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5011 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5015 $as_echo "$ac_cv_build" >&6; }
5016 case $ac_cv_build in
5018 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
5021 ac_save_IFS
=$IFS; IFS
='-'
5027 # Remember, the first character of IFS is used to create $*,
5028 # except with old shells:
5031 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5035 $as_echo_n "checking host system type... " >&6; }
5036 if test "${ac_cv_host+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5039 if test "x$host_alias" = x
; then
5040 ac_cv_host
=$ac_cv_build
5042 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5043 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5048 $as_echo "$ac_cv_host" >&6; }
5051 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5054 ac_save_IFS
=$IFS; IFS
='-'
5060 # Remember, the first character of IFS is used to create $*,
5061 # except with old shells:
5064 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5070 # IEEE behaviour is the default on all CPUs except Alpha and SH
5071 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5072 # and the GCC 4.1.2 manual).
5075 # On Alpha systems, a compiler option provides the behaviour.
5076 # See the ieee(3) manual page, also available at
5077 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5078 if test -n "$GCC"; then
5079 # GCC has the option -mieee.
5080 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5081 CPPFLAGS
="$CPPFLAGS -mieee"
5083 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5084 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5085 CPPFLAGS
="$CPPFLAGS -ieee"
5089 if test -n "$GCC"; then
5090 # GCC has the option -mieee.
5091 CPPFLAGS
="$CPPFLAGS -mieee"
5096 # Check whether --enable-largefile was given.
5097 if test "${enable_largefile+set}" = set; then :
5098 enableval
=$enable_largefile;
5101 if test "$enable_largefile" != no
; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5104 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5105 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_cv_sys_largefile_CC
=no
5109 if test "$GCC" != yes; then
5112 # IRIX 6.2 and later do not support large files by default,
5113 # so use the C compiler's -n32 option if that helps.
5114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <sys/types.h>
5117 /* Check that off_t can represent 2**63 - 1 correctly.
5118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5119 since some C++ compilers masquerading as C compilers
5120 incorrectly reject 9223372036854775807. */
5121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5123 && LARGE_OFF_T % 2147483647 == 1)
5133 if ac_fn_c_try_compile
"$LINENO"; then :
5136 rm -f core conftest.err conftest.
$ac_objext
5138 if ac_fn_c_try_compile
"$LINENO"; then :
5139 ac_cv_sys_largefile_CC
=' -n32'; break
5141 rm -f core conftest.err conftest.
$ac_objext
5145 rm -f conftest.
$ac_ext
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5149 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5150 if test "$ac_cv_sys_largefile_CC" != no
; then
5151 CC
=$CC$ac_cv_sys_largefile_CC
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5155 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5156 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <sys/types.h>
5163 /* Check that off_t can represent 2**63 - 1 correctly.
5164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5165 since some C++ compilers masquerading as C compilers
5166 incorrectly reject 9223372036854775807. */
5167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5169 && LARGE_OFF_T % 2147483647 == 1)
5179 if ac_fn_c_try_compile
"$LINENO"; then :
5180 ac_cv_sys_file_offset_bits
=no
; break
5182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #define _FILE_OFFSET_BITS 64
5186 #include <sys/types.h>
5187 /* Check that off_t can represent 2**63 - 1 correctly.
5188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5189 since some C++ compilers masquerading as C compilers
5190 incorrectly reject 9223372036854775807. */
5191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5193 && LARGE_OFF_T % 2147483647 == 1)
5203 if ac_fn_c_try_compile
"$LINENO"; then :
5204 ac_cv_sys_file_offset_bits
=64; break
5206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5207 ac_cv_sys_file_offset_bits
=unknown
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5212 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5213 case $ac_cv_sys_file_offset_bits in #(
5216 cat >>confdefs.h
<<_ACEOF
5217 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5222 if test $ac_cv_sys_file_offset_bits = unknown
; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5224 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5225 if test "${ac_cv_sys_large_files+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 /* Check that off_t can represent 2**63 - 1 correctly.
5233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5234 since some C++ compilers masquerading as C compilers
5235 incorrectly reject 9223372036854775807. */
5236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5238 && LARGE_OFF_T % 2147483647 == 1)
5248 if ac_fn_c_try_compile
"$LINENO"; then :
5249 ac_cv_sys_large_files
=no
; break
5251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #define _LARGE_FILES 1
5255 #include <sys/types.h>
5256 /* Check that off_t can represent 2**63 - 1 correctly.
5257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5258 since some C++ compilers masquerading as C compilers
5259 incorrectly reject 9223372036854775807. */
5260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5262 && LARGE_OFF_T % 2147483647 == 1)
5272 if ac_fn_c_try_compile
"$LINENO"; then :
5273 ac_cv_sys_large_files
=1; break
5275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5276 ac_cv_sys_large_files
=unknown
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5281 $as_echo "$ac_cv_sys_large_files" >&6; }
5282 case $ac_cv_sys_large_files in #(
5285 cat >>confdefs.h
<<_ACEOF
5286 #define _LARGE_FILES $ac_cv_sys_large_files
5294 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5300 # Pre-early section.
5304 # Code from module absolute-header:
5305 # Code from module alloca:
5306 # Code from module alloca-opt:
5307 # Code from module canonicalize-lgpl:
5308 # Code from module chdir:
5309 # Code from module configmake:
5310 # Code from module dirent:
5311 # Code from module dirfd:
5312 # Code from module dirname-lgpl:
5313 # Code from module dosname:
5314 # Code from module double-slash-root:
5315 # Code from module environ:
5316 # Code from module errno:
5317 # Code from module extensions:
5318 # Code from module extern-inline:
5319 # Code from module flexmember:
5320 # Code from module float:
5321 # Code from module fnmatch:
5322 # Code from module fnmatch-gnu:
5323 # Code from module fpieee:
5325 # Code from module fpucw:
5326 # Code from module frexp:
5327 # Code from module frexpl:
5328 # Code from module gettimeofday:
5329 # Code from module hard-locale:
5330 # Code from module include_next:
5331 # Code from module inttypes:
5332 # Code from module inttypes-incomplete:
5333 # Code from module isnand-nolibm:
5334 # Code from module isnanl-nolibm:
5335 # Code from module largefile:
5337 # Code from module limits-h:
5338 # Code from module localcharset:
5339 # Code from module lstat:
5340 # Code from module malloc-posix:
5341 # Code from module malloca:
5342 # Code from module math:
5343 # Code from module mbrtowc:
5344 # Code from module mbsinit:
5345 # Code from module mbsrtowcs:
5346 # Code from module memchr:
5347 # Code from module memmem:
5348 # Code from module memmem-simple:
5349 # Code from module multiarch:
5350 # Code from module nocrash:
5351 # Code from module pathmax:
5352 # Code from module rawmemchr:
5353 # Code from module readlink:
5354 # Code from module rename:
5355 # Code from module rmdir:
5356 # Code from module same-inode:
5357 # Code from module setenv:
5358 # Code from module signal-h:
5359 # Code from module snippet/_Noreturn:
5360 # Code from module snippet/arg-nonnull:
5361 # Code from module snippet/c++defs:
5362 # Code from module snippet/warn-on-use:
5363 # Code from module ssize_t:
5364 # Code from module stat:
5365 # Code from module stdbool:
5366 # Code from module stddef:
5367 # Code from module stdint:
5368 # Code from module stdio:
5369 # Code from module stdlib:
5370 # Code from module strchrnul:
5371 # Code from module streq:
5372 # Code from module string:
5373 # Code from module strnlen1:
5374 # Code from module strstr:
5375 # Code from module strstr-simple:
5376 # Code from module strtok_r:
5377 # Code from module sys_stat:
5378 # Code from module sys_time:
5379 # Code from module sys_types:
5380 # Code from module time:
5381 # Code from module unistd:
5382 # Code from module unsetenv:
5383 # Code from module update-copyright:
5384 # Code from module verify:
5385 # Code from module wchar:
5386 # Code from module wctype-h:
5389 ac_cpp
='$CPP $CPPFLAGS'
5390 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5393 if test -n "$ac_tool_prefix"; then
5394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5395 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_CC+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -n "$CC"; then
5402 ac_cv_prog_CC
="$CC" # Let the user override the test.
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_exec_ext
in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 if test -n "$CC"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5424 $as_echo "$CC" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5432 if test -z "$ac_cv_prog_CC"; then
5434 # Extract the first word of "gcc", so it can be a program name with args.
5435 set dummy gcc
; ac_word
=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5441 if test -n "$ac_ct_CC"; then
5442 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir
=.
5449 for ac_exec_ext
in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_ac_ct_CC
="gcc"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5462 if test -n "$ac_ct_CC"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5464 $as_echo "$ac_ct_CC" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5470 if test "x$ac_ct_CC" = x
; then
5473 case $cross_compiling:$ac_tool_warned in
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned
=yes ;;
5485 if test -z "$CC"; then
5486 if test -n "$ac_tool_prefix"; then
5487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5488 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_CC+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 if test -n "$CC"; then
5495 ac_cv_prog_CC
="$CC" # Let the user override the test.
5497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir
=.
5502 for ac_exec_ext
in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 if test -n "$CC"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5517 $as_echo "$CC" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5526 if test -z "$CC"; then
5527 # Extract the first word of "cc", so it can be a program name with args.
5528 set dummy cc
; ac_word
=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_prog_CC+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 if test -n "$CC"; then
5535 ac_cv_prog_CC
="$CC" # Let the user override the test.
5538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir
=.
5543 for ac_exec_ext
in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5546 ac_prog_rejected
=yes
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 if test $ac_prog_rejected = yes; then
5558 # We found a bogon in the path, so make sure we never use it.
5559 set dummy
$ac_cv_prog_CC
5561 if test $# != 0; then
5562 # We chose a different compiler from the bogus one.
5563 # However, it has the same basename, so the bogon will be chosen
5564 # first if we set CC to just the basename; use the full file name.
5566 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5572 if test -n "$CC"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5574 $as_echo "$CC" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5582 if test -z "$CC"; then
5583 if test -n "$ac_tool_prefix"; then
5584 for ac_prog
in cl.exe
5586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_CC+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 if test -n "$CC"; then
5594 ac_cv_prog_CC
="$CC" # Let the user override the test.
5596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir
=.
5601 for ac_exec_ext
in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 if test -n "$CC"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5616 $as_echo "$CC" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 test -n "$CC" && break
5626 if test -z "$CC"; then
5628 for ac_prog
in cl.exe
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy
$ac_prog; ac_word
=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if test -n "$ac_ct_CC"; then
5638 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir
=.
5645 for ac_exec_ext
in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_CC
="$ac_prog"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5658 if test -n "$ac_ct_CC"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5660 $as_echo "$ac_ct_CC" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5667 test -n "$ac_ct_CC" && break
5670 if test "x$ac_ct_CC" = x
; then
5673 case $cross_compiling:$ac_tool_warned in
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677 ac_tool_warned
=yes ;;
5686 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error
"no acceptable C compiler found in \$PATH
5689 See \`config.log' for more details." "$LINENO" 5; }
5691 # Provide some information about the compiler.
5692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5695 for ac_option
in --version -v -V -qversion; do
5696 { { ac_try
="$ac_compiler $ac_option >&5"
5698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5702 $as_echo "$ac_try_echo"; } >&5
5703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5705 if test -s conftest.err; then
5707 ... rest of stderr output deleted ...
5708 10q' conftest.err >conftest.er1
5709 cat conftest.er1 >&5
5710 rm -f conftest.er1 conftest.err
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5718 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5735 if ac_fn_c_try_compile "$LINENO"; then :
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5746 if test $ac_compiler_gnu = yes; then
5751 ac_test_CFLAGS=${CFLAGS+set}
5752 ac_save_CFLAGS=$CFLAGS
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5755 if test "${ac_cv_prog_cc_g+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5758 ac_save_c_werror_flag=$ac_c_werror_flag
5759 ac_c_werror_flag=yes
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5773 if ac_fn_c_try_compile "$LINENO"; then :
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5788 if ac_fn_c_try_compile "$LINENO"; then :
5791 ac_c_werror_flag=$ac_save_c_werror_flag
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5804 if ac_fn_c_try_compile "$LINENO"; then :
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 ac_c_werror_flag=$ac_save_c_werror_flag
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5815 $as_echo "$ac_cv_prog_cc_g" >&6; }
5816 if test "$ac_test_CFLAGS" = set; then
5817 CFLAGS=$ac_save_CFLAGS
5818 elif test $ac_cv_prog_cc_g = yes; then
5819 if test "$GCC" = yes; then
5825 if test "$GCC" = yes; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5833 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 ac_cv_prog_cc_c89=no
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5842 #include <sys/types.h>
5843 #include <sys/stat.h>
5844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5845 struct buf { int x; };
5846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5847 static char *e (p, i)
5853 static char *f (char * (*g) (char **, int), char **p, ...)
5858 s = g (p, va_arg (v,int));
5863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5864 function prototypes and stuff, but not '\xHH' hex character constants.
5865 These don't provoke an error unfortunately, instead are silently treated
5866 as 'x'. The following induces an error, until -std is added to get
5867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5868 array size at least. It's necessary to write '\x00'==0 to get something
5869 that's true only with -std. */
5870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5873 inside strings and character constants. */
5875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5877 int test (int i, double x);
5878 struct s1 {int (*f) (int a);};
5879 struct s2 {int (*f) (double a);};
5880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5894 CC="$ac_save_CC $ac_arg"
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_prog_cc_c89=$ac_arg
5898 rm -f core conftest.err conftest.$ac_objext
5899 test "x$ac_cv_prog_cc_c89" != "xno" && break
5901 rm -f conftest.$ac_ext
5906 case "x$ac_cv_prog_cc_c89" in
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5909 $as_echo "none needed" >&6; } ;;
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5912 $as_echo "unsupported" >&6; } ;;
5914 CC="$CC $ac_cv_prog_cc_c89"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5918 if test "x$ac_cv_prog_cc_c89" != xno; then :
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5933 for ac_dir in ../.. "$srcdir"/../..; do
5934 for ac_t in install-sh install.sh shtool; do
5935 if test -f "$ac_dir/$ac_t"; then
5937 ac_install_sh="$ac_aux_dir/$ac_t -c"
5942 if test -z "$ac_aux_dir"; then
5943 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5946 # These three variables are undocumented and unsupported,
5947 # and are intended to be withdrawn in a future Autoconf release.
5948 # They can cause serious problems if a builder's source tree is in a directory
5949 # whose full name contains unusual characters.
5950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5956 $as_echo_n "checking target system type... " >&6; }
5957 if test "${ac_cv_target+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if test "x$target_alias" = x; then
5961 ac_cv_target=$ac_cv_host
5963 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5964 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5969 $as_echo "$ac_cv_target" >&6; }
5970 case $ac_cv_target in
5972 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5974 target=$ac_cv_target
5975 ac_save_IFS=$IFS; IFS='-'
5981 # Remember, the first character of IFS is used to create $*,
5982 # except with old shells:
5985 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5988 # The aliases save the names the user supplied, while $host etc.
5989 # will get canonicalized.
5990 test -n "$target_alias" &&
5991 test "$program_prefix$program_suffix$program_transform_name" = \
5993 program_prefix=${target_alias}-
6001 LIBC_FATAL_STDERR_=1
6002 export LIBC_FATAL_STDERR_
6004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6005 # for constant arguments. Useless!
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6007 $as_echo_n "checking for working alloca.h... " >&6; }
6008 if test "${ac_cv_working_alloca_h+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6017 char *p = (char *) alloca (2 * sizeof (int));
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 ac_cv_working_alloca_h=yes
6026 ac_cv_working_alloca_h=no
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6032 $as_echo "$ac_cv_working_alloca_h" >&6; }
6033 if test $ac_cv_working_alloca_h = yes; then
6035 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6040 $as_echo_n "checking for alloca... " >&6; }
6041 if test "${ac_cv_func_alloca_works+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 # define alloca __builtin_alloca
6050 # include <malloc.h>
6051 # define alloca _alloca
6053 # ifdef HAVE_ALLOCA_H
6054 # include <alloca.h>
6059 # ifndef alloca /* predefined by HP cc +Olibcalls */
6070 char *p = (char *) alloca (1);
6076 if ac_fn_c_try_link "$LINENO"; then :
6077 ac_cv_func_alloca_works=yes
6079 ac_cv_func_alloca_works=no
6081 rm -f core conftest.err conftest.$ac_objext \
6082 conftest$ac_exeext conftest.$ac_ext
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6085 $as_echo "$ac_cv_func_alloca_works" >&6; }
6087 if test $ac_cv_func_alloca_works = yes; then
6089 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6093 # that cause trouble. Some versions do not even contain alloca or
6094 # contain a buggy version. If you still want to use their alloca,
6095 # use ar to extract alloca.o from them instead of compiling alloca.c.
6101 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6103 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6107 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6108 if test "${ac_cv_os_cray+set}" = set; then :
6109 $as_echo_n "(cached) " >&6
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #if defined CRAY && ! defined CRAY2
6120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121 $EGREP "webecray" >/dev/null 2>&1; then :
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6130 $as_echo "$ac_cv_os_cray" >&6; }
6131 if test $ac_cv_os_cray = yes; then
6132 for ac_func in _getb67 GETB67 getb67; do
6133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6135 eval as_val=\$$as_ac_var
6136 if test "x$as_val" = x""yes; then :
6138 cat >>confdefs.h <<_ACEOF
6139 #define CRAY_STACKSEG_END $ac_func
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6149 $as_echo_n "checking stack direction for C alloca... " >&6; }
6150 if test "${ac_cv_c_stack_direction+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6153 if test "$cross_compiling" = yes; then :
6154 ac_cv_c_stack_direction=0
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 $ac_includes_default
6160 find_stack_direction (int *addr, int depth)
6165 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6166 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6171 main (int argc, char **argv)
6173 return find_stack_direction (0, argc + !argv + 20) < 0;
6176 if ac_fn_c_try_run "$LINENO"; then :
6177 ac_cv_c_stack_direction=1
6179 ac_cv_c_stack_direction=-1
6181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6182 conftest.$ac_objext conftest.beam conftest.$ac_ext
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6187 $as_echo "$ac_cv_c_stack_direction" >&6; }
6188 cat >>confdefs.h <<_ACEOF
6189 #define STACK_DIRECTION $ac_cv_c_stack_direction
6198 GNULIB_CALLOC_POSIX=0;
6199 GNULIB_CANONICALIZE_FILE_NAME=0;
6200 GNULIB_GETLOADAVG=0;
6203 GNULIB_MALLOC_POSIX=0;
6210 GNULIB_POSIX_OPENPT=0;
6217 GNULIB_REALLOC_POSIX=0;
6220 GNULIB_SECURE_GETENV=0;
6225 GNULIB_SYSTEM_POSIX=0;
6231 HAVE_CANONICALIZE_FILE_NAME=1;
6232 HAVE_DECL_GETLOADAVG=1;
6240 HAVE_POSIX_OPENPT=1;
6249 HAVE_SECURE_GETENV=1;
6255 HAVE_STRUCT_RANDOM_DATA=1;
6256 HAVE_SYS_LOADAVG_H=0;
6258 HAVE_DECL_UNSETENV=1;
6260 REPLACE_CANONICALIZE_FILE_NAME=0;
6265 REPLACE_PTSNAME_R=0;
6279 for ac_func in $ac_func_list
6281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6283 eval as_val=\$$as_ac_var
6284 if test "x$as_val" = x""yes; then :
6285 cat >>confdefs.h <<_ACEOF
6286 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6301 $as_echo_n "checking whether // is distinct from /... " >&6; }
6302 if test "${gl_cv_double_slash_root+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6305 if test x"$cross_compiling" = xyes ; then
6306 # When cross-compiling, there is no way to tell whether // is special
6307 # short of a list of hosts. However, the only known hosts to date
6308 # that have a distinct // are Apollo DomainOS (too old to port to),
6309 # Cygwin, and z/OS. If anyone knows of another system for which // has
6310 # special semantics and is distinct from /, please report it to
6311 # <bug-gnulib@gnu.org>.
6313 *-cygwin | i370-ibm-openedition)
6314 gl_cv_double_slash_root=yes ;;
6316 # Be optimistic and assume that / and // are the same when we
6318 gl_cv_double_slash_root='unknown, assuming no' ;;
6321 set x `ls -di / // 2>/dev
/null
`
6322 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6323 gl_cv_double_slash_root=no
6325 gl_cv_double_slash_root=yes
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6330 $as_echo "$gl_cv_double_slash_root" >&6; }
6331 if test "$gl_cv_double_slash_root" = yes; then
6333 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6342 $as_echo_n "checking whether realpath works... " >&6; }
6343 if test "${gl_cv_func_realpath_works+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6349 if test "$cross_compiling" = yes; then :
6351 # Guess yes on glibc systems.
6352 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6353 # If we don't know, assume the worst.
6354 *) gl_cv_func_realpath_works="guessing no" ;;
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6364 #if defined __MACH__ && defined __APPLE__
6365 /* Avoid a crash on Mac OS X. */
6366 #include <mach/mach.h>
6367 #include <mach/mach_error.h>
6368 #include <mach/thread_status.h>
6369 #include <mach/exception.h>
6370 #include <mach/task.h>
6371 #include <pthread.h>
6372 /* The exception port on which our thread listens. */
6373 static mach_port_t our_exception_port;
6374 /* The main function of the thread listening for exceptions of type
6377 mach_exception_thread (void *arg)
6379 /* Buffer for a message to be received. */
6381 mach_msg_header_t head;
6382 mach_msg_body_t msgh_body;
6385 mach_msg_return_t retval;
6386 /* Wait for a message on the exception port. */
6387 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6388 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6389 if (retval != MACH_MSG_SUCCESS)
6396 mach_port_t self = mach_task_self ();
6397 /* Allocate a port on which the thread shall listen for exceptions. */
6398 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6400 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6401 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6402 MACH_MSG_TYPE_MAKE_SEND)
6404 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6406 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6407 /* Create the thread listening on the exception port. */
6408 pthread_attr_t attr;
6410 if (pthread_attr_init (&attr) == 0
6411 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6412 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6413 pthread_attr_destroy (&attr);
6414 /* Replace the exception port info for these exceptions with our own.
6415 Note that we replace the exception port for the entire task, not only
6416 for a particular thread. This has the effect that when our exception
6417 port gets the message, the thread specific exception port has already
6418 been asked, and we don't need to bother about it.
6419 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6420 task_set_exception_ports (self, mask, our_exception_port,
6421 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6426 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6427 /* Avoid a crash on native Windows. */
6428 #define WIN32_LEAN_AND_MEAN
6429 #include <windows.h>
6430 #include <winerror.h>
6432 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6434 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6436 case EXCEPTION_ACCESS_VIOLATION:
6437 case EXCEPTION_IN_PAGE_ERROR:
6438 case EXCEPTION_STACK_OVERFLOW:
6439 case EXCEPTION_GUARD_PAGE:
6440 case EXCEPTION_PRIV_INSTRUCTION:
6441 case EXCEPTION_ILLEGAL_INSTRUCTION:
6442 case EXCEPTION_DATATYPE_MISALIGNMENT:
6443 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6444 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6447 return EXCEPTION_CONTINUE_SEARCH;
6452 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6455 /* Avoid a crash on POSIX systems. */
6458 /* A POSIX signal handler. */
6460 exception_handler (int sig)
6468 signal (SIGSEGV, exception_handler);
6471 signal (SIGBUS, exception_handler);
6485 char *name = realpath ("conftest.a", NULL);
6486 if (!(name && *name == '/'))
6491 char *name = realpath ("conftest.b/../conftest.a", NULL);
6497 char *name = realpath ("conftest.a/", NULL);
6503 char *name1 = realpath (".", NULL);
6504 char *name2 = realpath ("conftest.d//./..", NULL);
6505 if (! name1 || ! name2 || strcmp (name1, name2))
6517 if ac_fn_c_try_run "$LINENO"; then :
6518 gl_cv_func_realpath_works=yes
6520 gl_cv_func_realpath_works=no
6522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6523 conftest.$ac_objext conftest.beam conftest.$ac_ext
6526 rm -rf conftest.a conftest.d
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6530 $as_echo "$gl_cv_func_realpath_works" >&6; }
6531 case "$gl_cv_func_realpath_works" in
6534 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6542 for ac_header in $ac_header_list
6544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6547 eval as_val=\$$as_ac_Header
6548 if test "x$as_val" = x""yes; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6574 GNULIB_EUIDACCESS=0;
6582 GNULIB_GETDOMAINNAME=0;
6583 GNULIB_GETDTABLESIZE=0;
6585 GNULIB_GETHOSTNAME=0;
6587 GNULIB_GETLOGIN_R=0;
6588 GNULIB_GETPAGESIZE=0;
6589 GNULIB_GETUSERSHELL=0;
6590 GNULIB_GROUP_MEMBER=0;
6602 GNULIB_READLINKAT=0;
6604 GNULIB_SETHOSTNAME=0;
6609 GNULIB_UNISTD_H_NONBLOCKING=0;
6610 GNULIB_UNISTD_H_SIGPIPE=0;
6625 HAVE_GETDTABLESIZE=1;
6630 HAVE_GROUP_MEMBER=1;
6646 HAVE_DECL_ENVIRON=1;
6648 HAVE_DECL_FDATASYNC=1;
6649 HAVE_DECL_GETDOMAINNAME=1;
6650 HAVE_DECL_GETLOGIN_R=1;
6651 HAVE_DECL_GETPAGESIZE=1;
6652 HAVE_DECL_GETUSERSHELL=1;
6653 HAVE_DECL_SETHOSTNAME=1;
6654 HAVE_DECL_TTYNAME_R=1;
6662 REPLACE_FTRUNCATE=0;
6664 REPLACE_GETDOMAINNAME=0;
6665 REPLACE_GETDTABLESIZE=0;
6666 REPLACE_GETLOGIN_R=0;
6667 REPLACE_GETGROUPS=0;
6668 REPLACE_GETPAGESIZE=0;
6678 REPLACE_READLINKAT=0;
6682 REPLACE_SYMLINKAT=0;
6683 REPLACE_TTYNAME_R=0;
6688 UNISTD_H_HAVE_WINSOCK2_H=0;
6689 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6706 HAVE_DECL_FDOPENDIR=1;
6713 REPLACE_FDOPENDIR=0;
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6718 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6719 if test "${gl_cv_have_include_next+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6722 rm -rf conftestd1a conftestd1b conftestd2
6723 mkdir conftestd1a conftestd1b conftestd2
6724 cat <<EOF > conftestd1a/conftest.h
6725 #define DEFINED_IN_CONFTESTD1
6726 #include_next <conftest.h>
6727 #ifdef DEFINED_IN_CONFTESTD2
6730 #error "include_next doesn't work"
6733 cat <<EOF > conftestd1b/conftest.h
6734 #define DEFINED_IN_CONFTESTD1
6736 #include_next <conftest.h>
6737 #ifdef DEFINED_IN_CONFTESTD2
6740 #error "include_next doesn't work"
6743 cat <<EOF > conftestd2/conftest.h
6744 #ifndef DEFINED_IN_CONFTESTD1
6745 #error "include_next test doesn't work"
6747 #define DEFINED_IN_CONFTESTD2
6749 gl_save_CPPFLAGS="$CPPFLAGS"
6750 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <conftest.h>
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 gl_cv_have_include_next=yes
6758 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <conftest.h>
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 gl_cv_have_include_next=buggy
6766 gl_cv_have_include_next=no
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 CPPFLAGS="$gl_save_CPPFLAGS"
6773 rm -rf conftestd1a conftestd1b conftestd2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6777 $as_echo "$gl_cv_have_include_next" >&6; }
6778 PRAGMA_SYSTEM_HEADER=
6779 if test $gl_cv_have_include_next = yes; then
6780 INCLUDE_NEXT=include_next
6781 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6782 if test -n "$GCC"; then
6783 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6786 if test $gl_cv_have_include_next = buggy; then
6787 INCLUDE_NEXT=include
6788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6790 INCLUDE_NEXT=include
6791 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6798 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6799 if test "${gl_cv_pragma_columns+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "choke me" >/dev/null 2>&1; then :
6812 gl_cv_pragma_columns=yes
6814 gl_cv_pragma_columns=no
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6821 $as_echo "$gl_cv_pragma_columns" >&6; }
6822 if test $gl_cv_pragma_columns = yes; then
6823 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
6841 $as_echo_n "checking if environ is properly declared... " >&6; }
6842 if test "${gt_cv_var_environ_declaration+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6851 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
6854 extern struct { int foo; } environ;
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 gt_cv_var_environ_declaration=no
6866 gt_cv_var_environ_declaration=yes
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
6872 $as_echo "$gt_cv_var_environ_declaration" >&6; }
6873 if test $gt_cv_var_environ_declaration = yes; then
6875 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
6880 if test $gt_cv_var_environ_declaration != yes; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6887 $as_echo_n "checking for complete errno.h... " >&6; }
6888 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6896 #if !defined ETXTBSY
6905 #if !defined ENOLINK
6911 #if !defined EMULTIHOP
6914 #if !defined EBADMSG
6917 #if !defined EOVERFLOW
6920 #if !defined ENOTSUP
6923 #if !defined ENETRESET
6926 #if !defined ECONNABORTED
6935 #if !defined ECANCELED
6938 #if !defined EOWNERDEAD
6941 #if !defined ENOTRECOVERABLE
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 $EGREP "booboo" >/dev/null 2>&1; then :
6951 gl_cv_header_errno_h_complete=no
6953 gl_cv_header_errno_h_complete=yes
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6960 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6961 if test $gl_cv_header_errno_h_complete = yes; then
6972 if test $gl_cv_have_include_next = yes; then
6973 gl_cv_next_errno_h='<'errno.h'>'
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6976 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6977 if test "${gl_cv_next_errno_h+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6988 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6989 *) gl_absname_cpp="$ac_cpp" ;;
6994 gl_dirsep_regex='[/\\]'
6997 gl_dirsep_regex='\/'
7000 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7001 gl_header_literal_regex=`echo 'errno.h' \
7002 |
sed -e "$gl_make_literal_regex_sed"`
7003 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7004 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7010 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7011 sed -n "$gl_absolute_header_sed"`
7013 gl_header=$gl_cv_absolute_errno_h
7014 gl_cv_next_errno_h='"'$gl_header'"'
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7019 $as_echo "$gl_cv_next_errno_h" >&6; }
7021 NEXT_ERRNO_H=$gl_cv_next_errno_h
7023 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7025 gl_next_as_first_directive='<'errno.h'>'
7027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7028 gl_next_as_first_directive=$gl_cv_next_errno_h
7030 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7038 if test -n "$ERRNO_H"; then
7039 GL_GENERATE_ERRNO_H_TRUE=
7040 GL_GENERATE_ERRNO_H_FALSE='#'
7042 GL_GENERATE_ERRNO_H_TRUE='#'
7043 GL_GENERATE_ERRNO_H_FALSE=
7047 if test -n "$ERRNO_H"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7049 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7050 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 $EGREP "yes" >/dev/null 2>&1; then :
7065 gl_cv_header_errno_h_EMULTIHOP=yes
7067 gl_cv_header_errno_h_EMULTIHOP=no
7071 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7075 #define _XOPEN_SOURCE_EXTENDED 1
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "yes" >/dev/null 2>&1; then :
7084 gl_cv_header_errno_h_EMULTIHOP=hidden
7088 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7089 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7090 #define _XOPEN_SOURCE_EXTENDED 1
7092 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7104 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7105 case $gl_cv_header_errno_h_EMULTIHOP in
7107 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7110 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7118 if test -n "$ERRNO_H"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7120 $as_echo_n "checking for ENOLINK value... " >&6; }
7121 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135 $EGREP "yes" >/dev/null 2>&1; then :
7136 gl_cv_header_errno_h_ENOLINK=yes
7138 gl_cv_header_errno_h_ENOLINK=no
7142 if test $gl_cv_header_errno_h_ENOLINK = no; then
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7146 #define _XOPEN_SOURCE_EXTENDED 1
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 $EGREP "yes" >/dev/null 2>&1; then :
7155 gl_cv_header_errno_h_ENOLINK=hidden
7159 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7160 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7161 #define _XOPEN_SOURCE_EXTENDED 1
7163 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7175 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7176 case $gl_cv_header_errno_h_ENOLINK in
7178 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7181 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7189 if test -n "$ERRNO_H"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7191 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7192 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 $EGREP "yes" >/dev/null 2>&1; then :
7207 gl_cv_header_errno_h_EOVERFLOW=yes
7209 gl_cv_header_errno_h_EOVERFLOW=no
7213 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7217 #define _XOPEN_SOURCE_EXTENDED 1
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "yes" >/dev/null 2>&1; then :
7226 gl_cv_header_errno_h_EOVERFLOW=hidden
7230 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7231 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7232 #define _XOPEN_SOURCE_EXTENDED 1
7234 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7246 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7247 case $gl_cv_header_errno_h_EOVERFLOW in
7249 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7252 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7266 $as_echo_n "checking for mbstate_t... " >&6; }
7267 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 $ac_includes_default
7273 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7275 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7276 included before <wchar.h>. */
7284 mbstate_t x; return sizeof x;
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 ac_cv_type_mbstate_t=yes
7292 ac_cv_type_mbstate_t=no
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7297 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7298 if test $ac_cv_type_mbstate_t = yes; then
7300 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7304 $as_echo "#define mbstate_t int" >>confdefs.h
7402 GNULIB_REMAINDERF=0;
7403 GNULIB_REMAINDERL=0;
7489 HAVE_DECL_COPYSIGNF=1;
7506 HAVE_DECL_REMAINDER=1;
7507 HAVE_DECL_REMAINDERL=1;
7569 REPLACE_REMAINDER=0;
7570 REPLACE_REMAINDERF=0;
7571 REPLACE_REMAINDERL=0;
7576 REPLACE_SIGNBIT_USING_GCC=0;
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7584 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7585 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7596 int e; return frexp (x, &e) > 0;
7601 if ac_fn_c_try_link "$LINENO"; then :
7602 gl_cv_func_frexp_no_libm=yes
7604 gl_cv_func_frexp_no_libm=no
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7611 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7613 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7614 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7620 cat >>confdefs.h <<_ACEOF
7621 #define HAVE_DECL_ALARM $ac_have_decl
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7626 $as_echo_n "checking whether long double and double are the same... " >&6; }
7627 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7636 typedef int check[sizeof (long double) == sizeof (double)
7637 && LDBL_MANT_DIG == DBL_MANT_DIG
7638 && LDBL_MAX_EXP == DBL_MAX_EXP
7639 && LDBL_MIN_EXP == DBL_MIN_EXP
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 gl_cv_long_double_equals_double=yes
7649 gl_cv_long_double_equals_double=no
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7655 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7656 if test $gl_cv_long_double_equals_double = yes; then
7658 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7660 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7662 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7667 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7668 if test "${ac_cv_c_restrict+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7672 # The order here caters to the fact that C++ does not require restrict.
7673 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 typedef int *int_ptr;
7677 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7678 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7679 int bar (int ip[$ac_kw]) { return ip[0]; }
7687 return foo (t) + bar (t);
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 ac_cv_c_restrict=$ac_kw
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 test "$ac_cv_c_restrict" != no && break
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7702 $as_echo "$ac_cv_c_restrict" >&6; }
7704 case $ac_cv_c_restrict in
7706 no) $as_echo "#define restrict /**/" >>confdefs.h
7708 *) cat >>confdefs.h <<_ACEOF
7709 #define restrict $ac_cv_c_restrict
7715 GNULIB_GETTIMEOFDAY=0;
7716 HAVE_GETTIMEOFDAY=1;
7717 HAVE_STRUCT_TIMEVAL=1;
7720 REPLACE_GETTIMEOFDAY=0;
7721 REPLACE_STRUCT_TIMEVAL=0;
7740 if test $gl_cv_have_include_next = yes; then
7741 gl_cv_next_sys_time_h='<'sys/time.h'>'
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7744 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7745 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7749 if test $ac_cv_header_sys_time_h = yes; then
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <sys/time.h>
7759 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7760 *) gl_absname_cpp="$ac_cpp" ;;
7765 gl_dirsep_regex='[/\\]'
7768 gl_dirsep_regex='\/'
7771 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7772 gl_header_literal_regex=`echo 'sys/time.h' \
7773 |
sed -e "$gl_make_literal_regex_sed"`
7774 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7775 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7781 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7782 sed -n "$gl_absolute_header_sed"`
7784 gl_header=$gl_cv_absolute_sys_time_h
7785 gl_cv_next_sys_time_h='"'$gl_header'"'
7787 gl_cv_next_sys_time_h='<'sys/time.h'>'
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7793 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7795 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7797 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7799 gl_next_as_first_directive='<'sys/time.h'>'
7801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7802 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7804 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7810 if test $ac_cv_header_sys_time_h != yes; then
7818 if test $ac_cv_header_sys_socket_h != yes; then
7819 for ac_header in winsock2.h
7821 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7822 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7823 cat >>confdefs.h <<_ACEOF
7824 #define HAVE_WINSOCK2_H 1
7832 if test "$ac_cv_header_winsock2_h" = yes; then
7834 UNISTD_H_HAVE_WINSOCK2_H=1
7835 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7842 $as_echo_n "checking for struct timeval... " >&6; }
7843 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7849 #include <sys/time.h>
7853 # include <winsock2.h>
7859 static struct timeval x; x.tv_sec = x.tv_usec;
7864 if ac_fn_c_try_compile "$LINENO"; then :
7865 gl_cv_sys_struct_timeval=yes
7867 gl_cv_sys_struct_timeval=no
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7873 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7874 if test $gl_cv_sys_struct_timeval != yes; then
7875 HAVE_STRUCT_TIMEVAL=0
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7878 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7879 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7885 #include <sys/time.h>
7889 # include <winsock2.h>
7895 static struct timeval x;
7896 typedef int verify_tv_sec_type[
7897 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 gl_cv_sys_struct_timeval_tv_sec=yes
7907 gl_cv_sys_struct_timeval_tv_sec=no
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7913 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7914 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7915 REPLACE_STRUCT_TIMEVAL=1
7920 for gl_func in gettimeofday; do
7921 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7923 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7924 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7925 $as_echo_n "(cached) " >&6
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7931 # include <sys/time.h>
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 eval "$as_gl_Symbol=yes"
7947 eval "$as_gl_Symbol=no"
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 eval ac_res=\$$as_gl_Symbol
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7953 $as_echo "$ac_res" >&6; }
7954 eval as_val=\$$as_gl_Symbol
7955 if test "x$as_val" = x""yes; then :
7956 cat >>confdefs.h <<_ACEOF
7957 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7960 eval ac_cv_have_decl_$gl_func=yes
7982 if test $gl_cv_have_include_next = yes; then
7983 gl_cv_next_limits_h='<'limits.h'>'
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
7986 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
7987 if test "${gl_cv_next_limits_h+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7991 if test $ac_cv_header_limits_h = yes; then
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
8001 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8002 *) gl_absname_cpp="$ac_cpp" ;;
8007 gl_dirsep_regex='[/\\]'
8010 gl_dirsep_regex='\/'
8013 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8014 gl_header_literal_regex=`echo 'limits.h' \
8015 |
sed -e "$gl_make_literal_regex_sed"`
8016 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8017 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8023 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8024 sed -n "$gl_absolute_header_sed"`
8026 gl_header=$gl_cv_absolute_limits_h
8027 gl_cv_next_limits_h='"'$gl_header'"'
8029 gl_cv_next_limits_h='<'limits.h'>'
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8035 $as_echo "$gl_cv_next_limits_h" >&6; }
8037 NEXT_LIMITS_H=$gl_cv_next_limits_h
8039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8041 gl_next_as_first_directive='<'limits.h'>'
8043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8044 gl_next_as_first_directive=$gl_cv_next_limits_h
8046 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
8053 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
8054 if test "${gl_cv_header_limits_width+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8060 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8063 int ullw = ULLONG_WIDTH;
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073 gl_cv_header_limits_width=yes
8075 gl_cv_header_limits_width=no
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8080 $as_echo "$gl_cv_header_limits_width" >&6; }
8081 if test "$gl_cv_header_limits_width" = yes; then
8087 if test -n "$LIMITS_H"; then
8088 GL_GENERATE_LIMITS_H_TRUE=
8089 GL_GENERATE_LIMITS_H_FALSE='#'
8091 GL_GENERATE_LIMITS_H_TRUE='#'
8092 GL_GENERATE_LIMITS_H_FALSE=
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8098 $as_echo_n "checking for unsigned long long int... " >&6; }
8099 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8102 ac_cv_type_unsigned_long_long_int=yes
8103 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8107 /* For now, do not test the preprocessor; as of 2007 there are too many
8108 implementations with broken preprocessors. Perhaps this can
8109 be revisited in 2012. In the meantime, code should not expect
8110 #if to work with literals wider than 32 bits. */
8111 /* Test literals. */
8112 long long int ll = 9223372036854775807ll;
8113 long long int nll = -9223372036854775807LL;
8114 unsigned long long int ull = 18446744073709551615ULL;
8115 /* Test constant expressions. */
8116 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8118 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8124 /* Test availability of runtime routines for shift and division. */
8125 long long int llmax = 9223372036854775807ll;
8126 unsigned long long int ullmax = 18446744073709551615ull;
8127 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8128 | (llmax / ll) | (llmax % ll)
8129 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8130 | (ullmax / ull) | (ullmax % ull));
8136 if ac_fn_c_try_link "$LINENO"; then :
8139 ac_cv_type_unsigned_long_long_int=no
8141 rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8146 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8147 if test $ac_cv_type_unsigned_long_long_int = yes; then
8149 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8156 $as_echo_n "checking for long long int... " >&6; }
8157 if test "${ac_cv_type_long_long_int+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 ac_cv_type_long_long_int=yes
8161 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8162 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
8163 if test $ac_cv_type_long_long_int = yes; then
8164 if test "$cross_compiling" = yes; then :
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8172 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8173 # define LLONG_MAX (HALF - 1 + HALF)
8178 long long int n = 1;
8182 long long int m = n << i;
8185 if (LLONG_MAX / 2 < m)
8193 if ac_fn_c_try_run "$LINENO"; then :
8196 ac_cv_type_long_long_int=no
8198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8199 conftest.$ac_objext conftest.beam conftest.$ac_ext
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8206 $as_echo "$ac_cv_type_long_long_int" >&6; }
8207 if test $ac_cv_type_long_long_int = yes; then
8209 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8218 gl_cv_c_multiarch=no
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #ifndef __APPLE_CC__
8222 not a universal capable compiler
8227 if ac_fn_c_try_compile "$LINENO"; then :
8231 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8232 if test -n "$prev"; then
8234 i?86 | x86_64 | ppc | ppc64)
8235 if test -z "$arch" || test "$arch" = "$word"; then
8238 gl_cv_c_multiarch=yes
8244 if test "x$word" = "x-arch"; then
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 if test $gl_cv_c_multiarch = yes; then
8253 APPLE_UNIVERSAL_BUILD=1
8255 APPLE_UNIVERSAL_BUILD=0
8264 if test $ac_cv_type_long_long_int = yes; then
8265 HAVE_LONG_LONG_INT=1
8267 HAVE_LONG_LONG_INT=0
8271 if test $ac_cv_type_unsigned_long_long_int = yes; then
8272 HAVE_UNSIGNED_LONG_LONG_INT=1
8274 HAVE_UNSIGNED_LONG_LONG_INT=0
8279 if test $ac_cv_header_wchar_h = yes; then
8286 if test $ac_cv_header_inttypes_h = yes; then
8293 if test $ac_cv_header_sys_types_h = yes; then
8309 if test $gl_cv_have_include_next = yes; then
8310 gl_cv_next_stdint_h='<'stdint.h'>'
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8313 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8314 if test "${gl_cv_next_stdint_h+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8318 if test $ac_cv_header_stdint_h = yes; then
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8328 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8329 *) gl_absname_cpp="$ac_cpp" ;;
8334 gl_dirsep_regex='[/\\]'
8337 gl_dirsep_regex='\/'
8340 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8341 gl_header_literal_regex=`echo 'stdint.h' \
8342 |
sed -e "$gl_make_literal_regex_sed"`
8343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8350 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8351 sed -n "$gl_absolute_header_sed"`
8353 gl_header=$gl_cv_absolute_stdint_h
8354 gl_cv_next_stdint_h='"'$gl_header'"'
8356 gl_cv_next_stdint_h='<'stdint.h'>'
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8362 $as_echo "$gl_cv_next_stdint_h" >&6; }
8364 NEXT_STDINT_H=$gl_cv_next_stdint_h
8366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8368 gl_next_as_first_directive='<'stdint.h'>'
8370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8371 gl_next_as_first_directive=$gl_cv_next_stdint_h
8373 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8378 if test $ac_cv_header_stdint_h = yes; then
8385 if test $ac_cv_header_stdint_h = yes; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8387 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8388 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8391 gl_cv_header_working_stdint_h=no
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8396 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8397 #define __STDC_CONSTANT_MACROS 1
8398 #define __STDC_LIMIT_MACROS 1
8400 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8401 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8402 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8406 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8407 included before <wchar.h>. */
8418 int8_t a1 = INT8_MAX;
8419 int8_t a1min = INT8_MIN;
8422 int16_t a2 = INT16_MAX;
8423 int16_t a2min = INT16_MIN;
8426 int32_t a3 = INT32_MAX;
8427 int32_t a3min = INT32_MIN;
8430 int64_t a4 = INT64_MAX;
8431 int64_t a4min = INT64_MIN;
8434 uint8_t b1 = UINT8_MAX;
8436 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8439 uint16_t b2 = UINT16_MAX;
8442 uint32_t b3 = UINT32_MAX;
8445 uint64_t b4 = UINT64_MAX;
8447 int_least8_t c1 = INT8_C (0x7f);
8448 int_least8_t c1max = INT_LEAST8_MAX;
8449 int_least8_t c1min = INT_LEAST8_MIN;
8450 int_least16_t c2 = INT16_C (0x7fff);
8451 int_least16_t c2max = INT_LEAST16_MAX;
8452 int_least16_t c2min = INT_LEAST16_MIN;
8453 int_least32_t c3 = INT32_C (0x7fffffff);
8454 int_least32_t c3max = INT_LEAST32_MAX;
8455 int_least32_t c3min = INT_LEAST32_MIN;
8456 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8457 int_least64_t c4max = INT_LEAST64_MAX;
8458 int_least64_t c4min = INT_LEAST64_MIN;
8459 uint_least8_t d1 = UINT8_C (0xff);
8460 uint_least8_t d1max = UINT_LEAST8_MAX;
8461 uint_least16_t d2 = UINT16_C (0xffff);
8462 uint_least16_t d2max = UINT_LEAST16_MAX;
8463 uint_least32_t d3 = UINT32_C (0xffffffff);
8464 uint_least32_t d3max = UINT_LEAST32_MAX;
8465 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8466 uint_least64_t d4max = UINT_LEAST64_MAX;
8467 int_fast8_t e1 = INT_FAST8_MAX;
8468 int_fast8_t e1min = INT_FAST8_MIN;
8469 int_fast16_t e2 = INT_FAST16_MAX;
8470 int_fast16_t e2min = INT_FAST16_MIN;
8471 int_fast32_t e3 = INT_FAST32_MAX;
8472 int_fast32_t e3min = INT_FAST32_MIN;
8473 int_fast64_t e4 = INT_FAST64_MAX;
8474 int_fast64_t e4min = INT_FAST64_MIN;
8475 uint_fast8_t f1 = UINT_FAST8_MAX;
8476 uint_fast16_t f2 = UINT_FAST16_MAX;
8477 uint_fast32_t f3 = UINT_FAST32_MAX;
8478 uint_fast64_t f4 = UINT_FAST64_MAX;
8480 intptr_t g = INTPTR_MAX;
8481 intptr_t gmin = INTPTR_MIN;
8484 uintptr_t h = UINTPTR_MAX;
8486 intmax_t i = INTMAX_MAX;
8487 uintmax_t j = UINTMAX_MAX;
8489 /* Check that SIZE_MAX has the correct type, if possible. */
8490 #if 201112 <= __STDC_VERSION__
8491 int k = _Generic (SIZE_MAX, size_t: 0);
8492 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
8493 || (0x5110 <= __SUNPRO_C && !__STDC__))
8495 extern __typeof__ (SIZE_MAX) k;
8498 #include <limits.h> /* for CHAR_BIT */
8499 #define TYPE_MINIMUM(t) \
8500 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8501 #define TYPE_MAXIMUM(t) \
8502 ((t) ((t) 0 < (t) -1 \
8504 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8507 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8508 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8510 /* Detect bug in FreeBSD 6.0 / ia64. */
8511 int check_SIG_ATOMIC:
8512 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8513 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8515 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8517 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8518 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8520 /* Detect bug in mingw. */
8522 WINT_MIN == TYPE_MINIMUM (wint_t)
8523 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8526 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8528 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8530 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8532 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8534 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8537 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8540 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8543 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8545 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8546 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8547 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8548 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8549 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8550 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8551 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8552 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8553 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8554 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8555 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567 if test "$cross_compiling" = yes; then :
8568 gl_cv_header_working_stdint_h=yes
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8575 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8576 #define __STDC_CONSTANT_MACROS 1
8577 #define __STDC_LIMIT_MACROS 1
8581 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8582 included before <wchar.h>. */
8594 #define MVAL(macro) MVAL1(macro)
8595 #define MVAL1(expression) #expression
8596 static const char *macro_values[] =
8630 for (mv = macro_values; *mv != NULL; mv++)
8632 const char *value = *mv;
8633 /* Test whether it looks like a cast expression. */
8634 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8635 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8636 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8637 || strncmp (value, "((int)"/*)*/, 6) == 0
8638 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8639 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8640 return mv - macro_values + 1;
8648 if ac_fn_c_try_run "$LINENO"; then :
8649 gl_cv_header_working_stdint_h=yes
8651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8661 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8665 HAVE_SYS_BITYPES_H=0
8666 HAVE_SYS_INTTYPES_H=0
8668 if test "$gl_cv_header_working_stdint_h" = yes; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
8671 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
8672 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8675 gl_cv_header_stdint_predates_cxx11_h=yes
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8680 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8685 included before <wchar.h>. */
8695 intmax_t im = INTMAX_MAX;
8696 int32_t i32 = INT32_C (0x7fffffff);
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 gl_cv_header_stdint_predates_cxx11_h=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
8712 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
8714 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
8716 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
8719 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
8723 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
8724 if test "${gl_cv_header_stdint_width+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8727 gl_cv_header_stdint_width=no
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8731 /* Work if build is not clean. */
8732 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
8733 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8734 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8738 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8739 included before <wchar.h>. */
8748 int iw = UINTMAX_WIDTH;
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 gl_cv_header_stdint_width=yes
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
8764 $as_echo "$gl_cv_header_stdint_width" >&6; }
8765 if test "$gl_cv_header_stdint_width" = yes; then
8769 for ac_header in sys/inttypes.h sys/bitypes.h
8771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8772 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8773 eval as_val=\$$as_ac_Header
8774 if test "x$as_val" = x""yes; then :
8775 cat >>confdefs.h <<_ACEOF
8776 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8783 if test $ac_cv_header_sys_inttypes_h = yes; then
8784 HAVE_SYS_INTTYPES_H=1
8786 if test $ac_cv_header_sys_bitypes_h = yes; then
8787 HAVE_SYS_BITYPES_H=1
8791 if test $APPLE_UNIVERSAL_BUILD = 0; then
8794 for gltype in ptrdiff_t size_t ; do
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8796 $as_echo_n "checking for bit size of $gltype... " >&6; }
8797 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8798 $as_echo_n "(cached) " >&6
8800 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8801 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8802 included before <wchar.h>. */
8811 #include <limits.h>"; then :
8817 eval gl_cv_bitsizeof_${gltype}=\$result
8820 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8822 $as_echo "$ac_res" >&6; }
8823 eval result=\$gl_cv_bitsizeof_${gltype}
8824 if test $result = unknown; then
8827 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8828 cat >>confdefs.h <<_ACEOF
8829 #define BITSIZEOF_${GLTYPE} $result
8832 eval BITSIZEOF_${GLTYPE}=\$result
8839 for gltype in sig_atomic_t wchar_t wint_t ; do
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8841 $as_echo_n "checking for bit size of $gltype... " >&6; }
8842 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8843 $as_echo_n "(cached) " >&6
8845 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8846 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8847 included before <wchar.h>. */
8856 #include <limits.h>"; then :
8862 eval gl_cv_bitsizeof_${gltype}=\$result
8865 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8867 $as_echo "$ac_res" >&6; }
8868 eval result=\$gl_cv_bitsizeof_${gltype}
8869 if test $result = unknown; then
8872 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8873 cat >>confdefs.h <<_ACEOF
8874 #define BITSIZEOF_${GLTYPE} $result
8877 eval BITSIZEOF_${GLTYPE}=\$result
8883 for gltype in sig_atomic_t wchar_t wint_t ; do
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8885 $as_echo_n "checking whether $gltype is signed... " >&6; }
8886 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8887 $as_echo_n "(cached) " >&6
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8892 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8893 included before <wchar.h>. */
8902 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8911 if ac_fn_c_try_compile "$LINENO"; then :
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 eval gl_cv_type_${gltype}_signed=\$result
8920 eval ac_res=\$gl_cv_type_${gltype}_signed
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8922 $as_echo "$ac_res" >&6; }
8923 eval result=\$gl_cv_type_${gltype}_signed
8924 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8925 if test "$result" = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_SIGNED_${GLTYPE} 1
8930 eval HAVE_SIGNED_${GLTYPE}=1
8932 eval HAVE_SIGNED_${GLTYPE}=0
8937 gl_cv_type_ptrdiff_t_signed=yes
8938 gl_cv_type_size_t_signed=no
8939 if test $APPLE_UNIVERSAL_BUILD = 0; then
8942 for gltype in ptrdiff_t size_t ; do
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8944 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8945 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8946 $as_echo_n "(cached) " >&6
8948 eval gl_cv_type_${gltype}_suffix=no
8949 eval result=\$gl_cv_type_${gltype}_signed
8950 if test "$result" = yes; then
8955 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8958 l) gltype1='long int';;
8959 ll) gltype1='long long int';;
8960 i64) gltype1='__int64';;
8961 u) gltype1='unsigned int';;
8962 ul) gltype1='unsigned long int';;
8963 ull) gltype1='unsigned long long int';;
8964 ui64)gltype1='unsigned __int64';;
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8969 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8970 included before <wchar.h>. */
8980 extern $gltype1 foo;
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990 eval gl_cv_type_${gltype}_suffix=\$glsuf
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 eval result=\$gl_cv_type_${gltype}_suffix
8994 test "$result" != no && break
8997 eval ac_res=\$gl_cv_type_${gltype}_suffix
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8999 $as_echo "$ac_res" >&6; }
9000 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9001 eval result=\$gl_cv_type_${gltype}_suffix
9002 test "$result" = no && result=
9003 eval ${GLTYPE}_SUFFIX=\$result
9004 cat >>confdefs.h <<_ACEOF
9005 #define ${GLTYPE}_SUFFIX $result
9014 for gltype in sig_atomic_t wchar_t wint_t ; do
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9016 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9017 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
9018 $as_echo_n "(cached) " >&6
9020 eval gl_cv_type_${gltype}_suffix=no
9021 eval result=\$gl_cv_type_${gltype}_signed
9022 if test "$result" = yes; then
9027 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9030 l) gltype1='long int';;
9031 ll) gltype1='long long int';;
9032 i64) gltype1='__int64';;
9033 u) gltype1='unsigned int';;
9034 ul) gltype1='unsigned long int';;
9035 ull) gltype1='unsigned long long int';;
9036 ui64)gltype1='unsigned __int64';;
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9041 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9042 included before <wchar.h>. */
9052 extern $gltype1 foo;
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 eval gl_cv_type_${gltype}_suffix=\$glsuf
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 eval result=\$gl_cv_type_${gltype}_suffix
9066 test "$result" != no && break
9069 eval ac_res=\$gl_cv_type_${gltype}_suffix
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9071 $as_echo "$ac_res" >&6; }
9072 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9073 eval result=\$gl_cv_type_${gltype}_suffix
9074 test "$result" = no && result=
9075 eval ${GLTYPE}_SUFFIX=\$result
9076 cat >>confdefs.h <<_ACEOF
9077 #define ${GLTYPE}_SUFFIX $result
9084 if test $BITSIZEOF_WINT_T -lt 32; then
9090 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9092 if test -n "$LIMITS_H"; then
9093 GL_GENERATE_LIMITS_H_TRUE=
9094 GL_GENERATE_LIMITS_H_FALSE='#'
9096 GL_GENERATE_LIMITS_H_TRUE='#'
9097 GL_GENERATE_LIMITS_H_FALSE=
9105 if test -n "$STDINT_H"; then
9106 GL_GENERATE_STDINT_H_TRUE=
9107 GL_GENERATE_STDINT_H_FALSE='#'
9109 GL_GENERATE_STDINT_H_TRUE='#'
9110 GL_GENERATE_STDINT_H_FALSE=
9121 HAVE_DECL_IMAXABS=1;
9122 HAVE_DECL_IMAXDIV=1;
9123 HAVE_DECL_STRTOIMAX=1;
9124 HAVE_DECL_STRTOUMAX=1;
9125 REPLACE_STRTOIMAX=0;
9126 REPLACE_STRTOUMAX=0;
9127 INT32_MAX_LT_INTMAX_MAX=1;
9128 INT64_MAX_EQ_LONG_MAX='defined _LP64';
9129 PRI_MACROS_BROKEN=0;
9130 PRIPTR_PREFIX=__PRIPTR_PREFIX;
9131 UINT32_MAX_LT_UINTMAX_MAX=1;
9132 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
9148 if test $gl_cv_have_include_next = yes; then
9149 gl_cv_next_inttypes_h='<'inttypes.h'>'
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
9152 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
9153 if test "${gl_cv_next_inttypes_h+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9157 if test $ac_cv_header_inttypes_h = yes; then
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <inttypes.h>
9167 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9168 *) gl_absname_cpp="$ac_cpp" ;;
9173 gl_dirsep_regex='[/\\]'
9176 gl_dirsep_regex='\/'
9179 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9180 gl_header_literal_regex=`echo 'inttypes.h' \
9181 |
sed -e "$gl_make_literal_regex_sed"`
9182 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9189 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9190 sed -n "$gl_absolute_header_sed"`
9192 gl_header=$gl_cv_absolute_inttypes_h
9193 gl_cv_next_inttypes_h='"'$gl_header'"'
9195 gl_cv_next_inttypes_h='<'inttypes.h'>'
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
9201 $as_echo "$gl_cv_next_inttypes_h" >&6; }
9203 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
9205 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9207 gl_next_as_first_directive='<'inttypes.h'>'
9209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9210 gl_next_as_first_directive=$gl_cv_next_inttypes_h
9212 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
9221 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
9222 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9224 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9225 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9226 $as_echo_n "(cached) " >&6
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <inttypes.h>
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242 eval "$as_gl_Symbol=yes"
9244 eval "$as_gl_Symbol=no"
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 eval ac_res=\$$as_gl_Symbol
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9250 $as_echo "$ac_res" >&6; }
9251 eval as_val=\$$as_gl_Symbol
9252 if test "x$as_val" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9257 eval ac_cv_have_decl_$gl_func=yes
9263 for ac_header in inttypes.h
9265 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9266 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9267 cat >>confdefs.h <<_ACEOF
9268 #define HAVE_INTTYPES_H 1
9275 if test $ac_cv_header_inttypes_h = yes; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9277 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9278 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 #include <inttypes.h>
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 gt_cv_inttypes_pri_broken=no
9301 gt_cv_inttypes_pri_broken=yes
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9307 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9309 if test "$gt_cv_inttypes_pri_broken" = yes; then
9311 cat >>confdefs.h <<_ACEOF
9312 #define PRI_MACROS_BROKEN 1
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9323 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9324 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9328 if test "$cross_compiling" = yes; then :
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9333 #if defined arm || defined __arm || defined __arm__
9338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9339 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9340 gl_cv_cc_double_expbit0="unknown"
9344 if test "${ac_cv_c_bigendian+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9347 ac_cv_c_bigendian=unknown
9348 # See if we're dealing with a universal compiler.
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351 #ifndef __APPLE_CC__
9352 not a universal capable compiler
9357 if ac_fn_c_try_compile "$LINENO"; then :
9359 # Check for potential -arch flags. It is not universal unless
9360 # there are at least two -arch flags with different values.
9363 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9364 if test -n "$ac_prev"; then
9366 i?86 | x86_64 | ppc | ppc64)
9367 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9370 ac_cv_c_bigendian=universal
9376 elif test "x$ac_word" = "x-arch"; then
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9382 if test $ac_cv_c_bigendian = unknown; then
9383 # See if sys/param.h defines the BYTE_ORDER macro.
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 #include <sys/types.h>
9387 #include <sys/param.h>
9392 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9393 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 # It does; now see whether it defined to BIG_ENDIAN or not.
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <sys/types.h>
9407 #include <sys/param.h>
9412 #if BYTE_ORDER != BIG_ENDIAN
9420 if ac_fn_c_try_compile "$LINENO"; then :
9421 ac_cv_c_bigendian=yes
9423 ac_cv_c_bigendian=no
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 if test $ac_cv_c_bigendian = unknown; then
9430 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9438 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 # It does; now see whether it defined to _BIG_ENDIAN or not.
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9463 if ac_fn_c_try_compile "$LINENO"; then :
9464 ac_cv_c_bigendian=yes
9466 ac_cv_c_bigendian=no
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 if test $ac_cv_c_bigendian = unknown; then
9473 # Compile a test program.
9474 if test "$cross_compiling" = yes; then :
9475 # Try to guess by grepping values from an object file.
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 short int ascii_mm[] =
9479 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9480 short int ascii_ii[] =
9481 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9482 int use_ascii (int i) {
9483 return ascii_mm[i] + ascii_ii[i];
9485 short int ebcdic_ii[] =
9486 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9487 short int ebcdic_mm[] =
9488 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9489 int use_ebcdic (int i) {
9490 return ebcdic_mm[i] + ebcdic_ii[i];
9497 return use_ascii (foo) == use_ebcdic (foo);
9502 if ac_fn_c_try_compile "$LINENO"; then :
9503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9504 ac_cv_c_bigendian=yes
9506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9507 if test "$ac_cv_c_bigendian" = unknown; then
9508 ac_cv_c_bigendian=no
9510 # finding both strings is unlikely to happen, but who knows?
9511 ac_cv_c_bigendian=unknown
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 $ac_includes_default
9524 /* Are we little or big endian? From Harbison&Steele. */
9528 char c[sizeof (long int)];
9531 return u.c[sizeof (long int) - 1] == 1;
9537 if ac_fn_c_try_run "$LINENO"; then :
9538 ac_cv_c_bigendian=no
9540 ac_cv_c_bigendian=yes
9542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9543 conftest.$ac_objext conftest.beam conftest.$ac_ext
9549 case $ac_cv_c_bigendian in #(
9551 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9553 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9556 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9560 gl_cv_cc_double_expbit0="unknown" ;;
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9577 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9578 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9579 static unsigned int ored_words[NWORDS];
9580 static unsigned int anded_words[NWORDS];
9581 static void add_to_ored_words (double x)
9585 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9586 memset (&m, 0, sizeof (memory_double));
9588 for (i = 0; i < NWORDS; i++)
9590 ored_words[i] |= m.word[i];
9591 anded_words[i] &= m.word[i];
9597 FILE *fp = fopen ("conftest.out", "w");
9600 for (j = 0; j < NWORDS; j++)
9601 anded_words[j] = ~ (unsigned int) 0;
9602 add_to_ored_words (0.25);
9603 add_to_ored_words (0.5);
9604 add_to_ored_words (1.0);
9605 add_to_ored_words (2.0);
9606 add_to_ored_words (4.0);
9607 /* Remove bits that are common (e.g. if representation of the first mantissa
9608 bit is explicit). */
9609 for (j = 0; j < NWORDS; j++)
9610 ored_words[j] &= ~anded_words[j];
9611 /* Now find the nonzero word. */
9612 for (j = 0; j < NWORDS; j++)
9613 if (ored_words[j] != 0)
9618 for (i = j + 1; i < NWORDS; i++)
9619 if (ored_words[i] != 0)
9621 fprintf (fp, "unknown");
9622 return (fclose (fp) != 0);
9625 if ((ored_words[j] >> i) & 1)
9627 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9628 return (fclose (fp) != 0);
9631 fprintf (fp, "unknown");
9632 return (fclose (fp) != 0);
9636 if ac_fn_c_try_run "$LINENO"; then :
9637 gl_cv_cc_double_expbit0=`cat conftest.out
`
9639 gl_cv_cc_double_expbit0="unknown"
9641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9642 conftest.$ac_objext conftest.beam conftest.$ac_ext
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9649 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9650 case "$gl_cv_cc_double_expbit0" in
9652 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
9653 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
9655 cat >>confdefs.h <<_ACEOF
9656 #define DBL_EXPBIT0_WORD $word
9660 cat >>confdefs.h <<_ACEOF
9661 #define DBL_EXPBIT0_BIT $bit
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9669 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9670 if test "${ac_cv_c_bigendian+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 ac_cv_c_bigendian=unknown
9674 # See if we're dealing with a universal compiler.
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 #ifndef __APPLE_CC__
9678 not a universal capable compiler
9683 if ac_fn_c_try_compile "$LINENO"; then :
9685 # Check for potential -arch flags. It is not universal unless
9686 # there are at least two -arch flags with different values.
9689 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9690 if test -n "$ac_prev"; then
9692 i?86 | x86_64 | ppc | ppc64)
9693 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9696 ac_cv_c_bigendian=universal
9702 elif test "x$ac_word" = "x-arch"; then
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 if test $ac_cv_c_bigendian = unknown; then
9709 # See if sys/param.h defines the BYTE_ORDER macro.
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 #include <sys/types.h>
9713 #include <sys/param.h>
9718 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9719 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729 # It does; now see whether it defined to BIG_ENDIAN or not.
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <sys/types.h>
9733 #include <sys/param.h>
9738 #if BYTE_ORDER != BIG_ENDIAN
9746 if ac_fn_c_try_compile "$LINENO"; then :
9747 ac_cv_c_bigendian=yes
9749 ac_cv_c_bigendian=no
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 if test $ac_cv_c_bigendian = unknown; then
9756 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9764 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 # It does; now see whether it defined to _BIG_ENDIAN or not.
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9789 if ac_fn_c_try_compile "$LINENO"; then :
9790 ac_cv_c_bigendian=yes
9792 ac_cv_c_bigendian=no
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 if test $ac_cv_c_bigendian = unknown; then
9799 # Compile a test program.
9800 if test "$cross_compiling" = yes; then :
9801 # Try to guess by grepping values from an object file.
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 short int ascii_mm[] =
9805 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9806 short int ascii_ii[] =
9807 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9808 int use_ascii (int i) {
9809 return ascii_mm[i] + ascii_ii[i];
9811 short int ebcdic_ii[] =
9812 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9813 short int ebcdic_mm[] =
9814 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9815 int use_ebcdic (int i) {
9816 return ebcdic_mm[i] + ebcdic_ii[i];
9823 return use_ascii (foo) == use_ebcdic (foo);
9828 if ac_fn_c_try_compile "$LINENO"; then :
9829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9830 ac_cv_c_bigendian=yes
9832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9833 if test "$ac_cv_c_bigendian" = unknown; then
9834 ac_cv_c_bigendian=no
9836 # finding both strings is unlikely to happen, but who knows?
9837 ac_cv_c_bigendian=unknown
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 $ac_includes_default
9850 /* Are we little or big endian? From Harbison&Steele. */
9854 char c[sizeof (long int)];
9857 return u.c[sizeof (long int) - 1] == 1;
9863 if ac_fn_c_try_run "$LINENO"; then :
9864 ac_cv_c_bigendian=no
9866 ac_cv_c_bigendian=yes
9868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9869 conftest.$ac_objext conftest.beam conftest.$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9875 $as_echo "$ac_cv_c_bigendian" >&6; }
9876 case $ac_cv_c_bigendian in #(
9878 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9884 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9888 as_fn_error "unknown endianness
9889 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9898 $as_echo_n "checking for 64-bit off_t... " >&6; }
9899 if test "${gl_cv_type_off_t_64+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9915 if ac_fn_c_try_compile "$LINENO"; then :
9916 gl_cv_type_off_t_64=yes
9918 gl_cv_type_off_t_64=no
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9924 $as_echo "$gl_cv_type_off_t_64" >&6; }
9925 if test $gl_cv_type_off_t_64 = no; then
9926 WINDOWS_64_BIT_OFF_T=1
9928 WINDOWS_64_BIT_OFF_T=0
9930 WINDOWS_64_BIT_ST_SIZE=1
9933 WINDOWS_64_BIT_OFF_T=0
9934 WINDOWS_64_BIT_ST_SIZE=0
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9940 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9941 if test "${am_cv_langinfo_codeset+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include <langinfo.h>
9950 char* cs = nl_langinfo(CODESET); return !cs;
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 am_cv_langinfo_codeset=yes
9958 am_cv_langinfo_codeset=no
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9965 $as_echo "$am_cv_langinfo_codeset" >&6; }
9966 if test $am_cv_langinfo_codeset = yes; then
9968 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9980 $as_echo_n "checking for working fcntl.h... " >&6; }
9981 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9984 if test "$cross_compiling" = yes; then :
9985 gl_cv_header_working_fcntl_h=cross-compiling
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 #include <sys/types.h>
9990 #include <sys/stat.h>
9992 # include <unistd.h>
9993 #else /* on Windows with MSVC */
9995 # include <stdlib.h>
9996 # defined sleep(n) _sleep ((n) * 1000)
10000 #define O_NOATIME 0
10003 #define O_NOFOLLOW 0
10005 static int const constants[] =
10007 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10008 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10015 int result = !constants;
10018 static char const sym[] = "conftest.sym";
10019 if (symlink ("/dev/null", sym) != 0)
10023 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10030 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10034 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10045 static char const file[] = "confdefs.h";
10046 int fd = open (file, O_RDONLY | O_NOATIME);
10052 if (fstat (fd, &st0) != 0)
10058 if (read (fd, &c, 1) != 1)
10062 if (close (fd) != 0)
10067 if (stat (file, &st1) != 0)
10070 if (st0.st_atime != st1.st_atime)
10082 if ac_fn_c_try_run "$LINENO"; then :
10083 gl_cv_header_working_fcntl_h=yes
10086 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10087 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10088 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10089 *) gl_cv_header_working_fcntl_h='no';;
10092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10093 conftest.$ac_objext conftest.beam conftest.$ac_ext
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10098 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10100 case $gl_cv_header_working_fcntl_h in #(
10101 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10105 cat >>confdefs.h <<_ACEOF
10106 #define HAVE_WORKING_O_NOATIME $ac_val
10110 case $gl_cv_header_working_fcntl_h in #(
10111 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10115 cat >>confdefs.h <<_ACEOF
10116 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10120 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10121 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10127 cat >>confdefs.h <<_ACEOF
10128 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10133 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10134 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10140 #include <features.h>
10141 #ifdef __GNU_LIBRARY__
10142 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10152 $EGREP "Lucky" >/dev/null 2>&1; then :
10153 ac_cv_gnu_library_2_1=yes
10155 ac_cv_gnu_library_2_1=no
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10163 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10165 GLIBC21="$ac_cv_gnu_library_2_1"
10181 GNULIB_UTIMENSAT=0;
10195 REPLACE_FUTIMENS=0;
10201 REPLACE_UTIMENSAT=0;
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10207 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10208 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10211 rm -f conftest.sym conftest.file
10212 echo >conftest.file
10213 if test "$cross_compiling" = yes; then :
10216 # Guess yes on glibc systems.
10217 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
10219 # If we don't know, assume the worst.
10220 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 $ac_includes_default
10231 if (symlink ("conftest.file", "conftest.sym") != 0)
10233 /* Linux will dereference the symlink and fail, as required by
10234 POSIX. That is better in the sense that it means we will not
10235 have to compile and use the lstat wrapper. */
10236 return lstat ("conftest.sym/", &sbuf) == 0;
10242 if ac_fn_c_try_run "$LINENO"; then :
10243 gl_cv_func_lstat_dereferences_slashed_symlink=yes
10245 gl_cv_func_lstat_dereferences_slashed_symlink=no
10247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10248 conftest.$ac_objext conftest.beam conftest.$ac_ext
10251 rm -f conftest.sym conftest.file
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
10255 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10256 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
10259 cat >>confdefs.h <<_ACEOF
10260 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10268 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10269 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10279 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10287 if ac_fn_c_try_compile "$LINENO"; then :
10288 gl_cv_func_malloc_posix=yes
10290 gl_cv_func_malloc_posix=no
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10296 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10300 for ac_header in stdlib.h
10302 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10303 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_STDLIB_H 1
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10313 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10314 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10317 if test "$cross_compiling" = yes; then :
10319 # Guess yes on platforms where we know the result.
10320 *-gnu* | freebsd* | netbsd* | openbsd* \
10321 | hpux* | solaris* | cygwin* | mingw*)
10322 ac_cv_func_malloc_0_nonnull=yes ;;
10323 # If we don't know, assume the worst.
10324 *) ac_cv_func_malloc_0_nonnull=no ;;
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10331 # include <stdlib.h>
10339 char *p = malloc (0);
10348 if ac_fn_c_try_run "$LINENO"; then :
10349 ac_cv_func_malloc_0_nonnull=yes
10351 ac_cv_func_malloc_0_nonnull=no
10353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10354 conftest.$ac_objext conftest.beam conftest.$ac_ext
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10360 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10361 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10362 gl_cv_func_malloc_0_nonnull=1
10364 gl_cv_func_malloc_0_nonnull=0
10368 cat >>confdefs.h <<_ACEOF
10369 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10381 GNULIB_MBSRTOWCS=0;
10382 GNULIB_MBSNRTOWCS=0;
10384 GNULIB_WCSRTOMBS=0;
10385 GNULIB_WCSNRTOMBS=0;
10402 GNULIB_WCSCASECMP=0;
10403 GNULIB_WCSNCASECMP=0;
10440 HAVE_WCSNCASECMP=1;
10453 HAVE_DECL_WCWIDTH=1;
10454 REPLACE_MBSTATE_T=0;
10460 REPLACE_MBSRTOWCS=0;
10461 REPLACE_MBSNRTOWCS=0;
10463 REPLACE_WCSRTOMBS=0;
10464 REPLACE_WCSNRTOMBS=0;
10466 REPLACE_WCSWIDTH=0;
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10476 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10477 if test "${gt_cv_locale_ja+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10484 #include <locale.h>
10486 #if HAVE_LANGINFO_CODESET
10487 # include <langinfo.h>
10489 #include <stdlib.h>
10490 #include <string.h>
10496 /* Check whether the given locale name is recognized by the system. */
10497 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10498 /* On native Windows, setlocale(category, "") looks at the system settings,
10499 not at the environment variables. Also, when an encoding suffix such
10500 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10501 category of the locale to "C". */
10502 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10503 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10506 if (setlocale (LC_ALL, "") == NULL) return 1;
10508 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10509 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10510 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10511 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10512 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10513 some unit tests fail.
10514 On MirBSD 10, when an unsupported locale is specified, setlocale()
10515 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10516 #if HAVE_LANGINFO_CODESET
10518 const char *cs = nl_langinfo (CODESET);
10519 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10520 || strcmp (cs, "UTF-8") == 0)
10525 /* On Cygwin, avoid locale names without encoding suffix, because the
10526 locale_charset() function relies on the encoding suffix. Note that
10527 LC_ALL is set on the command line. */
10528 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10530 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10531 on Cygwin 1.5.x. */
10532 if (MB_CUR_MAX == 1)
10534 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10535 This excludes the UTF-8 encoding (except on MirBSD). */
10536 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10537 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10538 for (p = buf; *p != '\0'; p++)
10539 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10546 (eval $ac_link) 2>&5
10548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10551 # Handle native Windows specially, because there setlocale() interprets
10552 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10553 # "fr" or "fra" as "French" or "French_France.1252",
10554 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10555 # "ja" as "Japanese" or "Japanese_Japan.932",
10558 # Note that on native Windows, the Japanese locale is
10559 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10560 # cannot use it here.
10561 gt_cv_locale_ja=none
10564 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10565 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10566 # configure script would override the LC_ALL setting. Likewise for
10567 # LC_CTYPE, which is also set at the beginning of the configure script.
10568 # Test for the AIX locale name.
10569 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10570 gt_cv_locale_ja=ja_JP
10572 # Test for the locale name with explicit encoding suffix.
10573 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10574 gt_cv_locale_ja=ja_JP.EUC-JP
10576 # Test for the HP-UX, OSF/1, NetBSD locale name.
10577 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10578 gt_cv_locale_ja=ja_JP.eucJP
10580 # Test for the IRIX, FreeBSD locale name.
10581 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10582 gt_cv_locale_ja=ja_JP.EUC
10584 # Test for the Solaris 7 locale name.
10585 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10588 # Special test for NetBSD 1.6.
10589 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10590 gt_cv_locale_ja=ja_JP.eucJP
10593 gt_cv_locale_ja=none
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10607 $as_echo "$gt_cv_locale_ja" >&6; }
10608 LOCALE_JA=$gt_cv_locale_ja
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10615 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10616 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 #include <locale.h>
10624 #include <stdlib.h>
10626 #if HAVE_LANGINFO_CODESET
10627 # include <langinfo.h>
10629 #include <stdlib.h>
10630 #include <string.h>
10636 /* Check whether the given locale name is recognized by the system. */
10637 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10638 /* On native Windows, setlocale(category, "") looks at the system settings,
10639 not at the environment variables. Also, when an encoding suffix such
10640 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10641 category of the locale to "C". */
10642 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10643 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10646 if (setlocale (LC_ALL, "") == NULL) return 1;
10648 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10649 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10650 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10651 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10652 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10653 some unit tests fail.
10654 On MirBSD 10, when an unsupported locale is specified, setlocale()
10655 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10656 #if HAVE_LANGINFO_CODESET
10658 const char *cs = nl_langinfo (CODESET);
10659 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10660 || strcmp (cs, "UTF-8") == 0)
10665 /* On Cygwin, avoid locale names without encoding suffix, because the
10666 locale_charset() function relies on the encoding suffix. Note that
10667 LC_ALL is set on the command line. */
10668 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10670 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10671 This excludes the UTF-8 encoding (except on MirBSD). */
10672 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10673 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10674 for (p = buf; *p != '\0'; p++)
10675 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10677 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10678 single wide character. This excludes the GB2312 and GBK encodings. */
10679 if (mblen ("\203\062\332\066", 5) != 4)
10685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10686 (eval $ac_link) 2>&5
10688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10689 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10691 # Handle native Windows specially, because there setlocale() interprets
10692 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10693 # "fr" or "fra" as "French" or "French_France.1252",
10694 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10695 # "ja" as "Japanese" or "Japanese_Japan.932",
10698 # Test for the hypothetical native Windows locale name.
10699 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10700 gt_cv_locale_zh_CN=Chinese_China.54936
10703 gt_cv_locale_zh_CN=none
10707 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10708 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10709 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10710 gt_cv_locale_zh_CN=none
10713 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10714 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10715 # configure script would override the LC_ALL setting. Likewise for
10716 # LC_CTYPE, which is also set at the beginning of the configure script.
10717 # Test for the locale name without encoding suffix.
10718 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10719 gt_cv_locale_zh_CN=zh_CN
10721 # Test for the locale name with explicit encoding suffix.
10722 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10723 gt_cv_locale_zh_CN=zh_CN.GB18030
10726 gt_cv_locale_zh_CN=none
10732 # If there was a link error, due to mblen(), the system is so old that
10733 # it certainly doesn't have a chinese locale.
10734 gt_cv_locale_zh_CN=none
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10740 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10741 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10747 $as_echo_n "checking for a french Unicode locale... " >&6; }
10748 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 #include <locale.h>
10757 #if HAVE_LANGINFO_CODESET
10758 # include <langinfo.h>
10760 #include <stdlib.h>
10761 #include <string.h>
10765 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10766 imitates locale dependent behaviour by looking at the environment
10767 variables, and all locales use the UTF-8 encoding. */
10768 #if !(defined __BEOS__ || defined __HAIKU__)
10769 /* Check whether the given locale name is recognized by the system. */
10770 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10771 /* On native Windows, setlocale(category, "") looks at the system settings,
10772 not at the environment variables. Also, when an encoding suffix such
10773 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10774 category of the locale to "C". */
10775 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10776 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10779 if (setlocale (LC_ALL, "") == NULL) return 1;
10781 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10782 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10783 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10784 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10785 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10786 some unit tests fail. */
10787 # if HAVE_LANGINFO_CODESET
10789 const char *cs = nl_langinfo (CODESET);
10790 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10795 /* On Cygwin, avoid locale names without encoding suffix, because the
10796 locale_charset() function relies on the encoding suffix. Note that
10797 LC_ALL is set on the command line. */
10798 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10800 /* Check whether in the abbreviation of the second month, the second
10801 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10802 two bytes long, with UTF-8 encoding. */
10803 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10804 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10805 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10808 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10809 /* Check whether the decimal separator is a comma.
10810 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10811 are nl_langinfo(RADIXCHAR) are both ".". */
10812 if (localeconv () ->decimal_point[0] != ',') return 1;
10818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10819 (eval $ac_link) 2>&5
10821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10822 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10824 # Handle native Windows specially, because there setlocale() interprets
10825 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10826 # "fr" or "fra" as "French" or "French_France.1252",
10827 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10828 # "ja" as "Japanese" or "Japanese_Japan.932",
10831 # Test for the hypothetical native Windows locale name.
10832 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10833 gt_cv_locale_fr_utf8=French_France.65001
10836 gt_cv_locale_fr_utf8=none
10840 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10841 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10842 # configure script would override the LC_ALL setting. Likewise for
10843 # LC_CTYPE, which is also set at the beginning of the configure script.
10844 # Test for the usual locale name.
10845 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10846 gt_cv_locale_fr_utf8=fr_FR
10848 # Test for the locale name with explicit encoding suffix.
10849 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10850 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10852 # Test for the Solaris 7 locale name.
10853 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10854 gt_cv_locale_fr_utf8=fr.UTF-8
10857 gt_cv_locale_fr_utf8=none
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10868 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10869 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10876 $as_echo_n "checking for a traditional french locale... " >&6; }
10877 if test "${gt_cv_locale_fr+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10884 #include <locale.h>
10886 #if HAVE_LANGINFO_CODESET
10887 # include <langinfo.h>
10889 #include <stdlib.h>
10890 #include <string.h>
10894 /* Check whether the given locale name is recognized by the system. */
10895 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10896 /* On native Windows, setlocale(category, "") looks at the system settings,
10897 not at the environment variables. Also, when an encoding suffix such
10898 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10899 category of the locale to "C". */
10900 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10901 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10904 if (setlocale (LC_ALL, "") == NULL) return 1;
10906 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10907 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10908 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10909 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10910 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10911 some unit tests fail.
10912 On MirBSD 10, when an unsupported locale is specified, setlocale()
10913 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10914 #if HAVE_LANGINFO_CODESET
10916 const char *cs = nl_langinfo (CODESET);
10917 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10918 || strcmp (cs, "UTF-8") == 0)
10923 /* On Cygwin, avoid locale names without encoding suffix, because the
10924 locale_charset() function relies on the encoding suffix. Note that
10925 LC_ALL is set on the command line. */
10926 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10928 /* Check whether in the abbreviation of the second month, the second
10929 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10930 one byte long. This excludes the UTF-8 encoding. */
10931 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10932 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10933 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10934 /* Check whether the decimal separator is a comma.
10935 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10936 are nl_langinfo(RADIXCHAR) are both ".". */
10937 if (localeconv () ->decimal_point[0] != ',') return 1;
10943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10944 (eval $ac_link) 2>&5
10946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10947 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10949 # Handle native Windows specially, because there setlocale() interprets
10950 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10951 # "fr" or "fra" as "French" or "French_France.1252",
10952 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10953 # "ja" as "Japanese" or "Japanese_Japan.932",
10956 # Test for the native Windows locale name.
10957 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10958 gt_cv_locale_fr=French_France.1252
10961 gt_cv_locale_fr=none
10965 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10966 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10967 # configure script would override the LC_ALL setting. Likewise for
10968 # LC_CTYPE, which is also set at the beginning of the configure script.
10969 # Test for the usual locale name.
10970 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10971 gt_cv_locale_fr=fr_FR
10973 # Test for the locale name with explicit encoding suffix.
10974 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10975 gt_cv_locale_fr=fr_FR.ISO-8859-1
10977 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10978 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10979 gt_cv_locale_fr=fr_FR.ISO8859-1
10981 # Test for the HP-UX locale name.
10982 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10983 gt_cv_locale_fr=fr_FR.iso88591
10985 # Test for the Solaris 7 locale name.
10986 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10990 gt_cv_locale_fr=none
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11003 $as_echo "$gt_cv_locale_fr" >&6; }
11004 LOCALE_FR=$gt_cv_locale_fr
11018 GNULIB_RAWMEMCHR=0;
11021 GNULIB_STRCHRNUL=0;
11029 GNULIB_STRCASESTR=0;
11036 GNULIB_MBSCASECMP=0;
11037 GNULIB_MBSNCASECMP=0;
11038 GNULIB_MBSPCASECMP=0;
11039 GNULIB_MBSCASESTR=0;
11046 GNULIB_STRERROR_R=0;
11047 GNULIB_STRSIGNAL=0;
11048 GNULIB_STRVERSCMP=0;
11053 HAVE_DECL_MEMMEM=1;
11055 HAVE_DECL_MEMRCHR=1;
11060 HAVE_DECL_STRDUP=1;
11061 HAVE_DECL_STRNDUP=1;
11062 HAVE_DECL_STRNLEN=1;
11066 HAVE_DECL_STRTOK_R=1;
11067 HAVE_DECL_STRERROR_R=1;
11068 HAVE_DECL_STRSIGNAL=1;
11075 REPLACE_STRCASESTR=0;
11076 REPLACE_STRCHRNUL=0;
11077 REPLACE_STRERROR=0;
11078 REPLACE_STRERROR_R=0;
11082 REPLACE_STRSIGNAL=0;
11083 REPLACE_STRTOK_R=0;
11084 UNDEFINE_STRTOK_R=0;
11090 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11091 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11092 # irrelevant for anonymous mappings.
11093 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11094 if test "x$ac_cv_func_mmap" = x""yes; then :
11101 # Try to allow MAP_ANONYMOUS.
11102 gl_have_mmap_anonymous=no
11103 if test $gl_have_mmap = yes; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11105 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 #include <sys/mman.h>
11110 #ifdef MAP_ANONYMOUS
11111 I cannot identify this map
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11117 gl_have_mmap_anonymous=yes
11121 if test $gl_have_mmap_anonymous != yes; then
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11125 #include <sys/mman.h>
11127 I cannot identify this map
11131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11132 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11134 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11136 gl_have_mmap_anonymous=yes
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11142 $as_echo "$gl_have_mmap_anonymous" >&6; }
11143 if test $gl_have_mmap_anonymous = yes; then
11145 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11155 if test $HAVE_MEMCHR = 1; then
11156 # Detect platform-specific bugs in some versions of glibc:
11157 # memchr should not dereference anything with length 0
11158 # http://bugzilla.redhat.com/499689
11159 # memchr should not dereference overestimated length after a match
11160 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11161 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11162 # Assume that memchr works on platforms that lack mprotect.
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11164 $as_echo_n "checking whether memchr works... " >&6; }
11165 if test "${gl_cv_func_memchr_works+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11168 if test "$cross_compiling" = yes; then :
11169 gl_cv_func_memchr_works="guessing no"
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11174 #include <string.h>
11175 #if HAVE_SYS_MMAN_H
11176 # include <fcntl.h>
11177 # include <unistd.h>
11178 # include <sys/types.h>
11179 # include <sys/mman.h>
11181 # define MAP_FILE 0
11190 char *fence = NULL;
11191 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11192 # if HAVE_MAP_ANONYMOUS
11193 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11195 # else /* !HAVE_MAP_ANONYMOUS */
11196 const int flags = MAP_FILE | MAP_PRIVATE;
11197 int fd = open ("/dev/zero", O_RDONLY, 0666);
11201 int pagesize = getpagesize ();
11203 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11205 if (two_pages != (char *)(-1)
11206 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11207 fence = two_pages + pagesize;
11212 if (memchr (fence, 0, 0))
11214 strcpy (fence - 9, "12345678");
11215 if (memchr (fence - 9, 0, 79) != fence - 1)
11217 if (memchr (fence - 1, 0, 3) != fence - 1)
11226 if ac_fn_c_try_run "$LINENO"; then :
11227 gl_cv_func_memchr_works=yes
11229 gl_cv_func_memchr_works=no
11231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11232 conftest.$ac_objext conftest.beam conftest.$ac_ext
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11237 $as_echo "$gl_cv_func_memchr_works" >&6; }
11238 if test "$gl_cv_func_memchr_works" != yes; then
11243 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11244 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
11250 cat >>confdefs.h <<_ACEOF
11251 #define HAVE_DECL_MEMMEM $ac_have_decl
11258 for ac_func in memmem
11260 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
11261 if test "x$ac_cv_func_memmem" = x""yes; then :
11262 cat >>confdefs.h <<_ACEOF
11263 #define HAVE_MEMMEM 1
11269 if test $ac_cv_func_memmem = yes; then
11275 if test $ac_cv_have_decl_memmem = no; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11279 $as_echo_n "checking whether memmem works... " >&6; }
11280 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11283 if test "$cross_compiling" = yes; then :
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 #ifdef __GNU_LIBRARY__
11288 #include <features.h>
11289 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11290 || __GLIBC_MINOR__ > 12)) \
11291 || (__GLIBC__ > 2)) \
11292 || defined __UCLIBC__
11295 #elif defined __CYGWIN__
11296 #include <cygwin/version.h>
11297 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306 $EGREP "Lucky user" >/dev/null 2>&1; then :
11307 gl_cv_func_memmem_works_always="guessing yes"
11309 gl_cv_func_memmem_works_always="guessing no"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 #include <string.h> /* for memmem */
11319 #define P "_EF_BF_BD"
11320 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11321 #define NEEDLE P P P P P
11328 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11330 /* Check for empty needle behavior. */
11332 const char *haystack = "AAA";
11333 if (memmem (haystack, 3, NULL, 0) != haystack)
11342 if ac_fn_c_try_run "$LINENO"; then :
11343 gl_cv_func_memmem_works_always=yes
11345 gl_cv_func_memmem_works_always=no
11347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11348 conftest.$ac_objext conftest.beam conftest.$ac_ext
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11354 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11355 case "$gl_cv_func_memmem_works_always" in
11373 GNULIB_FPRINTF_POSIX=0;
11389 GNULIB_OBSTACK_PRINTF=0;
11390 GNULIB_OBSTACK_PRINTF_POSIX=0;
11395 GNULIB_PRINTF_POSIX=0;
11404 GNULIB_SPRINTF_POSIX=0;
11405 GNULIB_STDIO_H_NONBLOCKING=0;
11406 GNULIB_STDIO_H_SIGPIPE=0;
11408 GNULIB_VASPRINTF=0;
11413 GNULIB_VFPRINTF_POSIX=0;
11415 GNULIB_VPRINTF_POSIX=0;
11416 GNULIB_VSNPRINTF=0;
11417 GNULIB_VSPRINTF_POSIX=0;
11418 HAVE_DECL_FPURGE=1;
11419 HAVE_DECL_FSEEKO=1;
11420 HAVE_DECL_FTELLO=1;
11421 HAVE_DECL_GETDELIM=1;
11422 HAVE_DECL_GETLINE=1;
11423 HAVE_DECL_OBSTACK_PRINTF=1;
11424 HAVE_DECL_SNPRINTF=1;
11425 HAVE_DECL_VSNPRINTF=1;
11446 REPLACE_GETDELIM=0;
11448 REPLACE_OBSTACK_PRINTF=0;
11454 REPLACE_RENAMEAT=0;
11455 REPLACE_SNPRINTF=0;
11457 REPLACE_STDIO_READ_FUNCS=0;
11458 REPLACE_STDIO_WRITE_FUNCS=0;
11460 REPLACE_VASPRINTF=0;
11461 REPLACE_VDPRINTF=0;
11462 REPLACE_VFPRINTF=0;
11464 REPLACE_VSNPRINTF=0;
11465 REPLACE_VSPRINTF=0;
11469 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
11470 if test "x$ac_cv_have_decl_setenv" = x""yes; then :
11476 cat >>confdefs.h <<_ACEOF
11477 #define HAVE_DECL_SETENV $ac_have_decl
11485 if test $ac_cv_have_decl_setenv = no; then
11493 for ac_header in search.h
11495 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
11496 if test "x$ac_cv_header_search_h" = x""yes; then :
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_SEARCH_H 1
11505 for ac_func in tsearch
11507 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
11508 if test "x$ac_cv_func_tsearch" = x""yes; then :
11509 cat >>confdefs.h <<_ACEOF
11510 #define HAVE_TSEARCH 1
11519 GNULIB_PTHREAD_SIGMASK=0;
11521 GNULIB_SIGNAL_H_SIGPIPE=0;
11522 GNULIB_SIGPROCMASK=0;
11523 GNULIB_SIGACTION=0;
11524 HAVE_POSIX_SIGNALBLOCKING=1;
11525 HAVE_PTHREAD_SIGMASK=1;
11530 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11532 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11534 HAVE_SIGHANDLER_T=1;
11535 REPLACE_PTHREAD_SIGMASK=0;
11539 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11540 #include <signal.h>
11541 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11542 #include <sys/types.h>
11545 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11547 cat >>confdefs.h <<_ACEOF
11548 #define HAVE_SIGSET_T 1
11551 gl_cv_type_sigset_t=yes
11553 gl_cv_type_sigset_t=no
11556 if test $gl_cv_type_sigset_t != yes; then
11560 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11561 if test "x$ac_cv_type_pid_t" = x""yes; then :
11565 cat >>confdefs.h <<_ACEOF
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11572 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11573 if test "${ac_cv_type_uid_t+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <sys/types.h>
11581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11582 $EGREP "uid_t" >/dev/null 2>&1; then :
11583 ac_cv_type_uid_t=yes
11585 ac_cv_type_uid_t=no
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11591 $as_echo "$ac_cv_type_uid_t" >&6; }
11592 if test $ac_cv_type_uid_t = no; then
11594 $as_echo "#define uid_t int" >>confdefs.h
11597 $as_echo "#define gid_t int" >>confdefs.h
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11602 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11603 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11609 #include <stdbool.h>
11614 typedef _Bool Bool;
11616 "error: bool is not defined"
11619 "error: false is not defined"
11622 "error: false is not 0"
11625 "error: true is not defined"
11628 "error: true is not 1"
11632 #ifndef __bool_true_false_are_defined
11633 "error: __bool_true_false_are_defined is not defined"
11636 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
11638 char a[true == 1 ? 1 : -1];
11639 char b[false == 0 ? 1 : -1];
11640 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11641 char d[(bool) 0.5 == true ? 1 : -1];
11642 /* See body of main program for 'e'. */
11643 char f[(Bool) 0.0 == false ? 1 : -1];
11645 char h[sizeof (Bool)];
11646 char i[sizeof s.t];
11647 enum { j = false, k = true, l = false * true, m = true * 256 };
11648 /* The following fails for
11649 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11651 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11652 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11653 /* Catch a bug in an HP-UX C compiler. See
11654 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11655 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11666 *pq |= q; *pq |= ! q;
11667 *qq |= q; *qq |= ! q;
11668 /* Refer to every declared value, to avoid compiler optimizations. */
11669 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11670 + !m + !n + !o + !p + !q + !pq + !qq);
11676 if ac_fn_c_try_compile "$LINENO"; then :
11677 ac_cv_header_stdbool_h=yes
11679 ac_cv_header_stdbool_h=no
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11684 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11685 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11686 if test "x$ac_cv_type__Bool" = x""yes; then :
11688 cat >>confdefs.h <<_ACEOF
11689 #define HAVE__BOOL 1
11698 HAVE_MAX_ALIGN_T=1;
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11703 $as_echo_n "checking for wchar_t... " >&6; }
11704 if test "${gt_cv_c_wchar_t+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <stddef.h>
11710 wchar_t foo = (wchar_t)'\0';
11719 if ac_fn_c_try_compile "$LINENO"; then :
11720 gt_cv_c_wchar_t=yes
11724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11727 $as_echo "$gt_cv_c_wchar_t" >&6; }
11728 if test $gt_cv_c_wchar_t = yes; then
11730 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11745 if test $gl_cv_have_include_next = yes; then
11746 gl_cv_next_string_h='<'string.h'>'
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11749 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11750 if test "${gl_cv_next_string_h+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 #include <string.h>
11761 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11762 *) gl_absname_cpp="$ac_cpp" ;;
11767 gl_dirsep_regex='[/\\]'
11770 gl_dirsep_regex='\/'
11773 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11774 gl_header_literal_regex=`echo 'string.h' \
11775 |
sed -e "$gl_make_literal_regex_sed"`
11776 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11777 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11783 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11784 sed -n "$gl_absolute_header_sed"`
11786 gl_header=$gl_cv_absolute_string_h
11787 gl_cv_next_string_h='"'$gl_header'"'
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11792 $as_echo "$gl_cv_next_string_h" >&6; }
11794 NEXT_STRING_H=$gl_cv_next_string_h
11796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11798 gl_next_as_first_directive='<'string.h'>'
11800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11801 gl_next_as_first_directive=$gl_cv_next_string_h
11803 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11810 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
11811 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11813 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11814 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11815 $as_echo_n "(cached) " >&6
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 #include <string.h>
11830 if ac_fn_c_try_compile "$LINENO"; then :
11831 eval "$as_gl_Symbol=yes"
11833 eval "$as_gl_Symbol=no"
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 eval ac_res=\$$as_gl_Symbol
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11839 $as_echo "$ac_res" >&6; }
11840 eval as_val=\$$as_gl_Symbol
11841 if test "x$as_val" = x""yes; then :
11842 cat >>confdefs.h <<_ACEOF
11843 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11846 eval ac_cv_have_decl_$gl_func=yes
11854 if test "$gl_cv_func_memchr_works" != yes; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11858 $as_echo_n "checking whether strstr works... " >&6; }
11859 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11862 if test "$cross_compiling" = yes; then :
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 #ifdef __GNU_LIBRARY__
11867 #include <features.h>
11868 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11869 || defined __UCLIBC__
11872 #elif defined __CYGWIN__
11873 #include <cygwin/version.h>
11874 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11883 $EGREP "Lucky user" >/dev/null 2>&1; then :
11884 gl_cv_func_strstr_works_always="guessing yes"
11886 gl_cv_func_strstr_works_always="guessing no"
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 #include <string.h> /* for strstr */
11896 #define P "_EF_BF_BD"
11897 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11898 #define NEEDLE P P P P P
11903 return !!strstr (HAYSTACK, NEEDLE);
11909 if ac_fn_c_try_run "$LINENO"; then :
11910 gl_cv_func_strstr_works_always=yes
11912 gl_cv_func_strstr_works_always=no
11914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11915 conftest.$ac_objext conftest.beam conftest.$ac_ext
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11921 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11922 case "$gl_cv_func_strstr_works_always" in
11930 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11931 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11937 cat >>confdefs.h <<_ACEOF
11938 #define HAVE_DECL_STRTOK_R $ac_have_decl
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11942 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11943 if test "${ac_cv_header_stat_broken+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948 #include <sys/types.h>
11949 #include <sys/stat.h>
11951 #if defined S_ISBLK && defined S_IFDIR
11952 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11955 #if defined S_ISBLK && defined S_IFCHR
11956 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11959 #if defined S_ISLNK && defined S_IFREG
11960 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11963 #if defined S_ISSOCK && defined S_IFREG
11964 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11968 if ac_fn_c_try_compile "$LINENO"; then :
11969 ac_cv_header_stat_broken=no
11971 ac_cv_header_stat_broken=yes
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11976 $as_echo "$ac_cv_header_stat_broken" >&6; }
11977 if test $ac_cv_header_stat_broken = yes; then
11979 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11985 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11986 if test "x$ac_cv_type_mode_t" = x""yes; then :
11990 cat >>confdefs.h <<_ACEOF
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11997 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11998 if test -z "$MKDIR_P"; then
11999 if test "${ac_cv_path_mkdir+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12006 test -z "$as_dir" && as_dir=.
12007 for ac_prog in mkdir gmkdir; do
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
12010 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12011 'mkdir (GNU coreutils) '* | \
12012 'mkdir (coreutils) '* | \
12013 'mkdir (fileutils) '4.1*)
12014 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12024 if test "${ac_cv_path_mkdir+set}" = set; then
12025 MKDIR_P="$ac_cv_path_mkdir -p"
12027 # As a last resort, use the slow shell script. Don't cache a
12028 # value for MKDIR_P within a source directory, because that will
12029 # break other packages using the cache if that directory is
12030 # removed, or if the value is a relative name.
12031 test -d ./--version && rmdir ./--version
12032 MKDIR_P="$ac_install_sh -d"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12036 $as_echo "$MKDIR_P" >&6; }
12056 if test $gl_cv_have_include_next = yes; then
12057 gl_cv_next_sys_types_h='<'sys/types.h'>'
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12060 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
12061 if test "${gl_cv_next_sys_types_h+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 #include <sys/types.h>
12072 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12073 *) gl_absname_cpp="$ac_cpp" ;;
12078 gl_dirsep_regex='[/\\]'
12081 gl_dirsep_regex='\/'
12084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12085 gl_header_literal_regex=`echo 'sys/types.h' \
12086 |
sed -e "$gl_make_literal_regex_sed"`
12087 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12088 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12094 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12095 sed -n "$gl_absolute_header_sed"`
12097 gl_header=$gl_cv_absolute_sys_types_h
12098 gl_cv_next_sys_types_h='"'$gl_header'"'
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12103 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12105 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12107 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12109 gl_next_as_first_directive='<'sys/types.h'>'
12111 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12112 gl_next_as_first_directive=$gl_cv_next_sys_types_h
12114 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12128 GNULIB_NANOSLEEP=0;
12133 HAVE_DECL_LOCALTIME_R=1;
12137 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12138 REPLACE_MKTIME=GNULIB_PORTCHECK;
12139 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12140 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12142 : ${GNULIB_GETTIMEOFDAY=0};
12144 REPLACE_LOCALTIME=0;
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12149 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12150 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12160 static struct timespec x; x.tv_sec = x.tv_nsec;
12165 if ac_fn_c_try_compile "$LINENO"; then :
12166 gl_cv_sys_struct_timespec_in_time_h=yes
12168 gl_cv_sys_struct_timespec_in_time_h=no
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12173 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12175 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12176 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12177 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12178 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
12179 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12180 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12183 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12184 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 #include <sys/time.h>
12194 static struct timespec x; x.tv_sec = x.tv_nsec;
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12202 gl_cv_sys_struct_timespec_in_sys_time_h=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12207 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12208 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12209 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12212 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12213 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218 #include <pthread.h>
12223 static struct timespec x; x.tv_sec = x.tv_nsec;
12228 if ac_fn_c_try_compile "$LINENO"; then :
12229 gl_cv_sys_struct_timespec_in_pthread_h=yes
12231 gl_cv_sys_struct_timespec_in_pthread_h=no
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12236 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12237 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12241 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12242 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 #include <unistd.h>
12252 static struct timespec x; x.tv_sec = x.tv_nsec;
12257 if ac_fn_c_try_compile "$LINENO"; then :
12258 gl_cv_sys_struct_timespec_in_unistd_h=yes
12260 gl_cv_sys_struct_timespec_in_unistd_h=no
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12265 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12266 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12267 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
12288 if test $gl_cv_have_include_next = yes; then
12289 gl_cv_next_time_h='<'time.h'>'
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12292 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12293 if test "${gl_cv_next_time_h+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12304 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12305 *) gl_absname_cpp="$ac_cpp" ;;
12310 gl_dirsep_regex='[/\\]'
12313 gl_dirsep_regex='\/'
12316 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12317 gl_header_literal_regex=`echo 'time.h' \
12318 |
sed -e "$gl_make_literal_regex_sed"`
12319 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12320 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12326 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12327 sed -n "$gl_absolute_header_sed"`
12329 gl_header=$gl_cv_absolute_time_h
12330 gl_cv_next_time_h='"'$gl_header'"'
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12335 $as_echo "$gl_cv_next_time_h" >&6; }
12337 NEXT_TIME_H=$gl_cv_next_time_h
12339 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12341 gl_next_as_first_directive='<'time.h'>'
12343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12344 gl_next_as_first_directive=$gl_cv_next_time_h
12346 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12353 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
12354 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
12360 cat >>confdefs.h <<_ACEOF
12361 #define HAVE_DECL_UNSETENV $ac_have_decl
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
12366 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
12367 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12370 gl_cv_header_wchar_h_correct_inline=yes
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 #define wcstod renamed_wcstod
12375 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12377 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12378 included before <wchar.h>. */
12379 #include <stddef.h>
12383 extern int zero (void);
12384 int main () { return zero(); }
12387 save_ac_compile="$ac_compile"
12388 ac_compile=`echo "$save_ac_compile" |
sed s
/conftest
/conftest
1/`
12389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12390 (eval $ac_compile) 2>&5
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; }; then
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12397 #define wcstod renamed_wcstod
12398 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12401 included before <wchar.h>. */
12402 #include <stddef.h>
12406 int zero (void) { return 0; }
12409 ac_compile=`echo "$save_ac_compile" |
sed s
/conftest
/conftest
2/`
12410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12411 (eval $ac_compile) 2>&5
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; }; then
12415 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12418 gl_cv_header_wchar_h_correct_inline=no
12422 ac_compile="$save_ac_compile"
12423 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12427 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12428 if test $gl_cv_header_wchar_h_correct_inline = no; then
12429 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12430 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12431 C99 mode. You have four options:
12432 - Add the flag -fgnu89-inline to CC and reconfigure, or
12433 - Fix your include files, using parts of
12434 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12435 - Use a gcc version older than 4.3, or
12436 - Don't use the flags -std=c99 or -std=gnu99.
12437 Configuration aborted." "$LINENO" 5
12444 if test $ac_cv_header_features_h = yes; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12453 $as_echo_n "checking for wint_t... " >&6; }
12454 if test "${gt_cv_c_wint_t+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12462 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12463 before <wchar.h>. */
12464 #include <stddef.h>
12468 wint_t foo = (wchar_t)'\0';
12477 if ac_fn_c_try_compile "$LINENO"; then :
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12485 $as_echo "$gt_cv_c_wint_t" >&6; }
12486 if test $gt_cv_c_wint_t = yes; then
12488 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12497 GNULIB_TOWCTRANS=0;
12501 REPLACE_ISWBLANK=0;
12507 GL_COND_LIBTOOL_TRUE=
12508 GL_COND_LIBTOOL_FALSE='#'
12510 GL_COND_LIBTOOL_TRUE='#'
12511 GL_COND_LIBTOOL_FALSE=
12514 gl_cond_libtool=false
12517 gl_m4_base='import/m4'
12527 gl_source_base='import'
12530 if test $ac_cv_func_alloca_works = no; then
12534 # Define an additional variable used in the Makefile substitution.
12535 if test $ac_cv_working_alloca_h = yes; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12537 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12538 if test "${gl_cv_rpl_alloca+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12545 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12551 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12552 gl_cv_rpl_alloca=yes
12554 gl_cv_rpl_alloca=no
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12561 $as_echo "$gl_cv_rpl_alloca" >&6; }
12562 if test $gl_cv_rpl_alloca = yes; then
12564 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12574 if test -n "$ALLOCA_H"; then
12575 GL_GENERATE_ALLOCA_H_TRUE=
12576 GL_GENERATE_ALLOCA_H_FALSE='#'
12578 GL_GENERATE_ALLOCA_H_TRUE='#'
12579 GL_GENERATE_ALLOCA_H_FALSE=
12586 if test $ac_cv_func_canonicalize_file_name = no; then
12587 HAVE_CANONICALIZE_FILE_NAME=0
12588 if test $ac_cv_func_realpath = no; then
12591 case "$gl_cv_func_realpath_works" in
12593 *) REPLACE_REALPATH=1 ;;
12597 case "$gl_cv_func_realpath_works" in
12601 REPLACE_CANONICALIZE_FILE_NAME=1
12607 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12616 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12621 cat >>confdefs.h <<_ACEOF
12622 #define GNULIB_CANONICALIZE_LGPL 1
12631 GNULIB_CANONICALIZE_FILE_NAME=1
12637 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12652 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12667 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12672 if test "x$datarootdir" = x; then
12673 datarootdir='${datadir}'
12676 if test "x$docdir" = x; then
12677 docdir='${datarootdir}/doc/${PACKAGE}'
12680 if test "x$htmldir" = x; then
12681 htmldir='${docdir}'
12684 if test "x$dvidir" = x; then
12688 if test "x$pdfdir" = x; then
12692 if test "x$psdir" = x; then
12696 if test "x$lispdir" = x; then
12697 lispdir='${datarootdir}/emacs/site-lisp'
12700 if test "x$localedir" = x; then
12701 localedir='${datarootdir}/locale'
12704 if test "x$runstatedir" = x; then
12705 runstatedir='${localstatedir}/run'
12709 pkglibexecdir='${libexecdir}/${PACKAGE}'
12724 if test $gl_cv_have_include_next = yes; then
12725 gl_cv_next_dirent_h='<'dirent.h'>'
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12728 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12729 if test "${gl_cv_next_dirent_h+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12733 if test $ac_cv_header_dirent_h = yes; then
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <dirent.h>
12743 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12744 *) gl_absname_cpp="$ac_cpp" ;;
12749 gl_dirsep_regex='[/\\]'
12752 gl_dirsep_regex='\/'
12755 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12756 gl_header_literal_regex=`echo 'dirent.h' \
12757 |
sed -e "$gl_make_literal_regex_sed"`
12758 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12765 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12766 sed -n "$gl_absolute_header_sed"`
12768 gl_header=$gl_cv_absolute_dirent_h
12769 gl_cv_next_dirent_h='"'$gl_header'"'
12771 gl_cv_next_dirent_h='<'dirent.h'>'
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12777 $as_echo "$gl_cv_next_dirent_h" >&6; }
12779 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12781 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12783 gl_next_as_first_directive='<'dirent.h'>'
12785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12786 gl_next_as_first_directive=$gl_cv_next_dirent_h
12788 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12793 if test $ac_cv_header_dirent_h = yes; then
12801 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12802 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12804 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12805 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12806 $as_echo_n "(cached) " >&6
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <dirent.h>
12821 if ac_fn_c_try_compile "$LINENO"; then :
12822 eval "$as_gl_Symbol=yes"
12824 eval "$as_gl_Symbol=no"
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 eval ac_res=\$$as_gl_Symbol
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12830 $as_echo "$ac_res" >&6; }
12831 eval as_val=\$$as_gl_Symbol
12832 if test "x$as_val" = x""yes; then :
12833 cat >>confdefs.h <<_ACEOF
12834 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12837 eval ac_cv_have_decl_$gl_func=yes
12847 for ac_func in dirfd
12849 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12850 if test "x$ac_cv_func_dirfd" = x""yes; then :
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_DIRFD 1
12858 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12859 #include <dirent.h>
12861 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12867 cat >>confdefs.h <<_ACEOF
12868 #define HAVE_DECL_DIRFD $ac_have_decl
12871 if test $ac_cv_have_decl_dirfd = no; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12876 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12877 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 #include <sys/types.h>
12884 #include <dirent.h>
12886 dirent_header_defines_dirfd
12889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12890 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12891 gl_cv_func_dirfd_macro=yes
12893 gl_cv_func_dirfd_macro=no
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12899 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12901 # Use the replacement if we have no function or macro with that name,
12902 # or if OS/2 kLIBC whose dirfd() does not work.
12903 # Replace only if the system declares dirfd already.
12904 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
12905 no,no,*,yes | *,*,os2*,yes)
12908 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
12912 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
12913 || test $REPLACE_DIRFD = 1; then
12922 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12926 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12927 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12931 dirfd_save_CFLAGS=$CFLAGS
12932 for ac_expr in d_fd dd_fd; do
12934 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12938 #include <sys/types.h>
12939 #include <dirent.h>
12943 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12948 if ac_fn_c_try_compile "$LINENO"; then :
12952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 CFLAGS=$dirfd_save_CFLAGS
12954 test "$dir_fd_found" = yes && break
12956 test "$dir_fd_found" = yes || ac_expr=no_such_member
12958 gl_cv_sys_dir_fd_member_name=$ac_expr
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12963 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12964 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12966 cat >>confdefs.h <<_ACEOF
12967 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12985 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12996 $as_echo_n "checking whether // is distinct from /... " >&6; }
12997 if test "${gl_cv_double_slash_root+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
13000 if test x"$cross_compiling" = xyes ; then
13001 # When cross-compiling, there is no way to tell whether // is special
13002 # short of a list of hosts. However, the only known hosts to date
13003 # that have a distinct // are Apollo DomainOS (too old to port to),
13004 # Cygwin, and z/OS. If anyone knows of another system for which // has
13005 # special semantics and is distinct from /, please report it to
13006 # <bug-gnulib@gnu.org>.
13008 *-cygwin | i370-ibm-openedition)
13009 gl_cv_double_slash_root=yes ;;
13011 # Be optimistic and assume that / and // are the same when we
13013 gl_cv_double_slash_root='unknown, assuming no' ;;
13016 set x `ls -di / // 2>/dev
/null
`
13017 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
13018 gl_cv_double_slash_root=no
13020 gl_cv_double_slash_root=yes
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
13025 $as_echo "$gl_cv_double_slash_root" >&6; }
13026 if test "$gl_cv_double_slash_root" = yes; then
13028 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
13044 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
13052 $as_echo_n "checking for flexible array member... " >&6; }
13053 if test "${ac_cv_c_flexmember+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13058 #include <stdlib.h>
13060 #include <stddef.h>
13061 struct s { int n; double d[]; };
13065 int m = getchar ();
13066 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
13067 nbytes += sizeof (struct s) - 1;
13068 nbytes -= nbytes % sizeof (struct s);
13069 struct s *p = malloc (nbytes);
13071 return p->d != (double *) NULL;
13076 if ac_fn_c_try_compile "$LINENO"; then :
13077 ac_cv_c_flexmember=yes
13079 ac_cv_c_flexmember=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13084 $as_echo "$ac_cv_c_flexmember" >&6; }
13085 if test $ac_cv_c_flexmember = yes; then
13087 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13090 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13098 REPLACE_FLOAT_LDBL=0
13100 aix* | beos* | openbsd* | mirbsd* | irix*)
13104 case "$host_cpu" in
13109 # On x86_64 systems, the C compiler may still be generating
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 $EGREP "yes" >/dev/null 2>&1; then :
13129 case "$host_cpu" in
13137 aix* | freebsd* | linux*)
13138 if test -n "$FLOAT_H"; then
13139 REPLACE_FLOAT_LDBL=1
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13146 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13147 if test "${gl_cv_func_itold_works+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13151 if test "$cross_compiling" = yes; then :
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #if defined __LP64__ || defined __arch64__
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "yes" >/dev/null 2>&1; then :
13162 gl_cv_func_itold_works="guessing no"
13164 gl_cv_func_itold_works="guessing yes"
13169 *) gl_cv_func_itold_works="guessing yes" ;;
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13177 volatile long double ld;
13186 if ac_fn_c_try_run "$LINENO"; then :
13187 gl_cv_func_itold_works=yes
13189 gl_cv_func_itold_works=no
13191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13192 conftest.$ac_objext conftest.beam conftest.$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13198 $as_echo "$gl_cv_func_itold_works" >&6; }
13199 case "$gl_cv_func_itold_works" in
13206 if test -n "$FLOAT_H"; then
13215 if test $gl_cv_have_include_next = yes; then
13216 gl_cv_next_float_h='<'float.h'>'
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13219 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13220 if test "${gl_cv_next_float_h+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13231 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13232 *) gl_absname_cpp="$ac_cpp" ;;
13237 gl_dirsep_regex='[/\\]'
13240 gl_dirsep_regex='\/'
13243 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13244 gl_header_literal_regex=`echo 'float.h' \
13245 |
sed -e "$gl_make_literal_regex_sed"`
13246 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13247 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13253 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13254 sed -n "$gl_absolute_header_sed"`
13256 gl_header=$gl_cv_absolute_float_h
13257 gl_cv_next_float_h='"'$gl_header'"'
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13262 $as_echo "$gl_cv_next_float_h" >&6; }
13264 NEXT_FLOAT_H=$gl_cv_next_float_h
13266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13268 gl_next_as_first_directive='<'float.h'>'
13270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13271 gl_next_as_first_directive=$gl_cv_next_float_h
13273 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13280 if test -n "$FLOAT_H"; then
13281 GL_GENERATE_FLOAT_H_TRUE=
13282 GL_GENERATE_FLOAT_H_FALSE='#'
13284 GL_GENERATE_FLOAT_H_TRUE='#'
13285 GL_GENERATE_FLOAT_H_FALSE=
13290 if test $REPLACE_FLOAT_LDBL = 1; then
13299 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13302 if test $REPLACE_ITOLD = 1; then
13311 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13320 gl_fnmatch_required_lowercase=`
13321 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
13323 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
13325 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
13326 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13327 $as_echo_n "(cached) " >&6
13329 if test $gl_fnmatch_required = GNU; then
13330 gl_fnmatch_gnu_start=
13331 gl_fnmatch_gnu_end=
13333 gl_fnmatch_gnu_start='#if 0'
13334 gl_fnmatch_gnu_end='#endif'
13336 if test "$cross_compiling" = yes; then :
13337 eval "$gl_fnmatch_cache_var=\"guessing no\""
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 #include <fnmatch.h>
13343 y (char const *pattern, char const *string, int flags)
13345 return fnmatch (pattern, string, flags) == 0;
13348 n (char const *pattern, char const *string, int flags)
13350 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
13356 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
13357 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
13358 static char const A_1[] = { 'A' - 1, 0 };
13359 static char const A01[] = { 'A' + 1, 0 };
13360 static char const a_1[] = { 'a' - 1, 0 };
13361 static char const a01[] = { 'a' + 1, 0 };
13362 static char const bs_1[] = { '\\\\' - 1, 0 };
13363 static char const bs01[] = { '\\\\' + 1, 0 };
13365 if (!n ("a*", "", 0))
13367 if (!y ("a*", "abc", 0))
13369 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
13371 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
13373 if (!y ("a\\\\bc", "abc", 0))
13375 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
13377 if (!y ("*x", ".x", 0))
13379 if (!n ("*x", ".x", FNM_PERIOD))
13381 if (!y (Apat, "\\\\", 0))
13383 if (!y (Apat, "A", 0))
13385 if (!y (apat, "\\\\", 0))
13387 if (!y (apat, "a", 0))
13389 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
13391 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
13393 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
13395 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
13397 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
13399 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
13401 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
13403 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
13405 $gl_fnmatch_gnu_start
13406 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
13408 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
13410 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
13412 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
13414 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
13416 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
13418 $gl_fnmatch_gnu_end
13425 if ac_fn_c_try_run "$LINENO"; then :
13426 eval "$gl_fnmatch_cache_var=yes"
13428 eval "$gl_fnmatch_cache_var=no"
13430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13431 conftest.$ac_objext conftest.beam conftest.$ac_ext
13436 eval ac_res=\$$gl_fnmatch_cache_var
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13438 $as_echo "$ac_res" >&6; }
13439 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
13440 if test "$gl_fnmatch_result" = yes; then
13441 rm -f "$gl_source_base/fnmatch.h"
13443 FNMATCH_H=fnmatch.h
13446 if test -n "$FNMATCH_H"; then
13447 GL_GENERATE_FNMATCH_H_TRUE=
13448 GL_GENERATE_FNMATCH_H_FALSE='#'
13450 GL_GENERATE_FNMATCH_H_TRUE='#'
13451 GL_GENERATE_FNMATCH_H_FALSE=
13455 if test -n "$FNMATCH_H"; then
13464 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13468 cat >>confdefs.h <<_ACEOF
13469 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13473 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13475 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13481 cat >>confdefs.h <<_ACEOF
13482 #define HAVE_DECL_ISBLANK $ac_have_decl
13494 if test -n "$FNMATCH_H"; then
13503 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13507 cat >>confdefs.h <<_ACEOF
13508 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13512 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13514 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13520 cat >>confdefs.h <<_ACEOF
13521 #define HAVE_DECL_ISBLANK $ac_have_decl
13532 if test $gl_cv_func_frexp_no_libm = no; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13534 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13535 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13548 int e; return frexp (x, &e) > 0;
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 gl_cv_func_frexp_in_libm=yes
13556 gl_cv_func_frexp_in_libm=no
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13564 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13565 if test $gl_cv_func_frexp_in_libm = yes; then
13569 if test $gl_cv_func_frexp_no_libm = yes \
13570 || test $gl_cv_func_frexp_in_libm = yes; then
13572 LIBS="$LIBS $FREXP_LIBM"
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13577 $as_echo_n "checking whether frexp works... " >&6; }
13578 if test "${gl_cv_func_frexp_works+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13582 if test "$cross_compiling" = yes; then :
13584 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13585 *) gl_cv_func_frexp_works="guessing yes";;
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13594 #include <string.h>
13595 #if HAVE_DECL_ALARM
13596 # include <signal.h>
13597 # include <unistd.h>
13599 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13600 ICC 10.0 has a bug when optimizing the expression -zero.
13601 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13602 to PowerPC on Mac OS X 10.5. */
13603 #if defined __hpux || defined __sgi || defined __ICC
13605 compute_minus_zero (void)
13607 return -DBL_MIN * DBL_MIN;
13609 # define minus_zero compute_minus_zero ()
13611 double minus_zero = -0.0;
13619 #if HAVE_DECL_ALARM
13620 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13621 number. Let the test fail in this case. */
13622 signal (SIGALRM, SIG_DFL);
13625 /* Test on denormalized numbers. */
13626 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13631 double y = frexp (x, &exp);
13632 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13633 On NetBSD: y = 0.75. Correct: y = 0.5. */
13637 /* Test on infinite numbers. */
13641 double y = frexp (x, &exp);
13645 /* Test on negative zero. */
13649 double y = frexp (x, &exp);
13650 if (memcmp (&y, &x, sizeof x))
13656 if ac_fn_c_try_run "$LINENO"; then :
13657 gl_cv_func_frexp_works=yes
13659 gl_cv_func_frexp_works=no
13661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13662 conftest.$ac_objext conftest.beam conftest.$ac_ext
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13668 $as_echo "$gl_cv_func_frexp_works" >&6; }
13671 case "$gl_cv_func_frexp_works" in
13672 *yes) gl_func_frexp=yes ;;
13673 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13678 if test $gl_func_frexp = yes; then
13680 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13685 if test $gl_func_frexp != yes; then
13694 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13708 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13718 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13720 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13728 if test $HAVE_DECL_FREXPL = 1; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13731 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13732 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13743 int e; return frexpl (x, &e) > 0;
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 gl_cv_func_frexpl_no_libm=yes
13751 gl_cv_func_frexpl_no_libm=no
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13758 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13760 if test $gl_cv_func_frexpl_no_libm = no; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13762 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13763 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13776 int e; return frexpl (x, &e) > 0;
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 gl_cv_func_frexpl_in_libm=yes
13784 gl_cv_func_frexpl_in_libm=no
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13792 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13793 if test $gl_cv_func_frexpl_in_libm = yes; then
13797 if test $gl_cv_func_frexpl_no_libm = yes \
13798 || test $gl_cv_func_frexpl_in_libm = yes; then
13800 LIBS="$LIBS $FREXPL_LIBM"
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13804 $as_echo_n "checking whether frexpl works... " >&6; }
13805 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13809 if test "$cross_compiling" = yes; then :
13812 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13813 gl_cv_func_frexpl_works="guessing no";;
13814 *) gl_cv_func_frexpl_works="guessing yes";;
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13823 /* Override the values of <float.h>, like done in float.in.h. */
13824 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13825 # undef LDBL_MIN_EXP
13826 # define LDBL_MIN_EXP (-16381)
13828 #if defined __i386__ && defined __FreeBSD__
13829 # undef LDBL_MIN_EXP
13830 # define LDBL_MIN_EXP (-16381)
13832 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13833 # undef LDBL_MIN_EXP
13834 # define LDBL_MIN_EXP DBL_MIN_EXP
13836 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13837 # if defined __GNUC__
13838 # undef LDBL_MIN_EXP
13839 # define LDBL_MIN_EXP DBL_MIN_EXP
13846 long double frexpl (long double, int *);
13850 volatile long double x;
13851 /* Test on finite numbers that fails on AIX 5.1. */
13859 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13860 function returns an invalid (incorrectly normalized) value: it returns
13861 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13862 but the correct result is
13863 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13867 long double y = frexpl (x, &exp);
13868 if (!(exp == 1 && y == 0.505L))
13871 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13872 LDBL_MAX_EXP = 16384.
13873 In the loop end test, we test x against Infinity, rather than comparing
13874 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13877 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13888 /* Test on denormalized numbers. */
13891 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13896 long double y = frexpl (x, &exp);
13897 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13898 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13899 if (exp != LDBL_MIN_EXP - 1)
13903 /* Test on infinite numbers. */
13907 long double y = frexpl (x, &exp);
13914 if ac_fn_c_try_run "$LINENO"; then :
13915 gl_cv_func_frexpl_works=yes
13917 gl_cv_func_frexpl_works=no
13919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13920 conftest.$ac_objext conftest.beam conftest.$ac_ext
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13926 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13929 case "$gl_cv_func_frexpl_works" in
13930 *yes) gl_func_frexpl=yes ;;
13931 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13936 if test $gl_func_frexpl = yes; then
13938 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13942 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13943 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13945 FREXPL_LIBM="$FREXP_LIBM"
13952 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13961 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13975 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13985 gl_gettimeofday_timezone=void
13986 if test $ac_cv_func_gettimeofday != yes; then
13987 HAVE_GETTIMEOFDAY=0
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13993 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13994 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13995 $as_echo_n "(cached) " >&6
13997 if test "$cross_compiling" = yes; then :
13998 # When cross-compiling:
14000 # Guess all is fine on glibc systems.
14001 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
14002 # If we don't know, assume the worst.
14003 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 #include <string.h>
14010 #include <sys/time.h>
14012 #include <stdlib.h>
14020 struct tm saved_lt;
14022 lt = localtime (&t);
14024 gettimeofday (&tv, NULL);
14025 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14031 if ac_fn_c_try_run "$LINENO"; then :
14032 gl_cv_func_gettimeofday_clobber=no
14034 gl_cv_func_gettimeofday_clobber=yes
14036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14037 conftest.$ac_objext conftest.beam conftest.$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14042 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14044 case "$gl_cv_func_gettimeofday_clobber" in
14046 REPLACE_GETTIMEOFDAY=1
14049 REPLACE_LOCALTIME=1
14052 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14058 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14059 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14064 #include <sys/time.h>
14066 int gettimeofday (struct timeval *restrict, void *restrict);
14071 /* glibc uses struct timezone * rather than the POSIX void *
14072 if _GNU_SOURCE is defined. However, since the only portable
14073 use of gettimeofday uses NULL as the second parameter, and
14074 since the glibc definition is actually more typesafe, it is
14075 not worth wrapping this to get a compliant signature. */
14076 int (*f) (struct timeval *restrict, void *restrict)
14079 return !(x | c.tv_sec | c.tv_usec);
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 gl_cv_func_gettimeofday_posix_signature=yes
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <sys/time.h>
14091 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 gl_cv_func_gettimeofday_posix_signature=almost
14104 gl_cv_func_gettimeofday_posix_signature=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14111 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14112 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14113 gl_gettimeofday_timezone='struct timezone'
14114 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14115 REPLACE_GETTIMEOFDAY=1
14117 if test $REPLACE_STRUCT_TIMEVAL = 1; then
14118 REPLACE_GETTIMEOFDAY=1
14123 cat >>confdefs.h <<_ACEOF
14124 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14128 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
14137 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14140 for ac_header in sys/timeb.h
14142 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14143 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_SYS_TIMEB_H 1
14152 for ac_func in _ftime
14154 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14155 if test "x$ac_cv_func__ftime" = x""yes; then :
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE__FTIME 1
14170 GNULIB_GETTIMEOFDAY=1
14176 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14189 if test -n "$STDINT_H"; then
14190 PRIPTR_PREFIX='"l"'
14192 for glpfx in '' l ll I64; do
14194 '') gltype1='int';;
14195 l) gltype1='long int';;
14196 ll) gltype1='long long int';;
14197 I64) gltype1='__int64';;
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 #include <stdint.h>
14202 extern intptr_t foo;
14203 extern $gltype1 foo;
14212 if ac_fn_c_try_compile "$LINENO"; then :
14213 PRIPTR_PREFIX='"'$glpfx'"'
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 test -n "$PRIPTR_PREFIX" && break
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
14223 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14224 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 /* Work also in C++ mode. */
14230 #define __STDC_LIMIT_MACROS 1
14232 /* Work if build is not clean. */
14233 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14235 #include <limits.h>
14237 #include <stdint.h>
14240 #if defined INT32_MAX && defined INTMAX_MAX
14241 #define CONDITION (INT32_MAX < INTMAX_MAX)
14242 #elif HAVE_LONG_LONG_INT
14243 #define CONDITION (sizeof (int) < sizeof (long long int))
14245 #define CONDITION 0
14247 int test[CONDITION ? 1 : -1];
14256 if ac_fn_c_try_compile "$LINENO"; then :
14257 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14259 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14264 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14265 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14266 INT32_MAX_LT_INTMAX_MAX=1;
14268 INT32_MAX_LT_INTMAX_MAX=0;
14272 if test $APPLE_UNIVERSAL_BUILD = 0; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
14275 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14276 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 /* Work also in C++ mode. */
14282 #define __STDC_LIMIT_MACROS 1
14284 /* Work if build is not clean. */
14285 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14287 #include <limits.h>
14289 #include <stdint.h>
14292 #if defined INT64_MAX
14293 #define CONDITION (INT64_MAX == LONG_MAX)
14294 #elif HAVE_LONG_LONG_INT
14295 #define CONDITION (sizeof (long long int) == sizeof (long int))
14297 #define CONDITION 0
14299 int test[CONDITION ? 1 : -1];
14308 if ac_fn_c_try_compile "$LINENO"; then :
14309 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14311 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14316 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14317 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14318 INT64_MAX_EQ_LONG_MAX=1;
14320 INT64_MAX_EQ_LONG_MAX=0;
14325 INT64_MAX_EQ_LONG_MAX=-1
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14329 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14330 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
14331 $as_echo_n "(cached) " >&6
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 /* Work also in C++ mode. */
14336 #define __STDC_LIMIT_MACROS 1
14338 /* Work if build is not clean. */
14339 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14341 #include <limits.h>
14343 #include <stdint.h>
14346 #if defined UINT32_MAX && defined UINTMAX_MAX
14347 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14348 #elif HAVE_LONG_LONG_INT
14349 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
14351 #define CONDITION 0
14353 int test[CONDITION ? 1 : -1];
14362 if ac_fn_c_try_compile "$LINENO"; then :
14363 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14365 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14370 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14371 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14372 UINT32_MAX_LT_UINTMAX_MAX=1;
14374 UINT32_MAX_LT_UINTMAX_MAX=0;
14378 if test $APPLE_UNIVERSAL_BUILD = 0; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
14381 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14382 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 /* Work also in C++ mode. */
14388 #define __STDC_LIMIT_MACROS 1
14390 /* Work if build is not clean. */
14391 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14393 #include <limits.h>
14395 #include <stdint.h>
14398 #if defined UINT64_MAX
14399 #define CONDITION (UINT64_MAX == ULONG_MAX)
14400 #elif HAVE_LONG_LONG_INT
14401 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
14403 #define CONDITION 0
14405 int test[CONDITION ? 1 : -1];
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
14417 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
14422 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
14423 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
14424 UINT64_MAX_EQ_ULONG_MAX=1;
14426 UINT64_MAX_EQ_ULONG_MAX=0;
14431 UINT64_MAX_EQ_ULONG_MAX=-1
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14439 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14440 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14449 # define isnand(x) __builtin_isnan ((double)(x))
14452 # define isnand(x) isnan ((double)(x))
14463 if ac_fn_c_try_link "$LINENO"; then :
14464 gl_cv_func_isnand_no_libm=yes
14466 gl_cv_func_isnand_no_libm=no
14468 rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14473 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14475 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14476 if test $gl_cv_func_isnand_no_libm = yes; then
14478 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14482 if test $gl_func_isnand_no_libm != yes; then
14491 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14500 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14501 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14510 # define isnanl(x) __builtin_isnanl ((long double)(x))
14511 #elif defined isnan
14513 # define isnanl(x) isnan ((long double)(x))
14524 if ac_fn_c_try_link "$LINENO"; then :
14525 gl_cv_func_isnanl_no_libm=yes
14527 gl_cv_func_isnanl_no_libm=no
14529 rm -f core conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14534 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14536 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14537 if test $gl_func_isnanl_no_libm = yes; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14543 $as_echo_n "checking whether isnanl works... " >&6; }
14544 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14545 $as_echo_n "(cached) " >&6
14548 if test "$cross_compiling" = yes; then :
14549 gl_cv_func_isnanl_works="guessing yes"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14555 #include <limits.h>
14559 # define isnanl(x) __builtin_isnanl ((long double)(x))
14560 #elif defined isnan
14562 # define isnanl(x) isnan ((long double)(x))
14565 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14566 typedef union { unsigned int word[NWORDS]; long double value; }
14567 memory_long_double;
14568 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14569 runtime type conversion. */
14571 static long double NaNl ()
14574 return zero / zero;
14577 # define NaNl() (0.0L / 0.0L)
14583 if (!isnanl (NaNl ()))
14587 memory_long_double m;
14590 /* The isnanl function should be immune against changes in the sign bit and
14591 in the mantissa bits. The xor operation twiddles a bit that can only be
14592 a sign bit or a mantissa bit (since the exponent never extends to
14595 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14596 for (i = 0; i < NWORDS; i++)
14598 if (!isnanl (m.value))
14602 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
14603 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14604 of 'unsigned int' words. */
14605 # ifdef WORDS_BIGENDIAN
14606 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14607 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14608 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14609 (unsigned int) (mantlo) << 16 \
14612 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14613 { mantlo, manthi, exponent }
14616 static memory_long_double x =
14617 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14618 if (!isnanl (x.value))
14622 /* Signalling NaN. */
14623 static memory_long_double x =
14624 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14625 if (!isnanl (x.value))
14628 /* isnanl should return something even for noncanonical values. */
14629 { /* Pseudo-NaN. */
14630 static memory_long_double x =
14631 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14632 if (isnanl (x.value) && !isnanl (x.value))
14635 { /* Pseudo-Infinity. */
14636 static memory_long_double x =
14637 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14638 if (isnanl (x.value) && !isnanl (x.value))
14641 { /* Pseudo-Zero. */
14642 static memory_long_double x =
14643 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14644 if (isnanl (x.value) && !isnanl (x.value))
14647 { /* Unnormalized number. */
14648 static memory_long_double x =
14649 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14650 if (isnanl (x.value) && !isnanl (x.value))
14653 { /* Pseudo-Denormal. */
14654 static memory_long_double x =
14655 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14656 if (isnanl (x.value) && !isnanl (x.value))
14664 if ac_fn_c_try_run "$LINENO"; then :
14665 gl_cv_func_isnanl_works=yes
14667 gl_cv_func_isnanl_works=no
14669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14670 conftest.$ac_objext conftest.beam conftest.$ac_ext
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14676 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14678 case "$gl_cv_func_isnanl_works" in
14680 *) gl_func_isnanl_no_libm=no ;;
14683 if test $gl_func_isnanl_no_libm = yes; then
14685 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14689 if test $gl_func_isnanl_no_libm != yes; then
14698 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14704 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14705 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14709 if test "$cross_compiling" = yes; then :
14711 gl_cv_cc_long_double_expbit0="unknown"
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14718 #include <stddef.h>
14720 #include <string.h>
14722 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14723 typedef union { long double value; unsigned int word[NWORDS]; }
14724 memory_long_double;
14725 static unsigned int ored_words[NWORDS];
14726 static unsigned int anded_words[NWORDS];
14727 static void add_to_ored_words (long double x)
14729 memory_long_double m;
14731 /* Clear it first, in case
14732 sizeof (long double) < sizeof (memory_long_double). */
14733 memset (&m, 0, sizeof (memory_long_double));
14735 for (i = 0; i < NWORDS; i++)
14737 ored_words[i] |= m.word[i];
14738 anded_words[i] &= m.word[i];
14744 FILE *fp = fopen ("conftest.out", "w");
14747 for (j = 0; j < NWORDS; j++)
14748 anded_words[j] = ~ (unsigned int) 0;
14749 add_to_ored_words (0.25L);
14750 add_to_ored_words (0.5L);
14751 add_to_ored_words (1.0L);
14752 add_to_ored_words (2.0L);
14753 add_to_ored_words (4.0L);
14754 /* Remove bits that are common (e.g. if representation of the first mantissa
14755 bit is explicit). */
14756 for (j = 0; j < NWORDS; j++)
14757 ored_words[j] &= ~anded_words[j];
14758 /* Now find the nonzero word. */
14759 for (j = 0; j < NWORDS; j++)
14760 if (ored_words[j] != 0)
14765 for (i = j + 1; i < NWORDS; i++)
14766 if (ored_words[i] != 0)
14768 fprintf (fp, "unknown");
14769 return (fclose (fp) != 0);
14772 if ((ored_words[j] >> i) & 1)
14774 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14775 return (fclose (fp) != 0);
14778 fprintf (fp, "unknown");
14779 return (fclose (fp) != 0);
14783 if ac_fn_c_try_run "$LINENO"; then :
14784 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
14786 gl_cv_cc_long_double_expbit0="unknown"
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14789 conftest.$ac_objext conftest.beam conftest.$ac_ext
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14796 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14797 case "$gl_cv_cc_long_double_expbit0" in
14799 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
14800 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
14802 cat >>confdefs.h <<_ACEOF
14803 #define LDBL_EXPBIT0_WORD $word
14807 cat >>confdefs.h <<_ACEOF
14808 #define LDBL_EXPBIT0_BIT $bit
14827 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14832 if test $ac_cv_func_lstat = yes; then
14834 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14843 if test $REPLACE_LSTAT = 1; then
14852 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14867 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14874 if test $gl_cv_func_malloc_posix = yes; then
14876 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14882 if test $REPLACE_MALLOC = 1; then
14891 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14899 GNULIB_MALLOC_POSIX=1
14905 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14924 if test $gl_cv_have_include_next = yes; then
14925 gl_cv_next_math_h='<'math.h'>'
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14928 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14929 if test "${gl_cv_next_math_h+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14933 if test $ac_cv_header_math_h = yes; then
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14943 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14944 *) gl_absname_cpp="$ac_cpp" ;;
14949 gl_dirsep_regex='[/\\]'
14952 gl_dirsep_regex='\/'
14955 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14956 gl_header_literal_regex=`echo 'math.h' \
14957 |
sed -e "$gl_make_literal_regex_sed"`
14958 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14959 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14965 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14966 sed -n "$gl_absolute_header_sed"`
14968 gl_header=$gl_cv_absolute_math_h
14969 gl_cv_next_math_h='"'$gl_header'"'
14971 gl_cv_next_math_h='<'math.h'>'
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14977 $as_echo "$gl_cv_next_math_h" >&6; }
14979 NEXT_MATH_H=$gl_cv_next_math_h
14981 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14983 gl_next_as_first_directive='<'math.h'>'
14985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14986 gl_next_as_first_directive=$gl_cv_next_math_h
14988 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14995 $as_echo_n "checking whether NAN macro works... " >&6; }
14996 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14997 $as_echo_n "(cached) " >&6
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15005 /* Solaris 10 has a broken definition of NAN. Other platforms
15006 fail to provide NAN, or provide it only in C99 mode; this
15007 test only needs to fail when NAN is provided but wrong. */
15017 if ac_fn_c_try_compile "$LINENO"; then :
15018 gl_cv_header_math_nan_works=yes
15020 gl_cv_header_math_nan_works=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15025 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15026 if test $gl_cv_header_math_nan_works = no; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15030 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15031 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
15032 $as_echo_n "(cached) " >&6
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15040 /* Solaris 10 has a broken definition of HUGE_VAL. */
15041 double d = HUGE_VAL;
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 gl_cv_header_math_huge_val_works=yes
15050 gl_cv_header_math_huge_val_works=no
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
15055 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
15056 if test $gl_cv_header_math_huge_val_works = no; then
15061 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
15062 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15064 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15065 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15066 $as_echo_n "(cached) " >&6
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15080 if ac_fn_c_try_compile "$LINENO"; then :
15081 eval "$as_gl_Symbol=yes"
15083 eval "$as_gl_Symbol=no"
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 eval ac_res=\$$as_gl_Symbol
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15089 $as_echo "$ac_res" >&6; }
15090 eval as_val=\$$as_gl_Symbol
15091 if test "x$as_val" = x""yes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
15096 eval ac_cv_have_decl_$gl_func=yes
15111 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15116 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15117 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15118 $as_echo_n "(cached) " >&6
15122 # Guess no on AIX and OSF/1.
15123 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15124 # Guess yes otherwise.
15125 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15127 if test $LOCALE_JA != none; then
15128 if test "$cross_compiling" = yes; then :
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 #include <locale.h>
15135 #include <string.h>
15136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15139 included before <wchar.h>. */
15140 #include <stddef.h>
15146 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15148 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15152 memset (&state, '\0', sizeof (mbstate_t));
15153 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15154 if (mbsinit (&state))
15160 if ac_fn_c_try_run "$LINENO"; then :
15161 gl_cv_func_mbrtowc_incomplete_state=yes
15163 gl_cv_func_mbrtowc_incomplete_state=no
15165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15166 conftest.$ac_objext conftest.beam conftest.$ac_ext
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15173 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15179 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15180 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15181 $as_echo_n "(cached) " >&6
15185 # Guess no on Solaris 8.
15186 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15187 # Guess yes otherwise.
15188 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15190 if test $LOCALE_ZH_CN != none; then
15191 if test "$cross_compiling" = yes; then :
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15197 #include <locale.h>
15198 #include <stdlib.h>
15199 #include <string.h>
15200 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15202 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15203 included before <wchar.h>. */
15204 #include <stddef.h>
15210 /* This fails on Solaris 8:
15211 mbrtowc returns 2, and sets wc to 0x00F0.
15212 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15213 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15215 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15219 memset (&state, '\0', sizeof (mbstate_t));
15220 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15221 && mbtowc (&wc, input + 3, 6) == 4)
15227 if ac_fn_c_try_run "$LINENO"; then :
15228 gl_cv_func_mbrtowc_sanitycheck=yes
15230 gl_cv_func_mbrtowc_sanitycheck=no
15232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15233 conftest.$ac_objext conftest.beam conftest.$ac_ext
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15240 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15242 REPLACE_MBSTATE_T=0
15243 case "$gl_cv_func_mbrtowc_incomplete_state" in
15245 *) REPLACE_MBSTATE_T=1 ;;
15247 case "$gl_cv_func_mbrtowc_sanitycheck" in
15249 *) REPLACE_MBSTATE_T=1 ;;
15252 REPLACE_MBSTATE_T=1
15257 if test $ac_cv_func_mbrtowc = no; then
15259 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
15260 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15262 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15263 included before <wchar.h>. */
15264 #include <stddef.h>
15270 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
15276 cat >>confdefs.h <<_ACEOF
15277 #define HAVE_DECL_MBRTOWC $ac_have_decl
15280 if test $ac_cv_have_decl_mbrtowc = yes; then
15284 if test $REPLACE_MBSTATE_T = 1; then
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
15291 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
15292 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15297 # Guess no on Solaris.
15298 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
15299 # Guess yes otherwise.
15300 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
15302 if test $LOCALE_FR_UTF8 != none; then
15303 if test "$cross_compiling" = yes; then :
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15309 #include <locale.h>
15310 #include <stdlib.h>
15311 #include <string.h>
15312 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15314 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15315 included before <wchar.h>. */
15316 #include <stddef.h>
15324 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15326 char input[] = "\303\237er";
15331 memset (&state, '\0', sizeof (mbstate_t));
15332 wc = (wchar_t) 0xBADFACE;
15333 ret = mbrtowc (&wc, input, 5, &state);
15336 if (!mbsinit (&state))
15339 memset (&state, '\0', sizeof (mbstate_t));
15340 ret = mbrtowc (NULL, input, 5, &state);
15341 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
15343 if (!mbsinit (&state))
15349 if ac_fn_c_try_run "$LINENO"; then :
15350 gl_cv_func_mbrtowc_null_arg1=yes
15352 gl_cv_func_mbrtowc_null_arg1=no
15354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15355 conftest.$ac_objext conftest.beam conftest.$ac_ext
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
15362 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15368 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15369 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
15370 $as_echo_n "(cached) " >&6
15374 # Guess no on OSF/1.
15375 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
15376 # Guess yes otherwise.
15377 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
15379 if test $LOCALE_FR_UTF8 != none; then
15380 if test "$cross_compiling" = yes; then :
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15386 #include <locale.h>
15387 #include <string.h>
15388 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15390 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15391 included before <wchar.h>. */
15392 #include <stddef.h>
15398 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15404 memset (&state, '\0', sizeof (mbstate_t));
15405 wc = (wchar_t) 0xBADFACE;
15406 mbrtowc (&wc, NULL, 5, &state);
15407 /* Check that wc was not modified. */
15408 if (wc != (wchar_t) 0xBADFACE)
15414 if ac_fn_c_try_run "$LINENO"; then :
15415 gl_cv_func_mbrtowc_null_arg2=yes
15417 gl_cv_func_mbrtowc_null_arg2=no
15419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15420 conftest.$ac_objext conftest.beam conftest.$ac_ext
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
15427 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15435 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15436 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15441 # Guess no on HP-UX, Solaris, native Windows.
15442 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15443 # Guess yes otherwise.
15444 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15446 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
15447 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
15448 if test "$cross_compiling" = yes; then :
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15454 #include <locale.h>
15455 #include <string.h>
15456 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15458 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15459 included before <wchar.h>. */
15460 #include <stddef.h>
15467 int found_some_locale = 0;
15468 /* This fails on Solaris. */
15469 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15471 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15475 memset (&state, '\0', sizeof (mbstate_t));
15476 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15479 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15482 found_some_locale = 1;
15484 /* This fails on HP-UX 11.11. */
15485 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15487 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15491 memset (&state, '\0', sizeof (mbstate_t));
15492 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15495 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15498 found_some_locale = 1;
15500 /* This fails on native Windows. */
15501 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15503 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15507 memset (&state, '\0', sizeof (mbstate_t));
15508 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15511 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15514 found_some_locale = 1;
15516 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15518 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15522 memset (&state, '\0', sizeof (mbstate_t));
15523 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15526 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15529 found_some_locale = 1;
15531 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15533 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15537 memset (&state, '\0', sizeof (mbstate_t));
15538 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15541 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15544 found_some_locale = 1;
15546 return (found_some_locale ? result : 77);
15549 if ac_fn_c_try_run "$LINENO"; then :
15550 gl_cv_func_mbrtowc_retval=yes
15552 if test $? != 77; then
15553 gl_cv_func_mbrtowc_retval=no
15557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15558 conftest.$ac_objext conftest.beam conftest.$ac_ext
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15565 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15571 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15572 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15573 $as_echo_n "(cached) " >&6
15577 # Guess no on Solaris 8 and 9.
15578 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15579 # Guess yes otherwise.
15580 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15582 if test $LOCALE_ZH_CN != none; then
15583 if test "$cross_compiling" = yes; then :
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 #include <locale.h>
15590 #include <string.h>
15591 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15593 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15594 included before <wchar.h>. */
15595 #include <stddef.h>
15601 /* This fails on Solaris 8 and 9. */
15602 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15607 memset (&state, '\0', sizeof (mbstate_t));
15608 if (mbrtowc (&wc, "", 1, &state) != 0)
15614 if ac_fn_c_try_run "$LINENO"; then :
15615 gl_cv_func_mbrtowc_nul_retval=yes
15617 gl_cv_func_mbrtowc_nul_retval=no
15619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15620 conftest.$ac_objext conftest.beam conftest.$ac_ext
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15627 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15632 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15633 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15634 $as_echo_n "(cached) " >&6
15638 # Guess no on AIX and glibc systems.
15640 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15641 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15643 if test "$cross_compiling" = yes; then :
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15651 static mbstate_t mbs;
15655 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
15658 if ac_fn_c_try_run "$LINENO"; then :
15659 gl_cv_func_mbrtowc_empty_input=yes
15661 gl_cv_func_mbrtowc_empty_input=no
15663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15664 conftest.$ac_objext conftest.beam conftest.$ac_ext
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15670 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
15674 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
15675 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15679 gl_cv_C_locale_sans_EILSEQ="guessing no"
15681 if test "$cross_compiling" = yes; then :
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15686 #include <limits.h>
15687 #include <locale.h>
15695 char *locale = setlocale (LC_ALL, "C");
15698 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
15702 mbstate_t mbs = { 0, };
15703 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
15713 if ac_fn_c_try_run "$LINENO"; then :
15714 gl_cv_C_locale_sans_EILSEQ=yes
15716 gl_cv_C_locale_sans_EILSEQ=no
15718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15719 conftest.$ac_objext conftest.beam conftest.$ac_ext
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
15724 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
15726 case "$gl_cv_func_mbrtowc_null_arg1" in
15729 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15734 case "$gl_cv_func_mbrtowc_null_arg2" in
15737 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15742 case "$gl_cv_func_mbrtowc_retval" in
15745 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15750 case "$gl_cv_func_mbrtowc_nul_retval" in
15753 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15758 case "$gl_cv_func_mbrtowc_empty_input" in
15761 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15766 case $gl_cv_C_locale_sans_EILSEQ in
15769 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
15777 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15786 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15803 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15818 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15823 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15824 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15825 $as_echo_n "(cached) " >&6
15829 # Guess no on AIX and OSF/1.
15830 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15831 # Guess yes otherwise.
15832 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15834 if test $LOCALE_JA != none; then
15835 if test "$cross_compiling" = yes; then :
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15841 #include <locale.h>
15842 #include <string.h>
15843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15845 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15846 included before <wchar.h>. */
15847 #include <stddef.h>
15853 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15855 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15859 memset (&state, '\0', sizeof (mbstate_t));
15860 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15861 if (mbsinit (&state))
15867 if ac_fn_c_try_run "$LINENO"; then :
15868 gl_cv_func_mbrtowc_incomplete_state=yes
15870 gl_cv_func_mbrtowc_incomplete_state=no
15872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15873 conftest.$ac_objext conftest.beam conftest.$ac_ext
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15880 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15886 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15887 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15888 $as_echo_n "(cached) " >&6
15892 # Guess no on Solaris 8.
15893 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15894 # Guess yes otherwise.
15895 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15897 if test $LOCALE_ZH_CN != none; then
15898 if test "$cross_compiling" = yes; then :
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15904 #include <locale.h>
15905 #include <stdlib.h>
15906 #include <string.h>
15907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15910 included before <wchar.h>. */
15911 #include <stddef.h>
15917 /* This fails on Solaris 8:
15918 mbrtowc returns 2, and sets wc to 0x00F0.
15919 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15920 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15922 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15926 memset (&state, '\0', sizeof (mbstate_t));
15927 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15928 && mbtowc (&wc, input + 3, 6) == 4)
15934 if ac_fn_c_try_run "$LINENO"; then :
15935 gl_cv_func_mbrtowc_sanitycheck=yes
15937 gl_cv_func_mbrtowc_sanitycheck=no
15939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15940 conftest.$ac_objext conftest.beam conftest.$ac_ext
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15947 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15949 REPLACE_MBSTATE_T=0
15950 case "$gl_cv_func_mbrtowc_incomplete_state" in
15952 *) REPLACE_MBSTATE_T=1 ;;
15954 case "$gl_cv_func_mbrtowc_sanitycheck" in
15956 *) REPLACE_MBSTATE_T=1 ;;
15959 REPLACE_MBSTATE_T=1
15964 if test $ac_cv_func_mbsinit = no; then
15966 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15967 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15969 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15970 included before <wchar.h>. */
15971 #include <stddef.h>
15977 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE_DECL_MBSINIT $ac_have_decl
15987 if test $ac_cv_have_decl_mbsinit = yes; then
15991 if test $REPLACE_MBSTATE_T = 1; then
15995 mingw*) REPLACE_MBSINIT=1 ;;
16000 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
16009 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
16026 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
16040 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
16045 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
16046 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
16047 $as_echo_n "(cached) " >&6
16051 # Guess no on AIX and OSF/1.
16052 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
16053 # Guess yes otherwise.
16054 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
16056 if test $LOCALE_JA != none; then
16057 if test "$cross_compiling" = yes; then :
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16063 #include <locale.h>
16064 #include <string.h>
16065 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16067 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16068 included before <wchar.h>. */
16069 #include <stddef.h>
16075 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16077 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
16081 memset (&state, '\0', sizeof (mbstate_t));
16082 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
16083 if (mbsinit (&state))
16089 if ac_fn_c_try_run "$LINENO"; then :
16090 gl_cv_func_mbrtowc_incomplete_state=yes
16092 gl_cv_func_mbrtowc_incomplete_state=no
16094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16095 conftest.$ac_objext conftest.beam conftest.$ac_ext
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
16102 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
16108 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
16109 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16114 # Guess no on Solaris 8.
16115 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
16116 # Guess yes otherwise.
16117 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
16119 if test $LOCALE_ZH_CN != none; then
16120 if test "$cross_compiling" = yes; then :
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16126 #include <locale.h>
16127 #include <stdlib.h>
16128 #include <string.h>
16129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16132 included before <wchar.h>. */
16133 #include <stddef.h>
16139 /* This fails on Solaris 8:
16140 mbrtowc returns 2, and sets wc to 0x00F0.
16141 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
16142 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16144 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
16148 memset (&state, '\0', sizeof (mbstate_t));
16149 if (mbrtowc (&wc, input + 3, 6, &state) != 4
16150 && mbtowc (&wc, input + 3, 6) == 4)
16156 if ac_fn_c_try_run "$LINENO"; then :
16157 gl_cv_func_mbrtowc_sanitycheck=yes
16159 gl_cv_func_mbrtowc_sanitycheck=no
16161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16162 conftest.$ac_objext conftest.beam conftest.$ac_ext
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16169 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16171 REPLACE_MBSTATE_T=0
16172 case "$gl_cv_func_mbrtowc_incomplete_state" in
16174 *) REPLACE_MBSTATE_T=1 ;;
16176 case "$gl_cv_func_mbrtowc_sanitycheck" in
16178 *) REPLACE_MBSTATE_T=1 ;;
16181 REPLACE_MBSTATE_T=1
16186 if test $ac_cv_func_mbsrtowcs = no; then
16188 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
16189 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16191 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16192 included before <wchar.h>. */
16193 #include <stddef.h>
16199 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
16205 cat >>confdefs.h <<_ACEOF
16206 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
16209 if test $ac_cv_have_decl_mbsrtowcs = yes; then
16210 REPLACE_MBSRTOWCS=1
16213 if test $REPLACE_MBSTATE_T = 1; then
16214 REPLACE_MBSRTOWCS=1
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16223 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16224 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
16225 $as_echo_n "(cached) " >&6
16229 # Guess no on HP-UX, Solaris, mingw.
16230 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
16231 # Guess yes otherwise.
16232 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
16234 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
16235 if test "$cross_compiling" = yes; then :
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16241 #include <locale.h>
16242 #include <string.h>
16243 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16245 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16246 included before <wchar.h>. */
16247 #include <stddef.h>
16254 /* Test whether the function supports a NULL destination argument.
16255 This fails on native Windows. */
16256 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
16258 const char input[] = "\337er";
16259 const char *src = input;
16262 memset (&state, '\0', sizeof (mbstate_t));
16263 if (mbsrtowcs (NULL, &src, 1, &state) != 3
16267 /* Test whether the function works when started with a conversion state
16268 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16269 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16271 const char input[] = "B\303\274\303\237er";
16274 memset (&state, '\0', sizeof (mbstate_t));
16275 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16276 if (!mbsinit (&state))
16278 const char *src = input + 2;
16279 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16283 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16285 const char input[] = "<\306\374\313\334\270\354>";
16288 memset (&state, '\0', sizeof (mbstate_t));
16289 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16290 if (!mbsinit (&state))
16292 const char *src = input + 4;
16293 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16297 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16299 const char input[] = "B\250\271\201\060\211\070er";
16302 memset (&state, '\0', sizeof (mbstate_t));
16303 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16304 if (!mbsinit (&state))
16306 const char *src = input + 2;
16307 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16314 if ac_fn_c_try_run "$LINENO"; then :
16315 gl_cv_func_mbsrtowcs_works=yes
16317 gl_cv_func_mbsrtowcs_works=no
16319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16320 conftest.$ac_objext conftest.beam conftest.$ac_ext
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16327 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16329 case "$gl_cv_func_mbsrtowcs_works" in
16331 *) REPLACE_MBSRTOWCS=1 ;;
16336 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16345 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16355 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16372 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16377 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
16386 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
16389 for ac_header in bp-sym.h
16391 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
16392 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define HAVE_BP_SYM_H 1
16414 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16420 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
16422 $as_echo_n "checking whether memmem works in linear time... " >&6; }
16423 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
16424 $as_echo_n "(cached) " >&6
16426 if test "$cross_compiling" = yes; then :
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16430 #include <features.h>
16431 #ifdef __GNU_LIBRARY__
16432 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
16433 && !defined __UCLIBC__
16438 #include <cygwin/version.h>
16439 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
16445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16446 $EGREP "Lucky user" >/dev/null 2>&1; then :
16447 gl_cv_func_memmem_works_fast="guessing yes"
16449 gl_cv_func_memmem_works_fast="guessing no"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16458 #include <signal.h> /* for signal */
16459 #include <string.h> /* for memmem */
16460 #include <stdlib.h> /* for malloc */
16461 #include <unistd.h> /* for alarm */
16462 static void quit (int sig) { _exit (sig + 128); }
16469 size_t m = 1000000;
16470 char *haystack = (char *) malloc (2 * m + 1);
16471 char *needle = (char *) malloc (m + 1);
16472 /* Failure to compile this test due to missing alarm is okay,
16473 since all such platforms (mingw) also lack memmem. */
16474 signal (SIGALRM, quit);
16476 /* Check for quadratic performance. */
16477 if (haystack && needle)
16479 memset (haystack, 'A', 2 * m);
16480 haystack[2 * m] = 'B';
16481 memset (needle, 'A', m);
16483 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
16492 if ac_fn_c_try_run "$LINENO"; then :
16493 gl_cv_func_memmem_works_fast=yes
16495 gl_cv_func_memmem_works_fast=no
16497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16498 conftest.$ac_objext conftest.beam conftest.$ac_ext
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
16504 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
16505 case "$gl_cv_func_memmem_works_fast" in
16513 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16522 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16529 for ac_func in memmem
16531 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
16532 if test "x$ac_cv_func_memmem" = x""yes; then :
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_MEMMEM 1
16540 if test $ac_cv_func_memmem = yes; then
16546 if test $ac_cv_have_decl_memmem = no; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16550 $as_echo_n "checking whether memmem works... " >&6; }
16551 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16554 if test "$cross_compiling" = yes; then :
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16558 #ifdef __GNU_LIBRARY__
16559 #include <features.h>
16560 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16561 || __GLIBC_MINOR__ > 12)) \
16562 || (__GLIBC__ > 2)) \
16563 || defined __UCLIBC__
16566 #elif defined __CYGWIN__
16567 #include <cygwin/version.h>
16568 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16577 $EGREP "Lucky user" >/dev/null 2>&1; then :
16578 gl_cv_func_memmem_works_always="guessing yes"
16580 gl_cv_func_memmem_works_always="guessing no"
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16589 #include <string.h> /* for memmem */
16590 #define P "_EF_BF_BD"
16591 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16592 #define NEEDLE P P P P P
16599 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16601 /* Check for empty needle behavior. */
16603 const char *haystack = "AAA";
16604 if (memmem (haystack, 3, NULL, 0) != haystack)
16613 if ac_fn_c_try_run "$LINENO"; then :
16614 gl_cv_func_memmem_works_always=yes
16616 gl_cv_func_memmem_works_always=no
16618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16619 conftest.$ac_objext conftest.beam conftest.$ac_ext
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16625 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16626 case "$gl_cv_func_memmem_works_always" in
16635 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16644 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16658 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16670 for ac_func in rawmemchr
16672 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16673 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_RAWMEMCHR 1
16681 if test $ac_cv_func_rawmemchr = no; then
16685 if test $HAVE_RAWMEMCHR = 0; then
16694 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
16709 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16716 if test $ac_cv_func_readlink = no; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16720 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16721 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 #include <unistd.h>
16727 /* Cause compilation failure if original declaration has wrong type. */
16728 ssize_t readlink (const char *, char *, size_t);
16737 if ac_fn_c_try_compile "$LINENO"; then :
16738 gl_cv_decl_readlink_works=yes
16740 gl_cv_decl_readlink_works=no
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16745 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16747 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16748 if test "${gl_cv_func_readlink_works+set}" = set; then :
16749 $as_echo_n "(cached) " >&6
16751 # We have readlink, so assume ln -s works.
16752 ln -s conftest.no-such conftest.link
16753 ln -s conftest.link conftest.lnk2
16754 if test "$cross_compiling" = yes; then :
16756 # Guess yes on glibc systems.
16757 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16758 # If we don't know, assume the worst.
16759 *) gl_cv_func_readlink_works="guessing no" ;;
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765 #include <unistd.h>
16771 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16776 if ac_fn_c_try_run "$LINENO"; then :
16777 gl_cv_func_readlink_works=yes
16779 gl_cv_func_readlink_works=no
16781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16782 conftest.$ac_objext conftest.beam conftest.$ac_ext
16785 rm -f conftest.link conftest.lnk2
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16788 $as_echo "$gl_cv_func_readlink_works" >&6; }
16789 case "$gl_cv_func_readlink_works" in
16791 if test "$gl_cv_decl_readlink_works" != yes; then
16797 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16804 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16813 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16830 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16840 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16841 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16844 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16845 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16846 as_fn_error "cannot create temporary files" "$LINENO" 5
16847 # Assume that if we have lstat, we can also check symlinks.
16848 if test $ac_cv_func_lstat = yes; then
16849 ln -s conftest.f conftest.lnk
16851 if test "$cross_compiling" = yes; then :
16853 # Guess yes on glibc systems.
16854 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16855 # If we don't know, assume the worst.
16856 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16863 # include <stdio.h>
16864 # include <stdlib.h>
16870 if (rename ("conftest.f1", "conftest.f2/") == 0)
16872 if (rename ("conftest.d1", "conftest.d2/") != 0)
16875 if (rename ("conftest.f", "conftest.lnk/") == 0)
16884 if ac_fn_c_try_run "$LINENO"; then :
16885 gl_cv_func_rename_slash_dst_works=yes
16887 gl_cv_func_rename_slash_dst_works=no
16889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16890 conftest.$ac_objext conftest.beam conftest.$ac_ext
16893 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16897 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16898 case "$gl_cv_func_rename_slash_dst_works" in
16903 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16909 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16910 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16911 $as_echo_n "(cached) " >&6
16913 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16914 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16915 as_fn_error "cannot create temporary files" "$LINENO" 5
16916 # Assume that if we have lstat, we can also check symlinks.
16917 if test $ac_cv_func_lstat = yes; then
16918 ln -s conftest.f conftest.lnk
16920 if test "$cross_compiling" = yes; then :
16922 # Guess yes on glibc systems.
16923 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16924 # If we don't know, assume the worst.
16925 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16932 # include <stdio.h>
16933 # include <stdlib.h>
16939 if (rename ("conftest.f1/", "conftest.d3") == 0)
16941 if (rename ("conftest.d1/", "conftest.d2") != 0)
16944 if (rename ("conftest.lnk/", "conftest.f") == 0)
16953 if ac_fn_c_try_run "$LINENO"; then :
16954 gl_cv_func_rename_slash_src_works=yes
16956 gl_cv_func_rename_slash_src_works=no
16958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16959 conftest.$ac_objext conftest.beam conftest.$ac_ext
16962 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16966 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16967 case "$gl_cv_func_rename_slash_src_works" in
16972 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16979 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16980 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16983 if test $ac_cv_func_link = yes; then
16984 rm -rf conftest.f conftest.f1
16985 if touch conftest.f && ln conftest.f conftest.f1 &&
16986 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
16987 if test "$cross_compiling" = yes; then :
16989 # Guess yes on glibc systems.
16990 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16991 # If we don't know, assume the worst.
16992 *) gl_cv_func_rename_link_works="guessing no" ;;
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16999 # include <stdio.h>
17000 # include <stdlib.h>
17001 # include <unistd.h>
17007 if (rename ("conftest.f", "conftest.f1"))
17009 if (unlink ("conftest.f1"))
17011 if (rename ("conftest.f", "conftest.f"))
17013 if (rename ("conftest.f1", "conftest.f1") == 0)
17021 if ac_fn_c_try_run "$LINENO"; then :
17022 gl_cv_func_rename_link_works=yes
17024 gl_cv_func_rename_link_works=no
17026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17027 conftest.$ac_objext conftest.beam conftest.$ac_ext
17031 gl_cv_func_rename_link_works="guessing no"
17033 rm -rf conftest.f conftest.f1
17035 gl_cv_func_rename_link_works=yes
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
17040 $as_echo "$gl_cv_func_rename_link_works" >&6; }
17041 case "$gl_cv_func_rename_link_works" in
17046 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
17052 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
17053 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
17054 $as_echo_n "(cached) " >&6
17056 rm -rf conftest.f conftest.d1 conftest.d2
17057 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
17058 as_fn_error "cannot create temporary files" "$LINENO" 5
17059 if test "$cross_compiling" = yes; then :
17061 # Guess yes on glibc systems.
17062 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
17063 # If we don't know, assume the worst.
17064 *) gl_cv_func_rename_dest_works="guessing no" ;;
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17071 # include <stdio.h>
17072 # include <stdlib.h>
17078 if (rename ("conftest.d1", "conftest.d2") != 0)
17080 if (rename ("conftest.d2", "conftest.f") == 0)
17088 if ac_fn_c_try_run "$LINENO"; then :
17089 gl_cv_func_rename_dest_works=yes
17091 gl_cv_func_rename_dest_works=no
17093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17094 conftest.$ac_objext conftest.beam conftest.$ac_ext
17097 rm -rf conftest.f conftest.d1 conftest.d2
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
17101 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
17102 case "$gl_cv_func_rename_dest_works" in
17107 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
17112 if test $REPLACE_RENAME = 1; then
17121 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
17135 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
17143 $as_echo_n "checking whether rmdir works... " >&6; }
17144 if test "${gl_cv_func_rmdir_works+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17148 touch conftest.file
17149 if test "$cross_compiling" = yes; then :
17151 # Guess yes on glibc systems.
17152 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
17153 # If we don't know, assume the worst.
17154 *) gl_cv_func_rmdir_works="guessing no" ;;
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17163 # include <unistd.h>
17164 #else /* on Windows with MSVC */
17165 # include <direct.h>
17172 if (!rmdir ("conftest.file/"))
17174 else if (errno != ENOTDIR)
17176 if (!rmdir ("conftest.dir/./"))
17184 if ac_fn_c_try_run "$LINENO"; then :
17185 gl_cv_func_rmdir_works=yes
17187 gl_cv_func_rmdir_works=no
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17190 conftest.$ac_objext conftest.beam conftest.$ac_ext
17193 rm -rf conftest.dir conftest.file
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
17196 $as_echo "$gl_cv_func_rmdir_works" >&6; }
17197 case "$gl_cv_func_rmdir_works" in
17204 if test $REPLACE_RMDIR = 1; then
17213 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
17227 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
17233 if test $ac_cv_func_setenv = no; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
17237 $as_echo_n "checking whether setenv validates arguments... " >&6; }
17238 if test "${gl_cv_func_setenv_works+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17241 if test "$cross_compiling" = yes; then :
17243 # Guess yes on glibc systems.
17244 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
17245 # If we don't know, assume the worst.
17246 *) gl_cv_func_setenv_works="guessing no" ;;
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17253 #include <stdlib.h>
17255 #include <string.h>
17263 if (setenv ("", "", 0) != -1)
17265 else if (errno != EINVAL)
17269 if (setenv ("a", "=", 1) != 0)
17271 else if (strcmp (getenv ("a"), "=") != 0)
17280 if ac_fn_c_try_run "$LINENO"; then :
17281 gl_cv_func_setenv_works=yes
17283 gl_cv_func_setenv_works=no
17285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17286 conftest.$ac_objext conftest.beam conftest.$ac_ext
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
17291 $as_echo "$gl_cv_func_setenv_works" >&6; }
17292 case "$gl_cv_func_setenv_works" in
17300 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
17309 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
17323 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
17338 if test $gl_cv_have_include_next = yes; then
17339 gl_cv_next_signal_h='<'signal.h'>'
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
17342 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
17343 if test "${gl_cv_next_signal_h+set}" = set; then :
17344 $as_echo_n "(cached) " >&6
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17351 #include <signal.h>
17354 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17355 *) gl_absname_cpp="$ac_cpp" ;;
17360 gl_dirsep_regex='[/\\]'
17363 gl_dirsep_regex='\/'
17366 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17367 gl_header_literal_regex=`echo 'signal.h' \
17368 |
sed -e "$gl_make_literal_regex_sed"`
17369 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17370 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17376 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17377 sed -n "$gl_absolute_header_sed"`
17379 gl_header=$gl_cv_absolute_signal_h
17380 gl_cv_next_signal_h='"'$gl_header'"'
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
17385 $as_echo "$gl_cv_next_signal_h" >&6; }
17387 NEXT_SIGNAL_H=$gl_cv_next_signal_h
17389 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17391 gl_next_as_first_directive='<'signal.h'>'
17393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17394 gl_next_as_first_directive=$gl_cv_next_signal_h
17396 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
17402 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
17403 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
17404 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
17405 #include <signal.h>
17408 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
17411 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
17420 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
17421 #include <signal.h>
17424 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
17427 HAVE_SIGHANDLER_T=0
17432 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
17433 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17435 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17436 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17437 $as_echo_n "(cached) " >&6
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 #include <signal.h>
17452 if ac_fn_c_try_compile "$LINENO"; then :
17453 eval "$as_gl_Symbol=yes"
17455 eval "$as_gl_Symbol=no"
17457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17459 eval ac_res=\$$as_gl_Symbol
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17461 $as_echo "$ac_res" >&6; }
17462 eval as_val=\$$as_gl_Symbol
17463 if test "x$as_val" = x""yes; then :
17464 cat >>confdefs.h <<_ACEOF
17465 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17468 eval ac_cv_have_decl_$gl_func=yes
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17475 $as_echo_n "checking for ssize_t... " >&6; }
17476 if test "${gt_cv_ssize_t+set}" = set; then :
17477 $as_echo_n "(cached) " >&6
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 #include <sys/types.h>
17485 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17491 if ac_fn_c_try_compile "$LINENO"; then :
17496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17499 $as_echo "$gt_cv_ssize_t" >&6; }
17500 if test $gt_cv_ssize_t = no; then
17502 $as_echo "#define ssize_t int" >>confdefs.h
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17510 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17511 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17512 $as_echo_n "(cached) " >&6
17514 if test "$cross_compiling" = yes; then :
17516 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17517 *) gl_cv_func_stat_dir_slash="guessing yes";;
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 #include <sys/stat.h>
17527 struct stat st; return stat (".", &st) != stat ("./", &st);
17532 if ac_fn_c_try_run "$LINENO"; then :
17533 gl_cv_func_stat_dir_slash=yes
17535 gl_cv_func_stat_dir_slash=no
17537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17538 conftest.$ac_objext conftest.beam conftest.$ac_ext
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17543 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17545 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17546 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17547 $as_echo_n "(cached) " >&6
17550 # Assume that if we have lstat, we can also check symlinks.
17551 if test $ac_cv_func_lstat = yes; then
17552 ln -s conftest.tmp conftest.lnk
17554 if test "$cross_compiling" = yes; then :
17556 # Guess yes on glibc systems.
17557 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17558 # If we don't know, assume the worst.
17559 *) gl_cv_func_stat_file_slash="guessing no" ;;
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565 #include <sys/stat.h>
17572 if (!stat ("conftest.tmp/", &st))
17575 if (!stat ("conftest.lnk/", &st))
17584 if ac_fn_c_try_run "$LINENO"; then :
17585 gl_cv_func_stat_file_slash=yes
17587 gl_cv_func_stat_file_slash=no
17589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17590 conftest.$ac_objext conftest.beam conftest.$ac_ext
17593 rm -f conftest.tmp conftest.lnk
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17596 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17597 case $gl_cv_func_stat_dir_slash in
17598 *no) REPLACE_STAT=1
17600 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17603 case $gl_cv_func_stat_file_slash in
17604 *no) REPLACE_STAT=1
17606 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17610 if test $REPLACE_STAT = 1; then
17619 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17634 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17641 # Define two additional variables used in the Makefile substitution.
17643 if test "$ac_cv_header_stdbool_h" = yes; then
17646 STDBOOL_H='stdbool.h'
17649 if test -n "$STDBOOL_H"; then
17650 GL_GENERATE_STDBOOL_H_TRUE=
17651 GL_GENERATE_STDBOOL_H_FALSE='#'
17653 GL_GENERATE_STDBOOL_H_TRUE='#'
17654 GL_GENERATE_STDBOOL_H_FALSE=
17658 if test "$ac_cv_type__Bool" = yes; then
17669 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
17672 if test "x$ac_cv_type_max_align_t" = x""yes; then :
17675 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
17678 if test $gt_cv_c_wchar_t = no; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17683 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17684 if test "${gl_cv_decl_null_works+set}" = set; then :
17685 $as_echo_n "(cached) " >&6
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689 #include <stddef.h>
17690 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17700 if ac_fn_c_try_compile "$LINENO"; then :
17701 gl_cv_decl_null_works=yes
17703 gl_cv_decl_null_works=no
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17708 $as_echo "$gl_cv_decl_null_works" >&6; }
17709 if test $gl_cv_decl_null_works = no; then
17714 if test -n "$STDDEF_H"; then
17715 GL_GENERATE_STDDEF_H_TRUE=
17716 GL_GENERATE_STDDEF_H_FALSE='#'
17718 GL_GENERATE_STDDEF_H_TRUE='#'
17719 GL_GENERATE_STDDEF_H_FALSE=
17722 if test -n "$STDDEF_H"; then
17731 if test $gl_cv_have_include_next = yes; then
17732 gl_cv_next_stddef_h='<'stddef.h'>'
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17735 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17736 if test "${gl_cv_next_stddef_h+set}" = set; then :
17737 $as_echo_n "(cached) " >&6
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 #include <stddef.h>
17747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17748 *) gl_absname_cpp="$ac_cpp" ;;
17753 gl_dirsep_regex='[/\\]'
17756 gl_dirsep_regex='\/'
17759 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17760 gl_header_literal_regex=`echo 'stddef.h' \
17761 |
sed -e "$gl_make_literal_regex_sed"`
17762 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17769 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17770 sed -n "$gl_absolute_header_sed"`
17772 gl_header=$gl_cv_absolute_stddef_h
17773 gl_cv_next_stddef_h='"'$gl_header'"'
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17778 $as_echo "$gl_cv_next_stddef_h" >&6; }
17780 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17782 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17784 gl_next_as_first_directive='<'stddef.h'>'
17786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17787 gl_next_as_first_directive=$gl_cv_next_stddef_h
17789 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17799 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17810 if test $gl_cv_have_include_next = yes; then
17811 gl_cv_next_stdio_h='<'stdio.h'>'
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17814 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17815 if test "${gl_cv_next_stdio_h+set}" = set; then :
17816 $as_echo_n "(cached) " >&6
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17826 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17827 *) gl_absname_cpp="$ac_cpp" ;;
17832 gl_dirsep_regex='[/\\]'
17835 gl_dirsep_regex='\/'
17838 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17839 gl_header_literal_regex=`echo 'stdio.h' \
17840 |
sed -e "$gl_make_literal_regex_sed"`
17841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17848 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17849 sed -n "$gl_absolute_header_sed"`
17851 gl_header=$gl_cv_absolute_stdio_h
17852 gl_cv_next_stdio_h='"'$gl_header'"'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17857 $as_echo "$gl_cv_next_stdio_h" >&6; }
17859 NEXT_STDIO_H=$gl_cv_next_stdio_h
17861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17863 gl_next_as_first_directive='<'stdio.h'>'
17865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17866 gl_next_as_first_directive=$gl_cv_next_stdio_h
17868 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17875 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17876 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17877 $as_echo_n "(cached) " >&6
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17882 #define __STDC_FORMAT_MACROS 1
17884 #include <inttypes.h>
17885 /* For non-mingw systems, compilation will trivially succeed.
17886 For mingw, compilation will succeed for older mingw (system
17887 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17888 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17889 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17890 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17901 if ac_fn_c_try_compile "$LINENO"; then :
17902 gl_cv_func_printf_attribute_flavor=system
17904 gl_cv_func_printf_attribute_flavor=gnu
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17909 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17910 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17912 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17919 cat >>confdefs.h <<_ACEOF
17920 #define GNULIB_FSCANF 1
17927 cat >>confdefs.h <<_ACEOF
17928 #define GNULIB_SCANF 1
17953 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17954 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17956 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17957 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17958 $as_echo_n "(cached) " >&6
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17973 if ac_fn_c_try_compile "$LINENO"; then :
17974 eval "$as_gl_Symbol=yes"
17976 eval "$as_gl_Symbol=no"
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980 eval ac_res=\$$as_gl_Symbol
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17982 $as_echo "$ac_res" >&6; }
17983 eval as_val=\$$as_gl_Symbol
17984 if test "x$as_val" = x""yes; then :
17985 cat >>confdefs.h <<_ACEOF
17986 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17989 eval ac_cv_have_decl_$gl_func=yes
18004 if test $gl_cv_have_include_next = yes; then
18005 gl_cv_next_stdlib_h='<'stdlib.h'>'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18008 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18009 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017 #include <stdlib.h>
18020 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18021 *) gl_absname_cpp="$ac_cpp" ;;
18026 gl_dirsep_regex='[/\\]'
18029 gl_dirsep_regex='\/'
18032 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18033 gl_header_literal_regex=`echo 'stdlib.h' \
18034 |
sed -e "$gl_make_literal_regex_sed"`
18035 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18036 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18042 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18043 sed -n "$gl_absolute_header_sed"`
18045 gl_header=$gl_cv_absolute_stdlib_h
18046 gl_cv_next_stdlib_h='"'$gl_header'"'
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18051 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18053 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18055 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18057 gl_next_as_first_directive='<'stdlib.h'>'
18059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18060 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18062 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18069 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
18070 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18072 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18073 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18074 $as_echo_n "(cached) " >&6
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 #include <stdlib.h>
18079 #if HAVE_SYS_LOADAVG_H
18080 # include <sys/loadavg.h>
18083 # include <random.h>
18095 if ac_fn_c_try_compile "$LINENO"; then :
18096 eval "$as_gl_Symbol=yes"
18098 eval "$as_gl_Symbol=no"
18100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 eval ac_res=\$$as_gl_Symbol
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18104 $as_echo "$ac_res" >&6; }
18105 eval as_val=\$$as_gl_Symbol
18106 if test "x$as_val" = x""yes; then :
18107 cat >>confdefs.h <<_ACEOF
18108 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18111 eval ac_cv_have_decl_$gl_func=yes
18120 for ac_func in strchrnul
18122 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
18123 if test "x$ac_cv_func_strchrnul" = x""yes; then :
18124 cat >>confdefs.h <<_ACEOF
18125 #define HAVE_STRCHRNUL 1
18131 if test $ac_cv_func_strchrnul = no; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
18135 $as_echo_n "checking whether strchrnul works... " >&6; }
18136 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
18137 $as_echo_n "(cached) " >&6
18139 if test "$cross_compiling" = yes; then :
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18143 #if defined __CYGWIN__
18144 #include <cygwin/version.h>
18145 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
18153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18154 $EGREP "Lucky user" >/dev/null 2>&1; then :
18155 gl_cv_func_strchrnul_works="guessing yes"
18157 gl_cv_func_strchrnul_works="guessing no"
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18166 #include <string.h> /* for strchrnul */
18171 const char *buf = "a";
18172 return strchrnul (buf, 'b') != buf + 1;
18178 if ac_fn_c_try_run "$LINENO"; then :
18179 gl_cv_func_strchrnul_works=yes
18181 gl_cv_func_strchrnul_works=no
18183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18184 conftest.$ac_objext conftest.beam conftest.$ac_ext
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
18190 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
18191 case "$gl_cv_func_strchrnul_works" in
18193 *) REPLACE_STRCHRNUL=1 ;;
18197 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
18206 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
18221 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
18230 if test $REPLACE_STRSTR = 0; then
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
18232 $as_echo_n "checking whether strstr works in linear time... " >&6; }
18233 if test "${gl_cv_func_strstr_linear+set}" = set; then :
18234 $as_echo_n "(cached) " >&6
18236 if test "$cross_compiling" = yes; then :
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18240 #include <features.h>
18241 #ifdef __GNU_LIBRARY__
18242 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18243 && !(defined __i386__ || defined __x86_64__) \
18244 && !defined __UCLIBC__
18249 #include <cygwin/version.h>
18250 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18257 $EGREP "Lucky user" >/dev/null 2>&1; then :
18258 gl_cv_func_strstr_linear="guessing yes"
18260 gl_cv_func_strstr_linear="guessing no"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18270 /* z/OS does not deliver signals while strstr() is running (thanks to
18271 restrictions on its LE runtime), which prevents us from limiting the
18272 running time of this test. */
18273 # error "This test does not work properly on z/OS"
18275 #include <signal.h> /* for signal */
18276 #include <string.h> /* for strstr */
18277 #include <stdlib.h> /* for malloc */
18278 #include <unistd.h> /* for alarm */
18279 static void quit (int sig) { _exit (sig + 128); }
18286 size_t m = 1000000;
18287 char *haystack = (char *) malloc (2 * m + 2);
18288 char *needle = (char *) malloc (m + 2);
18289 /* Failure to compile this test due to missing alarm is okay,
18290 since all such platforms (mingw) also have quadratic strstr. */
18291 signal (SIGALRM, quit);
18293 /* Check for quadratic performance. */
18294 if (haystack && needle)
18296 memset (haystack, 'A', 2 * m);
18297 haystack[2 * m] = 'B';
18298 haystack[2 * m + 1] = 0;
18299 memset (needle, 'A', m);
18302 if (!strstr (haystack, needle))
18311 if ac_fn_c_try_run "$LINENO"; then :
18312 gl_cv_func_strstr_linear=yes
18314 gl_cv_func_strstr_linear=no
18316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18317 conftest.$ac_objext conftest.beam conftest.$ac_ext
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
18323 $as_echo "$gl_cv_func_strstr_linear" >&6; }
18324 case "$gl_cv_func_strstr_linear" in
18332 if test $REPLACE_STRSTR = 1; then
18341 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18347 if test "$gl_cv_func_memchr_works" != yes; then
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
18351 $as_echo_n "checking whether strstr works... " >&6; }
18352 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
18353 $as_echo_n "(cached) " >&6
18355 if test "$cross_compiling" = yes; then :
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18359 #ifdef __GNU_LIBRARY__
18360 #include <features.h>
18361 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18362 || defined __UCLIBC__
18365 #elif defined __CYGWIN__
18366 #include <cygwin/version.h>
18367 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18376 $EGREP "Lucky user" >/dev/null 2>&1; then :
18377 gl_cv_func_strstr_works_always="guessing yes"
18379 gl_cv_func_strstr_works_always="guessing no"
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18388 #include <string.h> /* for strstr */
18389 #define P "_EF_BF_BD"
18390 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
18391 #define NEEDLE P P P P P
18396 return !!strstr (HAYSTACK, NEEDLE);
18402 if ac_fn_c_try_run "$LINENO"; then :
18403 gl_cv_func_strstr_works_always=yes
18405 gl_cv_func_strstr_works_always=no
18407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18408 conftest.$ac_objext conftest.beam conftest.$ac_ext
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
18414 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
18415 case "$gl_cv_func_strstr_works_always" in
18423 if test $REPLACE_STRSTR = 1; then
18432 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18446 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
18454 for ac_func in strtok_r
18456 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
18457 if test "x$ac_cv_func_strtok_r" = x""yes; then :
18458 cat >>confdefs.h <<_ACEOF
18459 #define HAVE_STRTOK_R 1
18465 if test $ac_cv_func_strtok_r = yes; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
18468 $as_echo_n "checking whether strtok_r works... " >&6; }
18469 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
18470 $as_echo_n "(cached) " >&6
18472 if test "$cross_compiling" = yes; then :
18475 # Guess no on glibc systems.
18476 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
18477 *) gl_cv_func_strtok_r_works="guessing yes";;
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18484 #ifndef __OPTIMIZE__
18485 # define __OPTIMIZE__ 1
18487 #undef __OPTIMIZE_SIZE__
18488 #undef __NO_INLINE__
18489 #include <stdlib.h>
18490 #include <string.h>
18495 static const char dummy[] = "\177\01a";
18496 char delimiters[] = "xxxxxxxx";
18497 char *save_ptr = (char *) dummy;
18498 strtok_r (delimiters, "x", &save_ptr);
18499 strtok_r (NULL, "x", &save_ptr);
18507 if ac_fn_c_try_run "$LINENO"; then :
18508 gl_cv_func_strtok_r_works=yes
18510 gl_cv_func_strtok_r_works=no
18512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18513 conftest.$ac_objext conftest.beam conftest.$ac_ext
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
18519 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
18520 case "$gl_cv_func_strtok_r_works" in
18522 UNDEFINE_STRTOK_R=1
18529 if test $ac_cv_have_decl_strtok_r = no; then
18530 HAVE_DECL_STRTOK_R=0
18533 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
18542 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
18559 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
18577 if test $gl_cv_have_include_next = yes; then
18578 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18581 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18582 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18583 $as_echo_n "(cached) " >&6
18586 if test $ac_cv_header_sys_stat_h = yes; then
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593 #include <sys/stat.h>
18596 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18597 *) gl_absname_cpp="$ac_cpp" ;;
18602 gl_dirsep_regex='[/\\]'
18605 gl_dirsep_regex='\/'
18608 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18609 gl_header_literal_regex=`echo 'sys/stat.h' \
18610 |
sed -e "$gl_make_literal_regex_sed"`
18611 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18612 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18618 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18619 sed -n "$gl_absolute_header_sed"`
18621 gl_header=$gl_cv_absolute_sys_stat_h
18622 gl_cv_next_sys_stat_h='"'$gl_header'"'
18624 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18630 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18632 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18634 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18636 gl_next_as_first_directive='<'sys/stat.h'>'
18638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18639 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18641 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18653 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18655 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18659 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18660 #include <sys/stat.h>
18662 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18666 $as_echo "#define nlink_t int" >>confdefs.h
18672 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18673 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18675 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18676 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18677 $as_echo_n "(cached) " >&6
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #include <sys/stat.h>
18692 if ac_fn_c_try_compile "$LINENO"; then :
18693 eval "$as_gl_Symbol=yes"
18695 eval "$as_gl_Symbol=no"
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 eval ac_res=\$$as_gl_Symbol
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18701 $as_echo "$ac_res" >&6; }
18702 eval as_val=\$$as_gl_Symbol
18703 if test "x$as_val" = x""yes; then :
18704 cat >>confdefs.h <<_ACEOF
18705 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18708 eval ac_cv_have_decl_$gl_func=yes
18735 if test $gl_cv_have_include_next = yes; then
18736 gl_cv_next_unistd_h='<'unistd.h'>'
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18739 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18740 if test "${gl_cv_next_unistd_h+set}" = set; then :
18741 $as_echo_n "(cached) " >&6
18744 if test $ac_cv_header_unistd_h = yes; then
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18751 #include <unistd.h>
18754 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18755 *) gl_absname_cpp="$ac_cpp" ;;
18760 gl_dirsep_regex='[/\\]'
18763 gl_dirsep_regex='\/'
18766 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18767 gl_header_literal_regex=`echo 'unistd.h' \
18768 |
sed -e "$gl_make_literal_regex_sed"`
18769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18776 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18777 sed -n "$gl_absolute_header_sed"`
18779 gl_header=$gl_cv_absolute_unistd_h
18780 gl_cv_next_unistd_h='"'$gl_header'"'
18782 gl_cv_next_unistd_h='<'unistd.h'>'
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18788 $as_echo "$gl_cv_next_unistd_h" >&6; }
18790 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18792 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18794 gl_next_as_first_directive='<'unistd.h'>'
18796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18797 gl_next_as_first_directive=$gl_cv_next_unistd_h
18799 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18804 if test $ac_cv_header_unistd_h = yes; then
18816 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
18817 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18819 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18820 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18821 $as_echo_n "(cached) " >&6
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18827 # include <unistd.h>
18829 /* Some systems declare various items in the wrong headers. */
18830 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18831 # include <fcntl.h>
18832 # include <stdio.h>
18833 # include <stdlib.h>
18834 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18848 if ac_fn_c_try_compile "$LINENO"; then :
18849 eval "$as_gl_Symbol=yes"
18851 eval "$as_gl_Symbol=no"
18853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 eval ac_res=\$$as_gl_Symbol
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18857 $as_echo "$ac_res" >&6; }
18858 eval as_val=\$$as_gl_Symbol
18859 if test "x$as_val" = x""yes; then :
18860 cat >>confdefs.h <<_ACEOF
18861 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18864 eval ac_cv_have_decl_$gl_func=yes
18872 if test $ac_cv_have_decl_unsetenv = no; then
18873 HAVE_DECL_UNSETENV=0
18875 for ac_func in unsetenv
18877 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
18878 if test "x$ac_cv_func_unsetenv" = x""yes; then :
18879 cat >>confdefs.h <<_ACEOF
18880 #define HAVE_UNSETENV 1
18886 if test $ac_cv_func_unsetenv = no; then
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
18891 $as_echo_n "checking for unsetenv() return type... " >&6; }
18892 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18899 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
18900 #include <stdlib.h>
18905 int unsetenv (const char *name);
18915 if ac_fn_c_try_compile "$LINENO"; then :
18916 gt_cv_func_unsetenv_ret='int'
18918 gt_cv_func_unsetenv_ret='void'
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
18923 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
18924 if test $gt_cv_func_unsetenv_ret = 'void'; then
18926 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
18932 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
18933 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
18934 $as_echo_n "(cached) " >&6
18936 if test "$cross_compiling" = yes; then :
18938 # Guess yes on glibc systems.
18939 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
18940 # If we don't know, assume the worst.
18941 *) gl_cv_func_unsetenv_works="guessing no" ;;
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18948 #include <stdlib.h>
18950 extern char **environ;
18956 char entry1[] = "a=1";
18957 char entry2[] = "b=2";
18958 char *env[] = { entry1, entry2, NULL };
18959 if (putenv ((char *) "a=1")) return 1;
18960 if (putenv (entry2)) return 2;
18963 if (getenv ("a")) return 3;
18964 if (!unsetenv ("") || errno != EINVAL) return 4;
18967 if (!getenv ("a")) return 5;
18970 if (getenv ("a")) return 6;
18976 if ac_fn_c_try_run "$LINENO"; then :
18977 gl_cv_func_unsetenv_works=yes
18979 gl_cv_func_unsetenv_works=no
18981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18982 conftest.$ac_objext conftest.beam conftest.$ac_ext
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
18987 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
18988 case "$gl_cv_func_unsetenv_works" in
18996 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
19005 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
19023 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
19039 if test $gl_cv_have_include_next = yes; then
19040 gl_cv_next_wchar_h='<'wchar.h'>'
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19043 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19044 if test "${gl_cv_next_wchar_h+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19048 if test $ac_cv_header_wchar_h = yes; then
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19058 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19059 *) gl_absname_cpp="$ac_cpp" ;;
19064 gl_dirsep_regex='[/\\]'
19067 gl_dirsep_regex='\/'
19070 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19071 gl_header_literal_regex=`echo 'wchar.h' \
19072 |
sed -e "$gl_make_literal_regex_sed"`
19073 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19074 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19080 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19081 sed -n "$gl_absolute_header_sed"`
19083 gl_header=$gl_cv_absolute_wchar_h
19084 gl_cv_next_wchar_h='"'$gl_header'"'
19086 gl_cv_next_wchar_h='<'wchar.h'>'
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19092 $as_echo "$gl_cv_next_wchar_h" >&6; }
19094 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19096 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19098 gl_next_as_first_directive='<'wchar.h'>'
19100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19101 gl_next_as_first_directive=$gl_cv_next_wchar_h
19103 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19108 if test $ac_cv_header_wchar_h = yes; then
19118 if test $gt_cv_c_wint_t = yes; then
19126 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
19127 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19129 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19130 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19131 $as_echo_n "(cached) " >&6
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19139 included before <wchar.h>. */
19140 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19141 # include <stddef.h>
19142 # include <stdio.h>
19156 if ac_fn_c_try_compile "$LINENO"; then :
19157 eval "$as_gl_Symbol=yes"
19159 eval "$as_gl_Symbol=no"
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 eval ac_res=\$$as_gl_Symbol
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19165 $as_echo "$ac_res" >&6; }
19166 eval as_val=\$$as_gl_Symbol
19167 if test "x$as_val" = x""yes; then :
19168 cat >>confdefs.h <<_ACEOF
19169 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
19172 eval ac_cv_have_decl_$gl_func=yes
19182 if test $ac_cv_func_iswcntrl = yes; then
19190 if test $gt_cv_c_wint_t = yes; then
19206 if test $gl_cv_have_include_next = yes; then
19207 gl_cv_next_wctype_h='<'wctype.h'>'
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19210 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19211 if test "${gl_cv_next_wctype_h+set}" = set; then :
19212 $as_echo_n "(cached) " >&6
19215 if test $ac_cv_header_wctype_h = yes; then
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19222 #include <wctype.h>
19225 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19226 *) gl_absname_cpp="$ac_cpp" ;;
19231 gl_dirsep_regex='[/\\]'
19234 gl_dirsep_regex='\/'
19237 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19238 gl_header_literal_regex=`echo 'wctype.h' \
19239 |
sed -e "$gl_make_literal_regex_sed"`
19240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19247 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19248 sed -n "$gl_absolute_header_sed"`
19250 gl_header=$gl_cv_absolute_wctype_h
19251 gl_cv_next_wctype_h='"'$gl_header'"'
19253 gl_cv_next_wctype_h='<'wctype.h'>'
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19259 $as_echo "$gl_cv_next_wctype_h" >&6; }
19261 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19263 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19265 gl_next_as_first_directive='<'wctype.h'>'
19267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19268 gl_next_as_first_directive=$gl_cv_next_wctype_h
19270 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19275 if test $ac_cv_header_wctype_h = yes; then
19276 if test $ac_cv_func_iswcntrl = yes; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19278 $as_echo_n "checking whether iswcntrl works... " >&6; }
19279 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
19280 $as_echo_n "(cached) " >&6
19283 if test "$cross_compiling" = yes; then :
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19286 #include <stdlib.h>
19287 #if __GNU_LIBRARY__ == 1
19288 Linux libc5 i18n is broken.
19298 if ac_fn_c_try_compile "$LINENO"; then :
19299 gl_cv_func_iswcntrl_works="guessing yes"
19301 gl_cv_func_iswcntrl_works="guessing no"
19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19309 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19310 included before <wchar.h>.
19311 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19312 must be included before <wchar.h>. */
19313 #include <stddef.h>
19317 #include <wctype.h>
19318 int main () { return iswprint ('x') == 0; }
19321 if ac_fn_c_try_run "$LINENO"; then :
19322 gl_cv_func_iswcntrl_works=yes
19324 gl_cv_func_iswcntrl_works=no
19326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19327 conftest.$ac_objext conftest.beam conftest.$ac_ext
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19333 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19341 case "$gl_cv_func_iswcntrl_works" in
19342 *yes) REPLACE_ISWCNTRL=0 ;;
19343 *) REPLACE_ISWCNTRL=1 ;;
19347 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
19351 if test $REPLACE_ISWCNTRL = 1; then
19354 for ac_func in towlower
19356 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
19357 if test "x$ac_cv_func_towlower" = x""yes; then :
19358 cat >>confdefs.h <<_ACEOF
19359 #define HAVE_TOWLOWER 1
19365 if test $ac_cv_func_towlower = yes; then
19368 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19369 included before <wchar.h>.
19370 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19371 must be included before <wchar.h>. */
19372 #include <stddef.h>
19377 # include <wctype.h>
19381 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
19387 cat >>confdefs.h <<_ACEOF
19388 #define HAVE_DECL_TOWLOWER $ac_have_decl
19391 if test $ac_cv_have_decl_towlower = yes; then
19400 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
19405 $as_echo_n "checking for wctype_t... " >&6; }
19406 if test "${gl_cv_type_wctype_t+set}" = set; then :
19407 $as_echo_n "(cached) " >&6
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19411 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19412 included before <wchar.h>.
19413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19414 must be included before <wchar.h>. */
19415 #include <stddef.h>
19420 # include <wctype.h>
19432 if ac_fn_c_try_compile "$LINENO"; then :
19433 gl_cv_type_wctype_t=yes
19435 gl_cv_type_wctype_t=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
19441 $as_echo "$gl_cv_type_wctype_t" >&6; }
19442 if test $gl_cv_type_wctype_t = no; then
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
19447 $as_echo_n "checking for wctrans_t... " >&6; }
19448 if test "${gl_cv_type_wctrans_t+set}" = set; then :
19449 $as_echo_n "(cached) " >&6
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19454 included before <wchar.h>.
19455 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19456 must be included before <wchar.h>. */
19457 #include <stddef.h>
19461 #include <wctype.h>
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473 gl_cv_type_wctrans_t=yes
19475 gl_cv_type_wctrans_t=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
19481 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19482 if test $gl_cv_type_wctrans_t = no; then
19487 for gl_func in wctype iswctype wctrans towctrans ; do
19488 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19490 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19491 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19492 $as_echo_n "(cached) " >&6
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19497 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19499 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19500 included before <wchar.h>. */
19501 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19502 # include <stddef.h>
19503 # include <stdio.h>
19505 # include <wchar.h>
19507 #include <wctype.h>
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519 eval "$as_gl_Symbol=yes"
19521 eval "$as_gl_Symbol=no"
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 eval ac_res=\$$as_gl_Symbol
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19527 $as_echo "$ac_res" >&6; }
19528 eval as_val=\$$as_gl_Symbol
19529 if test "x$as_val" = x""yes; then :
19530 cat >>confdefs.h <<_ACEOF
19531 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
19534 eval ac_cv_have_decl_$gl_func=yes
19539 # End of code from modules
19560 gl_source_base='tests'
19561 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL
=C
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL
=C
sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
19563 gl_module_indicator_condition=$gltests_WITNESS
19573 LIBGNU_LIBDEPS="$gl_libdeps"
19575 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19579 # We don't use automake, but gnulib does. This line lets us generate
19581 am__api_version='1.11'
19583 # Find a good install program. We prefer a C program (faster),
19584 # so one script is as good as another. But avoid the broken or
19585 # incompatible versions:
19586 # SysV /etc/install, /usr/sbin/install
19587 # SunOS /usr/etc/install
19588 # IRIX /sbin/install
19590 # AmigaOS /C/install, which installs bootblocks on floppy discs
19591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19594 # OS/2's system install, which has a completely different semantic
19595 # ./install, which can be erroneously created by make from ./install.sh.
19596 # Reject install programs that cannot install multiple files.
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19598 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19599 if test -z "$INSTALL"; then
19600 if test "${ac_cv_path_install+set}" = set; then :
19601 $as_echo_n "(cached) " >&6
19603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19604 for as_dir in $PATH
19607 test -z "$as_dir" && as_dir=.
19608 # Account for people who put trailing slashes in PATH elements.
19609 case $as_dir/ in #((
19610 ./ | .// | /[cC]/* | \
19611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19615 # OSF1 and SCO ODT 3.0 have their own names for install.
19616 # Don't use installbsd from OSF since it installs stuff as root
19618 for ac_prog in ginstall scoinst install; do
19619 for ac_exec_ext in '' $ac_executable_extensions; do
19620 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19621 if test $ac_prog = install &&
19622 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19623 # AIX install. It has an incompatible calling convention.
19625 elif test $ac_prog = install &&
19626 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19627 # program-specific install script used by HP pwplus--don't use.
19630 rm -rf conftest.one conftest.two conftest.dir
19631 echo one > conftest.one
19632 echo two > conftest.two
19634 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19635 test -s conftest.one && test -s conftest.two &&
19636 test -s conftest.dir/conftest.one &&
19637 test -s conftest.dir/conftest.two
19639 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19652 rm -rf conftest.one conftest.two conftest.dir
19655 if test "${ac_cv_path_install+set}" = set; then
19656 INSTALL=$ac_cv_path_install
19658 # As a last resort, use the slow shell script. Don't cache a
19659 # value for INSTALL within a source directory, because that will
19660 # break other packages using the cache if that directory is
19661 # removed, or if the value is a relative name.
19662 INSTALL=$ac_install_sh
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19666 $as_echo "$INSTALL" >&6; }
19668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19669 # It thinks the first close brace ends the variable substitution.
19670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
19677 $as_echo_n "checking whether build environment is sane... " >&6; }
19680 echo timestamp > conftest.file
19681 # Reject unsafe characters in $srcdir or the absolute working directory
19682 # name. Accept space and tab only in the latter.
19686 *[\\\"\#\$\&\'\`$am_lf]*)
19687 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
19690 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
19691 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
19694 # Do `set' in a subshell so we don't clobber the current shell's
19695 # arguments. Must try -L first in case configure is actually a
19696 # symlink; some systems play weird games with the mod time of symlinks
19697 # (eg FreeBSD returns the mod time of the symlink's containing
19700 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
19701 if test "$*" = "X"; then
19703 set X
`ls -t "$srcdir/configure" conftest.file`
19705 rm -f conftest.
file
19706 if test "$*" != "X $srcdir/configure conftest.file" \
19707 && test "$*" != "X conftest.file $srcdir/configure"; then
19709 # If neither matched, then we have a broken ls. This can happen
19710 # if, for instance, CONFIG_SHELL is bash and it inherits a
19711 # broken ls alias from the environment. This has actually
19712 # happened. Such a system could not be considered "sane".
19713 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
19714 alias in your environment" "$LINENO" 5
19717 test "$2" = conftest.
file
19723 as_fn_error
"newly created file is older than distributed files!
19724 Check your system clock" "$LINENO" 5
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19727 $as_echo "yes" >&6; }
19728 test "$program_prefix" != NONE
&&
19729 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
19730 # Use a double $ so make ignores it.
19731 test "$program_suffix" != NONE
&&
19732 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
19733 # Double any \ or $.
19734 # By default was `s,x,x', remove it if useless.
19735 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
19736 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
19738 # expand $ac_aux_dir to an absolute path
19739 am_aux_dir
=`cd $ac_aux_dir && pwd`
19741 if test x
"${MISSING+set}" != xset
; then
19742 case $am_aux_dir in
19744 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
19746 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
19749 # Use eval to expand $SHELL
19750 if eval "$MISSING --run true"; then
19751 am_missing_run
="$MISSING --run "
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19755 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19758 if test x
"${install_sh}" != xset
; then
19759 case $am_aux_dir in
19761 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
19763 install_sh
="\${SHELL} $am_aux_dir/install-sh"
19767 # Installed binaries are usually stripped using `strip' when the user
19768 # run `make install-strip'. However `strip' might not be the right
19769 # tool to use in cross-compilation environments, therefore Automake
19770 # will honor the `STRIP' environment variable to overrule this program.
19771 if test "$cross_compiling" != no
; then
19772 if test -n "$ac_tool_prefix"; then
19773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19774 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19776 $as_echo_n "checking for $ac_word... " >&6; }
19777 if test "${ac_cv_prog_STRIP+set}" = set; then :
19778 $as_echo_n "(cached) " >&6
19780 if test -n "$STRIP"; then
19781 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
19783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19784 for as_dir
in $PATH
19787 test -z "$as_dir" && as_dir
=.
19788 for ac_exec_ext
in '' $ac_executable_extensions; do
19789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19790 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
19791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19800 STRIP
=$ac_cv_prog_STRIP
19801 if test -n "$STRIP"; then
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19803 $as_echo "$STRIP" >&6; }
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19806 $as_echo "no" >&6; }
19811 if test -z "$ac_cv_prog_STRIP"; then
19813 # Extract the first word of "strip", so it can be a program name with args.
19814 set dummy strip
; ac_word
=$2
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19816 $as_echo_n "checking for $ac_word... " >&6; }
19817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19818 $as_echo_n "(cached) " >&6
19820 if test -n "$ac_ct_STRIP"; then
19821 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
19823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19824 for as_dir
in $PATH
19827 test -z "$as_dir" && as_dir
=.
19828 for ac_exec_ext
in '' $ac_executable_extensions; do
19829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19830 ac_cv_prog_ac_ct_STRIP
="strip"
19831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19840 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
19841 if test -n "$ac_ct_STRIP"; then
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19843 $as_echo "$ac_ct_STRIP" >&6; }
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19846 $as_echo "no" >&6; }
19849 if test "x$ac_ct_STRIP" = x
; then
19852 case $cross_compiling:$ac_tool_warned in
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19856 ac_tool_warned
=yes ;;
19861 STRIP
="$ac_cv_prog_STRIP"
19865 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
19869 [\\/$
]* | ?
:[\\/]*) ;;
19870 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
19873 for ac_prog
in gawk mawk nawk
awk
19875 # Extract the first word of "$ac_prog", so it can be a program name with args.
19876 set dummy
$ac_prog; ac_word
=$2
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19878 $as_echo_n "checking for $ac_word... " >&6; }
19879 if test "${ac_cv_prog_AWK+set}" = set; then :
19880 $as_echo_n "(cached) " >&6
19882 if test -n "$AWK"; then
19883 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
19885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19886 for as_dir
in $PATH
19889 test -z "$as_dir" && as_dir
=.
19890 for ac_exec_ext
in '' $ac_executable_extensions; do
19891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19892 ac_cv_prog_AWK
="$ac_prog"
19893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19902 AWK
=$ac_cv_prog_AWK
19903 if test -n "$AWK"; then
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19905 $as_echo "$AWK" >&6; }
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19908 $as_echo "no" >&6; }
19912 test -n "$AWK" && break
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19916 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19918 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19919 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
19920 $as_echo_n "(cached) " >&6
19922 cat >conftest.
make <<\_ACEOF
19925 @
echo '@@@%%%=$(MAKE)=@@@%%%'
19927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19928 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19929 *@@@
%%%=?
*=@@@
%%%*)
19930 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
19932 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
19934 rm -f conftest.
make
19936 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19938 $as_echo "yes" >&6; }
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19942 $as_echo "no" >&6; }
19943 SET_MAKE
="MAKE=${MAKE-make}"
19946 rm -rf .tst
2>/dev
/null
19947 mkdir .tst
2>/dev
/null
19948 if test -d .tst
; then
19953 rmdir .tst
2>/dev
/null
19955 DEPDIR
="${am__leading_dot}deps"
19957 ac_config_commands
="$ac_config_commands depfiles"
19960 am_make
=${MAKE-make}
19961 cat > confinc
<< 'END'
19963 @
echo this is the am__doit target
19966 # If we don't find an include directive, just comment out the code.
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19968 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19972 # First try GNU make style include.
19973 echo "include confinc" > confmf
19974 # Ignore all kinds of additional output from `make'.
19975 case `$am_make -s -f confmf 2> /dev/null` in #(
19976 *the\ am__doit\ target
*)
19977 am__include
=include
19982 # Now try BSD make style include.
19983 if test "$am__include" = "#"; then
19984 echo '.include "confinc"' > confmf
19985 case `$am_make -s -f confmf 2> /dev/null` in #(
19986 *the\ am__doit\ target
*)
19987 am__include
=.include
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19996 $as_echo "$_am_result" >&6; }
19997 rm -f confinc confmf
19999 # Check whether --enable-dependency-tracking was given.
20000 if test "${enable_dependency_tracking+set}" = set; then :
20001 enableval
=$enable_dependency_tracking;
20004 if test "x$enable_dependency_tracking" != xno
; then
20005 am_depcomp
="$ac_aux_dir/depcomp"
20008 if test "x$enable_dependency_tracking" != xno; then
20017 if test "`cd $srcdir && pwd`" != "`pwd`"; then
20018 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
20019 # is not polluted with repeated "-I."
20020 am__isrc
=' -I$(srcdir)'
20021 # test to see if srcdir already configured
20022 if test -f $srcdir/config.status
; then
20023 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
20027 # test whether we have cygpath
20028 if test -z "$CYGPATH_W"; then
20029 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
20030 CYGPATH_W
='cygpath -w'
20037 # Define the identity of the package.
20039 VERSION
=UNUSED-VERSION
20042 # Some tools Automake needs.
20044 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
20047 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
20050 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
20053 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
20056 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
20058 # We need awk for the "check" target. The system "awk" is bad on
20060 # Always define AMTAR for backward compatibility.
20062 AMTAR
=${AMTAR-"${am_missing_run}tar"}
20064 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
20069 depcc
="$CC" am_compiler_list
=
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
20072 $as_echo_n "checking dependency style of $depcc... " >&6; }
20073 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
20074 $as_echo_n "(cached) " >&6
20076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20077 # We make a subdir and do the tests there. Otherwise we can end up
20078 # making bogus files that we don't know about and never remove. For
20079 # instance it was reported that on HP-UX the gcc test will end up
20080 # making a dummy file named `D' -- because `-MD' means `put the output
20083 # Copy depcomp to subdir because otherwise we won't find it if we're
20084 # using a relative directory.
20085 cp "$am_depcomp" conftest.dir
20087 # We will build objects and dependencies in a subdirectory because
20088 # it helps to detect inapplicable dependency modes. For instance
20089 # both Tru64's cc and ICC support -MD to output dependencies as a
20090 # side effect of compilation, but ICC will put the dependencies in
20091 # the current directory while Tru64 will put them in the object
20095 am_cv_CC_dependencies_compiler_type
=none
20096 if test "$am_compiler_list" = ""; then
20097 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20099 am__universal
=false
20100 case " $depcc " in #(
20101 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
20104 for depmode
in $am_compiler_list; do
20105 # Setup a source with many dependencies, because some compilers
20106 # like to wrap large dependency lists on column 80 (with \), and
20107 # we should not choose a depcomp mode which is confused by this.
20109 # We need to recreate these files for each test, as the compiler may
20110 # overwrite some of them when testing with obscure command lines.
20111 # This happens at least with the AIX C compiler.
20113 for i
in 1 2 3 4 5 6; do
20114 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
20115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20116 # Solaris 8's {/usr,}/bin/sh.
20117 touch sub
/conftst
$i.h
20119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20122 # mode. It turns out that the SunPro C++ compiler does not properly
20123 # handle `-M -o', and we need to detect this. Also, some Intel
20124 # versions had trouble with output in subdirs
20125 am__obj
=sub
/conftest.
${OBJEXT-o}
20126 am__minus_obj
="-o $am__obj"
20129 # This depmode causes a compiler race in universal mode.
20130 test "$am__universal" = false ||
continue
20133 # after this tag, mechanisms are not by side-effect, so they'll
20134 # only be used when explicitly requested
20135 if test "x$enable_dependency_tracking" = xyes
; then
20141 msvisualcpp | msvcmsys
)
20142 # This compiler won't grok `-c -o', but also, the minuso test has
20143 # not run yet. These depmodes are late enough in the game, and
20144 # so weak that their functioning should not be impacted.
20145 am__obj
=conftest.
${OBJEXT-o}
20150 if depmode
=$depmode \
20151 source=sub
/conftest.c object
=$am__obj \
20152 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
20153 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
20154 >/dev
/null
2>conftest.err
&&
20155 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
20156 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
20157 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
20158 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
20159 # icc doesn't choke on unknown options, it will just issue warnings
20160 # or remarks (even with -Werror). So we grep stderr for any message
20161 # that says an option was ignored or not supported.
20162 # When given -MP, icc 7.0 and 7.1 complain thusly:
20163 # icc: Command line warning: ignoring option '-M'; no argument required
20164 # The diagnosis changed in icc 8.0:
20165 # icc: Command line remark: option '-MP' not supported
20166 if (grep 'ignoring option' conftest.err ||
20167 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
20168 am_cv_CC_dependencies_compiler_type
=$depmode
20175 rm -rf conftest.dir
20177 am_cv_CC_dependencies_compiler_type
=none
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
20182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20183 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
20186 test "x$enable_dependency_tracking" != xno \
20187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
20188 am__fastdepCC_TRUE
=
20189 am__fastdepCC_FALSE
='#'
20191 am__fastdepCC_TRUE
='#'
20192 am__fastdepCC_FALSE
=
20198 # --------------------- #
20199 # Checks for programs. #
20200 # --------------------- #
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20204 $as_echo_n "checking whether ln -s works... " >&6; }
20206 if test "$LN_S" = "ln -s"; then
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20208 $as_echo "yes" >&6; }
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20211 $as_echo "no, using $LN_S" >&6; }
20214 if test -n "$ac_tool_prefix"; then
20215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20216 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20218 $as_echo_n "checking for $ac_word... " >&6; }
20219 if test "${ac_cv_prog_RANLIB+set}" = set; then :
20220 $as_echo_n "(cached) " >&6
20222 if test -n "$RANLIB"; then
20223 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
20225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20226 for as_dir
in $PATH
20229 test -z "$as_dir" && as_dir
=.
20230 for ac_exec_ext
in '' $ac_executable_extensions; do
20231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20232 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
20233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20242 RANLIB
=$ac_cv_prog_RANLIB
20243 if test -n "$RANLIB"; then
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20245 $as_echo "$RANLIB" >&6; }
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 $as_echo "no" >&6; }
20253 if test -z "$ac_cv_prog_RANLIB"; then
20254 ac_ct_RANLIB
=$RANLIB
20255 # Extract the first word of "ranlib", so it can be a program name with args.
20256 set dummy ranlib
; ac_word
=$2
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20258 $as_echo_n "checking for $ac_word... " >&6; }
20259 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
20260 $as_echo_n "(cached) " >&6
20262 if test -n "$ac_ct_RANLIB"; then
20263 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
20265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20266 for as_dir
in $PATH
20269 test -z "$as_dir" && as_dir
=.
20270 for ac_exec_ext
in '' $ac_executable_extensions; do
20271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20272 ac_cv_prog_ac_ct_RANLIB
="ranlib"
20273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20282 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
20283 if test -n "$ac_ct_RANLIB"; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20285 $as_echo "$ac_ct_RANLIB" >&6; }
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288 $as_echo "no" >&6; }
20291 if test "x$ac_ct_RANLIB" = x
; then
20294 case $cross_compiling:$ac_tool_warned in
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20298 ac_tool_warned
=yes ;;
20300 RANLIB
=$ac_ct_RANLIB
20303 RANLIB
="$ac_cv_prog_RANLIB"
20307 if test -n "$ac_tool_prefix"; then
20308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20309 set dummy
${ac_tool_prefix}ar; ac_word
=$2
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20311 $as_echo_n "checking for $ac_word... " >&6; }
20312 if test "${ac_cv_prog_AR+set}" = set; then :
20313 $as_echo_n "(cached) " >&6
20315 if test -n "$AR"; then
20316 ac_cv_prog_AR
="$AR" # Let the user override the test.
20318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20319 for as_dir
in $PATH
20322 test -z "$as_dir" && as_dir
=.
20323 for ac_exec_ext
in '' $ac_executable_extensions; do
20324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20325 ac_cv_prog_AR
="${ac_tool_prefix}ar"
20326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20336 if test -n "$AR"; then
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20338 $as_echo "$AR" >&6; }
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20341 $as_echo "no" >&6; }
20346 if test -z "$ac_cv_prog_AR"; then
20348 # Extract the first word of "ar", so it can be a program name with args.
20349 set dummy
ar; ac_word
=$2
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20351 $as_echo_n "checking for $ac_word... " >&6; }
20352 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
20353 $as_echo_n "(cached) " >&6
20355 if test -n "$ac_ct_AR"; then
20356 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
20358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20359 for as_dir
in $PATH
20362 test -z "$as_dir" && as_dir
=.
20363 for ac_exec_ext
in '' $ac_executable_extensions; do
20364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20365 ac_cv_prog_ac_ct_AR
="ar"
20366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20375 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
20376 if test -n "$ac_ct_AR"; then
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20378 $as_echo "$ac_ct_AR" >&6; }
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20381 $as_echo "no" >&6; }
20384 if test "x$ac_ct_AR" = x
; then
20387 case $cross_compiling:$ac_tool_warned in
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20391 ac_tool_warned
=yes ;;
20396 AR
="$ac_cv_prog_AR"
20400 # ---------------------- #
20401 # Checks for libraries. #
20402 # ---------------------- #
20404 ac_config_files
="$ac_config_files Makefile import/Makefile"
20406 ac_config_commands
="$ac_config_commands default"
20408 cat >confcache
<<\_ACEOF
20409 # This file is a shell script that caches the results of configure
20410 # tests run on this system so they can be shared between configure
20411 # scripts and configure runs, see configure's option --config-cache.
20412 # It is not useful on other systems. If it contains results you don't
20413 # want to keep, you may remove or edit it.
20415 # config.status only pays attention to the cache file if you give it
20416 # the --recheck option to rerun configure.
20418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20420 # following values.
20424 # The following way of writing the cache mishandles newlines in values,
20425 # but we know of no workaround that is simple, portable, and efficient.
20426 # So, we kill variables containing newlines.
20427 # Ultrix sh set writes to stderr and can't be redirected directly,
20428 # and sets the high bit in the cache file unless we assign to the vars.
20430 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20431 eval ac_val
=\$
$ac_var
20435 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20439 _ | IFS | as_nl
) ;; #(
20440 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20441 *) { eval $ac_var=; unset $ac_var;} ;;
20447 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20448 *${as_nl}ac_space
=\
*)
20449 # `set' does not quote correctly, so add quotes: double-quote
20450 # substitution turns \\\\ into \\, and sed turns \\ into \.
20453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20456 # `set' quotes correctly as required by POSIX, so do not add quotes.
20457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20470 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20471 if test -w "$cache_file"; then
20472 test "x$cache_file" != "x/dev/null" &&
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20474 $as_echo "$as_me: updating cache $cache_file" >&6;}
20475 cat confcache
>$cache_file
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20483 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20484 # Let make expand exec_prefix.
20485 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20487 DEFS
=-DHAVE_CONFIG_H
20491 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20492 # 1. Remove the extension, and $U if already installed.
20493 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20494 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20496 # will be set to the directory where LIBOBJS objects are built.
20497 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20498 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20500 LIBOBJS
=$ac_libobjs
20502 LTLIBOBJS
=$ac_ltlibobjs
20505 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20506 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
20507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20509 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20510 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20513 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
20514 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
20515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20517 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
20518 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
20519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20521 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
20522 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
20523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20525 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
20526 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
20527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20529 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20530 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20533 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20534 as_fn_error
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20537 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20538 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
20539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20544 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20547 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20548 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554 if test -n "$gl_LIBOBJS"; then
20555 # Remove the extension.
20556 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20557 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20558 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20559 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20562 gl_LIBOBJS
=$gl_libobjs
20564 gl_LTLIBOBJS
=$gl_ltlibobjs
20570 if test -n "$gltests_LIBOBJS"; then
20571 # Remove the extension.
20572 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20573 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20574 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20575 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20578 gltests_LIBOBJS
=$gltests_libobjs
20580 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20583 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20584 as_fn_error
"conditional \"AMDEP\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20588 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20591 if test -n "$EXEEXT"; then
20593 am__EXEEXT_FALSE
='#'
20595 am__EXEEXT_TRUE
='#'
20600 : ${CONFIG_STATUS=./config.status}
20602 ac_clean_files_save
=$ac_clean_files
20603 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20609 # Generated by $as_me.
20610 # Run this file to recreate the current configuration.
20611 # Compiler output produced by configure, useful for debugging
20612 # configure, is in config.log if it exists.
20615 ac_cs_recheck=false
20618 SHELL=\${CONFIG_SHELL-$SHELL}
20621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20622 ## -------------------- ##
20623 ## M4sh Initialization. ##
20624 ## -------------------- ##
20626 # Be more Bourne compatible
20627 DUALCASE
=1; export DUALCASE
# for MKS sh
20628 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20632 # is contrary to our usage. Disable this feature.
20633 alias -g '${1+"$@"}'='"$@"'
20634 setopt NO_GLOB_SUBST
20636 case `(set -o) 2>/dev/null` in #(
20648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20649 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20652 # Prefer a ksh shell builtin over an external printf program on Solaris,
20653 # but without wasting forks for bash or zsh.
20654 if test -z "$BASH_VERSION$ZSH_VERSION" \
20655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20656 as_echo='print
-r --'
20657 as_echo_n='print
-rn --'
20658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20659 as_echo='printf %s
\n'
20660 as_echo_n='printf %s
'
20662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20663 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20664 as_echo_n='/usr
/ucb
/echo -n'
20666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20667 as_echo_n_body='eval
20671 expr "X$arg" : "X\\(.*\\)$as_nl";
20672 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20674 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20676 export as_echo_n_body
20677 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20679 export as_echo_body
20680 as_echo='sh
-c $as_echo_body as_echo
'
20683 # The user is always right.
20684 if test "${PATH_SEPARATOR+set}" != set; then
20686 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20687 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20694 # We need space, tab and new line, in precisely that order. Quoting is
20695 # there to prevent editors from complaining about space-tab.
20696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20697 # splitting by setting IFS to empty value.)
20700 # Find who we are. Look in the path if we contain no directory separator.
20702 *[\\/]* ) as_myself=$0 ;;
20703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20704 for as_dir in $PATH
20707 test -z "$as_dir" && as_dir=.
20708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20714 # We did not find ourselves, most probably we were run as `sh COMMAND'
20715 # in which case we are not to be found in the path.
20716 if test "x$as_myself" = x
; then
20719 if test ! -f "$as_myself"; then
20720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20724 # Unset variables that we do not need and which cause bugs (e.g. in
20725 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20726 # suppresses any "Segmentation fault" message there. '((' could
20727 # trigger a bug in pdksh 5.2.14.
20728 for as_var
in BASH_ENV ENV MAIL MAILPATH
20729 do eval test x\
${$as_var+set} = xset \
20730 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20743 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20746 # as_fn_error ERROR [LINENO LOG_FD]
20747 # ---------------------------------
20748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20750 # script with status $?, using 1 if that was 0.
20753 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20755 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20756 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20758 $as_echo "$as_me: error: $1" >&2
20759 as_fn_exit
$as_status
20763 # as_fn_set_status STATUS
20764 # -----------------------
20765 # Set $? to STATUS, without forking.
20766 as_fn_set_status
()
20769 } # as_fn_set_status
20771 # as_fn_exit STATUS
20772 # -----------------
20773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20777 as_fn_set_status
$1
20783 # Portably unset VAR.
20786 { eval $1=; unset $1;}
20788 as_unset
=as_fn_unset
20789 # as_fn_append VAR VALUE
20790 # ----------------------
20791 # Append the text in VALUE to the end of the definition contained in VAR. Take
20792 # advantage of any shell optimizations that allow amortized linear growth over
20793 # repeated appends, instead of the typical quadratic growth present in naive
20795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20796 eval 'as_fn_append ()
20807 # as_fn_arith ARG...
20808 # ------------------
20809 # Perform arithmetic evaluation on the ARGs, and store the result in the
20810 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20811 # must be portable across $(()) and expr.
20812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20813 eval 'as_fn_arith ()
20820 as_val
=`expr "$@" || test $? -eq 1`
20825 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20826 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20832 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20833 as_basename
=basename
20838 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20844 as_me
=`$as_basename -- "$0" ||
20845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20846 X"$0" : 'X\(//\)$' \| \
20847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20849 sed '/^.*\/\([^/][^/]*\)\/*$/{
20863 # Avoid depending upon Character Ranges.
20864 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20865 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20866 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20867 as_cr_digits
='0123456789'
20868 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20870 ECHO_C
= ECHO_N
= ECHO_T
=
20871 case `echo -n x` in #(((((
20873 case `echo 'xy\c'` in
20874 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20876 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20883 rm -f conf$$ conf$$.exe conf$$.
file
20884 if test -d conf$$.dir
; then
20885 rm -f conf$$.dir
/conf$$.
file
20888 mkdir conf$$.dir
2>/dev
/null
20890 if (echo >conf$$.
file) 2>/dev
/null
; then
20891 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20893 # ... but there are two gotchas:
20894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20896 # In both cases, we have to default to `cp -p'.
20897 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20899 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20907 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20908 rmdir conf$$.dir
2>/dev
/null
20913 # Create "$as_dir" as a directory, including parents if necessary.
20918 -*) as_dir
=.
/$as_dir;;
20920 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20924 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20925 *) as_qdir
=$as_dir;;
20927 as_dirs
="'$as_qdir' $as_dirs"
20928 as_dir
=`$as_dirname -- "$as_dir" ||
20929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20930 X"$as_dir" : 'X\(//\)[^/]' \| \
20931 X"$as_dir" : 'X\(//\)$' \| \
20932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20933 $as_echo X"$as_dir" |
20934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20938 /^X\(\/\/\)[^/].*/{
20951 test -d "$as_dir" && break
20953 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20954 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20958 if mkdir
-p .
2>/dev
/null
; then
20959 as_mkdir_p
='mkdir -p "$as_dir"'
20961 test -d .
/-p && rmdir .
/-p
20965 if test -x / >/dev
/null
2>&1; then
20966 as_test_x
='test -x'
20968 if ls -dL / >/dev
/null
2>&1; then
20975 if test -d "$1"; then
20981 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20982 ???[sx]*):;;*)false;;esac;fi
20986 as_executable_p
=$as_test_x
20988 # Sed expression to map a string onto a valid CPP name.
20989 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20991 # Sed expression to map a string onto a valid variable name.
20992 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20996 ## ----------------------------------- ##
20997 ## Main body of $CONFIG_STATUS script. ##
20998 ## ----------------------------------- ##
21000 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
21002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21003 # Save the log message, to keep $0 and so on meaningful, and to
21004 # report actual input values of CONFIG_FILES etc. instead of their
21005 # values after options handling.
21007 This file was extended by $as_me, which was
21008 generated by GNU Autoconf 2.64. Invocation command line was
21010 CONFIG_FILES = $CONFIG_FILES
21011 CONFIG_HEADERS = $CONFIG_HEADERS
21012 CONFIG_LINKS = $CONFIG_LINKS
21013 CONFIG_COMMANDS = $CONFIG_COMMANDS
21016 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21021 case $ac_config_files in *"
21022 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
21025 case $ac_config_headers in *"
21026 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
21030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21031 # Files that config.status was made for.
21032 config_files="$ac_config_files"
21033 config_headers="$ac_config_headers"
21034 config_commands="$ac_config_commands"
21038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21040 \`$as_me' instantiates files and other configuration actions
21041 from templates according to the current configuration. Unless the files
21042 and actions are specified as TAGs, all are instantiated by default.
21044 Usage: $0 [OPTION]... [TAG]...
21046 -h, --help print this help, then exit
21047 -V, --version print version number and configuration settings, then exit
21048 -q, --quiet, --silent
21049 do not print progress messages
21050 -d, --debug don't remove temporary files
21051 --recheck update $as_me by reconfiguring in the same conditions
21052 --file=FILE[:TEMPLATE]
21053 instantiate the configuration file FILE
21054 --header=FILE[:TEMPLATE]
21055 instantiate the configuration header FILE
21057 Configuration files:
21060 Configuration headers:
21063 Configuration commands:
21066 Report bugs to the package provider."
21069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21072 configured by $0, generated by GNU Autoconf 2.64,
21073 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21075 Copyright (C) 2009 Free Software Foundation, Inc.
21076 This config.status script is free software; the Free Software Foundation
21077 gives unlimited permission to copy, distribute and modify it."
21084 test -n "\$AWK" || AWK=awk
21087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21088 # The default lists apply if the user does not specify any file.
21094 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21095 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21106 # Handling of the options.
21107 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21109 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21110 $as_echo "$ac_cs_version"; exit ;;
21111 --debug |
--debu |
--deb |
--de |
--d |
-d )
21113 --file |
--fil |
--fi |
--f )
21116 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21118 as_fn_append CONFIG_FILES
" '$ac_optarg'"
21119 ac_need_defaults
=false
;;
21120 --header |
--heade |
--head |
--hea )
21123 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21125 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
21126 ac_need_defaults
=false
;;
21128 # Conflict between --help and --header
21129 as_fn_error
"ambiguous option: \`$1'
21130 Try \`$0 --help' for more information.";;
21131 --help |
--hel |
-h )
21132 $as_echo "$ac_cs_usage"; exit ;;
21133 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21134 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21137 # This is an error.
21138 -*) as_fn_error
"unrecognized option: \`$1'
21139 Try \`$0 --help' for more information." ;;
21141 *) as_fn_append ac_config_targets
" $1"
21142 ac_need_defaults
=false
;;
21148 ac_configure_extra_args
=
21150 if $ac_cs_silent; then
21152 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21157 if \$ac_cs_recheck; then
21158 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21160 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21161 CONFIG_SHELL='$SHELL'
21162 export CONFIG_SHELL
21167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21172 ## Running $as_me. ##
21178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21182 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21188 # Handling of arguments.
21189 for ac_config_target
in $ac_config_targets
21191 case $ac_config_target in
21192 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
21193 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21194 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21195 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
21196 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21198 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21203 # If the user did not use the arguments to specify the items to instantiate,
21204 # then the envvar interface is used. Set only those that are not.
21205 # We use the long form for the default assignment because of an extremely
21206 # bizarre bug on SunOS 4.1.3.
21207 if $ac_need_defaults; then
21208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21213 # Have a temporary directory for convenience. Make it in the build tree
21214 # simply because there is no reason against having it here, and in addition,
21215 # creating and moving files from /tmp can sometimes cause problems.
21216 # Hook for its removal unless debugging.
21217 # Note that there is a small window in which the directory will not be cleaned:
21218 # after its creation but before its name has been assigned to `$tmp'.
21222 trap 'exit_status=$?
21223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21225 trap 'as_fn_exit 1' 1 2 13 15
21227 # Create a (secure) tmp directory for tmp files.
21230 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21231 test -n "$tmp" && test -d "$tmp"
21234 tmp
=.
/conf$$
-$RANDOM
21235 (umask 077 && mkdir
"$tmp")
21236 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
21238 # Set up the scripts for CONFIG_FILES section.
21239 # No need to generate them if there are no CONFIG_FILES.
21240 # This happens for instance with `./config.status config.h'.
21241 if test -n "$CONFIG_FILES"; then
21244 ac_cr
=`echo X | tr X '\015'`
21245 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21246 # But we know of no other shell where ac_cr would be empty at this
21247 # point, so we can use a bashism as a fallback.
21248 if test "x$ac_cr" = x
; then
21249 eval ac_cr
=\$
\'\\r
\'
21251 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21252 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21255 ac_cs_awk_cr
=$ac_cr
21258 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21263 echo "cat >conf$$subs.awk <<_ACEOF" &&
21264 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21266 } >conf$$subs.sh ||
21267 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
21268 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21270 for ac_last_try in false false false false false :; do
21271 . ./conf$$subs.sh ||
21272 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
21274 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
21275 if test $ac_delim_n = $ac_delim_num; then
21277 elif $ac_last_try; then
21278 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
21280 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21283 rm -f conf$$subs.sh
21285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21286 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
21290 s/^/S["/; s
/!.
*/"]=/
21300 s/\(.\{148\}\).*/\1/
21302 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21307 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21314 s/\(.\{148\}\).*/\1/
21316 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21320 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21325 ' <conf$$subs.awk | sed '
21330 ' >>$CONFIG_STATUS || ac_write_fail=1
21331 rm -f conf$$subs.awk
21332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21334 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
21335 for (key in S) S_is_set[key] = 1
21341 nfields = split(line, field, "@
")
21343 len = length(field[1])
21344 for (i = 2; i < nfields; i++) {
21346 keylen = length(key)
21347 if (S_is_set[key]) {
21349 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21350 len += length(value) + length(field[++i])
21361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21362 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21363 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21366 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21367 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
21370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21372 # trailing colons and then remove the whole line if VPATH becomes empty
21373 # (actually we leave an empty line to preserve line numbers).
21374 if test "x
$srcdir" = x.; then
21375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21376 s/:*\$(srcdir):*/:/
21377 s/:*\${srcdir}:*/:/
21379 s/^\([^=]*=[ ]*\):*/\1/
21385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21386 fi # test -n "$CONFIG_FILES"
21388 # Set up the scripts for CONFIG_HEADERS section.
21389 # No need to generate them if there are no CONFIG_HEADERS.
21390 # This happens for instance with `./config.status Makefile'.
21391 if test -n "$CONFIG_HEADERS"; then
21392 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21396 # Transform confdefs.h into an awk script `defines.awk', embedded as
21397 # here-document in config.status, that substitutes the proper values into
21398 # config.h.in to produce config.h.
21400 # Create a delimiter string that does not exist in confdefs.h, to ease
21401 # handling of long lines.
21403 for ac_last_try in false false :; do
21404 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21405 if test -z "$ac_t"; then
21407 elif $ac_last_try; then
21408 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21410 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21414 # For the awk script, D is an array of macro values keyed by name,
21415 # likewise P contains macro parameters if any. Preserve backslash
21416 # newline sequences.
21418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21420 s/.\{148\}/&'"$ac_delim"'/g
21423 s/^[ ]*#[ ]*define[ ][ ]*/ /
21430 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21432 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21437 D["\
1"]=" \
3\\\\\\n
"\\/p
21439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21444 s/.\{148\}/&'"$ac_delim"'/g
21449 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21452 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21454 ' <confdefs.h | sed '
21455 s/'"$ac_delim"'/"\\\
21456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 for (key in D) D_is_set[key] = 1
21462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21464 split(line, arg, " ")
21465 if (arg[1] == "#") {
21469 defundef
= substr
(arg
[1], 2)
21472 split(mac1
, mac2
, "(") #)
21474 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21475 if (D_is_set
[macro
]) {
21476 # Preserve the white space surrounding the "#".
21477 print prefix
"define", macro P
[macro
] D
[macro
]
21480 # Replace #undef with comments. This is necessary, for example,
21481 # in the case of _POSIX_SOURCE, which is predefined and required
21482 # on some systems where configure will not decide to define it.
21483 if (defundef
== "undef") {
21484 print
"/*", prefix defundef
, macro
, "*/"
21492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21493 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21494 fi # test -n "$CONFIG_HEADERS"
21497 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21502 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21504 case $ac_mode$ac_tag in
21506 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21507 :[FH
]-) ac_tag
=-:-;;
21508 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21525 -) ac_f
="$tmp/stdin";;
21526 *) # Look for the file first in the build tree, then in the source tree
21527 # (if the path is not absolute). The absolute path cannot be DOS-style,
21528 # because $ac_f cannot contain `:'.
21532 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21534 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21536 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21537 as_fn_append ac_file_inputs
" '$ac_f'"
21540 # Let's still pretend it is `configure' which instantiates (i.e., don't
21541 # use $as_me), people would be surprised to read:
21542 # /* config.h. Generated by config.status. */
21543 configure_input
='Generated from '`
21544 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21546 if test x
"$ac_file" != x-
; then
21547 configure_input
="$ac_file. $configure_input"
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21549 $as_echo "$as_me: creating $ac_file" >&6;}
21551 # Neutralize special characters interpreted by sed in replacement strings.
21552 case $configure_input in #(
21553 *\
&* |
*\|
* |
*\\* )
21554 ac_sed_conf_input
=`$as_echo "$configure_input" |
21555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21556 *) ac_sed_conf_input
=$configure_input;;
21560 *:-:* |
*:-) cat >"$tmp/stdin" \
21561 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21566 ac_dir
=`$as_dirname -- "$ac_file" ||
21567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21568 X"$ac_file" : 'X\(//\)[^/]' \| \
21569 X"$ac_file" : 'X\(//\)$' \| \
21570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21571 $as_echo X"$ac_file" |
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21576 /^X\(\/\/\)[^/].*/{
21589 as_dir
="$ac_dir"; as_fn_mkdir_p
21593 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21595 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21596 # A ".." for each directory in $ac_dir_suffix.
21597 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21598 case $ac_top_builddir_sub in
21599 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21600 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21603 ac_abs_top_builddir
=$ac_pwd
21604 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21605 # for backward compatibility:
21606 ac_top_builddir
=$ac_top_build_prefix
21609 .
) # We are building in place.
21611 ac_top_srcdir
=$ac_top_builddir_sub
21612 ac_abs_top_srcdir
=$ac_pwd ;;
21613 [\\/]* | ?
:[\\/]* ) # Absolute name.
21614 ac_srcdir
=$srcdir$ac_dir_suffix;
21615 ac_top_srcdir
=$srcdir
21616 ac_abs_top_srcdir
=$srcdir ;;
21617 *) # Relative name.
21618 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21619 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21620 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21622 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21632 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21633 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21635 ac_MKDIR_P
=$MKDIR_P
21637 [\\/$
]* | ?
:[\\/]* ) ;;
21638 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21643 # If the template does not know about datarootdir, expand it.
21644 # FIXME: This hack should be removed a few years after 2.60.
21645 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21657 *datarootdir
*) ac_datarootdir_seen
=yes;;
21658 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21660 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21663 ac_datarootdir_hack='
21664 s&@datadir@&$datadir&g
21665 s&@docdir@&$docdir&g
21666 s&@infodir@&$infodir&g
21667 s&@localedir@&$localedir&g
21668 s&@mandir@&$mandir&g
21669 s&\\\${datarootdir}&$datarootdir&g' ;;
21673 # Neutralize VPATH when `$srcdir' = `.'.
21674 # Shell code in configure.ac might set extrasub.
21675 # FIXME: do we really want to maintain this feature?
21676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21677 ac_sed_extra="$ac_vpsub
21680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21682 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21683 s|@configure_input@|
$ac_sed_conf_input|
;t t
21684 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21685 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21686 s
&@srcdir@
&$ac_srcdir&;t t
21687 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21688 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21689 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21690 s
&@builddir@
&$ac_builddir&;t t
21691 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21692 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21693 s
&@INSTALL@
&$ac_INSTALL&;t t
21694 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21695 $ac_datarootdir_hack
21697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
21698 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21704 which seems to be undefined. Please make sure it is defined." >&5
21705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21706 which seems to be undefined. Please make sure it is defined." >&2;}
21710 -) cat "$tmp/out" && rm -f "$tmp/out";;
21711 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21713 || as_fn_error "could not create $ac_file" "$LINENO" 5
21719 if test x"$ac_file" != x-; then
21721 $as_echo "/* $configure_input */" \
21722 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21723 } >"$tmp/config.h" \
21724 || as_fn_error "could not create $ac_file" "$LINENO" 5
21725 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21730 mv "$tmp/config.h" "$ac_file" \
21731 || as_fn_error "could not create $ac_file" "$LINENO" 5
21734 $as_echo "/* $configure_input */" \
21735 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21736 || as_fn_error "could not create -" "$LINENO" 5
21738 # Compute "$ac_file"'s index
in $config_headers.
21741 for _am_header
in $config_headers :; do
21742 case $_am_header in
21743 $_am_arg |
$_am_arg:* )
21746 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21751 X"$_am_arg" : 'X\(//\)[^/]' \| \
21752 X"$_am_arg" : 'X\(//\)$' \| \
21753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21754 $as_echo X"$_am_arg" |
21755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21759 /^X\(\/\/\)[^/].*/{
21771 s/.*/./; q'`/stamp-h
$_am_stamp_count
21774 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21775 $as_echo "$as_me: executing $ac_file commands" >&6;}
21780 case $ac_file$ac_mode in
21781 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21782 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21783 # are listed without --file. Let's play safe and only enable the eval
21784 # if we detect the quoting.
21785 case $CONFIG_FILES in
21786 *\'*) eval set x
"$CONFIG_FILES" ;;
21787 *) set x
$CONFIG_FILES ;;
21792 # Strip MF so we end up with the name of the file.
21793 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21794 # Check whether this is an Automake generated Makefile or not.
21795 # We used to match only the files named `Makefile.in', but
21796 # some people rename them; so instead we look at the file content.
21797 # Grep'ing the first line is not enough: some people post-process
21798 # each Makefile.in and add a new line on top of each file to say so.
21799 # Grep'ing the whole file is not good either: AIX grep has a line
21800 # limit of 2048, but all sed's we know have understand at least 4000.
21801 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21802 dirpart
=`$as_dirname -- "$mf" ||
21803 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804 X"$mf" : 'X\(//\)[^/]' \| \
21805 X"$mf" : 'X\(//\)$' \| \
21806 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21812 /^X\(\/\/\)[^/].*/{
21828 # Extract the definition of DEPDIR, am__include, and am__quote
21829 # from the Makefile without running `make'.
21830 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21831 test -z "$DEPDIR" && continue
21832 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21833 test -z "am__include" && continue
21834 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21835 # When using ansi2knr, U may be empty or an underscore; expand it
21836 U
=`sed -n 's/^U = //p' < "$mf"`
21837 # Find all dependency output files, they are included files with
21838 # $(DEPDIR) in their names. We invoke sed twice because it is the
21839 # simplest approach to changing $(DEPDIR) to its actual value in the
21841 for file in `sed -n "
21842 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21843 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21844 # Make sure the directory exists.
21845 test -f "$dirpart/$file" && continue
21846 fdir
=`$as_dirname -- "$file" ||
21847 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21848 X"$file" : 'X\(//\)[^/]' \| \
21849 X"$file" : 'X\(//\)$' \| \
21850 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21851 $as_echo X"$file" |
21852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21856 /^X\(\/\/\)[^/].*/{
21869 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21870 # echo "creating $dirpart/$file"
21871 echo '# dummy' > "$dirpart/$file"
21877 case x
$CONFIG_HEADERS in
21878 xconfig.h
:config.
in)
21889 ac_clean_files
=$ac_clean_files_save
21891 test $ac_write_fail = 0 ||
21892 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21895 # configure is writing to config.log, and then calls config.status.
21896 # config.status does its own redirection, appending to config.log.
21897 # Unfortunately, on DOS this fails, as config.log is still kept open
21898 # by configure, so config.status won't be able to write to it; its
21899 # output is simply discarded. So we exec the FD to /dev/null,
21900 # effectively closing config.log, so it can be properly (re)opened and
21901 # appended to by config.status. When coming back to configure, we
21902 # need to make the FD available again.
21903 if test "$no_create" != yes; then
21905 ac_config_status_args
=
21906 test "$silent" = yes &&
21907 ac_config_status_args
="$ac_config_status_args --quiet"
21909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21912 # would make configure fail if this is the last instruction.
21913 $ac_cs_success || as_fn_exit $?
21915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}