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
1058 HAVE_SIGNED_SIG_ATOMIC_T
1061 BITSIZEOF_SIG_ATOMIC_T
1064 APPLE_UNIVERSAL_BUILD
1068 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1073 HAVE_UNSIGNED_LONG_LONG_INT
1076 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1078 REPLACE_STRUCT_TIMEVAL
1079 REPLACE_GETTIMEOFDAY
1086 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1092 REPLACE_SIGNBIT_USING_GCC
1161 HAVE_DECL_REMAINDERL
1342 GL_GENERATE_FNMATCH_H_FALSE
1343 GL_GENERATE_FNMATCH_H_TRUE
1346 GL_GENERATE_FLOAT_H_FALSE
1347 GL_GENERATE_FLOAT_H_TRUE
1349 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1357 GL_GENERATE_ERRNO_H_FALSE
1358 GL_GENERATE_ERRNO_H_TRUE
1360 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1363 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1366 PRAGMA_SYSTEM_HEADER
1367 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1393 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1394 UNISTD_H_HAVE_WINSOCK2_H
1417 REPLACE_GETDTABLESIZE
1418 REPLACE_GETDOMAINNAME
1429 HAVE_DECL_SETHOSTNAME
1430 HAVE_DECL_GETUSERSHELL
1431 HAVE_DECL_GETPAGESIZE
1432 HAVE_DECL_GETLOGIN_R
1433 HAVE_DECL_GETDOMAINNAME
1472 GNULIB_UNISTD_H_SIGPIPE
1473 GNULIB_UNISTD_H_NONBLOCKING
1499 GNULIB_GETDTABLESIZE
1500 GNULIB_GETDOMAINNAME
1530 REPLACE_CANONICALIZE_FILE_NAME
1535 HAVE_STRUCT_RANDOM_DATA
1557 HAVE_DECL_GETLOADAVG
1558 HAVE_CANONICALIZE_FILE_NAME
1569 GNULIB_SECURE_GETENV
1572 GNULIB_REALLOC_POSIX
1590 GNULIB_CANONICALIZE_FILE_NAME
1594 GL_GENERATE_ALLOCA_H_FALSE
1595 GL_GENERATE_ALLOCA_H_TRUE
1598 GL_COND_LIBTOOL_FALSE
1599 GL_COND_LIBTOOL_TRUE
1626 MAINTAINER_MODE_FALSE
1627 MAINTAINER_MODE_TRUE
1655 program_transform_name
1668 enable_option_checking
1669 enable_maintainer_mode
1671 enable_dependency_tracking
1673 ac_precious_vars
='build_alias
1684 # Initialize some variables set by options.
1686 ac_init_version
=false
1687 ac_unrecognized_opts
=
1688 ac_unrecognized_sep
=
1689 # The variables have the same names as the options, with
1690 # dashes changed to underlines.
1691 cache_file
=/dev
/null
1698 program_transform_name
=s
,x
,x
,
1706 # Installation directory options.
1707 # These are left unexpanded so users can "make install exec_prefix=/foo"
1708 # and all the variables that are supposed to be based on exec_prefix
1709 # by default will actually change.
1710 # Use braces instead of parens because sh, perl, etc. also accept them.
1711 # (The list follows the same order as the GNU Coding Standards.)
1712 bindir
='${exec_prefix}/bin'
1713 sbindir
='${exec_prefix}/sbin'
1714 libexecdir
='${exec_prefix}/libexec'
1715 datarootdir
='${prefix}/share'
1716 datadir
='${datarootdir}'
1717 sysconfdir
='${prefix}/etc'
1718 sharedstatedir
='${prefix}/com'
1719 localstatedir
='${prefix}/var'
1720 includedir
='${prefix}/include'
1721 oldincludedir
='/usr/include'
1722 docdir
='${datarootdir}/doc/${PACKAGE}'
1723 infodir
='${datarootdir}/info'
1728 libdir
='${exec_prefix}/lib'
1729 localedir
='${datarootdir}/locale'
1730 mandir
='${datarootdir}/man'
1736 # If the previous option needs an argument, assign it.
1737 if test -n "$ac_prev"; then
1738 eval $ac_prev=\
$ac_option
1744 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1748 # Accept the important Cygnus configure options, so we can diagnose typos.
1750 case $ac_dashdash$ac_option in
1754 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1756 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1757 bindir
=$ac_optarg ;;
1759 -build |
--build |
--buil |
--bui |
--bu)
1760 ac_prev
=build_alias
;;
1761 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1762 build_alias
=$ac_optarg ;;
1764 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1765 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1766 ac_prev
=cache_file
;;
1767 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1768 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1769 cache_file
=$ac_optarg ;;
1771 --config-cache |
-C)
1772 cache_file
=config.cache
;;
1774 -datadir |
--datadir |
--datadi |
--datad)
1776 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1777 datadir
=$ac_optarg ;;
1779 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1780 |
--dataroo |
--dataro |
--datar)
1781 ac_prev
=datarootdir
;;
1782 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1783 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1784 datarootdir
=$ac_optarg ;;
1786 -disable-* |
--disable-*)
1787 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1788 # Reject names that are not valid shell variable names.
1789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1790 as_fn_error
"invalid feature name: $ac_useropt"
1791 ac_useropt_orig
=$ac_useropt
1792 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1793 case $ac_user_opts in
1795 "enable_
$ac_useropt"
1797 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1798 ac_unrecognized_sep
=', ';;
1800 eval enable_
$ac_useropt=no
;;
1802 -docdir |
--docdir |
--docdi |
--doc |
--do)
1804 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1805 docdir
=$ac_optarg ;;
1807 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1809 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1810 dvidir
=$ac_optarg ;;
1812 -enable-* |
--enable-*)
1813 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1814 # Reject names that are not valid shell variable names.
1815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1816 as_fn_error
"invalid feature name: $ac_useropt"
1817 ac_useropt_orig
=$ac_useropt
1818 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1819 case $ac_user_opts in
1821 "enable_
$ac_useropt"
1823 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1824 ac_unrecognized_sep
=', ';;
1826 eval enable_
$ac_useropt=\
$ac_optarg ;;
1828 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1829 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1830 |
--exec |
--exe |
--ex)
1831 ac_prev
=exec_prefix
;;
1832 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1833 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1834 |
--exec=* |
--exe=* |
--ex=*)
1835 exec_prefix
=$ac_optarg ;;
1837 -gas |
--gas |
--ga |
--g)
1838 # Obsolete; use --with-gas.
1841 -help |
--help |
--hel |
--he |
-h)
1842 ac_init_help
=long
;;
1843 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1844 ac_init_help
=recursive
;;
1845 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1846 ac_init_help
=short
;;
1848 -host |
--host |
--hos |
--ho)
1849 ac_prev
=host_alias
;;
1850 -host=* |
--host=* |
--hos=* |
--ho=*)
1851 host_alias
=$ac_optarg ;;
1853 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1855 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1857 htmldir
=$ac_optarg ;;
1859 -includedir |
--includedir |
--includedi |
--included |
--include \
1860 |
--includ |
--inclu |
--incl |
--inc)
1861 ac_prev
=includedir
;;
1862 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1863 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1864 includedir
=$ac_optarg ;;
1866 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1868 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1869 infodir
=$ac_optarg ;;
1871 -libdir |
--libdir |
--libdi |
--libd)
1873 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1874 libdir
=$ac_optarg ;;
1876 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1877 |
--libexe |
--libex |
--libe)
1878 ac_prev
=libexecdir
;;
1879 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1880 |
--libexe=* |
--libex=* |
--libe=*)
1881 libexecdir
=$ac_optarg ;;
1883 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1884 ac_prev
=localedir
;;
1885 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1886 localedir
=$ac_optarg ;;
1888 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1889 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1890 ac_prev
=localstatedir
;;
1891 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1892 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1893 localstatedir
=$ac_optarg ;;
1895 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1897 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1898 mandir
=$ac_optarg ;;
1900 -nfp |
--nfp |
--nf)
1901 # Obsolete; use --without-fp.
1904 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1905 |
--no-cr |
--no-c |
-n)
1908 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1909 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1912 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1913 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1914 |
--oldin |
--oldi |
--old |
--ol |
--o)
1915 ac_prev
=oldincludedir
;;
1916 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1917 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1918 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1919 oldincludedir
=$ac_optarg ;;
1921 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1923 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1924 prefix
=$ac_optarg ;;
1926 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1927 |
--program-pre |
--program-pr |
--program-p)
1928 ac_prev
=program_prefix
;;
1929 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1930 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1931 program_prefix
=$ac_optarg ;;
1933 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1934 |
--program-suf |
--program-su |
--program-s)
1935 ac_prev
=program_suffix
;;
1936 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1937 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1938 program_suffix
=$ac_optarg ;;
1940 -program-transform-name |
--program-transform-name \
1941 |
--program-transform-nam |
--program-transform-na \
1942 |
--program-transform-n |
--program-transform- \
1943 |
--program-transform |
--program-transfor \
1944 |
--program-transfo |
--program-transf \
1945 |
--program-trans |
--program-tran \
1946 |
--progr-tra |
--program-tr |
--program-t)
1947 ac_prev
=program_transform_name
;;
1948 -program-transform-name=* |
--program-transform-name=* \
1949 |
--program-transform-nam=* |
--program-transform-na=* \
1950 |
--program-transform-n=* |
--program-transform-=* \
1951 |
--program-transform=* |
--program-transfor=* \
1952 |
--program-transfo=* |
--program-transf=* \
1953 |
--program-trans=* |
--program-tran=* \
1954 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1955 program_transform_name
=$ac_optarg ;;
1957 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1959 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1960 pdfdir
=$ac_optarg ;;
1962 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1964 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1967 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1968 |
-silent |
--silent |
--silen |
--sile |
--sil)
1971 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1973 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1975 sbindir
=$ac_optarg ;;
1977 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1978 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1979 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1981 ac_prev
=sharedstatedir
;;
1982 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1983 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1984 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1986 sharedstatedir
=$ac_optarg ;;
1988 -site |
--site |
--sit)
1990 -site=* |
--site=* |
--sit=*)
1993 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1995 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1996 srcdir
=$ac_optarg ;;
1998 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1999 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2000 ac_prev
=sysconfdir
;;
2001 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2002 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2003 sysconfdir
=$ac_optarg ;;
2005 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2006 ac_prev
=target_alias
;;
2007 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2008 target_alias
=$ac_optarg ;;
2010 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2013 -version |
--version |
--versio |
--versi |
--vers |
-V)
2014 ac_init_version
=: ;;
2017 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2018 # Reject names that are not valid shell variable names.
2019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2020 as_fn_error
"invalid package name: $ac_useropt"
2021 ac_useropt_orig
=$ac_useropt
2022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2023 case $ac_user_opts in
2027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2028 ac_unrecognized_sep
=', ';;
2030 eval with_
$ac_useropt=\
$ac_optarg ;;
2032 -without-* |
--without-*)
2033 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2034 # Reject names that are not valid shell variable names.
2035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2036 as_fn_error
"invalid package name: $ac_useropt"
2037 ac_useropt_orig
=$ac_useropt
2038 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2039 case $ac_user_opts in
2043 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2044 ac_unrecognized_sep
=', ';;
2046 eval with_
$ac_useropt=no
;;
2049 # Obsolete; use --with-x.
2052 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2053 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2054 ac_prev
=x_includes
;;
2055 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2056 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2057 x_includes
=$ac_optarg ;;
2059 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2060 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2061 ac_prev
=x_libraries
;;
2062 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2063 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2064 x_libraries
=$ac_optarg ;;
2066 -*) as_fn_error
"unrecognized option: \`$ac_option'
2067 Try \`$0 --help' for more information."
2071 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2072 # Reject names that are not valid shell variable names.
2073 case $ac_envvar in #(
2074 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2075 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2077 eval $ac_envvar=\
$ac_optarg
2078 export $ac_envvar ;;
2081 # FIXME: should be removed in autoconf 3.0.
2082 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2084 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2091 if test -n "$ac_prev"; then
2092 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2093 as_fn_error
"missing argument to $ac_option"
2096 if test -n "$ac_unrecognized_opts"; then
2097 case $enable_option_checking in
2099 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2100 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2104 # Check all directory arguments for consistency.
2105 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2106 datadir sysconfdir sharedstatedir localstatedir includedir \
2107 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2108 libdir localedir mandir
2110 eval ac_val
=\$
$ac_var
2111 # Remove trailing slashes.
2114 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2115 eval $ac_var=\
$ac_val;;
2117 # Be sure to have absolute directory names.
2119 [\\/$
]* | ?
:[\\/]* ) continue;;
2120 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2122 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2125 # There might be people who depend on the old broken behavior: `$host'
2126 # used to hold the argument of --host etc.
2127 # FIXME: To remove some day.
2130 target
=$target_alias
2132 # FIXME: To remove some day.
2133 if test "x$host_alias" != x
; then
2134 if test "x$build_alias" = x
; then
2135 cross_compiling
=maybe
2136 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2137 If a cross compiler is detected then cross compile mode will be used." >&2
2138 elif test "x$build_alias" != "x$host_alias"; then
2144 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2146 test "$silent" = yes && exec 6>/dev
/null
2149 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2150 ac_ls_di
=`ls -di .` &&
2151 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2152 as_fn_error
"working directory cannot be determined"
2153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2154 as_fn_error
"pwd does not report name of working directory"
2157 # Find the source files, if location was not specified.
2158 if test -z "$srcdir"; then
2159 ac_srcdir_defaulted
=yes
2160 # Try the directory containing this script, then the parent directory.
2161 ac_confdir
=`$as_dirname -- "$as_myself" ||
2162 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2163 X"$as_myself" : 'X\(//\)[^/]' \| \
2164 X"$as_myself" : 'X\(//\)$' \| \
2165 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2166 $as_echo X"$as_myself" |
2167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2185 if test ! -r "$srcdir/$ac_unique_file"; then
2189 ac_srcdir_defaulted
=no
2191 if test ! -r "$srcdir/$ac_unique_file"; then
2192 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2193 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2195 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2197 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2199 # When building in place, set srcdir=.
2200 if test "$ac_abs_confdir" = "$ac_pwd"; then
2203 # Remove unnecessary trailing slashes from srcdir.
2204 # Double slashes in file names in object file debugging info
2205 # mess up M-x gdb in Emacs.
2207 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2209 for ac_var
in $ac_precious_vars; do
2210 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2211 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2212 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2213 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2217 # Report the --help message.
2219 if test "$ac_init_help" = "long"; then
2220 # Omit some internal or obsolete options to make the list less imposing.
2221 # This message is too long to be a string in the A/UX 3.1 sh.
2223 \`configure' configures this package to adapt to many kinds of systems.
2225 Usage: $0 [OPTION]... [VAR=VALUE]...
2227 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2228 VAR=VALUE. See below for descriptions of some of the useful variables.
2230 Defaults for the options are specified in brackets.
2233 -h, --help display this help and exit
2234 --help=short display options specific to this package
2235 --help=recursive display the short help of all the included packages
2236 -V, --version display version information and exit
2237 -q, --quiet, --silent do not print \`checking...' messages
2238 --cache-file=FILE cache test results in FILE [disabled]
2239 -C, --config-cache alias for \`--cache-file=config.cache'
2240 -n, --no-create do not create output files
2241 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2243 Installation directories:
2244 --prefix=PREFIX install architecture-independent files in PREFIX
2245 [$ac_default_prefix]
2246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2249 By default, \`make install' will install all the files in
2250 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2251 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2252 for instance \`--prefix=\$HOME'.
2254 For better control, use the options below.
2256 Fine tuning of the installation directories:
2257 --bindir=DIR user executables [EPREFIX/bin]
2258 --sbindir=DIR system admin executables [EPREFIX/sbin]
2259 --libexecdir=DIR program executables [EPREFIX/libexec]
2260 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2261 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2262 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2263 --libdir=DIR object code libraries [EPREFIX/lib]
2264 --includedir=DIR C header files [PREFIX/include]
2265 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2266 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2267 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2268 --infodir=DIR info documentation [DATAROOTDIR/info]
2269 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2270 --mandir=DIR man documentation [DATAROOTDIR/man]
2271 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2272 --htmldir=DIR html documentation [DOCDIR]
2273 --dvidir=DIR dvi documentation [DOCDIR]
2274 --pdfdir=DIR pdf documentation [DOCDIR]
2275 --psdir=DIR ps documentation [DOCDIR]
2281 --program-prefix=PREFIX prepend PREFIX to installed program names
2282 --program-suffix=SUFFIX append SUFFIX to installed program names
2283 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2286 --build=BUILD configure
for building on BUILD
[guessed
]
2287 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2288 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2292 if test -n "$ac_init_help"; then
2297 --disable-option-checking ignore unrecognized
--enable/--with options
2298 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2299 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2300 --enable-maintainer-mode enable make rules and dependencies not useful
2301 (and sometimes confusing
) to the casual installer
2302 --disable-largefile omit support
for large files
2303 --disable-dependency-tracking speeds up one-time build
2304 --enable-dependency-tracking do not reject slow dependency extractors
2306 Some influential environment variables
:
2307 CC C compiler
command
2308 CFLAGS C compiler flags
2309 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2310 nonstandard directory
<lib dir
>
2311 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2312 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2313 you have headers
in a nonstandard directory
<include dir
>
2316 Use these variables to override the choices made by
`configure' or to help
2317 it to find libraries and programs with nonstandard names/locations.
2319 Report bugs to the package provider.
2324 if test "$ac_init_help" = "recursive"; then
2325 # If there are subdirs, report their specific --help.
2326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2327 test -d "$ac_dir" ||
2328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2335 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2336 # A ".." for each directory in $ac_dir_suffix.
2337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2338 case $ac_top_builddir_sub in
2339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2343 ac_abs_top_builddir=$ac_pwd
2344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2345 # for backward compatibility:
2346 ac_top_builddir=$ac_top_build_prefix
2349 .) # We are building in place.
2351 ac_top_srcdir=$ac_top_builddir_sub
2352 ac_abs_top_srcdir=$ac_pwd ;;
2353 [\\/]* | ?:[\\/]* ) # Absolute name.
2354 ac_srcdir=$srcdir$ac_dir_suffix;
2355 ac_top_srcdir=$srcdir
2356 ac_abs_top_srcdir=$srcdir ;;
2358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2359 ac_top_srcdir=$ac_top_build_prefix$srcdir
2360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2364 cd "$ac_dir" || { ac_status=$?; continue; }
2365 # Check for guested configure.
2366 if test -f "$ac_srcdir/configure.gnu"; then
2368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2369 elif test -f "$ac_srcdir/configure"; then
2371 $SHELL "$ac_srcdir/configure" --help=recursive
2373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2375 cd "$ac_pwd" || { ac_status=$?; break; }
2379 test -n "$ac_init_help" && exit $ac_status
2380 if $ac_init_version; then
2383 generated by GNU Autoconf 2.64
2385 Copyright (C) 2009 Free Software Foundation, Inc.
2386 This configure script is free software; the Free Software Foundation
2387 gives unlimited permission to copy, distribute and modify it.
2392 ## ------------------------ ##
2393 ## Autoconf initialization. ##
2394 ## ------------------------ ##
2396 # ac_fn_c_try_compile LINENO
2397 # --------------------------
2398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2399 ac_fn_c_try_compile ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 rm -f conftest.$ac_objext
2403 if { { ac_try="$ac_compile"
2405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2406 *) ac_try_echo
=$ac_try;;
2408 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 $as_echo "$ac_try_echo"; } >&5
2410 (eval "$ac_compile") 2>conftest.err
2412 if test -s conftest.err
; then
2413 grep -v '^ *+' conftest.err
>conftest.er1
2414 cat conftest.er1
>&5
2415 mv -f conftest.er1 conftest.err
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; } && {
2419 test -z "$ac_c_werror_flag" ||
2420 test ! -s conftest.err
2421 } && test -s conftest.
$ac_objext; then :
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.
$ac_ext >&5
2429 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2432 } # ac_fn_c_try_compile
2434 # ac_fn_c_try_cpp LINENO
2435 # ----------------------
2436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2439 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2440 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; } >/dev/null && {
2456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2461 $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2472 # -------------------------------------------------------
2473 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2474 # the include files in INCLUDES and setting the cache variable VAR
2476 ac_fn_c_check_header_mongrel ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481 $as_echo_n "checking for $2... " >&6; }
2482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2483 $as_echo_n "(cached) " >&6
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2489 # Is the header compilable?
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2491 $as_echo_n "checking $2 usability... " >&6; }
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_header_compiler=yes
2500 ac_header_compiler=no
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2504 $as_echo "$ac_header_compiler" >&6; }
2506 # Is the header present?
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2508 $as_echo_n "checking $2 presence... " >&6; }
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2513 if ac_fn_c_try_cpp "$LINENO"; then :
2514 ac_header_preproc=yes
2516 ac_header_preproc=no
2518 rm -f conftest.err conftest.$ac_ext
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2520 $as_echo "$ac_header_preproc" >&6; }
2522 # So? What about this header?
2523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2526 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2532 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2534 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2536 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2538 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2548 eval "$3=\$ac_header_compiler"
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556 } # ac_fn_c_check_header_mongrel
2558 # ac_fn_c_try_run LINENO
2559 # ----------------------
2560 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2561 # that executables *can* be run.
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 if { { ac_try="$ac_link"
2567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2568 *) ac_try_echo
=$ac_try;;
2570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>&5
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2576 { { case "(($ac_try" in
2577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_try") 2>&5
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; }; }; then :
2588 $as_echo "$as_me: program exited with status $ac_status" >&5
2589 $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2592 ac_retval=$ac_status
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2601 # -------------------------------------------------------
2602 # Tests whether HEADER exists and can be compiled using the include files in
2603 # INCLUDES, setting the cache variable VAR accordingly.
2604 ac_fn_c_check_header_compile ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608 $as_echo_n "checking for $2... " >&6; }
2609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2610 $as_echo_n "(cached) " >&6
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2617 if ac_fn_c_try_compile "$LINENO"; then :
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_c_check_header_compile
2631 # ac_fn_c_try_link LINENO
2632 # -----------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2641 *) ac_try_echo
=$ac_try;;
2643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2647 if test -s conftest.err
; then
2648 grep -v '^ *+' conftest.err
>conftest.er1
2649 cat conftest.er1
>&5
2650 mv -f conftest.er1 conftest.err
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest
$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest
$ac_exeext
2662 $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.
$ac_ext >&5
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2675 } # ac_fn_c_try_link
2677 # ac_fn_c_check_func LINENO FUNC VAR
2678 # ----------------------------------
2679 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2680 ac_fn_c_check_func
()
2682 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684 $as_echo_n "checking for $2... " >&6; }
2685 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2686 $as_echo_n "(cached) " >&6
2688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2690 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2692 #define $2 innocuous_$2
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $2 (); below.
2696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2697 <limits.h> exists even on freestanding compilers. */
2700 # include <limits.h>
2702 # include <assert.h>
2707 /* Override any GCC internal prototype to avoid an error.
2708 Use char because int might match the return type of a GCC
2709 builtin and then its argument prototype would still apply. */
2714 /* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717 #if defined __stub_$2 || defined __stub___$2
2729 if ac_fn_c_try_link
"$LINENO"; then :
2734 rm -f core conftest.err conftest.
$ac_objext \
2735 conftest
$ac_exeext conftest.
$ac_ext
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2742 } # ac_fn_c_check_func
2744 # ac_fn_c_check_decl LINENO SYMBOL VAR
2745 # ------------------------------------
2746 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2747 ac_fn_c_check_decl
()
2749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2751 $as_echo_n "checking whether $2 is declared... " >&6; }
2752 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2753 $as_echo_n "(cached) " >&6
2755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2769 if ac_fn_c_try_compile
"$LINENO"; then :
2774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778 $as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2781 } # ac_fn_c_check_decl
2783 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2784 # --------------------------------------------
2785 # Tries to find the compile-time value of EXPR in a program that includes
2786 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2788 ac_fn_c_compute_int
()
2790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2791 if test "$cross_compiling" = yes; then
2792 # Depending upon the size, compute the lo and hi bounds.
2793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2799 static int test_array [1 - 2 * !(($2) >= 0)];
2806 if ac_fn_c_try_compile
"$LINENO"; then :
2809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2815 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2822 if ac_fn_c_try_compile
"$LINENO"; then :
2823 ac_hi
=$ac_mid; break
2825 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2826 if test $ac_lo -le $ac_mid; then
2830 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2841 static int test_array [1 - 2 * !(($2) < 0)];
2848 if ac_fn_c_try_compile
"$LINENO"; then :
2851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2864 if ac_fn_c_try_compile
"$LINENO"; then :
2865 ac_lo
=$ac_mid; break
2867 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2868 if test $ac_mid -le $ac_hi; then
2872 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2882 # Binary search between lo and hi bounds.
2883 while test "x$ac_lo" != "x$ac_hi"; do
2884 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2891 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2898 if ac_fn_c_try_compile
"$LINENO"; then :
2901 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2906 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2913 static long int longval () { return $2; }
2914 static unsigned long int ulongval () { return $2; }
2921 FILE *f = fopen ("conftest.val", "w");
2926 long int i = longval ();
2929 fprintf (f, "%ld", i);
2933 unsigned long int i = ulongval ();
2936 fprintf (f, "%lu", i);
2938 /* Do not output a trailing newline, as this causes \r\n confusion
2939 on some platforms. */
2940 return ferror (f) || fclose (f) != 0;
2946 if ac_fn_c_try_run
"$LINENO"; then :
2947 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2951 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2952 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2959 } # ac_fn_c_compute_int
2961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2962 # -------------------------------------------
2963 # Tests whether TYPE exists after having included INCLUDES, setting cache
2964 # variable VAR accordingly.
2965 ac_fn_c_check_type
()
2967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2969 $as_echo_n "checking for $2... " >&6; }
2970 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2971 $as_echo_n "(cached) " >&6
2974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2986 if ac_fn_c_try_compile
"$LINENO"; then :
2987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2999 if ac_fn_c_try_compile
"$LINENO"; then :
3004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3010 $as_echo "$ac_res" >&6; }
3011 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3013 } # ac_fn_c_check_type
3014 cat >config.log
<<_ACEOF
3015 This file contains any messages produced by compilers while
3016 running configure, to aid debugging if configure makes a mistake.
3018 It was created by $as_me, which was
3019 generated by GNU Autoconf 2.64. Invocation command line was
3031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 $as_echo "PATH: $as_dir"
3071 # Keep a trace of the command line.
3072 # Strip out --no-create and --no-recursion so they do not pile up.
3073 # Strip out --silent because we don't want to record it for future runs.
3074 # Also quote any args containing shell meta-characters.
3075 # Make two passes to allow for proper duplicate-argument suppression.
3079 ac_must_keep_next
=false
3085 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3087 |
-silent |
--silent |
--silen |
--sile |
--sil)
3090 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3093 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3095 as_fn_append ac_configure_args1
" '$ac_arg'"
3096 if test $ac_must_keep_next = true
; then
3097 ac_must_keep_next
=false
# Got value, back to normal.
3100 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3101 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3102 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3103 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3104 case "$ac_configure_args0 " in
3105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3108 -* ) ac_must_keep_next
=true
;;
3111 as_fn_append ac_configure_args
" '$ac_arg'"
3116 { ac_configure_args0
=; unset ac_configure_args0
;}
3117 { ac_configure_args1
=; unset ac_configure_args1
;}
3119 # When interrupted or exit'd, cleanup temporary files, and complete
3120 # config.log. We remove comments because anyway the quotes in there
3121 # would cause problems or look ugly.
3122 # WARNING: Use '\'' to represent an apostrophe within the trap.
3123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3124 trap 'exit_status=$?
3125 # Save into config.log some information that might help in debugging.
3130 ## ---------------- ##
3131 ## Cache variables. ##
3132 ## ---------------- ##
3135 # The following way of writing the cache mishandles newlines in values,
3137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3138 eval ac_val=\$$ac_var
3142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3146 _ | IFS | as_nl) ;; #(
3147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3148 *) { eval $ac_var=; unset $ac_var;} ;;
3153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3154 *${as_nl}ac_space=\ *)
3156 "s/'\''/'\''\\\\'\'''\''/g;
3157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3168 ## ----------------- ##
3169 ## Output variables. ##
3170 ## ----------------- ##
3173 for ac_var in $ac_subst_vars
3175 eval ac_val=\$$ac_var
3177 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3179 $as_echo "$ac_var='\''$ac_val'\''"
3183 if test -n "$ac_subst_files"; then
3185 ## ------------------- ##
3186 ## File substitutions. ##
3187 ## ------------------- ##
3190 for ac_var
in $ac_subst_files
3192 eval ac_val
=\$
$ac_var
3194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3196 $as_echo "$ac_var='\''$ac_val'\''"
3201 if test -s confdefs.h; then
3211 test "$ac_signal" != 0 &&
3212 $as_echo "$as_me: caught signal $ac_signal"
3213 $as_echo "$as_me: exit $exit_status"
3215 rm -f core *.core core.conftest.* &&
3216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3219 for ac_signal
in 1 2 13 15; do
3220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3225 rm -f -r conftest
* confdefs.h
3227 $as_echo "/* confdefs.h */" > confdefs.h
3229 # Predefined preprocessor variables.
3231 cat >>confdefs.h
<<_ACEOF
3232 #define PACKAGE_NAME "$PACKAGE_NAME"
3235 cat >>confdefs.h
<<_ACEOF
3236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3239 cat >>confdefs.h
<<_ACEOF
3240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3243 cat >>confdefs.h
<<_ACEOF
3244 #define PACKAGE_STRING "$PACKAGE_STRING"
3247 cat >>confdefs.h
<<_ACEOF
3248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3251 cat >>confdefs.h
<<_ACEOF
3252 #define PACKAGE_URL "$PACKAGE_URL"
3256 # Let the site file select an alternate cache file if it wants to.
3257 # Prefer an explicitly selected file to automatically selected ones.
3260 if test -n "$CONFIG_SITE"; then
3261 ac_site_file1
=$CONFIG_SITE
3262 elif test "x$prefix" != xNONE
; then
3263 ac_site_file1
=$prefix/share
/config.site
3264 ac_site_file2
=$prefix/etc
/config.site
3266 ac_site_file1
=$ac_default_prefix/share
/config.site
3267 ac_site_file2
=$ac_default_prefix/etc
/config.site
3269 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3271 test "x$ac_site_file" = xNONE
&& continue
3272 if test -r "$ac_site_file"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3275 sed 's/^/| /' "$ac_site_file" >&5
3280 if test -r "$cache_file"; then
3281 # Some versions of bash will fail to source /dev/null (special
3282 # files actually), so we avoid doing that.
3283 if test -f "$cache_file"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3285 $as_echo "$as_me: loading cache $cache_file" >&6;}
3287 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3288 *) .
"./$cache_file";;
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3293 $as_echo "$as_me: creating cache $cache_file" >&6;}
3297 as_fn_append ac_func_list
" canonicalize_file_name"
3298 as_fn_append ac_func_list
" getcwd"
3299 as_fn_append ac_func_list
" readlink"
3300 as_fn_append ac_func_list
" realpath"
3301 as_fn_append ac_header_list
" sys/param.h"
3302 as_fn_append ac_header_list
" dirent.h"
3303 as_fn_append ac_func_list
" btowc"
3304 as_fn_append ac_func_list
" isblank"
3305 as_fn_append ac_func_list
" iswctype"
3306 as_fn_append ac_func_list
" mbsrtowcs"
3307 as_fn_append ac_func_list
" mempcpy"
3308 as_fn_append ac_func_list
" wmemchr"
3309 as_fn_append ac_func_list
" wmemcpy"
3310 as_fn_append ac_func_list
" wmempcpy"
3311 as_fn_append ac_header_list
" wctype.h"
3312 gl_fnmatch_required
=GNU
3313 as_fn_append ac_header_list
" sys/time.h"
3314 as_fn_append ac_header_list
" sys/socket.h"
3315 as_fn_append ac_func_list
" gettimeofday"
3316 as_fn_append ac_header_list
" wchar.h"
3317 as_fn_append ac_header_list
" stdint.h"
3318 as_fn_append ac_header_list
" inttypes.h"
3319 as_fn_append ac_header_list
" unistd.h"
3320 as_fn_append ac_func_list
" symlink"
3321 as_fn_append ac_func_list
" lstat"
3322 as_fn_append ac_header_list
" math.h"
3323 as_fn_append ac_func_list
" mbsinit"
3324 as_fn_append ac_func_list
" mbrtowc"
3325 as_fn_append ac_header_list
" sys/mman.h"
3326 as_fn_append ac_func_list
" mprotect"
3327 as_fn_append ac_func_list
" link"
3328 as_fn_append ac_header_list
" sys/stat.h"
3329 as_fn_append ac_header_list
" features.h"
3330 as_fn_append ac_func_list
" iswcntrl"
3331 # Check that the precious variables saved in the cache have kept the same
3333 ac_cache_corrupted
=false
3334 for ac_var
in $ac_precious_vars; do
3335 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3336 eval ac_new_set
=\
$ac_env_${ac_var}_set
3337 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3338 eval ac_new_val
=\
$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3342 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted
=: ;;
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3346 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted
=: ;;
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w
=`echo x $ac_old_val`
3353 ac_new_val_w
=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3356 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted
=:
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3360 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\
$ac_old_val
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3364 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3366 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3372 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg
=$ac_var=$ac_new_val ;;
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3377 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3381 if $ac_cache_corrupted; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3385 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3386 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3388 ## -------------------- ##
3389 ## Main body of script. ##
3390 ## -------------------- ##
3393 ac_cpp
='$CPP $CPPFLAGS'
3394 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3399 ac_config_headers
="$ac_config_headers config.h:config.in"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3403 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3404 # Check whether --enable-maintainer-mode was given.
3405 if test "${enable_maintainer_mode+set}" = set; then :
3406 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3408 USE_MAINTAINER_MODE
=no
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3412 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3413 if test $USE_MAINTAINER_MODE = yes; then
3414 MAINTAINER_MODE_TRUE
=
3415 MAINTAINER_MODE_FALSE
='#'
3417 MAINTAINER_MODE_TRUE
='#'
3418 MAINTAINER_MODE_FALSE
=
3421 MAINT
=$MAINTAINER_MODE_TRUE
3426 ac_cpp
='$CPP $CPPFLAGS'
3427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC
="$CC" # Let the user override the test.
3441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir
=.
3446 for ac_exec_ext
in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3469 if test -z "$ac_cv_prog_CC"; then
3471 # Extract the first word of "gcc", so it can be a program name with args.
3472 set dummy gcc
; ac_word
=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC
="gcc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3507 if test "x$ac_ct_CC" = x
; then
3510 case $cross_compiling:$ac_tool_warned in
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned
=yes ;;
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3525 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if test "${ac_cv_prog_CC+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC
="$CC" # Let the user override the test.
3534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir
=.
3539 for ac_exec_ext
in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 # Extract the first word of "cc", so it can be a program name with args.
3565 set dummy cc
; ac_word
=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_CC+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC
="$CC" # Let the user override the test.
3575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir
=.
3580 for ac_exec_ext
in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3583 ac_prog_rejected
=yes
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test $ac_prog_rejected = yes; then
3595 # We found a bogon in the path, so make sure we never use it.
3596 set dummy
$ac_cv_prog_CC
3598 if test $# != 0; then
3599 # We chose a different compiler from the bogus one.
3600 # However, it has the same basename, so the bogon will be chosen
3601 # first if we set CC to just the basename; use the full file name.
3603 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 for ac_prog
in cl.exe
3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC
="$CC" # Let the user override the test.
3633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir
=.
3638 for ac_exec_ext
in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$CC" && break
3663 if test -z "$CC"; then
3665 for ac_prog
in cl.exe
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy
$ac_prog; ac_word
=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC
="$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3704 test -n "$ac_ct_CC" && break
3707 if test "x$ac_ct_CC" = x
; then
3710 case $cross_compiling:$ac_tool_warned in
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned
=yes ;;
3723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error
"no acceptable C compiler found in \$PATH
3726 See \`config.log' for more details." "$LINENO" 5; }
3728 # Provide some information about the compiler.
3729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3732 for ac_option
in --version -v -V -qversion; do
3733 { { ac_try
="$ac_compiler $ac_option >&5"
3735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3742 if test -s conftest.err; then
3744 ... rest of stderr output deleted ...
3745 10q' conftest.err >conftest.er1
3746 cat conftest.er1 >&5
3747 rm -f conftest.er1 conftest.err
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3759 FILE *f = fopen ("conftest.out", "w");
3760 return ferror (f) || fclose (f) != 0;
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3772 $as_echo_n "checking for C compiler default output file name... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779 for ac_file in $ac_files
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3788 if { { ac_try="$ac_link_default"
3790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3791 *) ac_try_echo
=$ac_try;;
3793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3804 for ac_file
in $ac_files ''
3806 test -f "$ac_file" ||
continue
3808 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3811 # We found the default executable, but exeext='' is most
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3817 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3829 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3835 $as_echo "$ac_file" >&6; }
3836 if test -z "$ac_file"; then :
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.
$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 { as_fn_set_status
77
3843 as_fn_error
"C compiler cannot create executables
3844 See \`config.log' for more details." "$LINENO" 5; }; }
3846 ac_exeext
=$ac_cv_exeext
3848 # Check that the compiler produces executables we can run. If not, either
3849 # the compiler is broken, or we cross compile.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851 $as_echo_n "checking whether the C compiler works... " >&6; }
3852 # If not cross compiling, check that we can run a simple program.
3853 if test "$cross_compiling" != yes; then
3854 if { ac_try
='./$ac_file'
3855 { { case "(($ac_try" in
3856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; }; then
3867 if test "$cross_compiling" = maybe; then
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error "cannot run C compiled programs.
3873 If you meant to cross compile
, use \
`--host'.
3874 See \`config.log
' for more details." "$LINENO" 5; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3881 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3882 ac_clean_files=$ac_clean_files_save
3883 # Check that the compiler produces executables we can run. If not, either
3884 # the compiler is broken, or we cross compile.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3886 $as_echo_n "checking whether we are cross compiling... " >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888 $as_echo "$cross_compiling" >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891 $as_echo_n "checking for suffix of executables... " >&6; }
3892 if { { ac_try="$ac_link"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3904 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3905 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3907 for ac_file
in conftest.exe conftest conftest.
*; do
3908 test -f "$ac_file" ||
continue
3910 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3911 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3920 See \`config.log' for more details." "$LINENO" 5; }
3922 rm -f conftest
$ac_cv_exeext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3924 $as_echo "$ac_cv_exeext" >&6; }
3926 rm -f conftest.
$ac_ext
3927 EXEEXT
=$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930 $as_echo_n "checking for suffix of object files... " >&6; }
3931 if test "${ac_cv_objext+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3945 rm -f conftest.o conftest.obj
3946 if { { ac_try
="$ac_compile"
3948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compile") 2>&5
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }; then :
3957 for ac_file in conftest.o conftest.obj conftest.*; do
3958 test -f "$ac_file" || continue;
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error "cannot compute suffix of object files
: cannot compile
3972 See \
`config.log' for more details." "$LINENO" 5; }
3974 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3977 $as_echo "$ac_cv_objext" >&6; }
3978 OBJEXT=$ac_cv_objext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3981 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3982 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3999 if ac_fn_c_try_compile "$LINENO"; then :
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4009 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4010 if test $ac_compiler_gnu = yes; then
4015 ac_test_CFLAGS=${CFLAGS+set}
4016 ac_save_CFLAGS=$CFLAGS
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4019 if test "${ac_cv_prog_cc_g+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_c_try_compile "$LINENO"; then :
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_c_werror_flag=$ac_save_c_werror_flag
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079 $as_echo "$ac_cv_prog_cc_g" >&6; }
4080 if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4089 if test "$GCC" = yes; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4096 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4097 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4100 ac_cv_prog_cc_c89=no
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 #include <sys/types.h>
4107 #include <sys/stat.h>
4108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4109 struct buf { int x; };
4110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4111 static char *e (p, i)
4117 static char *f (char * (*g) (char **, int), char **p, ...)
4122 s = g (p, va_arg (v,int));
4127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4128 function prototypes and stuff, but not '\xHH' hex character constants.
4129 These don't provoke an error unfortunately, instead are silently treated
4130 as 'x'. The following induces an error, until -std is added to get
4131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4132 array size at least. It's necessary to write '\x00'==0 to get something
4133 that's true only with -std. */
4134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4137 inside strings and character constants. */
4139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4141 int test (int i, double x);
4142 struct s1 {int (*f) (int a);};
4143 struct s2 {int (*f) (double a);};
4144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158 CC="$ac_save_CC $ac_arg"
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_c89=$ac_arg
4162 rm -f core conftest.err conftest.$ac_objext
4163 test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 rm -f conftest.$ac_ext
4170 case "x$ac_cv_prog_cc_c89" in
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 $as_echo "none needed" >&6; } ;;
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176 $as_echo "unsupported" >&6; } ;;
4178 CC="$CC $ac_cv_prog_cc_c89"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 if test "x$ac_cv_prog_cc_c89" != xno; then :
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4247 # Passes both tests.
4251 rm -f conftest.err conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.
$ac_ext
4256 if $ac_preproc_ok; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4271 for ac_c_preproc_warn_flag
in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4282 # include <limits.h>
4284 # include <assert.h>
4288 if ac_fn_c_try_cpp
"$LINENO"; then :
4291 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.
$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4302 if ac_fn_c_try_cpp
"$LINENO"; then :
4303 # Broken: success on invalid input.
4306 # Passes both tests.
4310 rm -f conftest.err conftest.
$ac_ext
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.
$ac_ext
4315 if $ac_preproc_ok; then :
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4325 ac_cpp
='$CPP $CPPFLAGS'
4326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if test "${ac_cv_path_GREP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found
=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4340 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_prog
in grep ggrep
; do
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4348 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350 case `"$ac_path_GREP" --version 2>&1` in
4352 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4355 $as_echo_n 0123456789 >"conftest.in"
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4363 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4364 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP
="$ac_path_GREP"
4368 ac_path_GREP_max
=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4373 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4376 $ac_path_GREP_found && break 3
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385 ac_cv_path_GREP
=$GREP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP
="$ac_cv_path_GREP"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4400 then ac_cv_path_EGREP
="$GREP -E"
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found
=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_prog
in egrep; do
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4418 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4421 $as_echo_n 0123456789 >"conftest.in"
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4429 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4430 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP
="$ac_path_EGREP"
4434 ac_path_EGREP_max
=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4439 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4442 $ac_path_EGREP_found && break 3
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451 ac_cv_path_EGREP
=$EGREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP
="$ac_cv_path_EGREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if test "${ac_cv_header_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4481 if ac_fn_c_try_compile
"$LINENO"; then :
4482 ac_cv_header_stdc
=yes
4484 ac_cv_header_stdc
=no
4486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev
/null
2>&1; then :
4499 ac_cv_header_stdc
=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev
/null
2>&1; then :
4516 ac_cv_header_stdc
=no
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4554 if ac_fn_c_try_run
"$LINENO"; then :
4557 ac_cv_header_stdc
=no
4559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4580 eval as_val
=\$
$as_ac_Header
4581 if test "x$as_val" = x
""yes; then :
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4593 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4600 if test "$MINIX" = yes; then
4602 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4605 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4608 $as_echo "#define _MINIX 1" >>confdefs.h
4611 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4617 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4618 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4624 # define __EXTENSIONS__ 1
4625 $ac_includes_default
4634 if ac_fn_c_try_compile
"$LINENO"; then :
4635 ac_cv_safe_to_define___extensions__
=yes
4637 ac_cv_safe_to_define___extensions__
=no
4639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4642 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4643 test $ac_cv_safe_to_define___extensions__ = yes &&
4644 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4646 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4650 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4652 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4654 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4656 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4659 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4660 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4663 ac_cv_should_define__xopen_source
=no
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4677 if ac_fn_c_try_compile
"$LINENO"; then :
4680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4683 #define _XOPEN_SOURCE 500
4694 if ac_fn_c_try_compile
"$LINENO"; then :
4695 ac_cv_should_define__xopen_source
=yes
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4702 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4703 test $ac_cv_should_define__xopen_source = yes &&
4704 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4710 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4711 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4725 gl_cv_c_amsterdam_compiler
=yes
4727 gl_cv_c_amsterdam_compiler
=no
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4734 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4735 if test -z "$AR"; then
4736 if test $gl_cv_c_amsterdam_compiler = yes; then
4738 if test -z "$ARFLAGS"; then
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4744 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_AR+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$AR"; then
4751 ac_cv_prog_AR
="$AR" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 if test -n "$AR"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4773 $as_echo "$AR" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4781 if test -z "$ac_cv_prog_AR"; then
4783 # Extract the first word of "ar", so it can be a program name with args.
4784 set dummy
ar; ac_word
=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$ac_ct_AR"; then
4791 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir
=.
4798 for ac_exec_ext
in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_AR
="ar"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4811 if test -n "$ac_ct_AR"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4813 $as_echo "$ac_ct_AR" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4819 if test "x$ac_ct_AR" = x
; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned
=yes ;;
4834 if test -z "$ARFLAGS"; then
4839 if test -z "$ARFLAGS"; then
4845 if test -z "$RANLIB"; then
4846 if test $gl_cv_c_amsterdam_compiler = yes; then
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4851 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 if test -n "$RANLIB"; then
4858 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir
=.
4865 for ac_exec_ext
in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 RANLIB
=$ac_cv_prog_RANLIB
4878 if test -n "$RANLIB"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4880 $as_echo "$RANLIB" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4888 if test -z "$ac_cv_prog_RANLIB"; then
4889 ac_ct_RANLIB
=$RANLIB
4890 # Extract the first word of "ranlib", so it can be a program name with args.
4891 set dummy ranlib
; ac_word
=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4897 if test -n "$ac_ct_RANLIB"; then
4898 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir
=.
4905 for ac_exec_ext
in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4918 if test -n "$ac_ct_RANLIB"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4920 $as_echo "$ac_ct_RANLIB" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4926 if test "x$ac_ct_RANLIB" = x
; then
4929 case $cross_compiling:$ac_tool_warned in
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933 ac_tool_warned
=yes ;;
4935 RANLIB
=$ac_ct_RANLIB
4938 RANLIB
="$ac_cv_prog_RANLIB"
4952 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4953 for ac_t
in install-sh
install.sh shtool
; do
4954 if test -f "$ac_dir/$ac_t"; then
4956 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4961 if test -z "$ac_aux_dir"; then
4962 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4965 # These three variables are undocumented and unsupported,
4966 # and are intended to be withdrawn in a future Autoconf release.
4967 # They can cause serious problems if a builder's source tree is in a directory
4968 # whose full name contains unusual characters.
4969 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4970 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4971 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4974 # Make sure we can run config.sub.
4975 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4976 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4979 $as_echo_n "checking build system type... " >&6; }
4980 if test "${ac_cv_build+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 ac_build_alias
=$build_alias
4984 test "x$ac_build_alias" = x
&&
4985 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4986 test "x$ac_build_alias" = x
&&
4987 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4988 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4989 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4993 $as_echo "$ac_cv_build" >&6; }
4994 case $ac_cv_build in
4996 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4999 ac_save_IFS
=$IFS; IFS
='-'
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5009 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5013 $as_echo_n "checking host system type... " >&6; }
5014 if test "${ac_cv_host+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5017 if test "x$host_alias" = x
; then
5018 ac_cv_host
=$ac_cv_build
5020 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5021 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5026 $as_echo "$ac_cv_host" >&6; }
5029 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5032 ac_save_IFS
=$IFS; IFS
='-'
5038 # Remember, the first character of IFS is used to create $*,
5039 # except with old shells:
5042 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5048 # IEEE behaviour is the default on all CPUs except Alpha and SH
5049 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5050 # and the GCC 4.1.2 manual).
5053 # On Alpha systems, a compiler option provides the behaviour.
5054 # See the ieee(3) manual page, also available at
5055 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5056 if test -n "$GCC"; then
5057 # GCC has the option -mieee.
5058 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5059 CPPFLAGS
="$CPPFLAGS -mieee"
5061 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5062 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5063 CPPFLAGS
="$CPPFLAGS -ieee"
5067 if test -n "$GCC"; then
5068 # GCC has the option -mieee.
5069 CPPFLAGS
="$CPPFLAGS -mieee"
5074 # Check whether --enable-largefile was given.
5075 if test "${enable_largefile+set}" = set; then :
5076 enableval
=$enable_largefile;
5079 if test "$enable_largefile" != no
; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5082 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5083 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5086 ac_cv_sys_largefile_CC
=no
5087 if test "$GCC" != yes; then
5090 # IRIX 6.2 and later do not support large files by default,
5091 # so use the C compiler's -n32 option if that helps.
5092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5111 if ac_fn_c_try_compile
"$LINENO"; then :
5114 rm -f core conftest.err conftest.
$ac_objext
5116 if ac_fn_c_try_compile
"$LINENO"; then :
5117 ac_cv_sys_largefile_CC
=' -n32'; break
5119 rm -f core conftest.err conftest.
$ac_objext
5123 rm -f conftest.
$ac_ext
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5127 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5128 if test "$ac_cv_sys_largefile_CC" != no
; then
5129 CC
=$CC$ac_cv_sys_largefile_CC
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5133 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5134 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <sys/types.h>
5141 /* Check that off_t can represent 2**63 - 1 correctly.
5142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5143 since some C++ compilers masquerading as C compilers
5144 incorrectly reject 9223372036854775807. */
5145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5147 && LARGE_OFF_T % 2147483647 == 1)
5157 if ac_fn_c_try_compile
"$LINENO"; then :
5158 ac_cv_sys_file_offset_bits
=no
; break
5160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #define _FILE_OFFSET_BITS 64
5164 #include <sys/types.h>
5165 /* Check that off_t can represent 2**63 - 1 correctly.
5166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5167 since some C++ compilers masquerading as C compilers
5168 incorrectly reject 9223372036854775807. */
5169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5171 && LARGE_OFF_T % 2147483647 == 1)
5181 if ac_fn_c_try_compile
"$LINENO"; then :
5182 ac_cv_sys_file_offset_bits
=64; break
5184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5185 ac_cv_sys_file_offset_bits
=unknown
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5190 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5191 case $ac_cv_sys_file_offset_bits in #(
5194 cat >>confdefs.h
<<_ACEOF
5195 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5200 if test $ac_cv_sys_file_offset_bits = unknown
; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5202 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5203 if test "${ac_cv_sys_large_files+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #include <sys/types.h>
5210 /* Check that off_t can represent 2**63 - 1 correctly.
5211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5212 since some C++ compilers masquerading as C compilers
5213 incorrectly reject 9223372036854775807. */
5214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5216 && LARGE_OFF_T % 2147483647 == 1)
5226 if ac_fn_c_try_compile
"$LINENO"; then :
5227 ac_cv_sys_large_files
=no
; break
5229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #define _LARGE_FILES 1
5233 #include <sys/types.h>
5234 /* Check that off_t can represent 2**63 - 1 correctly.
5235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5236 since some C++ compilers masquerading as C compilers
5237 incorrectly reject 9223372036854775807. */
5238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5240 && LARGE_OFF_T % 2147483647 == 1)
5250 if ac_fn_c_try_compile
"$LINENO"; then :
5251 ac_cv_sys_large_files
=1; break
5253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5254 ac_cv_sys_large_files
=unknown
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5259 $as_echo "$ac_cv_sys_large_files" >&6; }
5260 case $ac_cv_sys_large_files in #(
5263 cat >>confdefs.h
<<_ACEOF
5264 #define _LARGE_FILES $ac_cv_sys_large_files
5272 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5278 # Code from module absolute-header:
5279 # Code from module alloca:
5280 # Code from module alloca-opt:
5281 # Code from module canonicalize-lgpl:
5282 # Code from module chdir:
5283 # Code from module configmake:
5284 # Code from module dirent:
5285 # Code from module dirfd:
5286 # Code from module dirname-lgpl:
5287 # Code from module dosname:
5288 # Code from module double-slash-root:
5289 # Code from module errno:
5290 # Code from module extensions:
5292 # Code from module extern-inline:
5293 # Code from module float:
5294 # Code from module fnmatch:
5295 # Code from module fnmatch-gnu:
5296 # Code from module fpieee:
5298 # Code from module fpucw:
5299 # Code from module frexp:
5300 # Code from module frexpl:
5301 # Code from module gettimeofday:
5302 # Code from module include_next:
5303 # Code from module inttypes:
5304 # Code from module inttypes-incomplete:
5305 # Code from module isnand-nolibm:
5306 # Code from module isnanl-nolibm:
5307 # Code from module largefile:
5309 # Code from module localcharset:
5310 # Code from module lstat:
5311 # Code from module malloc-posix:
5312 # Code from module malloca:
5313 # Code from module math:
5314 # Code from module mbrtowc:
5315 # Code from module mbsinit:
5316 # Code from module mbsrtowcs:
5317 # Code from module memchr:
5318 # Code from module memmem:
5319 # Code from module memmem-simple:
5320 # Code from module multiarch:
5321 # Code from module nocrash:
5322 # Code from module pathmax:
5323 # Code from module rawmemchr:
5324 # Code from module readlink:
5325 # Code from module rename:
5326 # Code from module rmdir:
5327 # Code from module same-inode:
5328 # Code from module signal-h:
5329 # Code from module snippet/_Noreturn:
5330 # Code from module snippet/arg-nonnull:
5331 # Code from module snippet/c++defs:
5332 # Code from module snippet/warn-on-use:
5333 # Code from module ssize_t:
5334 # Code from module stat:
5335 # Code from module stdbool:
5336 # Code from module stddef:
5337 # Code from module stdint:
5338 # Code from module stdio:
5339 # Code from module stdlib:
5340 # Code from module strchrnul:
5341 # Code from module streq:
5342 # Code from module string:
5343 # Code from module strnlen1:
5344 # Code from module strstr:
5345 # Code from module strstr-simple:
5346 # Code from module strtok_r:
5347 # Code from module sys_stat:
5348 # Code from module sys_time:
5349 # Code from module sys_types:
5350 # Code from module time:
5351 # Code from module unistd:
5352 # Code from module update-copyright:
5353 # Code from module verify:
5354 # Code from module wchar:
5355 # Code from module wctype-h:
5358 ac_cpp
='$CPP $CPPFLAGS'
5359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5362 if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5364 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_CC+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5370 if test -n "$CC"; then
5371 ac_cv_prog_CC
="$CC" # Let the user override the test.
5373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5377 test -z "$as_dir" && as_dir
=.
5378 for ac_exec_ext
in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 if test -n "$CC"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5393 $as_echo "$CC" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5401 if test -z "$ac_cv_prog_CC"; then
5403 # Extract the first word of "gcc", so it can be a program name with args.
5404 set dummy gcc
; ac_word
=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5410 if test -n "$ac_ct_CC"; then
5411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir
=.
5418 for ac_exec_ext
in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_prog_ac_ct_CC
="gcc"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5431 if test -n "$ac_ct_CC"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5433 $as_echo "$ac_ct_CC" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5439 if test "x$ac_ct_CC" = x
; then
5442 case $cross_compiling:$ac_tool_warned in
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned
=yes ;;
5454 if test -z "$CC"; then
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5457 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_CC+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$CC"; then
5464 ac_cv_prog_CC
="$CC" # Let the user override the test.
5466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir
=.
5471 for ac_exec_ext
in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 if test -n "$CC"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5486 $as_echo "$CC" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5495 if test -z "$CC"; then
5496 # Extract the first word of "cc", so it can be a program name with args.
5497 set dummy cc
; ac_word
=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if test "${ac_cv_prog_CC+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 if test -n "$CC"; then
5504 ac_cv_prog_CC
="$CC" # Let the user override the test.
5507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir
=.
5512 for ac_exec_ext
in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5515 ac_prog_rejected
=yes
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 if test $ac_prog_rejected = yes; then
5527 # We found a bogon in the path, so make sure we never use it.
5528 set dummy
$ac_cv_prog_CC
5530 if test $# != 0; then
5531 # We chose a different compiler from the bogus one.
5532 # However, it has the same basename, so the bogon will be chosen
5533 # first if we set CC to just the basename; use the full file name.
5535 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5541 if test -n "$CC"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5543 $as_echo "$CC" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test -z "$CC"; then
5552 if test -n "$ac_tool_prefix"; then
5553 for ac_prog
in cl.exe
5555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if test "${ac_cv_prog_CC+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$CC"; then
5563 ac_cv_prog_CC
="$CC" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 if test -n "$CC"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5585 $as_echo "$CC" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5592 test -n "$CC" && break
5595 if test -z "$CC"; then
5597 for ac_prog
in cl.exe
5599 # Extract the first word of "$ac_prog", so it can be a program name with args.
5600 set dummy
$ac_prog; ac_word
=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$ac_ct_CC"; then
5607 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir
=.
5614 for ac_exec_ext
in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_CC
="$ac_prog"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5627 if test -n "$ac_ct_CC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5629 $as_echo "$ac_ct_CC" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5636 test -n "$ac_ct_CC" && break
5639 if test "x$ac_ct_CC" = x
; then
5642 case $cross_compiling:$ac_tool_warned in
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned
=yes ;;
5655 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5657 as_fn_error
"no acceptable C compiler found in \$PATH
5658 See \`config.log' for more details." "$LINENO" 5; }
5660 # Provide some information about the compiler.
5661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5664 for ac_option
in --version -v -V -qversion; do
5665 { { ac_try
="$ac_compiler $ac_option >&5"
5667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5674 if test -s conftest.err; then
5676 ... rest of stderr output deleted ...
5677 10q' conftest.err >conftest.er1
5678 cat conftest.er1 >&5
5679 rm -f conftest.er1 conftest.err
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5686 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5687 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5704 if ac_fn_c_try_compile "$LINENO"; then :
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5714 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5715 if test $ac_compiler_gnu = yes; then
5720 ac_test_CFLAGS=${CFLAGS+set}
5721 ac_save_CFLAGS=$CFLAGS
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5723 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5724 if test "${ac_cv_prog_cc_g+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5727 ac_save_c_werror_flag=$ac_c_werror_flag
5728 ac_c_werror_flag=yes
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5742 if ac_fn_c_try_compile "$LINENO"; then :
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5757 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_c_werror_flag=$ac_save_c_werror_flag
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5773 if ac_fn_c_try_compile "$LINENO"; then :
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_c_werror_flag=$ac_save_c_werror_flag
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5784 $as_echo "$ac_cv_prog_cc_g" >&6; }
5785 if test "$ac_test_CFLAGS" = set; then
5786 CFLAGS=$ac_save_CFLAGS
5787 elif test $ac_cv_prog_cc_g = yes; then
5788 if test "$GCC" = yes; then
5794 if test "$GCC" = yes; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5801 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5802 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5805 ac_cv_prog_cc_c89=no
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 #include <sys/stat.h>
5813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5814 struct buf { int x; };
5815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5816 static char *e (p, i)
5822 static char *f (char * (*g) (char **, int), char **p, ...)
5827 s = g (p, va_arg (v,int));
5832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5833 function prototypes and stuff, but not '\xHH' hex character constants.
5834 These don't provoke an error unfortunately, instead are silently treated
5835 as 'x'. The following induces an error, until -std is added to get
5836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5837 array size at least. It's necessary to write '\x00'==0 to get something
5838 that's true only with -std. */
5839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5842 inside strings and character constants. */
5844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5846 int test (int i, double x);
5847 struct s1 {int (*f) (int a);};
5848 struct s2 {int (*f) (double a);};
5849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5863 CC="$ac_save_CC $ac_arg"
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865 ac_cv_prog_cc_c89=$ac_arg
5867 rm -f core conftest.err conftest.$ac_objext
5868 test "x$ac_cv_prog_cc_c89" != "xno" && break
5870 rm -f conftest.$ac_ext
5875 case "x$ac_cv_prog_cc_c89" in
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5878 $as_echo "none needed" >&6; } ;;
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5881 $as_echo "unsupported" >&6; } ;;
5883 CC="$CC $ac_cv_prog_cc_c89"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5885 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5887 if test "x$ac_cv_prog_cc_c89" != xno; then :
5892 ac_cpp='$CPP $CPPFLAGS'
5893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5902 for ac_dir in ../.. "$srcdir"/../..; do
5903 for ac_t in install-sh install.sh shtool; do
5904 if test -f "$ac_dir/$ac_t"; then
5906 ac_install_sh="$ac_aux_dir/$ac_t -c"
5911 if test -z "$ac_aux_dir"; then
5912 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5915 # These three variables are undocumented and unsupported,
5916 # and are intended to be withdrawn in a future Autoconf release.
5917 # They can cause serious problems if a builder's source tree is in a directory
5918 # whose full name contains unusual characters.
5919 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5920 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5921 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5925 $as_echo_n "checking target system type... " >&6; }
5926 if test "${ac_cv_target+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5929 if test "x$target_alias" = x; then
5930 ac_cv_target=$ac_cv_host
5932 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5933 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5938 $as_echo "$ac_cv_target" >&6; }
5939 case $ac_cv_target in
5941 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5943 target=$ac_cv_target
5944 ac_save_IFS=$IFS; IFS='-'
5950 # Remember, the first character of IFS is used to create $*,
5951 # except with old shells:
5954 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5957 # The aliases save the names the user supplied, while $host etc.
5958 # will get canonicalized.
5959 test -n "$target_alias" &&
5960 test "$program_prefix$program_suffix$program_transform_name" = \
5962 program_prefix=${target_alias}-
5970 LIBC_FATAL_STDERR_=1
5971 export LIBC_FATAL_STDERR_
5973 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5974 # for constant arguments. Useless!
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5976 $as_echo_n "checking for working alloca.h... " >&6; }
5977 if test "${ac_cv_working_alloca_h+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5986 char *p = (char *) alloca (2 * sizeof (int));
5992 if ac_fn_c_try_link "$LINENO"; then :
5993 ac_cv_working_alloca_h=yes
5995 ac_cv_working_alloca_h=no
5997 rm -f core conftest.err conftest.$ac_objext \
5998 conftest$ac_exeext conftest.$ac_ext
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6001 $as_echo "$ac_cv_working_alloca_h" >&6; }
6002 if test $ac_cv_working_alloca_h = yes; then
6004 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6009 $as_echo_n "checking for alloca... " >&6; }
6010 if test "${ac_cv_func_alloca_works+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6016 # define alloca __builtin_alloca
6019 # include <malloc.h>
6020 # define alloca _alloca
6022 # ifdef HAVE_ALLOCA_H
6023 # include <alloca.h>
6028 # ifndef alloca /* predefined by HP cc +Olibcalls */
6039 char *p = (char *) alloca (1);
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 ac_cv_func_alloca_works=yes
6048 ac_cv_func_alloca_works=no
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6054 $as_echo "$ac_cv_func_alloca_works" >&6; }
6056 if test $ac_cv_func_alloca_works = yes; then
6058 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6061 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6062 # that cause trouble. Some versions do not even contain alloca or
6063 # contain a buggy version. If you still want to use their alloca,
6064 # use ar to extract alloca.o from them instead of compiling alloca.c.
6070 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6072 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6076 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6077 if test "${ac_cv_os_cray+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #if defined CRAY && ! defined CRAY2
6089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090 $EGREP "webecray" >/dev/null 2>&1; then :
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6099 $as_echo "$ac_cv_os_cray" >&6; }
6100 if test $ac_cv_os_cray = yes; then
6101 for ac_func in _getb67 GETB67 getb67; do
6102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6104 eval as_val=\$$as_ac_var
6105 if test "x$as_val" = x""yes; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define CRAY_STACKSEG_END $ac_func
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6118 $as_echo_n "checking stack direction for C alloca... " >&6; }
6119 if test "${ac_cv_c_stack_direction+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6122 if test "$cross_compiling" = yes; then :
6123 ac_cv_c_stack_direction=0
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 $ac_includes_default
6129 find_stack_direction (int *addr, int depth)
6134 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6135 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6140 main (int argc, char **argv)
6142 return find_stack_direction (0, argc + !argv + 20) < 0;
6145 if ac_fn_c_try_run "$LINENO"; then :
6146 ac_cv_c_stack_direction=1
6148 ac_cv_c_stack_direction=-1
6150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6151 conftest.$ac_objext conftest.beam conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6156 $as_echo "$ac_cv_c_stack_direction" >&6; }
6157 cat >>confdefs.h <<_ACEOF
6158 #define STACK_DIRECTION $ac_cv_c_stack_direction
6167 GNULIB_CALLOC_POSIX=0;
6168 GNULIB_CANONICALIZE_FILE_NAME=0;
6169 GNULIB_GETLOADAVG=0;
6172 GNULIB_MALLOC_POSIX=0;
6179 GNULIB_POSIX_OPENPT=0;
6186 GNULIB_REALLOC_POSIX=0;
6189 GNULIB_SECURE_GETENV=0;
6194 GNULIB_SYSTEM_POSIX=0;
6200 HAVE_CANONICALIZE_FILE_NAME=1;
6201 HAVE_DECL_GETLOADAVG=1;
6209 HAVE_POSIX_OPENPT=1;
6217 HAVE_SECURE_GETENV=1;
6223 HAVE_STRUCT_RANDOM_DATA=1;
6224 HAVE_SYS_LOADAVG_H=0;
6226 HAVE_DECL_UNSETENV=1;
6228 REPLACE_CANONICALIZE_FILE_NAME=0;
6233 REPLACE_PTSNAME_R=0;
6247 for ac_func in $ac_func_list
6249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6251 eval as_val=\$$as_ac_var
6252 if test "x$as_val" = x""yes; then :
6253 cat >>confdefs.h <<_ACEOF
6254 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6269 $as_echo_n "checking whether // is distinct from /... " >&6; }
6270 if test "${gl_cv_double_slash_root+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6273 if test x"$cross_compiling" = xyes ; then
6274 # When cross-compiling, there is no way to tell whether // is special
6275 # short of a list of hosts. However, the only known hosts to date
6276 # that have a distinct // are Apollo DomainOS (too old to port to),
6277 # Cygwin, and z/OS. If anyone knows of another system for which // has
6278 # special semantics and is distinct from /, please report it to
6279 # <bug-gnulib@gnu.org>.
6281 *-cygwin | i370-ibm-openedition)
6282 gl_cv_double_slash_root=yes ;;
6284 # Be optimistic and assume that / and // are the same when we
6286 gl_cv_double_slash_root='unknown, assuming no' ;;
6289 set x `ls -di / // 2>/dev
/null
`
6290 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6291 gl_cv_double_slash_root=no
6293 gl_cv_double_slash_root=yes
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6298 $as_echo "$gl_cv_double_slash_root" >&6; }
6299 if test "$gl_cv_double_slash_root" = yes; then
6301 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6310 $as_echo_n "checking whether realpath works... " >&6; }
6311 if test "${gl_cv_func_realpath_works+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6317 if test "$cross_compiling" = yes; then :
6319 # Guess yes on glibc systems.
6320 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6321 # If we don't know, assume the worst.
6322 *) gl_cv_func_realpath_works="guessing no" ;;
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6332 #if defined __MACH__ && defined __APPLE__
6333 /* Avoid a crash on Mac OS X. */
6334 #include <mach/mach.h>
6335 #include <mach/mach_error.h>
6336 #include <mach/thread_status.h>
6337 #include <mach/exception.h>
6338 #include <mach/task.h>
6339 #include <pthread.h>
6340 /* The exception port on which our thread listens. */
6341 static mach_port_t our_exception_port;
6342 /* The main function of the thread listening for exceptions of type
6345 mach_exception_thread (void *arg)
6347 /* Buffer for a message to be received. */
6349 mach_msg_header_t head;
6350 mach_msg_body_t msgh_body;
6353 mach_msg_return_t retval;
6354 /* Wait for a message on the exception port. */
6355 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6356 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6357 if (retval != MACH_MSG_SUCCESS)
6364 mach_port_t self = mach_task_self ();
6365 /* Allocate a port on which the thread shall listen for exceptions. */
6366 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6368 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6369 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6370 MACH_MSG_TYPE_MAKE_SEND)
6372 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6374 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6375 /* Create the thread listening on the exception port. */
6376 pthread_attr_t attr;
6378 if (pthread_attr_init (&attr) == 0
6379 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6380 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6381 pthread_attr_destroy (&attr);
6382 /* Replace the exception port info for these exceptions with our own.
6383 Note that we replace the exception port for the entire task, not only
6384 for a particular thread. This has the effect that when our exception
6385 port gets the message, the thread specific exception port has already
6386 been asked, and we don't need to bother about it.
6387 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6388 task_set_exception_ports (self, mask, our_exception_port,
6389 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6394 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6395 /* Avoid a crash on native Windows. */
6396 #define WIN32_LEAN_AND_MEAN
6397 #include <windows.h>
6398 #include <winerror.h>
6400 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6402 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6404 case EXCEPTION_ACCESS_VIOLATION:
6405 case EXCEPTION_IN_PAGE_ERROR:
6406 case EXCEPTION_STACK_OVERFLOW:
6407 case EXCEPTION_GUARD_PAGE:
6408 case EXCEPTION_PRIV_INSTRUCTION:
6409 case EXCEPTION_ILLEGAL_INSTRUCTION:
6410 case EXCEPTION_DATATYPE_MISALIGNMENT:
6411 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6412 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6415 return EXCEPTION_CONTINUE_SEARCH;
6420 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6423 /* Avoid a crash on POSIX systems. */
6425 /* A POSIX signal handler. */
6427 exception_handler (int sig)
6435 signal (SIGSEGV, exception_handler);
6438 signal (SIGBUS, exception_handler);
6452 char *name = realpath ("conftest.a", NULL);
6453 if (!(name && *name == '/'))
6457 char *name = realpath ("conftest.b/../conftest.a", NULL);
6462 char *name = realpath ("conftest.a/", NULL);
6467 char *name1 = realpath (".", NULL);
6468 char *name2 = realpath ("conftest.d//./..", NULL);
6469 if (strcmp (name1, name2) != 0)
6479 if ac_fn_c_try_run "$LINENO"; then :
6480 gl_cv_func_realpath_works=yes
6482 gl_cv_func_realpath_works=no
6484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6485 conftest.$ac_objext conftest.beam conftest.$ac_ext
6488 rm -rf conftest.a conftest.d
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6492 $as_echo "$gl_cv_func_realpath_works" >&6; }
6493 case "$gl_cv_func_realpath_works" in
6496 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6504 for ac_header in $ac_header_list
6506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6507 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6509 eval as_val=\$$as_ac_Header
6510 if test "x$as_val" = x""yes; then :
6511 cat >>confdefs.h <<_ACEOF
6512 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6536 GNULIB_EUIDACCESS=0;
6544 GNULIB_GETDOMAINNAME=0;
6545 GNULIB_GETDTABLESIZE=0;
6547 GNULIB_GETHOSTNAME=0;
6549 GNULIB_GETLOGIN_R=0;
6550 GNULIB_GETPAGESIZE=0;
6551 GNULIB_GETUSERSHELL=0;
6552 GNULIB_GROUP_MEMBER=0;
6564 GNULIB_READLINKAT=0;
6566 GNULIB_SETHOSTNAME=0;
6571 GNULIB_UNISTD_H_NONBLOCKING=0;
6572 GNULIB_UNISTD_H_SIGPIPE=0;
6587 HAVE_GETDTABLESIZE=1;
6592 HAVE_GROUP_MEMBER=1;
6608 HAVE_DECL_ENVIRON=1;
6610 HAVE_DECL_FDATASYNC=1;
6611 HAVE_DECL_GETDOMAINNAME=1;
6612 HAVE_DECL_GETLOGIN_R=1;
6613 HAVE_DECL_GETPAGESIZE=1;
6614 HAVE_DECL_GETUSERSHELL=1;
6615 HAVE_DECL_SETHOSTNAME=1;
6616 HAVE_DECL_TTYNAME_R=1;
6624 REPLACE_FTRUNCATE=0;
6626 REPLACE_GETDOMAINNAME=0;
6627 REPLACE_GETDTABLESIZE=0;
6628 REPLACE_GETLOGIN_R=0;
6629 REPLACE_GETGROUPS=0;
6630 REPLACE_GETPAGESIZE=0;
6640 REPLACE_READLINKAT=0;
6644 REPLACE_SYMLINKAT=0;
6645 REPLACE_TTYNAME_R=0;
6650 UNISTD_H_HAVE_WINSOCK2_H=0;
6651 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6668 HAVE_DECL_FDOPENDIR=1;
6675 REPLACE_FDOPENDIR=0;
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6680 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6681 if test "${gl_cv_have_include_next+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6684 rm -rf conftestd1a conftestd1b conftestd2
6685 mkdir conftestd1a conftestd1b conftestd2
6686 cat <<EOF > conftestd1a/conftest.h
6687 #define DEFINED_IN_CONFTESTD1
6688 #include_next <conftest.h>
6689 #ifdef DEFINED_IN_CONFTESTD2
6692 #error "include_next doesn't work"
6695 cat <<EOF > conftestd1b/conftest.h
6696 #define DEFINED_IN_CONFTESTD1
6698 #include_next <conftest.h>
6699 #ifdef DEFINED_IN_CONFTESTD2
6702 #error "include_next doesn't work"
6705 cat <<EOF > conftestd2/conftest.h
6706 #ifndef DEFINED_IN_CONFTESTD1
6707 #error "include_next test doesn't work"
6709 #define DEFINED_IN_CONFTESTD2
6711 gl_save_CPPFLAGS="$CPPFLAGS"
6712 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 #include <conftest.h>
6717 if ac_fn_c_try_compile "$LINENO"; then :
6718 gl_cv_have_include_next=yes
6720 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 #include <conftest.h>
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726 gl_cv_have_include_next=buggy
6728 gl_cv_have_include_next=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 CPPFLAGS="$gl_save_CPPFLAGS"
6735 rm -rf conftestd1a conftestd1b conftestd2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6739 $as_echo "$gl_cv_have_include_next" >&6; }
6740 PRAGMA_SYSTEM_HEADER=
6741 if test $gl_cv_have_include_next = yes; then
6742 INCLUDE_NEXT=include_next
6743 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6744 if test -n "$GCC"; then
6745 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6748 if test $gl_cv_have_include_next = buggy; then
6749 INCLUDE_NEXT=include
6750 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6752 INCLUDE_NEXT=include
6753 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6760 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6761 if test "${gl_cv_pragma_columns+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6773 $EGREP "choke me" >/dev/null 2>&1; then :
6774 gl_cv_pragma_columns=yes
6776 gl_cv_pragma_columns=no
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6783 $as_echo "$gl_cv_pragma_columns" >&6; }
6784 if test $gl_cv_pragma_columns = yes; then
6785 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6796 $as_echo_n "checking for complete errno.h... " >&6; }
6797 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6805 #if !defined ETXTBSY
6814 #if !defined ENOLINK
6820 #if !defined EMULTIHOP
6823 #if !defined EBADMSG
6826 #if !defined EOVERFLOW
6829 #if !defined ENOTSUP
6832 #if !defined ENETRESET
6835 #if !defined ECONNABORTED
6844 #if !defined ECANCELED
6847 #if !defined EOWNERDEAD
6850 #if !defined ENOTRECOVERABLE
6858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859 $EGREP "booboo" >/dev/null 2>&1; then :
6860 gl_cv_header_errno_h_complete=no
6862 gl_cv_header_errno_h_complete=yes
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6869 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6870 if test $gl_cv_header_errno_h_complete = yes; then
6881 if test $gl_cv_have_include_next = yes; then
6882 gl_cv_next_errno_h='<'errno.h'>'
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6885 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6886 if test "${gl_cv_next_errno_h+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6897 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6898 *) gl_absname_cpp="$ac_cpp" ;;
6903 gl_dirsep_regex='[/\\]'
6906 gl_dirsep_regex='\/'
6909 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6910 gl_header_literal_regex=`echo 'errno.h' \
6911 |
sed -e "$gl_make_literal_regex_sed"`
6912 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6913 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6919 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6920 sed -n "$gl_absolute_header_sed"`
6922 gl_header=$gl_cv_absolute_errno_h
6923 gl_cv_next_errno_h='"'$gl_header'"'
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6928 $as_echo "$gl_cv_next_errno_h" >&6; }
6930 NEXT_ERRNO_H=$gl_cv_next_errno_h
6932 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6934 gl_next_as_first_directive='<'errno.h'>'
6936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6937 gl_next_as_first_directive=$gl_cv_next_errno_h
6939 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6947 if test -n "$ERRNO_H"; then
6948 GL_GENERATE_ERRNO_H_TRUE=
6949 GL_GENERATE_ERRNO_H_FALSE='#'
6951 GL_GENERATE_ERRNO_H_TRUE='#'
6952 GL_GENERATE_ERRNO_H_FALSE=
6956 if test -n "$ERRNO_H"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6958 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6959 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973 $EGREP "yes" >/dev/null 2>&1; then :
6974 gl_cv_header_errno_h_EMULTIHOP=yes
6976 gl_cv_header_errno_h_EMULTIHOP=no
6980 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6984 #define _XOPEN_SOURCE_EXTENDED 1
6991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "yes" >/dev/null 2>&1; then :
6993 gl_cv_header_errno_h_EMULTIHOP=hidden
6997 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6998 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6999 #define _XOPEN_SOURCE_EXTENDED 1
7001 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7013 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7014 case $gl_cv_header_errno_h_EMULTIHOP in
7016 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7019 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7027 if test -n "$ERRNO_H"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7029 $as_echo_n "checking for ENOLINK value... " >&6; }
7030 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "yes" >/dev/null 2>&1; then :
7045 gl_cv_header_errno_h_ENOLINK=yes
7047 gl_cv_header_errno_h_ENOLINK=no
7051 if test $gl_cv_header_errno_h_ENOLINK = no; then
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7055 #define _XOPEN_SOURCE_EXTENDED 1
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063 $EGREP "yes" >/dev/null 2>&1; then :
7064 gl_cv_header_errno_h_ENOLINK=hidden
7068 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7069 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7070 #define _XOPEN_SOURCE_EXTENDED 1
7072 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7084 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7085 case $gl_cv_header_errno_h_ENOLINK in
7087 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7090 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7098 if test -n "$ERRNO_H"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7100 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7101 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115 $EGREP "yes" >/dev/null 2>&1; then :
7116 gl_cv_header_errno_h_EOVERFLOW=yes
7118 gl_cv_header_errno_h_EOVERFLOW=no
7122 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7126 #define _XOPEN_SOURCE_EXTENDED 1
7133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134 $EGREP "yes" >/dev/null 2>&1; then :
7135 gl_cv_header_errno_h_EOVERFLOW=hidden
7139 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7140 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7141 #define _XOPEN_SOURCE_EXTENDED 1
7143 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7155 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7156 case $gl_cv_header_errno_h_EOVERFLOW in
7158 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7161 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7175 $as_echo_n "checking for mbstate_t... " >&6; }
7176 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 $ac_includes_default
7182 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7184 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7185 included before <wchar.h>. */
7193 mbstate_t x; return sizeof x;
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 ac_cv_type_mbstate_t=yes
7201 ac_cv_type_mbstate_t=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7206 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7207 if test $ac_cv_type_mbstate_t = yes; then
7209 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7213 $as_echo "#define mbstate_t int" >>confdefs.h
7311 GNULIB_REMAINDERF=0;
7312 GNULIB_REMAINDERL=0;
7398 HAVE_DECL_COPYSIGNF=1;
7415 HAVE_DECL_REMAINDER=1;
7416 HAVE_DECL_REMAINDERL=1;
7478 REPLACE_REMAINDER=0;
7479 REPLACE_REMAINDERF=0;
7480 REPLACE_REMAINDERL=0;
7485 REPLACE_SIGNBIT_USING_GCC=0;
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7493 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7494 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7505 int e; return frexp (x, &e) > 0;
7510 if ac_fn_c_try_link "$LINENO"; then :
7511 gl_cv_func_frexp_no_libm=yes
7513 gl_cv_func_frexp_no_libm=no
7515 rm -f core conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7520 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7522 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7523 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_DECL_ALARM $ac_have_decl
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7535 $as_echo_n "checking whether long double and double are the same... " >&6; }
7536 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7537 $as_echo_n "(cached) " >&6
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7545 typedef int check[sizeof (long double) == sizeof (double)
7546 && LDBL_MANT_DIG == DBL_MANT_DIG
7547 && LDBL_MAX_EXP == DBL_MAX_EXP
7548 && LDBL_MIN_EXP == DBL_MIN_EXP
7555 if ac_fn_c_try_compile "$LINENO"; then :
7556 gl_cv_long_double_equals_double=yes
7558 gl_cv_long_double_equals_double=no
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7564 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7565 if test $gl_cv_long_double_equals_double = yes; then
7567 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7569 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7571 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7576 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7577 if test "${ac_cv_c_restrict+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7581 # The order here caters to the fact that C++ does not require restrict.
7582 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 typedef int *int_ptr;
7586 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7587 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7588 int bar (int ip[$ac_kw]) { return ip[0]; }
7596 return foo (t) + bar (t);
7602 if ac_fn_c_try_compile "$LINENO"; then :
7603 ac_cv_c_restrict=$ac_kw
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 test "$ac_cv_c_restrict" != no && break
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7611 $as_echo "$ac_cv_c_restrict" >&6; }
7613 case $ac_cv_c_restrict in
7615 no) $as_echo "#define restrict /**/" >>confdefs.h
7617 *) cat >>confdefs.h <<_ACEOF
7618 #define restrict $ac_cv_c_restrict
7624 GNULIB_GETTIMEOFDAY=0;
7625 HAVE_GETTIMEOFDAY=1;
7626 HAVE_STRUCT_TIMEVAL=1;
7629 REPLACE_GETTIMEOFDAY=0;
7630 REPLACE_STRUCT_TIMEVAL=0;
7649 if test $gl_cv_have_include_next = yes; then
7650 gl_cv_next_sys_time_h='<'sys/time.h'>'
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7653 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7654 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7658 if test $ac_cv_header_sys_time_h = yes; then
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <sys/time.h>
7668 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7669 *) gl_absname_cpp="$ac_cpp" ;;
7674 gl_dirsep_regex='[/\\]'
7677 gl_dirsep_regex='\/'
7680 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7681 gl_header_literal_regex=`echo 'sys/time.h' \
7682 |
sed -e "$gl_make_literal_regex_sed"`
7683 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7684 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7690 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7691 sed -n "$gl_absolute_header_sed"`
7693 gl_header=$gl_cv_absolute_sys_time_h
7694 gl_cv_next_sys_time_h='"'$gl_header'"'
7696 gl_cv_next_sys_time_h='<'sys/time.h'>'
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7702 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7704 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7706 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7708 gl_next_as_first_directive='<'sys/time.h'>'
7710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7711 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7713 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7719 if test $ac_cv_header_sys_time_h != yes; then
7727 if test $ac_cv_header_sys_socket_h != yes; then
7728 for ac_header in winsock2.h
7730 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7731 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7732 cat >>confdefs.h <<_ACEOF
7733 #define HAVE_WINSOCK2_H 1
7741 if test "$ac_cv_header_winsock2_h" = yes; then
7743 UNISTD_H_HAVE_WINSOCK2_H=1
7744 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7751 $as_echo_n "checking for struct timeval... " >&6; }
7752 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7758 #include <sys/time.h>
7762 # include <winsock2.h>
7768 static struct timeval x; x.tv_sec = x.tv_usec;
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 gl_cv_sys_struct_timeval=yes
7776 gl_cv_sys_struct_timeval=no
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7782 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7783 if test $gl_cv_sys_struct_timeval != yes; then
7784 HAVE_STRUCT_TIMEVAL=0
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7787 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7788 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7794 #include <sys/time.h>
7798 # include <winsock2.h>
7804 static struct timeval x;
7805 typedef int verify_tv_sec_type[
7806 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7813 if ac_fn_c_try_compile "$LINENO"; then :
7814 gl_cv_sys_struct_timeval_tv_sec=yes
7816 gl_cv_sys_struct_timeval_tv_sec=no
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7822 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7823 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7824 REPLACE_STRUCT_TIMEVAL=1
7829 for gl_func in gettimeofday; do
7830 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7832 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7833 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7834 $as_echo_n "(cached) " >&6
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7840 # include <sys/time.h>
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 eval "$as_gl_Symbol=yes"
7856 eval "$as_gl_Symbol=no"
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 eval ac_res=\$$as_gl_Symbol
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7862 $as_echo "$ac_res" >&6; }
7863 eval as_val=\$$as_gl_Symbol
7864 if test "x$as_val" = x""yes; then :
7865 cat >>confdefs.h <<_ACEOF
7866 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7869 eval ac_cv_have_decl_$gl_func=yes
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7881 $as_echo_n "checking for unsigned long long int... " >&6; }
7882 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7885 ac_cv_type_unsigned_long_long_int=yes
7886 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 /* For now, do not test the preprocessor; as of 2007 there are too many
7891 implementations with broken preprocessors. Perhaps this can
7892 be revisited in 2012. In the meantime, code should not expect
7893 #if to work with literals wider than 32 bits. */
7894 /* Test literals. */
7895 long long int ll = 9223372036854775807ll;
7896 long long int nll = -9223372036854775807LL;
7897 unsigned long long int ull = 18446744073709551615ULL;
7898 /* Test constant expressions. */
7899 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7901 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7907 /* Test availability of runtime routines for shift and division. */
7908 long long int llmax = 9223372036854775807ll;
7909 unsigned long long int ullmax = 18446744073709551615ull;
7910 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7911 | (llmax / ll) | (llmax % ll)
7912 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7913 | (ullmax / ull) | (ullmax % ull));
7919 if ac_fn_c_try_link "$LINENO"; then :
7922 ac_cv_type_unsigned_long_long_int=no
7924 rm -f core conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext conftest.$ac_ext
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7929 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7930 if test $ac_cv_type_unsigned_long_long_int = yes; then
7932 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7939 $as_echo_n "checking for long long int... " >&6; }
7940 if test "${ac_cv_type_long_long_int+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7943 ac_cv_type_long_long_int=yes
7944 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7945 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7946 if test $ac_cv_type_long_long_int = yes; then
7947 if test "$cross_compiling" = yes; then :
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7955 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7956 # define LLONG_MAX (HALF - 1 + HALF)
7961 long long int n = 1;
7965 long long int m = n << i;
7968 if (LLONG_MAX / 2 < m)
7976 if ac_fn_c_try_run "$LINENO"; then :
7979 ac_cv_type_long_long_int=no
7981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7989 $as_echo "$ac_cv_type_long_long_int" >&6; }
7990 if test $ac_cv_type_long_long_int = yes; then
7992 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8001 gl_cv_c_multiarch=no
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #ifndef __APPLE_CC__
8005 not a universal capable compiler
8010 if ac_fn_c_try_compile "$LINENO"; then :
8014 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8015 if test -n "$prev"; then
8017 i?86 | x86_64 | ppc | ppc64)
8018 if test -z "$arch" || test "$arch" = "$word"; then
8021 gl_cv_c_multiarch=yes
8027 if test "x$word" = "x-arch"; then
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 if test $gl_cv_c_multiarch = yes; then
8036 APPLE_UNIVERSAL_BUILD=1
8038 APPLE_UNIVERSAL_BUILD=0
8045 if test $ac_cv_type_long_long_int = yes; then
8046 HAVE_LONG_LONG_INT=1
8048 HAVE_LONG_LONG_INT=0
8052 if test $ac_cv_type_unsigned_long_long_int = yes; then
8053 HAVE_UNSIGNED_LONG_LONG_INT=1
8055 HAVE_UNSIGNED_LONG_LONG_INT=0
8060 if test $ac_cv_header_wchar_h = yes; then
8067 if test $ac_cv_header_inttypes_h = yes; then
8074 if test $ac_cv_header_sys_types_h = yes; then
8090 if test $gl_cv_have_include_next = yes; then
8091 gl_cv_next_stdint_h='<'stdint.h'>'
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8094 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8095 if test "${gl_cv_next_stdint_h+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8099 if test $ac_cv_header_stdint_h = yes; then
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8109 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8110 *) gl_absname_cpp="$ac_cpp" ;;
8115 gl_dirsep_regex='[/\\]'
8118 gl_dirsep_regex='\/'
8121 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8122 gl_header_literal_regex=`echo 'stdint.h' \
8123 |
sed -e "$gl_make_literal_regex_sed"`
8124 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8125 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8131 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8132 sed -n "$gl_absolute_header_sed"`
8134 gl_header=$gl_cv_absolute_stdint_h
8135 gl_cv_next_stdint_h='"'$gl_header'"'
8137 gl_cv_next_stdint_h='<'stdint.h'>'
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8143 $as_echo "$gl_cv_next_stdint_h" >&6; }
8145 NEXT_STDINT_H=$gl_cv_next_stdint_h
8147 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8149 gl_next_as_first_directive='<'stdint.h'>'
8151 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8152 gl_next_as_first_directive=$gl_cv_next_stdint_h
8154 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8159 if test $ac_cv_header_stdint_h = yes; then
8166 if test $ac_cv_header_stdint_h = yes; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8168 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8169 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8172 gl_cv_header_working_stdint_h=no
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8177 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8179 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8180 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8181 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8185 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8186 included before <wchar.h>. */
8197 int8_t a1 = INT8_MAX;
8198 int8_t a1min = INT8_MIN;
8201 int16_t a2 = INT16_MAX;
8202 int16_t a2min = INT16_MIN;
8205 int32_t a3 = INT32_MAX;
8206 int32_t a3min = INT32_MIN;
8209 int64_t a4 = INT64_MAX;
8210 int64_t a4min = INT64_MIN;
8213 uint8_t b1 = UINT8_MAX;
8215 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8218 uint16_t b2 = UINT16_MAX;
8221 uint32_t b3 = UINT32_MAX;
8224 uint64_t b4 = UINT64_MAX;
8226 int_least8_t c1 = INT8_C (0x7f);
8227 int_least8_t c1max = INT_LEAST8_MAX;
8228 int_least8_t c1min = INT_LEAST8_MIN;
8229 int_least16_t c2 = INT16_C (0x7fff);
8230 int_least16_t c2max = INT_LEAST16_MAX;
8231 int_least16_t c2min = INT_LEAST16_MIN;
8232 int_least32_t c3 = INT32_C (0x7fffffff);
8233 int_least32_t c3max = INT_LEAST32_MAX;
8234 int_least32_t c3min = INT_LEAST32_MIN;
8235 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8236 int_least64_t c4max = INT_LEAST64_MAX;
8237 int_least64_t c4min = INT_LEAST64_MIN;
8238 uint_least8_t d1 = UINT8_C (0xff);
8239 uint_least8_t d1max = UINT_LEAST8_MAX;
8240 uint_least16_t d2 = UINT16_C (0xffff);
8241 uint_least16_t d2max = UINT_LEAST16_MAX;
8242 uint_least32_t d3 = UINT32_C (0xffffffff);
8243 uint_least32_t d3max = UINT_LEAST32_MAX;
8244 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8245 uint_least64_t d4max = UINT_LEAST64_MAX;
8246 int_fast8_t e1 = INT_FAST8_MAX;
8247 int_fast8_t e1min = INT_FAST8_MIN;
8248 int_fast16_t e2 = INT_FAST16_MAX;
8249 int_fast16_t e2min = INT_FAST16_MIN;
8250 int_fast32_t e3 = INT_FAST32_MAX;
8251 int_fast32_t e3min = INT_FAST32_MIN;
8252 int_fast64_t e4 = INT_FAST64_MAX;
8253 int_fast64_t e4min = INT_FAST64_MIN;
8254 uint_fast8_t f1 = UINT_FAST8_MAX;
8255 uint_fast16_t f2 = UINT_FAST16_MAX;
8256 uint_fast32_t f3 = UINT_FAST32_MAX;
8257 uint_fast64_t f4 = UINT_FAST64_MAX;
8259 intptr_t g = INTPTR_MAX;
8260 intptr_t gmin = INTPTR_MIN;
8263 uintptr_t h = UINTPTR_MAX;
8265 intmax_t i = INTMAX_MAX;
8266 uintmax_t j = UINTMAX_MAX;
8268 #include <limits.h> /* for CHAR_BIT */
8269 #define TYPE_MINIMUM(t) \
8270 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8271 #define TYPE_MAXIMUM(t) \
8272 ((t) ((t) 0 < (t) -1 \
8274 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8277 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8278 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8280 /* Detect bug in FreeBSD 6.0 / ia64. */
8281 int check_SIG_ATOMIC:
8282 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8283 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8285 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8287 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8288 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8290 /* Detect bug in mingw. */
8292 WINT_MIN == TYPE_MINIMUM (wint_t)
8293 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8296 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8298 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8300 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8302 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8304 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8307 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8310 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8313 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8315 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8316 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8317 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8318 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8319 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8320 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8321 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8322 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8323 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8324 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8325 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337 if test "$cross_compiling" = yes; then :
8338 gl_cv_header_working_stdint_h=yes
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8345 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8349 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8350 included before <wchar.h>. */
8362 #define MVAL(macro) MVAL1(macro)
8363 #define MVAL1(expression) #expression
8364 static const char *macro_values[] =
8398 for (mv = macro_values; *mv != NULL; mv++)
8400 const char *value = *mv;
8401 /* Test whether it looks like a cast expression. */
8402 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8403 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8404 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8405 || strncmp (value, "((int)"/*)*/, 6) == 0
8406 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8407 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8408 return mv - macro_values + 1;
8416 if ac_fn_c_try_run "$LINENO"; then :
8417 gl_cv_header_working_stdint_h=yes
8419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8420 conftest.$ac_objext conftest.beam conftest.$ac_ext
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8429 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8431 if test "$gl_cv_header_working_stdint_h" = yes; then
8434 for ac_header in sys/inttypes.h sys/bitypes.h
8436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8438 eval as_val=\$$as_ac_Header
8439 if test "x$as_val" = x""yes; then :
8440 cat >>confdefs.h <<_ACEOF
8441 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8448 if test $ac_cv_header_sys_inttypes_h = yes; then
8449 HAVE_SYS_INTTYPES_H=1
8451 HAVE_SYS_INTTYPES_H=0
8454 if test $ac_cv_header_sys_bitypes_h = yes; then
8455 HAVE_SYS_BITYPES_H=1
8457 HAVE_SYS_BITYPES_H=0
8463 if test $APPLE_UNIVERSAL_BUILD = 0; then
8466 for gltype in ptrdiff_t size_t ; do
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8468 $as_echo_n "checking for bit size of $gltype... " >&6; }
8469 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8470 $as_echo_n "(cached) " >&6
8472 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8473 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8474 included before <wchar.h>. */
8483 #include <limits.h>"; then :
8489 eval gl_cv_bitsizeof_${gltype}=\$result
8492 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8494 $as_echo "$ac_res" >&6; }
8495 eval result=\$gl_cv_bitsizeof_${gltype}
8496 if test $result = unknown; then
8499 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8500 cat >>confdefs.h <<_ACEOF
8501 #define BITSIZEOF_${GLTYPE} $result
8504 eval BITSIZEOF_${GLTYPE}=\$result
8511 for gltype in sig_atomic_t wchar_t wint_t ; do
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8513 $as_echo_n "checking for bit size of $gltype... " >&6; }
8514 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8515 $as_echo_n "(cached) " >&6
8517 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8518 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8519 included before <wchar.h>. */
8528 #include <limits.h>"; then :
8534 eval gl_cv_bitsizeof_${gltype}=\$result
8537 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8539 $as_echo "$ac_res" >&6; }
8540 eval result=\$gl_cv_bitsizeof_${gltype}
8541 if test $result = unknown; then
8544 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8545 cat >>confdefs.h <<_ACEOF
8546 #define BITSIZEOF_${GLTYPE} $result
8549 eval BITSIZEOF_${GLTYPE}=\$result
8555 for gltype in sig_atomic_t wchar_t wint_t ; do
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8557 $as_echo_n "checking whether $gltype is signed... " >&6; }
8558 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8559 $as_echo_n "(cached) " >&6
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8564 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8565 included before <wchar.h>. */
8574 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8583 if ac_fn_c_try_compile "$LINENO"; then :
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 eval gl_cv_type_${gltype}_signed=\$result
8592 eval ac_res=\$gl_cv_type_${gltype}_signed
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8594 $as_echo "$ac_res" >&6; }
8595 eval result=\$gl_cv_type_${gltype}_signed
8596 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8597 if test "$result" = yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_SIGNED_${GLTYPE} 1
8602 eval HAVE_SIGNED_${GLTYPE}=1
8604 eval HAVE_SIGNED_${GLTYPE}=0
8609 gl_cv_type_ptrdiff_t_signed=yes
8610 gl_cv_type_size_t_signed=no
8611 if test $APPLE_UNIVERSAL_BUILD = 0; then
8614 for gltype in ptrdiff_t size_t ; do
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8616 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8617 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8618 $as_echo_n "(cached) " >&6
8620 eval gl_cv_type_${gltype}_suffix=no
8621 eval result=\$gl_cv_type_${gltype}_signed
8622 if test "$result" = yes; then
8627 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8630 l) gltype1='long int';;
8631 ll) gltype1='long long int';;
8632 i64) gltype1='__int64';;
8633 u) gltype1='unsigned int';;
8634 ul) gltype1='unsigned long int';;
8635 ull) gltype1='unsigned long long int';;
8636 ui64)gltype1='unsigned __int64';;
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8641 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8642 included before <wchar.h>. */
8652 extern $gltype1 foo;
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662 eval gl_cv_type_${gltype}_suffix=\$glsuf
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 eval result=\$gl_cv_type_${gltype}_suffix
8666 test "$result" != no && break
8669 eval ac_res=\$gl_cv_type_${gltype}_suffix
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8671 $as_echo "$ac_res" >&6; }
8672 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8673 eval result=\$gl_cv_type_${gltype}_suffix
8674 test "$result" = no && result=
8675 eval ${GLTYPE}_SUFFIX=\$result
8676 cat >>confdefs.h <<_ACEOF
8677 #define ${GLTYPE}_SUFFIX $result
8686 for gltype in sig_atomic_t wchar_t wint_t ; do
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8688 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8689 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8690 $as_echo_n "(cached) " >&6
8692 eval gl_cv_type_${gltype}_suffix=no
8693 eval result=\$gl_cv_type_${gltype}_signed
8694 if test "$result" = yes; then
8699 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8702 l) gltype1='long int';;
8703 ll) gltype1='long long int';;
8704 i64) gltype1='__int64';;
8705 u) gltype1='unsigned int';;
8706 ul) gltype1='unsigned long int';;
8707 ull) gltype1='unsigned long long int';;
8708 ui64)gltype1='unsigned __int64';;
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8713 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8714 included before <wchar.h>. */
8724 extern $gltype1 foo;
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 eval gl_cv_type_${gltype}_suffix=\$glsuf
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 eval result=\$gl_cv_type_${gltype}_suffix
8738 test "$result" != no && break
8741 eval ac_res=\$gl_cv_type_${gltype}_suffix
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8743 $as_echo "$ac_res" >&6; }
8744 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8745 eval result=\$gl_cv_type_${gltype}_suffix
8746 test "$result" = no && result=
8747 eval ${GLTYPE}_SUFFIX=\$result
8748 cat >>confdefs.h <<_ACEOF
8749 #define ${GLTYPE}_SUFFIX $result
8756 if test $BITSIZEOF_WINT_T -lt 32; then
8763 if test -n "$STDINT_H"; then
8764 GL_GENERATE_STDINT_H_TRUE=
8765 GL_GENERATE_STDINT_H_FALSE='#'
8767 GL_GENERATE_STDINT_H_TRUE='#'
8768 GL_GENERATE_STDINT_H_FALSE=
8779 HAVE_DECL_IMAXABS=1;
8780 HAVE_DECL_IMAXDIV=1;
8781 HAVE_DECL_STRTOIMAX=1;
8782 HAVE_DECL_STRTOUMAX=1;
8783 REPLACE_STRTOIMAX=0;
8784 REPLACE_STRTOUMAX=0;
8785 INT32_MAX_LT_INTMAX_MAX=1;
8786 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8787 PRI_MACROS_BROKEN=0;
8788 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8789 UINT32_MAX_LT_UINTMAX_MAX=1;
8790 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8806 if test $gl_cv_have_include_next = yes; then
8807 gl_cv_next_inttypes_h='<'inttypes.h'>'
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8810 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8811 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8815 if test $ac_cv_header_inttypes_h = yes; then
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 #include <inttypes.h>
8825 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8826 *) gl_absname_cpp="$ac_cpp" ;;
8831 gl_dirsep_regex='[/\\]'
8834 gl_dirsep_regex='\/'
8837 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8838 gl_header_literal_regex=`echo 'inttypes.h' \
8839 |
sed -e "$gl_make_literal_regex_sed"`
8840 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8841 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8847 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8848 sed -n "$gl_absolute_header_sed"`
8850 gl_header=$gl_cv_absolute_inttypes_h
8851 gl_cv_next_inttypes_h='"'$gl_header'"'
8853 gl_cv_next_inttypes_h='<'inttypes.h'>'
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8859 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8861 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8863 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8865 gl_next_as_first_directive='<'inttypes.h'>'
8867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8868 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8870 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8879 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8880 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8882 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8883 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8884 $as_echo_n "(cached) " >&6
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <inttypes.h>
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 eval "$as_gl_Symbol=yes"
8902 eval "$as_gl_Symbol=no"
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 eval ac_res=\$$as_gl_Symbol
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8908 $as_echo "$ac_res" >&6; }
8909 eval as_val=\$$as_gl_Symbol
8910 if test "x$as_val" = x""yes; then :
8911 cat >>confdefs.h <<_ACEOF
8912 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8915 eval ac_cv_have_decl_$gl_func=yes
8921 for ac_header in inttypes.h
8923 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8924 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8925 cat >>confdefs.h <<_ACEOF
8926 #define HAVE_INTTYPES_H 1
8933 if test $ac_cv_header_inttypes_h = yes; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8935 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8936 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8943 #include <inttypes.h>
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 gt_cv_inttypes_pri_broken=no
8959 gt_cv_inttypes_pri_broken=yes
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8965 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8967 if test "$gt_cv_inttypes_pri_broken" = yes; then
8969 cat >>confdefs.h <<_ACEOF
8970 #define PRI_MACROS_BROKEN 1
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8981 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8982 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8986 if test "$cross_compiling" = yes; then :
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8991 #if defined arm || defined __arm || defined __arm__
8996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8997 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8998 gl_cv_cc_double_expbit0="unknown"
9002 if test "${ac_cv_c_bigendian+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 ac_cv_c_bigendian=unknown
9006 # See if we're dealing with a universal compiler.
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 #ifndef __APPLE_CC__
9010 not a universal capable compiler
9015 if ac_fn_c_try_compile "$LINENO"; then :
9017 # Check for potential -arch flags. It is not universal unless
9018 # there are at least two -arch flags with different values.
9021 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9022 if test -n "$ac_prev"; then
9024 i?86 | x86_64 | ppc | ppc64)
9025 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9028 ac_cv_c_bigendian=universal
9034 elif test "x$ac_word" = "x-arch"; then
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 if test $ac_cv_c_bigendian = unknown; then
9041 # See if sys/param.h defines the BYTE_ORDER macro.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <sys/types.h>
9045 #include <sys/param.h>
9050 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9051 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9060 if ac_fn_c_try_compile "$LINENO"; then :
9061 # It does; now see whether it defined to BIG_ENDIAN or not.
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 #include <sys/types.h>
9065 #include <sys/param.h>
9070 #if BYTE_ORDER != BIG_ENDIAN
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079 ac_cv_c_bigendian=yes
9081 ac_cv_c_bigendian=no
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087 if test $ac_cv_c_bigendian = unknown; then
9088 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9096 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9104 if ac_fn_c_try_compile "$LINENO"; then :
9105 # It does; now see whether it defined to _BIG_ENDIAN or not.
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9121 if ac_fn_c_try_compile "$LINENO"; then :
9122 ac_cv_c_bigendian=yes
9124 ac_cv_c_bigendian=no
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 if test $ac_cv_c_bigendian = unknown; then
9131 # Compile a test program.
9132 if test "$cross_compiling" = yes; then :
9133 # Try to guess by grepping values from an object file.
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 short int ascii_mm[] =
9137 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9138 short int ascii_ii[] =
9139 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9140 int use_ascii (int i) {
9141 return ascii_mm[i] + ascii_ii[i];
9143 short int ebcdic_ii[] =
9144 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9145 short int ebcdic_mm[] =
9146 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9147 int use_ebcdic (int i) {
9148 return ebcdic_mm[i] + ebcdic_ii[i];
9155 return use_ascii (foo) == use_ebcdic (foo);
9160 if ac_fn_c_try_compile "$LINENO"; then :
9161 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9162 ac_cv_c_bigendian=yes
9164 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9165 if test "$ac_cv_c_bigendian" = unknown; then
9166 ac_cv_c_bigendian=no
9168 # finding both strings is unlikely to happen, but who knows?
9169 ac_cv_c_bigendian=unknown
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 $ac_includes_default
9182 /* Are we little or big endian? From Harbison&Steele. */
9186 char c[sizeof (long int)];
9189 return u.c[sizeof (long int) - 1] == 1;
9195 if ac_fn_c_try_run "$LINENO"; then :
9196 ac_cv_c_bigendian=no
9198 ac_cv_c_bigendian=yes
9200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9201 conftest.$ac_objext conftest.beam conftest.$ac_ext
9207 case $ac_cv_c_bigendian in #(
9209 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9211 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9214 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9218 gl_cv_cc_double_expbit0="unknown" ;;
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9235 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9236 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9237 static unsigned int ored_words[NWORDS];
9238 static unsigned int anded_words[NWORDS];
9239 static void add_to_ored_words (double x)
9243 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9244 memset (&m, 0, sizeof (memory_double));
9246 for (i = 0; i < NWORDS; i++)
9248 ored_words[i] |= m.word[i];
9249 anded_words[i] &= m.word[i];
9255 FILE *fp = fopen ("conftest.out", "w");
9258 for (j = 0; j < NWORDS; j++)
9259 anded_words[j] = ~ (unsigned int) 0;
9260 add_to_ored_words (0.25);
9261 add_to_ored_words (0.5);
9262 add_to_ored_words (1.0);
9263 add_to_ored_words (2.0);
9264 add_to_ored_words (4.0);
9265 /* Remove bits that are common (e.g. if representation of the first mantissa
9266 bit is explicit). */
9267 for (j = 0; j < NWORDS; j++)
9268 ored_words[j] &= ~anded_words[j];
9269 /* Now find the nonzero word. */
9270 for (j = 0; j < NWORDS; j++)
9271 if (ored_words[j] != 0)
9276 for (i = j + 1; i < NWORDS; i++)
9277 if (ored_words[i] != 0)
9279 fprintf (fp, "unknown");
9280 return (fclose (fp) != 0);
9283 if ((ored_words[j] >> i) & 1)
9285 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9286 return (fclose (fp) != 0);
9289 fprintf (fp, "unknown");
9290 return (fclose (fp) != 0);
9294 if ac_fn_c_try_run "$LINENO"; then :
9295 gl_cv_cc_double_expbit0=`cat conftest.out
`
9297 gl_cv_cc_double_expbit0="unknown"
9299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9300 conftest.$ac_objext conftest.beam conftest.$ac_ext
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9307 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9308 case "$gl_cv_cc_double_expbit0" in
9310 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
9311 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
9313 cat >>confdefs.h <<_ACEOF
9314 #define DBL_EXPBIT0_WORD $word
9318 cat >>confdefs.h <<_ACEOF
9319 #define DBL_EXPBIT0_BIT $bit
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9328 if test "${ac_cv_c_bigendian+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9331 ac_cv_c_bigendian=unknown
9332 # See if we're dealing with a universal compiler.
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 #ifndef __APPLE_CC__
9336 not a universal capable compiler
9341 if ac_fn_c_try_compile "$LINENO"; then :
9343 # Check for potential -arch flags. It is not universal unless
9344 # there are at least two -arch flags with different values.
9347 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9348 if test -n "$ac_prev"; then
9350 i?86 | x86_64 | ppc | ppc64)
9351 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9354 ac_cv_c_bigendian=universal
9360 elif test "x$ac_word" = "x-arch"; then
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 if test $ac_cv_c_bigendian = unknown; then
9367 # See if sys/param.h defines the BYTE_ORDER macro.
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 #include <sys/types.h>
9371 #include <sys/param.h>
9376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9386 if ac_fn_c_try_compile "$LINENO"; then :
9387 # It does; now see whether it defined to BIG_ENDIAN or not.
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <sys/types.h>
9391 #include <sys/param.h>
9396 #if BYTE_ORDER != BIG_ENDIAN
9404 if ac_fn_c_try_compile "$LINENO"; then :
9405 ac_cv_c_bigendian=yes
9407 ac_cv_c_bigendian=no
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413 if test $ac_cv_c_bigendian = unknown; then
9414 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9430 if ac_fn_c_try_compile "$LINENO"; then :
9431 # It does; now see whether it defined to _BIG_ENDIAN or not.
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9447 if ac_fn_c_try_compile "$LINENO"; then :
9448 ac_cv_c_bigendian=yes
9450 ac_cv_c_bigendian=no
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456 if test $ac_cv_c_bigendian = unknown; then
9457 # Compile a test program.
9458 if test "$cross_compiling" = yes; then :
9459 # Try to guess by grepping values from an object file.
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 short int ascii_mm[] =
9463 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9464 short int ascii_ii[] =
9465 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9466 int use_ascii (int i) {
9467 return ascii_mm[i] + ascii_ii[i];
9469 short int ebcdic_ii[] =
9470 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9471 short int ebcdic_mm[] =
9472 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9473 int use_ebcdic (int i) {
9474 return ebcdic_mm[i] + ebcdic_ii[i];
9481 return use_ascii (foo) == use_ebcdic (foo);
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9488 ac_cv_c_bigendian=yes
9490 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9491 if test "$ac_cv_c_bigendian" = unknown; then
9492 ac_cv_c_bigendian=no
9494 # finding both strings is unlikely to happen, but who knows?
9495 ac_cv_c_bigendian=unknown
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 $ac_includes_default
9508 /* Are we little or big endian? From Harbison&Steele. */
9512 char c[sizeof (long int)];
9515 return u.c[sizeof (long int) - 1] == 1;
9521 if ac_fn_c_try_run "$LINENO"; then :
9522 ac_cv_c_bigendian=no
9524 ac_cv_c_bigendian=yes
9526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9527 conftest.$ac_objext conftest.beam conftest.$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9533 $as_echo "$ac_cv_c_bigendian" >&6; }
9534 case $ac_cv_c_bigendian in #(
9536 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9542 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9546 as_fn_error "unknown endianness
9547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9556 $as_echo_n "checking for 64-bit off_t... " >&6; }
9557 if test "${gl_cv_type_off_t_64+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 #include <sys/types.h>
9563 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574 gl_cv_type_off_t_64=yes
9576 gl_cv_type_off_t_64=no
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9582 $as_echo "$gl_cv_type_off_t_64" >&6; }
9583 if test $gl_cv_type_off_t_64 = no; then
9584 WINDOWS_64_BIT_OFF_T=1
9586 WINDOWS_64_BIT_OFF_T=0
9588 WINDOWS_64_BIT_ST_SIZE=1
9591 WINDOWS_64_BIT_OFF_T=0
9592 WINDOWS_64_BIT_ST_SIZE=0
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9598 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9599 if test "${am_cv_langinfo_codeset+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include <langinfo.h>
9608 char* cs = nl_langinfo(CODESET); return !cs;
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 am_cv_langinfo_codeset=yes
9616 am_cv_langinfo_codeset=no
9618 rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9623 $as_echo "$am_cv_langinfo_codeset" >&6; }
9624 if test $am_cv_langinfo_codeset = yes; then
9626 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9640 $as_echo_n "checking for working fcntl.h... " >&6; }
9641 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9644 if test "$cross_compiling" = yes; then :
9645 gl_cv_header_working_fcntl_h=cross-compiling
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 #include <sys/types.h>
9650 #include <sys/stat.h>
9652 # include <unistd.h>
9653 #else /* on Windows with MSVC */
9655 # include <stdlib.h>
9656 # defined sleep(n) _sleep ((n) * 1000)
9663 #define O_NOFOLLOW 0
9665 static int const constants[] =
9667 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9668 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9675 int result = !constants;
9678 static char const sym[] = "conftest.sym";
9679 if (symlink ("/dev/null", sym) != 0)
9683 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9690 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9694 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9705 static char const file[] = "confdefs.h";
9706 int fd = open (file, O_RDONLY | O_NOATIME);
9712 if (fstat (fd, &st0) != 0)
9718 if (read (fd, &c, 1) != 1)
9722 if (close (fd) != 0)
9727 if (stat (file, &st1) != 0)
9730 if (st0.st_atime != st1.st_atime)
9742 if ac_fn_c_try_run "$LINENO"; then :
9743 gl_cv_header_working_fcntl_h=yes
9746 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9747 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9748 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9749 *) gl_cv_header_working_fcntl_h='no';;
9752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9753 conftest.$ac_objext conftest.beam conftest.$ac_ext
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9758 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9760 case $gl_cv_header_working_fcntl_h in #(
9761 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9765 cat >>confdefs.h <<_ACEOF
9766 #define HAVE_WORKING_O_NOATIME $ac_val
9770 case $gl_cv_header_working_fcntl_h in #(
9771 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9775 cat >>confdefs.h <<_ACEOF
9776 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9780 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9781 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9793 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9794 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 #include <features.h>
9801 #ifdef __GNU_LIBRARY__
9802 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9812 $EGREP "Lucky" >/dev/null 2>&1; then :
9813 ac_cv_gnu_library_2_1=yes
9815 ac_cv_gnu_library_2_1=no
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9823 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9825 GLIBC21="$ac_cv_gnu_library_2_1"
9861 REPLACE_UTIMENSAT=0;
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9867 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9868 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9871 rm -f conftest.sym conftest.file
9873 if test "$cross_compiling" = yes; then :
9876 # Guess yes on glibc systems.
9877 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9879 # If we don't know, assume the worst.
9880 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 $ac_includes_default
9891 if (symlink ("conftest.file", "conftest.sym") != 0)
9893 /* Linux will dereference the symlink and fail, as required by
9894 POSIX. That is better in the sense that it means we will not
9895 have to compile and use the lstat wrapper. */
9896 return lstat ("conftest.sym/", &sbuf) == 0;
9902 if ac_fn_c_try_run "$LINENO"; then :
9903 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9905 gl_cv_func_lstat_dereferences_slashed_symlink=no
9907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9908 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911 rm -f conftest.sym conftest.file
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9915 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9916 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9919 cat >>confdefs.h <<_ACEOF
9920 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9928 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9929 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9939 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9947 if ac_fn_c_try_compile "$LINENO"; then :
9948 gl_cv_func_malloc_posix=yes
9950 gl_cv_func_malloc_posix=no
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9956 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9960 for ac_header in stdlib.h
9962 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9963 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_STDLIB_H 1
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9973 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9974 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9975 $as_echo_n "(cached) " >&6
9977 if test "$cross_compiling" = yes; then :
9979 # Guess yes on platforms where we know the result.
9980 *-gnu* | freebsd* | netbsd* | openbsd* \
9981 | hpux* | solaris* | cygwin* | mingw*)
9982 ac_cv_func_malloc_0_nonnull=yes ;;
9983 # If we don't know, assume the worst.
9984 *) ac_cv_func_malloc_0_nonnull=no ;;
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9991 # include <stdlib.h>
9999 return ! malloc (0);
10005 if ac_fn_c_try_run "$LINENO"; then :
10006 ac_cv_func_malloc_0_nonnull=yes
10008 ac_cv_func_malloc_0_nonnull=no
10010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10011 conftest.$ac_objext conftest.beam conftest.$ac_ext
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10017 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10018 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10019 gl_cv_func_malloc_0_nonnull=1
10021 gl_cv_func_malloc_0_nonnull=0
10025 cat >>confdefs.h <<_ACEOF
10026 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10038 GNULIB_MBSRTOWCS=0;
10039 GNULIB_MBSNRTOWCS=0;
10041 GNULIB_WCSRTOMBS=0;
10042 GNULIB_WCSNRTOMBS=0;
10059 GNULIB_WCSCASECMP=0;
10060 GNULIB_WCSNCASECMP=0;
10097 HAVE_WCSNCASECMP=1;
10110 HAVE_DECL_WCWIDTH=1;
10111 REPLACE_MBSTATE_T=0;
10117 REPLACE_MBSRTOWCS=0;
10118 REPLACE_MBSNRTOWCS=0;
10120 REPLACE_WCSRTOMBS=0;
10121 REPLACE_WCSNRTOMBS=0;
10123 REPLACE_WCSWIDTH=0;
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10133 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10134 if test "${gt_cv_locale_ja+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10141 #include <locale.h>
10143 #if HAVE_LANGINFO_CODESET
10144 # include <langinfo.h>
10146 #include <stdlib.h>
10147 #include <string.h>
10153 /* Check whether the given locale name is recognized by the system. */
10154 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10155 /* On native Windows, setlocale(category, "") looks at the system settings,
10156 not at the environment variables. Also, when an encoding suffix such
10157 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10158 category of the locale to "C". */
10159 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10160 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10163 if (setlocale (LC_ALL, "") == NULL) return 1;
10165 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10166 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10167 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10168 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10169 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10170 some unit tests fail.
10171 On MirBSD 10, when an unsupported locale is specified, setlocale()
10172 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10173 #if HAVE_LANGINFO_CODESET
10175 const char *cs = nl_langinfo (CODESET);
10176 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10177 || strcmp (cs, "UTF-8") == 0)
10182 /* On Cygwin, avoid locale names without encoding suffix, because the
10183 locale_charset() function relies on the encoding suffix. Note that
10184 LC_ALL is set on the command line. */
10185 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10187 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10188 on Cygwin 1.5.x. */
10189 if (MB_CUR_MAX == 1)
10191 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10192 This excludes the UTF-8 encoding (except on MirBSD). */
10193 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10194 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10195 for (p = buf; *p != '\0'; p++)
10196 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10203 (eval $ac_link) 2>&5
10205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10208 # Handle native Windows specially, because there setlocale() interprets
10209 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10210 # "fr" or "fra" as "French" or "French_France.1252",
10211 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10212 # "ja" as "Japanese" or "Japanese_Japan.932",
10215 # Note that on native Windows, the Japanese locale is
10216 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10217 # cannot use it here.
10218 gt_cv_locale_ja=none
10221 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10222 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10223 # configure script would override the LC_ALL setting. Likewise for
10224 # LC_CTYPE, which is also set at the beginning of the configure script.
10225 # Test for the AIX locale name.
10226 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10227 gt_cv_locale_ja=ja_JP
10229 # Test for the locale name with explicit encoding suffix.
10230 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10231 gt_cv_locale_ja=ja_JP.EUC-JP
10233 # Test for the HP-UX, OSF/1, NetBSD locale name.
10234 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10235 gt_cv_locale_ja=ja_JP.eucJP
10237 # Test for the IRIX, FreeBSD locale name.
10238 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10239 gt_cv_locale_ja=ja_JP.EUC
10241 # Test for the Solaris 7 locale name.
10242 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10245 # Special test for NetBSD 1.6.
10246 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10247 gt_cv_locale_ja=ja_JP.eucJP
10250 gt_cv_locale_ja=none
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10264 $as_echo "$gt_cv_locale_ja" >&6; }
10265 LOCALE_JA=$gt_cv_locale_ja
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10272 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10273 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10280 #include <locale.h>
10281 #include <stdlib.h>
10283 #if HAVE_LANGINFO_CODESET
10284 # include <langinfo.h>
10286 #include <stdlib.h>
10287 #include <string.h>
10293 /* Check whether the given locale name is recognized by the system. */
10294 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10295 /* On native Windows, setlocale(category, "") looks at the system settings,
10296 not at the environment variables. Also, when an encoding suffix such
10297 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10298 category of the locale to "C". */
10299 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10300 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10303 if (setlocale (LC_ALL, "") == NULL) return 1;
10305 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10306 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10307 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10308 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10309 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10310 some unit tests fail.
10311 On MirBSD 10, when an unsupported locale is specified, setlocale()
10312 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10313 #if HAVE_LANGINFO_CODESET
10315 const char *cs = nl_langinfo (CODESET);
10316 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10317 || strcmp (cs, "UTF-8") == 0)
10322 /* On Cygwin, avoid locale names without encoding suffix, because the
10323 locale_charset() function relies on the encoding suffix. Note that
10324 LC_ALL is set on the command line. */
10325 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10327 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10328 This excludes the UTF-8 encoding (except on MirBSD). */
10329 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10330 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10331 for (p = buf; *p != '\0'; p++)
10332 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10334 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10335 single wide character. This excludes the GB2312 and GBK encodings. */
10336 if (mblen ("\203\062\332\066", 5) != 4)
10342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10343 (eval $ac_link) 2>&5
10345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10346 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10348 # Handle native Windows specially, because there setlocale() interprets
10349 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10350 # "fr" or "fra" as "French" or "French_France.1252",
10351 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10352 # "ja" as "Japanese" or "Japanese_Japan.932",
10355 # Test for the hypothetical native Windows locale name.
10356 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10357 gt_cv_locale_zh_CN=Chinese_China.54936
10360 gt_cv_locale_zh_CN=none
10364 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10365 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10366 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10367 gt_cv_locale_zh_CN=none
10370 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10371 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10372 # configure script would override the LC_ALL setting. Likewise for
10373 # LC_CTYPE, which is also set at the beginning of the configure script.
10374 # Test for the locale name without encoding suffix.
10375 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10376 gt_cv_locale_zh_CN=zh_CN
10378 # Test for the locale name with explicit encoding suffix.
10379 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10380 gt_cv_locale_zh_CN=zh_CN.GB18030
10383 gt_cv_locale_zh_CN=none
10389 # If there was a link error, due to mblen(), the system is so old that
10390 # it certainly doesn't have a chinese locale.
10391 gt_cv_locale_zh_CN=none
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10397 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10398 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10404 $as_echo_n "checking for a french Unicode locale... " >&6; }
10405 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10412 #include <locale.h>
10414 #if HAVE_LANGINFO_CODESET
10415 # include <langinfo.h>
10417 #include <stdlib.h>
10418 #include <string.h>
10422 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10423 imitates locale dependent behaviour by looking at the environment
10424 variables, and all locales use the UTF-8 encoding. */
10425 #if !(defined __BEOS__ || defined __HAIKU__)
10426 /* Check whether the given locale name is recognized by the system. */
10427 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10428 /* On native Windows, setlocale(category, "") looks at the system settings,
10429 not at the environment variables. Also, when an encoding suffix such
10430 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10431 category of the locale to "C". */
10432 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10433 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10436 if (setlocale (LC_ALL, "") == NULL) return 1;
10438 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10439 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10440 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10441 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10442 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10443 some unit tests fail. */
10444 # if HAVE_LANGINFO_CODESET
10446 const char *cs = nl_langinfo (CODESET);
10447 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10452 /* On Cygwin, avoid locale names without encoding suffix, because the
10453 locale_charset() function relies on the encoding suffix. Note that
10454 LC_ALL is set on the command line. */
10455 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10457 /* Check whether in the abbreviation of the second month, the second
10458 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10459 two bytes long, with UTF-8 encoding. */
10460 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10461 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10462 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10465 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10466 /* Check whether the decimal separator is a comma.
10467 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10468 are nl_langinfo(RADIXCHAR) are both ".". */
10469 if (localeconv () ->decimal_point[0] != ',') return 1;
10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10476 (eval $ac_link) 2>&5
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10481 # Handle native Windows specially, because there setlocale() interprets
10482 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10483 # "fr" or "fra" as "French" or "French_France.1252",
10484 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10485 # "ja" as "Japanese" or "Japanese_Japan.932",
10488 # Test for the hypothetical native Windows locale name.
10489 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10490 gt_cv_locale_fr_utf8=French_France.65001
10493 gt_cv_locale_fr_utf8=none
10497 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10498 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10499 # configure script would override the LC_ALL setting. Likewise for
10500 # LC_CTYPE, which is also set at the beginning of the configure script.
10501 # Test for the usual locale name.
10502 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10503 gt_cv_locale_fr_utf8=fr_FR
10505 # Test for the locale name with explicit encoding suffix.
10506 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10507 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10509 # Test for the Solaris 7 locale name.
10510 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10511 gt_cv_locale_fr_utf8=fr.UTF-8
10514 gt_cv_locale_fr_utf8=none
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10525 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10526 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10533 $as_echo_n "checking for a traditional french locale... " >&6; }
10534 if test "${gt_cv_locale_fr+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 #include <locale.h>
10543 #if HAVE_LANGINFO_CODESET
10544 # include <langinfo.h>
10546 #include <stdlib.h>
10547 #include <string.h>
10551 /* Check whether the given locale name is recognized by the system. */
10552 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10553 /* On native Windows, setlocale(category, "") looks at the system settings,
10554 not at the environment variables. Also, when an encoding suffix such
10555 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10556 category of the locale to "C". */
10557 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10558 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10561 if (setlocale (LC_ALL, "") == NULL) return 1;
10563 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10564 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10565 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10566 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10567 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10568 some unit tests fail.
10569 On MirBSD 10, when an unsupported locale is specified, setlocale()
10570 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10571 #if HAVE_LANGINFO_CODESET
10573 const char *cs = nl_langinfo (CODESET);
10574 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10575 || strcmp (cs, "UTF-8") == 0)
10580 /* On Cygwin, avoid locale names without encoding suffix, because the
10581 locale_charset() function relies on the encoding suffix. Note that
10582 LC_ALL is set on the command line. */
10583 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10585 /* Check whether in the abbreviation of the second month, the second
10586 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10587 one byte long. This excludes the UTF-8 encoding. */
10588 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10589 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10590 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10591 /* Check whether the decimal separator is a comma.
10592 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10593 are nl_langinfo(RADIXCHAR) are both ".". */
10594 if (localeconv () ->decimal_point[0] != ',') return 1;
10600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10601 (eval $ac_link) 2>&5
10603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10606 # Handle native Windows specially, because there setlocale() interprets
10607 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10608 # "fr" or "fra" as "French" or "French_France.1252",
10609 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10610 # "ja" as "Japanese" or "Japanese_Japan.932",
10613 # Test for the native Windows locale name.
10614 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10615 gt_cv_locale_fr=French_France.1252
10618 gt_cv_locale_fr=none
10622 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10623 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10624 # configure script would override the LC_ALL setting. Likewise for
10625 # LC_CTYPE, which is also set at the beginning of the configure script.
10626 # Test for the usual locale name.
10627 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10628 gt_cv_locale_fr=fr_FR
10630 # Test for the locale name with explicit encoding suffix.
10631 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10632 gt_cv_locale_fr=fr_FR.ISO-8859-1
10634 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10635 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10636 gt_cv_locale_fr=fr_FR.ISO8859-1
10638 # Test for the HP-UX locale name.
10639 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10640 gt_cv_locale_fr=fr_FR.iso88591
10642 # Test for the Solaris 7 locale name.
10643 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10647 gt_cv_locale_fr=none
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10660 $as_echo "$gt_cv_locale_fr" >&6; }
10661 LOCALE_FR=$gt_cv_locale_fr
10675 GNULIB_RAWMEMCHR=0;
10678 GNULIB_STRCHRNUL=0;
10686 GNULIB_STRCASESTR=0;
10693 GNULIB_MBSCASECMP=0;
10694 GNULIB_MBSNCASECMP=0;
10695 GNULIB_MBSPCASECMP=0;
10696 GNULIB_MBSCASESTR=0;
10703 GNULIB_STRERROR_R=0;
10704 GNULIB_STRSIGNAL=0;
10705 GNULIB_STRVERSCMP=0;
10710 HAVE_DECL_MEMMEM=1;
10712 HAVE_DECL_MEMRCHR=1;
10717 HAVE_DECL_STRDUP=1;
10718 HAVE_DECL_STRNDUP=1;
10719 HAVE_DECL_STRNLEN=1;
10723 HAVE_DECL_STRTOK_R=1;
10724 HAVE_DECL_STRERROR_R=1;
10725 HAVE_DECL_STRSIGNAL=1;
10732 REPLACE_STRCASESTR=0;
10733 REPLACE_STRCHRNUL=0;
10734 REPLACE_STRERROR=0;
10735 REPLACE_STRERROR_R=0;
10739 REPLACE_STRSIGNAL=0;
10740 REPLACE_STRTOK_R=0;
10741 UNDEFINE_STRTOK_R=0;
10747 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10748 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10749 # irrelevant for anonymous mappings.
10750 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10751 if test "x$ac_cv_func_mmap" = x""yes; then :
10758 # Try to allow MAP_ANONYMOUS.
10759 gl_have_mmap_anonymous=no
10760 if test $gl_have_mmap = yes; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10762 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10766 #include <sys/mman.h>
10767 #ifdef MAP_ANONYMOUS
10768 I cannot identify this map
10772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10773 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10774 gl_have_mmap_anonymous=yes
10778 if test $gl_have_mmap_anonymous != yes; then
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10782 #include <sys/mman.h>
10784 I cannot identify this map
10788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10789 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10791 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10793 gl_have_mmap_anonymous=yes
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10799 $as_echo "$gl_have_mmap_anonymous" >&6; }
10800 if test $gl_have_mmap_anonymous = yes; then
10802 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10812 if test $HAVE_MEMCHR = 1; then
10813 # Detect platform-specific bugs in some versions of glibc:
10814 # memchr should not dereference anything with length 0
10815 # http://bugzilla.redhat.com/499689
10816 # memchr should not dereference overestimated length after a match
10817 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10818 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10819 # Assume that memchr works on platforms that lack mprotect.
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10821 $as_echo_n "checking whether memchr works... " >&6; }
10822 if test "${gl_cv_func_memchr_works+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10825 if test "$cross_compiling" = yes; then :
10826 gl_cv_func_memchr_works="guessing no"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 #include <string.h>
10832 #if HAVE_SYS_MMAN_H
10833 # include <fcntl.h>
10834 # include <unistd.h>
10835 # include <sys/types.h>
10836 # include <sys/mman.h>
10838 # define MAP_FILE 0
10847 char *fence = NULL;
10848 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10849 # if HAVE_MAP_ANONYMOUS
10850 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10852 # else /* !HAVE_MAP_ANONYMOUS */
10853 const int flags = MAP_FILE | MAP_PRIVATE;
10854 int fd = open ("/dev/zero", O_RDONLY, 0666);
10858 int pagesize = getpagesize ();
10860 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10862 if (two_pages != (char *)(-1)
10863 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10864 fence = two_pages + pagesize;
10869 if (memchr (fence, 0, 0))
10871 strcpy (fence - 9, "12345678");
10872 if (memchr (fence - 9, 0, 79) != fence - 1)
10874 if (memchr (fence - 1, 0, 3) != fence - 1)
10883 if ac_fn_c_try_run "$LINENO"; then :
10884 gl_cv_func_memchr_works=yes
10886 gl_cv_func_memchr_works=no
10888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10889 conftest.$ac_objext conftest.beam conftest.$ac_ext
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10894 $as_echo "$gl_cv_func_memchr_works" >&6; }
10895 if test "$gl_cv_func_memchr_works" != yes; then
10900 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10901 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10907 cat >>confdefs.h <<_ACEOF
10908 #define HAVE_DECL_MEMMEM $ac_have_decl
10915 for ac_func in memmem
10917 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10918 if test "x$ac_cv_func_memmem" = x""yes; then :
10919 cat >>confdefs.h <<_ACEOF
10920 #define HAVE_MEMMEM 1
10926 if test $ac_cv_func_memmem = yes; then
10932 if test $ac_cv_have_decl_memmem = no; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10936 $as_echo_n "checking whether memmem works... " >&6; }
10937 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 if test "$cross_compiling" = yes; then :
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 #ifdef __GNU_LIBRARY__
10945 #include <features.h>
10946 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10947 || __GLIBC_MINOR__ > 12)) \
10948 || (__GLIBC__ > 2)) \
10949 || defined __UCLIBC__
10952 #elif defined __CYGWIN__
10953 #include <cygwin/version.h>
10954 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10963 $EGREP "Lucky user" >/dev/null 2>&1; then :
10964 gl_cv_func_memmem_works_always="guessing yes"
10966 gl_cv_func_memmem_works_always="guessing no"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 #include <string.h> /* for memmem */
10976 #define P "_EF_BF_BD"
10977 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10978 #define NEEDLE P P P P P
10985 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10987 /* Check for empty needle behavior. */
10989 const char *haystack = "AAA";
10990 if (memmem (haystack, 3, NULL, 0) != haystack)
10999 if ac_fn_c_try_run "$LINENO"; then :
11000 gl_cv_func_memmem_works_always=yes
11002 gl_cv_func_memmem_works_always=no
11004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11005 conftest.$ac_objext conftest.beam conftest.$ac_ext
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11011 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11012 case "$gl_cv_func_memmem_works_always" in
11030 GNULIB_FPRINTF_POSIX=0;
11046 GNULIB_OBSTACK_PRINTF=0;
11047 GNULIB_OBSTACK_PRINTF_POSIX=0;
11052 GNULIB_PRINTF_POSIX=0;
11061 GNULIB_SPRINTF_POSIX=0;
11062 GNULIB_STDIO_H_NONBLOCKING=0;
11063 GNULIB_STDIO_H_SIGPIPE=0;
11065 GNULIB_VASPRINTF=0;
11070 GNULIB_VFPRINTF_POSIX=0;
11072 GNULIB_VPRINTF_POSIX=0;
11073 GNULIB_VSNPRINTF=0;
11074 GNULIB_VSPRINTF_POSIX=0;
11075 HAVE_DECL_FPURGE=1;
11076 HAVE_DECL_FSEEKO=1;
11077 HAVE_DECL_FTELLO=1;
11078 HAVE_DECL_GETDELIM=1;
11079 HAVE_DECL_GETLINE=1;
11080 HAVE_DECL_OBSTACK_PRINTF=1;
11081 HAVE_DECL_SNPRINTF=1;
11082 HAVE_DECL_VSNPRINTF=1;
11103 REPLACE_GETDELIM=0;
11105 REPLACE_OBSTACK_PRINTF=0;
11111 REPLACE_RENAMEAT=0;
11112 REPLACE_SNPRINTF=0;
11114 REPLACE_STDIO_READ_FUNCS=0;
11115 REPLACE_STDIO_WRITE_FUNCS=0;
11117 REPLACE_VASPRINTF=0;
11118 REPLACE_VDPRINTF=0;
11119 REPLACE_VFPRINTF=0;
11121 REPLACE_VSNPRINTF=0;
11122 REPLACE_VSPRINTF=0;
11127 GNULIB_PTHREAD_SIGMASK=0;
11129 GNULIB_SIGNAL_H_SIGPIPE=0;
11130 GNULIB_SIGPROCMASK=0;
11131 GNULIB_SIGACTION=0;
11132 HAVE_POSIX_SIGNALBLOCKING=1;
11133 HAVE_PTHREAD_SIGMASK=1;
11138 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11140 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11142 HAVE_SIGHANDLER_T=1;
11143 REPLACE_PTHREAD_SIGMASK=0;
11147 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11148 #include <signal.h>
11149 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11150 #include <sys/types.h>
11153 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_SIGSET_T 1
11159 gl_cv_type_sigset_t=yes
11161 gl_cv_type_sigset_t=no
11164 if test $gl_cv_type_sigset_t != yes; then
11168 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11169 if test "x$ac_cv_type_pid_t" = x""yes; then :
11173 cat >>confdefs.h <<_ACEOF
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11180 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11181 if test "${ac_cv_type_uid_t+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 #include <sys/types.h>
11189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11190 $EGREP "uid_t" >/dev/null 2>&1; then :
11191 ac_cv_type_uid_t=yes
11193 ac_cv_type_uid_t=no
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11199 $as_echo "$ac_cv_type_uid_t" >&6; }
11200 if test $ac_cv_type_uid_t = no; then
11202 $as_echo "#define uid_t int" >>confdefs.h
11205 $as_echo "#define gid_t int" >>confdefs.h
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11210 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11211 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 #include <stdbool.h>
11219 "error: bool is not defined"
11222 "error: false is not defined"
11225 "error: false is not 0"
11228 "error: true is not defined"
11231 "error: true is not 1"
11233 #ifndef __bool_true_false_are_defined
11234 "error: __bool_true_false_are_defined is not defined"
11237 struct s { _Bool s: 1; _Bool t; } s;
11239 char a[true == 1 ? 1 : -1];
11240 char b[false == 0 ? 1 : -1];
11241 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11242 char d[(bool) 0.5 == true ? 1 : -1];
11243 /* See body of main program for 'e'. */
11244 char f[(_Bool) 0.0 == false ? 1 : -1];
11246 char h[sizeof (_Bool)];
11247 char i[sizeof s.t];
11248 enum { j = false, k = true, l = false * true, m = true * 256 };
11249 /* The following fails for
11250 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11252 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11253 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11254 /* Catch a bug in an HP-UX C compiler. See
11255 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11256 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11268 /* Refer to every declared value, to avoid compiler optimizations. */
11269 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11270 + !m + !n + !o + !p + !q + !pq);
11276 if ac_fn_c_try_compile "$LINENO"; then :
11277 ac_cv_header_stdbool_h=yes
11279 ac_cv_header_stdbool_h=no
11281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11284 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11285 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11286 if test "x$ac_cv_type__Bool" = x""yes; then :
11288 cat >>confdefs.h <<_ACEOF
11289 #define HAVE__BOOL 1
11298 HAVE_MAX_ALIGN_T=1;
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11303 $as_echo_n "checking for wchar_t... " >&6; }
11304 if test "${gt_cv_c_wchar_t+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 #include <stddef.h>
11310 wchar_t foo = (wchar_t)'\0';
11319 if ac_fn_c_try_compile "$LINENO"; then :
11320 gt_cv_c_wchar_t=yes
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11327 $as_echo "$gt_cv_c_wchar_t" >&6; }
11328 if test $gt_cv_c_wchar_t = yes; then
11330 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11345 if test $gl_cv_have_include_next = yes; then
11346 gl_cv_next_string_h='<'string.h'>'
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11349 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11350 if test "${gl_cv_next_string_h+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 #include <string.h>
11361 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11362 *) gl_absname_cpp="$ac_cpp" ;;
11367 gl_dirsep_regex='[/\\]'
11370 gl_dirsep_regex='\/'
11373 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11374 gl_header_literal_regex=`echo 'string.h' \
11375 |
sed -e "$gl_make_literal_regex_sed"`
11376 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11377 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11383 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11384 sed -n "$gl_absolute_header_sed"`
11386 gl_header=$gl_cv_absolute_string_h
11387 gl_cv_next_string_h='"'$gl_header'"'
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11392 $as_echo "$gl_cv_next_string_h" >&6; }
11394 NEXT_STRING_H=$gl_cv_next_string_h
11396 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11397 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11398 gl_next_as_first_directive='<'string.h'>'
11400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11401 gl_next_as_first_directive=$gl_cv_next_string_h
11403 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11410 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
11411 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11413 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11414 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11415 $as_echo_n "(cached) " >&6
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11419 #include <string.h>
11430 if ac_fn_c_try_compile "$LINENO"; then :
11431 eval "$as_gl_Symbol=yes"
11433 eval "$as_gl_Symbol=no"
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 eval ac_res=\$$as_gl_Symbol
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11439 $as_echo "$ac_res" >&6; }
11440 eval as_val=\$$as_gl_Symbol
11441 if test "x$as_val" = x""yes; then :
11442 cat >>confdefs.h <<_ACEOF
11443 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11446 eval ac_cv_have_decl_$gl_func=yes
11454 if test "$gl_cv_func_memchr_works" != yes; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11458 $as_echo_n "checking whether strstr works... " >&6; }
11459 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11462 if test "$cross_compiling" = yes; then :
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 #ifdef __GNU_LIBRARY__
11467 #include <features.h>
11468 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11469 || defined __UCLIBC__
11472 #elif defined __CYGWIN__
11473 #include <cygwin/version.h>
11474 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11483 $EGREP "Lucky user" >/dev/null 2>&1; then :
11484 gl_cv_func_strstr_works_always="guessing yes"
11486 gl_cv_func_strstr_works_always="guessing no"
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11495 #include <string.h> /* for strstr */
11496 #define P "_EF_BF_BD"
11497 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11498 #define NEEDLE P P P P P
11503 return !!strstr (HAYSTACK, NEEDLE);
11509 if ac_fn_c_try_run "$LINENO"; then :
11510 gl_cv_func_strstr_works_always=yes
11512 gl_cv_func_strstr_works_always=no
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11515 conftest.$ac_objext conftest.beam conftest.$ac_ext
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11521 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11522 case "$gl_cv_func_strstr_works_always" in
11530 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11531 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_DECL_STRTOK_R $ac_have_decl
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11542 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11543 if test "${ac_cv_header_stat_broken+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548 #include <sys/types.h>
11549 #include <sys/stat.h>
11551 #if defined S_ISBLK && defined S_IFDIR
11552 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11555 #if defined S_ISBLK && defined S_IFCHR
11556 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11559 #if defined S_ISLNK && defined S_IFREG
11560 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11563 #if defined S_ISSOCK && defined S_IFREG
11564 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11568 if ac_fn_c_try_compile "$LINENO"; then :
11569 ac_cv_header_stat_broken=no
11571 ac_cv_header_stat_broken=yes
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11576 $as_echo "$ac_cv_header_stat_broken" >&6; }
11577 if test $ac_cv_header_stat_broken = yes; then
11579 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11585 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11586 if test "x$ac_cv_type_mode_t" = x""yes; then :
11590 cat >>confdefs.h <<_ACEOF
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11597 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11598 if test -z "$MKDIR_P"; then
11599 if test "${ac_cv_path_mkdir+set}" = set; then :
11600 $as_echo_n "(cached) " >&6
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11606 test -z "$as_dir" && as_dir=.
11607 for ac_prog in mkdir gmkdir; do
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11610 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11611 'mkdir (GNU coreutils) '* | \
11612 'mkdir (coreutils) '* | \
11613 'mkdir (fileutils) '4.1*)
11614 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11624 if test "${ac_cv_path_mkdir+set}" = set; then
11625 MKDIR_P="$ac_cv_path_mkdir -p"
11627 # As a last resort, use the slow shell script. Don't cache a
11628 # value for MKDIR_P within a source directory, because that will
11629 # break other packages using the cache if that directory is
11630 # removed, or if the value is a relative name.
11631 test -d ./--version && rmdir ./--version
11632 MKDIR_P="$ac_install_sh -d"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11636 $as_echo "$MKDIR_P" >&6; }
11656 if test $gl_cv_have_include_next = yes; then
11657 gl_cv_next_sys_types_h='<'sys/types.h'>'
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11660 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11661 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 #include <sys/types.h>
11672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11673 *) gl_absname_cpp="$ac_cpp" ;;
11678 gl_dirsep_regex='[/\\]'
11681 gl_dirsep_regex='\/'
11684 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11685 gl_header_literal_regex=`echo 'sys/types.h' \
11686 |
sed -e "$gl_make_literal_regex_sed"`
11687 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11688 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11694 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11695 sed -n "$gl_absolute_header_sed"`
11697 gl_header=$gl_cv_absolute_sys_types_h
11698 gl_cv_next_sys_types_h='"'$gl_header'"'
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11703 $as_echo "$gl_cv_next_sys_types_h" >&6; }
11705 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11707 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11709 gl_next_as_first_directive='<'sys/types.h'>'
11711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11712 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11714 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11728 GNULIB_NANOSLEEP=0;
11733 HAVE_DECL_LOCALTIME_R=1;
11737 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11738 REPLACE_MKTIME=GNULIB_PORTCHECK;
11739 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11740 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11742 : ${GNULIB_GETTIMEOFDAY=0};
11744 REPLACE_LOCALTIME=0;
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11749 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11750 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11760 static struct timespec x; x.tv_sec = x.tv_nsec;
11765 if ac_fn_c_try_compile "$LINENO"; then :
11766 gl_cv_sys_struct_timespec_in_time_h=yes
11768 gl_cv_sys_struct_timespec_in_time_h=no
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11773 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11775 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11776 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11777 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11778 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
11779 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11780 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11783 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11784 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 #include <sys/time.h>
11794 static struct timespec x; x.tv_sec = x.tv_nsec;
11799 if ac_fn_c_try_compile "$LINENO"; then :
11800 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11802 gl_cv_sys_struct_timespec_in_sys_time_h=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11807 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11808 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11809 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11812 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11813 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <pthread.h>
11823 static struct timespec x; x.tv_sec = x.tv_nsec;
11828 if ac_fn_c_try_compile "$LINENO"; then :
11829 gl_cv_sys_struct_timespec_in_pthread_h=yes
11831 gl_cv_sys_struct_timespec_in_pthread_h=no
11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11836 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11837 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11838 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11841 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11842 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11843 $as_echo_n "(cached) " >&6
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <unistd.h>
11852 static struct timespec x; x.tv_sec = x.tv_nsec;
11857 if ac_fn_c_try_compile "$LINENO"; then :
11858 gl_cv_sys_struct_timespec_in_unistd_h=yes
11860 gl_cv_sys_struct_timespec_in_unistd_h=no
11862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11865 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11866 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11867 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11888 if test $gl_cv_have_include_next = yes; then
11889 gl_cv_next_time_h='<'time.h'>'
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11892 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11893 if test "${gl_cv_next_time_h+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11904 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11905 *) gl_absname_cpp="$ac_cpp" ;;
11910 gl_dirsep_regex='[/\\]'
11913 gl_dirsep_regex='\/'
11916 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11917 gl_header_literal_regex=`echo 'time.h' \
11918 |
sed -e "$gl_make_literal_regex_sed"`
11919 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11926 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11927 sed -n "$gl_absolute_header_sed"`
11929 gl_header=$gl_cv_absolute_time_h
11930 gl_cv_next_time_h='"'$gl_header'"'
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11935 $as_echo "$gl_cv_next_time_h" >&6; }
11937 NEXT_TIME_H=$gl_cv_next_time_h
11939 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11941 gl_next_as_first_directive='<'time.h'>'
11943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11944 gl_next_as_first_directive=$gl_cv_next_time_h
11946 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11955 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11956 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11959 gl_cv_header_wchar_h_correct_inline=yes
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 #define wcstod renamed_wcstod
11964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11967 included before <wchar.h>. */
11968 #include <stddef.h>
11972 extern int zero (void);
11973 int main () { return zero(); }
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11977 (eval $ac_compile) 2>&5
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; }; then
11981 mv conftest.$ac_objext conftest1.$ac_objext
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 #define wcstod renamed_wcstod
11986 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11988 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11989 included before <wchar.h>. */
11990 #include <stddef.h>
11994 int zero (void) { return 0; }
11997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11998 (eval $ac_compile) 2>&5
12000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12001 test $ac_status = 0; }; then
12002 mv conftest.$ac_objext conftest2.$ac_objext
12003 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12006 gl_cv_header_wchar_h_correct_inline=no
12010 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12014 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12015 if test $gl_cv_header_wchar_h_correct_inline = no; then
12016 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12017 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12018 C99 mode. You have four options:
12019 - Add the flag -fgnu89-inline to CC and reconfigure, or
12020 - Fix your include files, using parts of
12021 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12022 - Use a gcc version older than 4.3, or
12023 - Don't use the flags -std=c99 or -std=gnu99.
12024 Configuration aborted." "$LINENO" 5
12031 if test $ac_cv_header_features_h = yes; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12040 $as_echo_n "checking for wint_t... " >&6; }
12041 if test "${gt_cv_c_wint_t+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12049 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12050 before <wchar.h>. */
12051 #include <stddef.h>
12055 wint_t foo = (wchar_t)'\0';
12064 if ac_fn_c_try_compile "$LINENO"; then :
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12072 $as_echo "$gt_cv_c_wint_t" >&6; }
12073 if test $gt_cv_c_wint_t = yes; then
12075 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12084 GNULIB_TOWCTRANS=0;
12088 REPLACE_ISWBLANK=0;
12094 GL_COND_LIBTOOL_TRUE=
12095 GL_COND_LIBTOOL_FALSE='#'
12097 GL_COND_LIBTOOL_TRUE='#'
12098 GL_COND_LIBTOOL_FALSE=
12101 gl_cond_libtool=false
12104 gl_m4_base='import/m4'
12114 gl_source_base='import'
12117 if test $ac_cv_func_alloca_works = no; then
12121 # Define an additional variable used in the Makefile substitution.
12122 if test $ac_cv_working_alloca_h = yes; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12124 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12125 if test "${gl_cv_rpl_alloca+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12132 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12138 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12139 gl_cv_rpl_alloca=yes
12141 gl_cv_rpl_alloca=no
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12148 $as_echo "$gl_cv_rpl_alloca" >&6; }
12149 if test $gl_cv_rpl_alloca = yes; then
12151 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12161 if test -n "$ALLOCA_H"; then
12162 GL_GENERATE_ALLOCA_H_TRUE=
12163 GL_GENERATE_ALLOCA_H_FALSE='#'
12165 GL_GENERATE_ALLOCA_H_TRUE='#'
12166 GL_GENERATE_ALLOCA_H_FALSE=
12173 if test $ac_cv_func_canonicalize_file_name = no; then
12174 HAVE_CANONICALIZE_FILE_NAME=0
12175 if test $ac_cv_func_realpath = no; then
12178 case "$gl_cv_func_realpath_works" in
12180 *) REPLACE_REALPATH=1 ;;
12184 case "$gl_cv_func_realpath_works" in
12188 REPLACE_CANONICALIZE_FILE_NAME=1
12194 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12203 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12208 cat >>confdefs.h <<_ACEOF
12209 #define GNULIB_CANONICALIZE_LGPL 1
12218 GNULIB_CANONICALIZE_FILE_NAME=1
12224 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12239 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12254 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12259 if test "x$datarootdir" = x; then
12260 datarootdir='${datadir}'
12263 if test "x$docdir" = x; then
12264 docdir='${datarootdir}/doc/${PACKAGE}'
12267 if test "x$htmldir" = x; then
12268 htmldir='${docdir}'
12271 if test "x$dvidir" = x; then
12275 if test "x$pdfdir" = x; then
12279 if test "x$psdir" = x; then
12283 if test "x$lispdir" = x; then
12284 lispdir='${datarootdir}/emacs/site-lisp'
12287 if test "x$localedir" = x; then
12288 localedir='${datarootdir}/locale'
12291 if test "x$runstatedir" = x; then
12292 runstatedir='${localstatedir}/run'
12296 pkglibexecdir='${libexecdir}/${PACKAGE}'
12311 if test $gl_cv_have_include_next = yes; then
12312 gl_cv_next_dirent_h='<'dirent.h'>'
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12315 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12316 if test "${gl_cv_next_dirent_h+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12320 if test $ac_cv_header_dirent_h = yes; then
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327 #include <dirent.h>
12330 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12331 *) gl_absname_cpp="$ac_cpp" ;;
12336 gl_dirsep_regex='[/\\]'
12339 gl_dirsep_regex='\/'
12342 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12343 gl_header_literal_regex=`echo 'dirent.h' \
12344 |
sed -e "$gl_make_literal_regex_sed"`
12345 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12346 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12352 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12353 sed -n "$gl_absolute_header_sed"`
12355 gl_header=$gl_cv_absolute_dirent_h
12356 gl_cv_next_dirent_h='"'$gl_header'"'
12358 gl_cv_next_dirent_h='<'dirent.h'>'
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12364 $as_echo "$gl_cv_next_dirent_h" >&6; }
12366 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12368 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12370 gl_next_as_first_directive='<'dirent.h'>'
12372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12373 gl_next_as_first_directive=$gl_cv_next_dirent_h
12375 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12380 if test $ac_cv_header_dirent_h = yes; then
12388 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12389 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12391 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12392 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12393 $as_echo_n "(cached) " >&6
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 #include <dirent.h>
12408 if ac_fn_c_try_compile "$LINENO"; then :
12409 eval "$as_gl_Symbol=yes"
12411 eval "$as_gl_Symbol=no"
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 eval ac_res=\$$as_gl_Symbol
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12417 $as_echo "$ac_res" >&6; }
12418 eval as_val=\$$as_gl_Symbol
12419 if test "x$as_val" = x""yes; then :
12420 cat >>confdefs.h <<_ACEOF
12421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12424 eval ac_cv_have_decl_$gl_func=yes
12434 for ac_func in dirfd
12436 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12437 if test "x$ac_cv_func_dirfd" = x""yes; then :
12438 cat >>confdefs.h <<_ACEOF
12439 #define HAVE_DIRFD 1
12445 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12446 #include <dirent.h>
12448 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12454 cat >>confdefs.h <<_ACEOF
12455 #define HAVE_DECL_DIRFD $ac_have_decl
12458 if test $ac_cv_have_decl_dirfd = no; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12463 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12464 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 #include <sys/types.h>
12471 #include <dirent.h>
12473 dirent_header_defines_dirfd
12476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12477 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12478 gl_cv_func_dirfd_macro=yes
12480 gl_cv_func_dirfd_macro=no
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12486 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12488 # Use the replacement only if we have no function or macro with that name.
12489 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12490 if test $ac_cv_have_decl_dirfd = yes; then
12491 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12496 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12505 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12509 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12510 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12514 dirfd_save_CFLAGS=$CFLAGS
12515 for ac_expr in d_fd dd_fd; do
12517 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 #include <sys/types.h>
12522 #include <dirent.h>
12526 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12531 if ac_fn_c_try_compile "$LINENO"; then :
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 CFLAGS=$dirfd_save_CFLAGS
12537 test "$dir_fd_found" = yes && break
12539 test "$dir_fd_found" = yes || ac_expr=no_such_member
12541 gl_cv_sys_dir_fd_member_name=$ac_expr
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12546 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12547 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12549 cat >>confdefs.h <<_ACEOF
12550 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12568 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12579 $as_echo_n "checking whether // is distinct from /... " >&6; }
12580 if test "${gl_cv_double_slash_root+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12583 if test x"$cross_compiling" = xyes ; then
12584 # When cross-compiling, there is no way to tell whether // is special
12585 # short of a list of hosts. However, the only known hosts to date
12586 # that have a distinct // are Apollo DomainOS (too old to port to),
12587 # Cygwin, and z/OS. If anyone knows of another system for which // has
12588 # special semantics and is distinct from /, please report it to
12589 # <bug-gnulib@gnu.org>.
12591 *-cygwin | i370-ibm-openedition)
12592 gl_cv_double_slash_root=yes ;;
12594 # Be optimistic and assume that / and // are the same when we
12596 gl_cv_double_slash_root='unknown, assuming no' ;;
12599 set x `ls -di / // 2>/dev
/null
`
12600 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12601 gl_cv_double_slash_root=no
12603 gl_cv_double_slash_root=yes
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12608 $as_echo "$gl_cv_double_slash_root" >&6; }
12609 if test "$gl_cv_double_slash_root" = yes; then
12611 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12621 REPLACE_FLOAT_LDBL=0
12623 aix* | beos* | openbsd* | mirbsd* | irix*)
12627 case "$host_cpu" in
12632 # On x86_64 systems, the C compiler may still be generating
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12641 $EGREP "yes" >/dev/null 2>&1; then :
12652 case "$host_cpu" in
12660 aix* | freebsd* | linux*)
12661 if test -n "$FLOAT_H"; then
12662 REPLACE_FLOAT_LDBL=1
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12669 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12670 if test "${gl_cv_func_itold_works+set}" = set; then :
12671 $as_echo_n "(cached) " >&6
12674 if test "$cross_compiling" = yes; then :
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 #if defined __LP64__ || defined __arch64__
12683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12684 $EGREP "yes" >/dev/null 2>&1; then :
12685 gl_cv_func_itold_works="guessing no"
12687 gl_cv_func_itold_works="guessing yes"
12692 *) gl_cv_func_itold_works="guessing yes" ;;
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12700 volatile long double ld;
12709 if ac_fn_c_try_run "$LINENO"; then :
12710 gl_cv_func_itold_works=yes
12712 gl_cv_func_itold_works=no
12714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12715 conftest.$ac_objext conftest.beam conftest.$ac_ext
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12721 $as_echo "$gl_cv_func_itold_works" >&6; }
12722 case "$gl_cv_func_itold_works" in
12729 if test -n "$FLOAT_H"; then
12738 if test $gl_cv_have_include_next = yes; then
12739 gl_cv_next_float_h='<'float.h'>'
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12742 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12743 if test "${gl_cv_next_float_h+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12754 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12755 *) gl_absname_cpp="$ac_cpp" ;;
12760 gl_dirsep_regex='[/\\]'
12763 gl_dirsep_regex='\/'
12766 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12767 gl_header_literal_regex=`echo 'float.h' \
12768 |
sed -e "$gl_make_literal_regex_sed"`
12769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12776 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12777 sed -n "$gl_absolute_header_sed"`
12779 gl_header=$gl_cv_absolute_float_h
12780 gl_cv_next_float_h='"'$gl_header'"'
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12785 $as_echo "$gl_cv_next_float_h" >&6; }
12787 NEXT_FLOAT_H=$gl_cv_next_float_h
12789 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12791 gl_next_as_first_directive='<'float.h'>'
12793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12794 gl_next_as_first_directive=$gl_cv_next_float_h
12796 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12803 if test -n "$FLOAT_H"; then
12804 GL_GENERATE_FLOAT_H_TRUE=
12805 GL_GENERATE_FLOAT_H_FALSE='#'
12807 GL_GENERATE_FLOAT_H_TRUE='#'
12808 GL_GENERATE_FLOAT_H_FALSE=
12813 if test $REPLACE_FLOAT_LDBL = 1; then
12822 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12825 if test $REPLACE_ITOLD = 1; then
12834 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12843 gl_fnmatch_required_lowercase=`
12844 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
12846 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12848 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12849 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12850 $as_echo_n "(cached) " >&6
12852 if test $gl_fnmatch_required = GNU; then
12853 gl_fnmatch_gnu_start=
12854 gl_fnmatch_gnu_end=
12856 gl_fnmatch_gnu_start='#if 0'
12857 gl_fnmatch_gnu_end='#endif'
12859 if test "$cross_compiling" = yes; then :
12860 eval "$gl_fnmatch_cache_var=\"guessing no\""
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 #include <fnmatch.h>
12866 y (char const *pattern, char const *string, int flags)
12868 return fnmatch (pattern, string, flags) == 0;
12871 n (char const *pattern, char const *string, int flags)
12873 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12879 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12880 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12881 static char const A_1[] = { 'A' - 1, 0 };
12882 static char const A01[] = { 'A' + 1, 0 };
12883 static char const a_1[] = { 'a' - 1, 0 };
12884 static char const a01[] = { 'a' + 1, 0 };
12885 static char const bs_1[] = { '\\\\' - 1, 0 };
12886 static char const bs01[] = { '\\\\' + 1, 0 };
12888 if (!n ("a*", "", 0))
12890 if (!y ("a*", "abc", 0))
12892 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12894 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12896 if (!y ("a\\\\bc", "abc", 0))
12898 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12900 if (!y ("*x", ".x", 0))
12902 if (!n ("*x", ".x", FNM_PERIOD))
12904 if (!y (Apat, "\\\\", 0))
12906 if (!y (Apat, "A", 0))
12908 if (!y (apat, "\\\\", 0))
12910 if (!y (apat, "a", 0))
12912 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12914 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12916 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12918 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12920 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12922 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12924 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12926 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12928 $gl_fnmatch_gnu_start
12929 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12931 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12933 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12935 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12937 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12939 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12941 $gl_fnmatch_gnu_end
12948 if ac_fn_c_try_run "$LINENO"; then :
12949 eval "$gl_fnmatch_cache_var=yes"
12951 eval "$gl_fnmatch_cache_var=no"
12953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12954 conftest.$ac_objext conftest.beam conftest.$ac_ext
12959 eval ac_res=\$$gl_fnmatch_cache_var
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12961 $as_echo "$ac_res" >&6; }
12962 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12963 if test "$gl_fnmatch_result" = yes; then
12964 rm -f "$gl_source_base/fnmatch.h"
12966 FNMATCH_H=fnmatch.h
12969 if test -n "$FNMATCH_H"; then
12970 GL_GENERATE_FNMATCH_H_TRUE=
12971 GL_GENERATE_FNMATCH_H_FALSE='#'
12973 GL_GENERATE_FNMATCH_H_TRUE='#'
12974 GL_GENERATE_FNMATCH_H_FALSE=
12978 if test -n "$FNMATCH_H"; then
12987 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12991 cat >>confdefs.h <<_ACEOF
12992 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12996 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12998 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13004 cat >>confdefs.h <<_ACEOF
13005 #define HAVE_DECL_ISBLANK $ac_have_decl
13017 if test -n "$FNMATCH_H"; then
13026 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13030 cat >>confdefs.h <<_ACEOF
13031 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13035 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13037 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define HAVE_DECL_ISBLANK $ac_have_decl
13055 if test $gl_cv_func_frexp_no_libm = no; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13057 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13058 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13071 int e; return frexp (x, &e) > 0;
13076 if ac_fn_c_try_link "$LINENO"; then :
13077 gl_cv_func_frexp_in_libm=yes
13079 gl_cv_func_frexp_in_libm=no
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13087 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13088 if test $gl_cv_func_frexp_in_libm = yes; then
13092 if test $gl_cv_func_frexp_no_libm = yes \
13093 || test $gl_cv_func_frexp_in_libm = yes; then
13095 LIBS="$LIBS $FREXP_LIBM"
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13100 $as_echo_n "checking whether frexp works... " >&6; }
13101 if test "${gl_cv_func_frexp_works+set}" = set; then :
13102 $as_echo_n "(cached) " >&6
13105 if test "$cross_compiling" = yes; then :
13107 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13108 *) gl_cv_func_frexp_works="guessing yes";;
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13117 #include <string.h>
13118 #if HAVE_DECL_ALARM
13119 # include <signal.h>
13120 # include <unistd.h>
13122 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13123 ICC 10.0 has a bug when optimizing the expression -zero.
13124 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13125 to PowerPC on Mac OS X 10.5. */
13126 #if defined __hpux || defined __sgi || defined __ICC
13128 compute_minus_zero (void)
13130 return -DBL_MIN * DBL_MIN;
13132 # define minus_zero compute_minus_zero ()
13134 double minus_zero = -0.0;
13142 #if HAVE_DECL_ALARM
13143 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13144 number. Let the test fail in this case. */
13145 signal (SIGALRM, SIG_DFL);
13148 /* Test on denormalized numbers. */
13149 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13154 double y = frexp (x, &exp);
13155 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13156 On NetBSD: y = 0.75. Correct: y = 0.5. */
13160 /* Test on infinite numbers. */
13164 double y = frexp (x, &exp);
13168 /* Test on negative zero. */
13172 double y = frexp (x, &exp);
13173 if (memcmp (&y, &x, sizeof x))
13179 if ac_fn_c_try_run "$LINENO"; then :
13180 gl_cv_func_frexp_works=yes
13182 gl_cv_func_frexp_works=no
13184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13185 conftest.$ac_objext conftest.beam conftest.$ac_ext
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13191 $as_echo "$gl_cv_func_frexp_works" >&6; }
13194 case "$gl_cv_func_frexp_works" in
13195 *yes) gl_func_frexp=yes ;;
13196 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13201 if test $gl_func_frexp = yes; then
13203 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13208 if test $gl_func_frexp != yes; then
13217 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13231 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13241 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13243 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13251 if test $HAVE_DECL_FREXPL = 1; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13254 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13255 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13266 int e; return frexpl (x, &e) > 0;
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 gl_cv_func_frexpl_no_libm=yes
13274 gl_cv_func_frexpl_no_libm=no
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13281 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13283 if test $gl_cv_func_frexpl_no_libm = no; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13285 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13286 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13299 int e; return frexpl (x, &e) > 0;
13304 if ac_fn_c_try_link "$LINENO"; then :
13305 gl_cv_func_frexpl_in_libm=yes
13307 gl_cv_func_frexpl_in_libm=no
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13315 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13316 if test $gl_cv_func_frexpl_in_libm = yes; then
13320 if test $gl_cv_func_frexpl_no_libm = yes \
13321 || test $gl_cv_func_frexpl_in_libm = yes; then
13323 LIBS="$LIBS $FREXPL_LIBM"
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13327 $as_echo_n "checking whether frexpl works... " >&6; }
13328 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13332 if test "$cross_compiling" = yes; then :
13335 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13336 gl_cv_func_frexpl_works="guessing no";;
13337 *) gl_cv_func_frexpl_works="guessing yes";;
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13346 /* Override the values of <float.h>, like done in float.in.h. */
13347 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13348 # undef LDBL_MIN_EXP
13349 # define LDBL_MIN_EXP (-16381)
13351 #if defined __i386__ && defined __FreeBSD__
13352 # undef LDBL_MIN_EXP
13353 # define LDBL_MIN_EXP (-16381)
13355 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13356 # undef LDBL_MIN_EXP
13357 # define LDBL_MIN_EXP DBL_MIN_EXP
13359 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13360 # if defined __GNUC__
13361 # undef LDBL_MIN_EXP
13362 # define LDBL_MIN_EXP DBL_MIN_EXP
13369 long double frexpl (long double, int *);
13373 volatile long double x;
13374 /* Test on finite numbers that fails on AIX 5.1. */
13382 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13383 function returns an invalid (incorrectly normalized) value: it returns
13384 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13385 but the correct result is
13386 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13390 long double y = frexpl (x, &exp);
13391 if (!(exp == 1 && y == 0.505L))
13394 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13395 LDBL_MAX_EXP = 16384.
13396 In the loop end test, we test x against Infinity, rather than comparing
13397 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13400 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13411 /* Test on denormalized numbers. */
13414 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13419 long double y = frexpl (x, &exp);
13420 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13421 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13422 if (exp != LDBL_MIN_EXP - 1)
13426 /* Test on infinite numbers. */
13430 long double y = frexpl (x, &exp);
13437 if ac_fn_c_try_run "$LINENO"; then :
13438 gl_cv_func_frexpl_works=yes
13440 gl_cv_func_frexpl_works=no
13442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13443 conftest.$ac_objext conftest.beam conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13449 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13452 case "$gl_cv_func_frexpl_works" in
13453 *yes) gl_func_frexpl=yes ;;
13454 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13459 if test $gl_func_frexpl = yes; then
13461 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13465 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13466 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13468 FREXPL_LIBM="$FREXP_LIBM"
13475 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13484 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13498 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13508 gl_gettimeofday_timezone=void
13509 if test $ac_cv_func_gettimeofday != yes; then
13510 HAVE_GETTIMEOFDAY=0
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13516 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13517 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13520 if test "$cross_compiling" = yes; then :
13521 # When cross-compiling:
13523 # Guess all is fine on glibc systems.
13524 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13525 # If we don't know, assume the worst.
13526 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <string.h>
13533 #include <sys/time.h>
13535 #include <stdlib.h>
13543 struct tm saved_lt;
13545 lt = localtime (&t);
13547 gettimeofday (&tv, NULL);
13548 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13554 if ac_fn_c_try_run "$LINENO"; then :
13555 gl_cv_func_gettimeofday_clobber=no
13557 gl_cv_func_gettimeofday_clobber=yes
13559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13560 conftest.$ac_objext conftest.beam conftest.$ac_ext
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13565 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13567 case "$gl_cv_func_gettimeofday_clobber" in
13569 REPLACE_GETTIMEOFDAY=1
13572 REPLACE_LOCALTIME=1
13575 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13581 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13582 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 #include <sys/time.h>
13589 int gettimeofday (struct timeval *restrict, void *restrict);
13594 /* glibc uses struct timezone * rather than the POSIX void *
13595 if _GNU_SOURCE is defined. However, since the only portable
13596 use of gettimeofday uses NULL as the second parameter, and
13597 since the glibc definition is actually more typesafe, it is
13598 not worth wrapping this to get a compliant signature. */
13599 int (*f) (struct timeval *restrict, void *restrict)
13602 return !(x | c.tv_sec | c.tv_usec);
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609 gl_cv_func_gettimeofday_posix_signature=yes
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #include <sys/time.h>
13614 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13624 if ac_fn_c_try_compile "$LINENO"; then :
13625 gl_cv_func_gettimeofday_posix_signature=almost
13627 gl_cv_func_gettimeofday_posix_signature=no
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13634 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13635 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13636 gl_gettimeofday_timezone='struct timezone'
13637 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13638 REPLACE_GETTIMEOFDAY=1
13640 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13641 REPLACE_GETTIMEOFDAY=1
13646 cat >>confdefs.h <<_ACEOF
13647 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13651 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13660 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13663 for ac_header in sys/timeb.h
13665 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_SYS_TIMEB_H 1
13675 for ac_func in _ftime
13677 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13678 if test "x$ac_cv_func__ftime" = x""yes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE__FTIME 1
13693 GNULIB_GETTIMEOFDAY=1
13699 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
13709 if test -n "$STDINT_H"; then
13710 PRIPTR_PREFIX='"l"'
13712 for glpfx in '' l ll I64; do
13714 '') gltype1='int';;
13715 l) gltype1='long int';;
13716 ll) gltype1='long long int';;
13717 I64) gltype1='__int64';;
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 #include <stdint.h>
13722 extern intptr_t foo;
13723 extern $gltype1 foo;
13732 if ac_fn_c_try_compile "$LINENO"; then :
13733 PRIPTR_PREFIX='"'$glpfx'"'
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 test -n "$PRIPTR_PREFIX" && break
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13743 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13744 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 /* Work also in C++ mode. */
13750 #define __STDC_LIMIT_MACROS 1
13752 /* Work if build is not clean. */
13753 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13755 #include <limits.h>
13757 #include <stdint.h>
13760 #if defined INT32_MAX && defined INTMAX_MAX
13761 #define CONDITION (INT32_MAX < INTMAX_MAX)
13762 #elif HAVE_LONG_LONG_INT
13763 #define CONDITION (sizeof (int) < sizeof (long long int))
13765 #define CONDITION 0
13767 int test[CONDITION ? 1 : -1];
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13779 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13784 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13785 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13786 INT32_MAX_LT_INTMAX_MAX=1;
13788 INT32_MAX_LT_INTMAX_MAX=0;
13792 if test $APPLE_UNIVERSAL_BUILD = 0; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13795 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13796 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13801 /* Work also in C++ mode. */
13802 #define __STDC_LIMIT_MACROS 1
13804 /* Work if build is not clean. */
13805 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13807 #include <limits.h>
13809 #include <stdint.h>
13812 #if defined INT64_MAX
13813 #define CONDITION (INT64_MAX == LONG_MAX)
13814 #elif HAVE_LONG_LONG_INT
13815 #define CONDITION (sizeof (long long int) == sizeof (long int))
13817 #define CONDITION 0
13819 int test[CONDITION ? 1 : -1];
13828 if ac_fn_c_try_compile "$LINENO"; then :
13829 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13831 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13836 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13837 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13838 INT64_MAX_EQ_LONG_MAX=1;
13840 INT64_MAX_EQ_LONG_MAX=0;
13845 INT64_MAX_EQ_LONG_MAX=-1
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13849 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13850 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 /* Work also in C++ mode. */
13856 #define __STDC_LIMIT_MACROS 1
13858 /* Work if build is not clean. */
13859 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13861 #include <limits.h>
13863 #include <stdint.h>
13866 #if defined UINT32_MAX && defined UINTMAX_MAX
13867 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13868 #elif HAVE_LONG_LONG_INT
13869 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13871 #define CONDITION 0
13873 int test[CONDITION ? 1 : -1];
13882 if ac_fn_c_try_compile "$LINENO"; then :
13883 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13885 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13890 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13891 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13892 UINT32_MAX_LT_UINTMAX_MAX=1;
13894 UINT32_MAX_LT_UINTMAX_MAX=0;
13898 if test $APPLE_UNIVERSAL_BUILD = 0; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13901 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13902 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 /* Work also in C++ mode. */
13908 #define __STDC_LIMIT_MACROS 1
13910 /* Work if build is not clean. */
13911 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13913 #include <limits.h>
13915 #include <stdint.h>
13918 #if defined UINT64_MAX
13919 #define CONDITION (UINT64_MAX == ULONG_MAX)
13920 #elif HAVE_LONG_LONG_INT
13921 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13923 #define CONDITION 0
13925 int test[CONDITION ? 1 : -1];
13934 if ac_fn_c_try_compile "$LINENO"; then :
13935 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13937 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13942 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13943 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13944 UINT64_MAX_EQ_ULONG_MAX=1;
13946 UINT64_MAX_EQ_ULONG_MAX=0;
13951 UINT64_MAX_EQ_ULONG_MAX=-1
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13959 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13960 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13961 $as_echo_n "(cached) " >&6
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13969 # define isnand(x) __builtin_isnan ((double)(x))
13972 # define isnand(x) isnan ((double)(x))
13983 if ac_fn_c_try_link "$LINENO"; then :
13984 gl_cv_func_isnand_no_libm=yes
13986 gl_cv_func_isnand_no_libm=no
13988 rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13993 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13995 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13996 if test $gl_cv_func_isnand_no_libm = yes; then
13998 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14002 if test $gl_func_isnand_no_libm != yes; then
14011 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14020 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14021 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14030 # define isnanl(x) __builtin_isnanl ((long double)(x))
14031 #elif defined isnan
14033 # define isnanl(x) isnan ((long double)(x))
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 gl_cv_func_isnanl_no_libm=yes
14047 gl_cv_func_isnanl_no_libm=no
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14054 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14056 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14057 if test $gl_func_isnanl_no_libm = yes; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14063 $as_echo_n "checking whether isnanl works... " >&6; }
14064 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14068 if test "$cross_compiling" = yes; then :
14069 gl_cv_func_isnanl_works="guessing yes"
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14075 #include <limits.h>
14079 # define isnanl(x) __builtin_isnanl ((long double)(x))
14080 #elif defined isnan
14082 # define isnanl(x) isnan ((long double)(x))
14085 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14086 typedef union { unsigned int word[NWORDS]; long double value; }
14087 memory_long_double;
14088 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14089 runtime type conversion. */
14091 static long double NaNl ()
14094 return zero / zero;
14097 # define NaNl() (0.0L / 0.0L)
14103 if (!isnanl (NaNl ()))
14107 memory_long_double m;
14110 /* The isnanl function should be immune against changes in the sign bit and
14111 in the mantissa bits. The xor operation twiddles a bit that can only be
14112 a sign bit or a mantissa bit (since the exponent never extends to
14115 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14116 for (i = 0; i < NWORDS; i++)
14118 if (!isnanl (m.value))
14122 #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
14123 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14124 of 'unsigned int' words. */
14125 # ifdef WORDS_BIGENDIAN
14126 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14127 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14128 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14129 (unsigned int) (mantlo) << 16 \
14132 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14133 { mantlo, manthi, exponent }
14136 static memory_long_double x =
14137 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14138 if (!isnanl (x.value))
14142 /* Signalling NaN. */
14143 static memory_long_double x =
14144 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14145 if (!isnanl (x.value))
14148 /* isnanl should return something even for noncanonical values. */
14149 { /* Pseudo-NaN. */
14150 static memory_long_double x =
14151 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14152 if (isnanl (x.value) && !isnanl (x.value))
14155 { /* Pseudo-Infinity. */
14156 static memory_long_double x =
14157 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14158 if (isnanl (x.value) && !isnanl (x.value))
14161 { /* Pseudo-Zero. */
14162 static memory_long_double x =
14163 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14164 if (isnanl (x.value) && !isnanl (x.value))
14167 { /* Unnormalized number. */
14168 static memory_long_double x =
14169 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14170 if (isnanl (x.value) && !isnanl (x.value))
14173 { /* Pseudo-Denormal. */
14174 static memory_long_double x =
14175 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14176 if (isnanl (x.value) && !isnanl (x.value))
14184 if ac_fn_c_try_run "$LINENO"; then :
14185 gl_cv_func_isnanl_works=yes
14187 gl_cv_func_isnanl_works=no
14189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14190 conftest.$ac_objext conftest.beam conftest.$ac_ext
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14196 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14198 case "$gl_cv_func_isnanl_works" in
14200 *) gl_func_isnanl_no_libm=no ;;
14203 if test $gl_func_isnanl_no_libm = yes; then
14205 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14209 if test $gl_func_isnanl_no_libm != yes; then
14218 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14224 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14225 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14229 if test "$cross_compiling" = yes; then :
14231 gl_cv_cc_long_double_expbit0="unknown"
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14238 #include <stddef.h>
14240 #include <string.h>
14242 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14243 typedef union { long double value; unsigned int word[NWORDS]; }
14244 memory_long_double;
14245 static unsigned int ored_words[NWORDS];
14246 static unsigned int anded_words[NWORDS];
14247 static void add_to_ored_words (long double x)
14249 memory_long_double m;
14251 /* Clear it first, in case
14252 sizeof (long double) < sizeof (memory_long_double). */
14253 memset (&m, 0, sizeof (memory_long_double));
14255 for (i = 0; i < NWORDS; i++)
14257 ored_words[i] |= m.word[i];
14258 anded_words[i] &= m.word[i];
14264 FILE *fp = fopen ("conftest.out", "w");
14267 for (j = 0; j < NWORDS; j++)
14268 anded_words[j] = ~ (unsigned int) 0;
14269 add_to_ored_words (0.25L);
14270 add_to_ored_words (0.5L);
14271 add_to_ored_words (1.0L);
14272 add_to_ored_words (2.0L);
14273 add_to_ored_words (4.0L);
14274 /* Remove bits that are common (e.g. if representation of the first mantissa
14275 bit is explicit). */
14276 for (j = 0; j < NWORDS; j++)
14277 ored_words[j] &= ~anded_words[j];
14278 /* Now find the nonzero word. */
14279 for (j = 0; j < NWORDS; j++)
14280 if (ored_words[j] != 0)
14285 for (i = j + 1; i < NWORDS; i++)
14286 if (ored_words[i] != 0)
14288 fprintf (fp, "unknown");
14289 return (fclose (fp) != 0);
14292 if ((ored_words[j] >> i) & 1)
14294 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14295 return (fclose (fp) != 0);
14298 fprintf (fp, "unknown");
14299 return (fclose (fp) != 0);
14303 if ac_fn_c_try_run "$LINENO"; then :
14304 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
14306 gl_cv_cc_long_double_expbit0="unknown"
14308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14309 conftest.$ac_objext conftest.beam conftest.$ac_ext
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14316 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14317 case "$gl_cv_cc_long_double_expbit0" in
14319 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
14320 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
14322 cat >>confdefs.h <<_ACEOF
14323 #define LDBL_EXPBIT0_WORD $word
14327 cat >>confdefs.h <<_ACEOF
14328 #define LDBL_EXPBIT0_BIT $bit
14346 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14351 if test $ac_cv_func_lstat = yes; then
14353 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14362 if test $REPLACE_LSTAT = 1; then
14371 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14386 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14393 if test $gl_cv_func_malloc_posix = yes; then
14395 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14401 if test $REPLACE_MALLOC = 1; then
14410 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14418 GNULIB_MALLOC_POSIX=1
14424 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14443 if test $gl_cv_have_include_next = yes; then
14444 gl_cv_next_math_h='<'math.h'>'
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14447 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14448 if test "${gl_cv_next_math_h+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14452 if test $ac_cv_header_math_h = yes; then
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14462 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14463 *) gl_absname_cpp="$ac_cpp" ;;
14468 gl_dirsep_regex='[/\\]'
14471 gl_dirsep_regex='\/'
14474 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14475 gl_header_literal_regex=`echo 'math.h' \
14476 |
sed -e "$gl_make_literal_regex_sed"`
14477 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14478 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14484 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14485 sed -n "$gl_absolute_header_sed"`
14487 gl_header=$gl_cv_absolute_math_h
14488 gl_cv_next_math_h='"'$gl_header'"'
14490 gl_cv_next_math_h='<'math.h'>'
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14496 $as_echo "$gl_cv_next_math_h" >&6; }
14498 NEXT_MATH_H=$gl_cv_next_math_h
14500 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14502 gl_next_as_first_directive='<'math.h'>'
14504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14505 gl_next_as_first_directive=$gl_cv_next_math_h
14507 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14514 $as_echo_n "checking whether NAN macro works... " >&6; }
14515 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14524 /* Solaris 10 has a broken definition of NAN. Other platforms
14525 fail to provide NAN, or provide it only in C99 mode; this
14526 test only needs to fail when NAN is provided but wrong. */
14536 if ac_fn_c_try_compile "$LINENO"; then :
14537 gl_cv_header_math_nan_works=yes
14539 gl_cv_header_math_nan_works=no
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14544 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14545 if test $gl_cv_header_math_nan_works = no; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14549 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14550 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14559 /* Solaris 10 has a broken definition of HUGE_VAL. */
14560 double d = HUGE_VAL;
14566 if ac_fn_c_try_compile "$LINENO"; then :
14567 gl_cv_header_math_huge_val_works=yes
14569 gl_cv_header_math_huge_val_works=no
14571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14574 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14575 if test $gl_cv_header_math_huge_val_works = no; then
14580 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
14581 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14583 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14584 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14585 $as_echo_n "(cached) " >&6
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14599 if ac_fn_c_try_compile "$LINENO"; then :
14600 eval "$as_gl_Symbol=yes"
14602 eval "$as_gl_Symbol=no"
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 eval ac_res=\$$as_gl_Symbol
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14608 $as_echo "$ac_res" >&6; }
14609 eval as_val=\$$as_gl_Symbol
14610 if test "x$as_val" = x""yes; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14615 eval ac_cv_have_decl_$gl_func=yes
14630 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14635 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14636 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14637 $as_echo_n "(cached) " >&6
14641 # Guess no on AIX and OSF/1.
14642 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14643 # Guess yes otherwise.
14644 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14646 if test $LOCALE_JA != none; then
14647 if test "$cross_compiling" = yes; then :
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 #include <locale.h>
14654 #include <string.h>
14655 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14657 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14658 included before <wchar.h>. */
14659 #include <stddef.h>
14665 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14667 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14671 memset (&state, '\0', sizeof (mbstate_t));
14672 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14673 if (mbsinit (&state))
14679 if ac_fn_c_try_run "$LINENO"; then :
14680 gl_cv_func_mbrtowc_incomplete_state=yes
14682 gl_cv_func_mbrtowc_incomplete_state=no
14684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14685 conftest.$ac_objext conftest.beam conftest.$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14692 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14698 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14699 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14704 # Guess no on Solaris 8.
14705 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14706 # Guess yes otherwise.
14707 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14709 if test $LOCALE_ZH_CN != none; then
14710 if test "$cross_compiling" = yes; then :
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14716 #include <locale.h>
14717 #include <stdlib.h>
14718 #include <string.h>
14719 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14721 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14722 included before <wchar.h>. */
14723 #include <stddef.h>
14729 /* This fails on Solaris 8:
14730 mbrtowc returns 2, and sets wc to 0x00F0.
14731 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14732 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14734 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14738 memset (&state, '\0', sizeof (mbstate_t));
14739 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14740 && mbtowc (&wc, input + 3, 6) == 4)
14746 if ac_fn_c_try_run "$LINENO"; then :
14747 gl_cv_func_mbrtowc_sanitycheck=yes
14749 gl_cv_func_mbrtowc_sanitycheck=no
14751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14752 conftest.$ac_objext conftest.beam conftest.$ac_ext
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14759 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14761 REPLACE_MBSTATE_T=0
14762 case "$gl_cv_func_mbrtowc_incomplete_state" in
14764 *) REPLACE_MBSTATE_T=1 ;;
14766 case "$gl_cv_func_mbrtowc_sanitycheck" in
14768 *) REPLACE_MBSTATE_T=1 ;;
14771 REPLACE_MBSTATE_T=1
14776 if test $ac_cv_func_mbrtowc = no; then
14778 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14779 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14781 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14782 included before <wchar.h>. */
14783 #include <stddef.h>
14789 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14795 cat >>confdefs.h <<_ACEOF
14796 #define HAVE_DECL_MBRTOWC $ac_have_decl
14799 if test $ac_cv_have_decl_mbrtowc = yes; then
14803 if test $REPLACE_MBSTATE_T = 1; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14810 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14811 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14816 # Guess no on Solaris.
14817 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14818 # Guess yes otherwise.
14819 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14821 if test $LOCALE_FR_UTF8 != none; then
14822 if test "$cross_compiling" = yes; then :
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14828 #include <locale.h>
14829 #include <stdlib.h>
14830 #include <string.h>
14831 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14833 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14834 included before <wchar.h>. */
14835 #include <stddef.h>
14843 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14845 char input[] = "\303\237er";
14850 memset (&state, '\0', sizeof (mbstate_t));
14851 wc = (wchar_t) 0xBADFACE;
14852 ret = mbrtowc (&wc, input, 5, &state);
14855 if (!mbsinit (&state))
14858 memset (&state, '\0', sizeof (mbstate_t));
14859 ret = mbrtowc (NULL, input, 5, &state);
14860 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14862 if (!mbsinit (&state))
14868 if ac_fn_c_try_run "$LINENO"; then :
14869 gl_cv_func_mbrtowc_null_arg1=yes
14871 gl_cv_func_mbrtowc_null_arg1=no
14873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14874 conftest.$ac_objext conftest.beam conftest.$ac_ext
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14881 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14887 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14888 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14889 $as_echo_n "(cached) " >&6
14893 # Guess no on OSF/1.
14894 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14895 # Guess yes otherwise.
14896 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14898 if test $LOCALE_FR_UTF8 != none; then
14899 if test "$cross_compiling" = yes; then :
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14905 #include <locale.h>
14906 #include <string.h>
14907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14910 included before <wchar.h>. */
14911 #include <stddef.h>
14917 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14923 memset (&state, '\0', sizeof (mbstate_t));
14924 wc = (wchar_t) 0xBADFACE;
14925 mbrtowc (&wc, NULL, 5, &state);
14926 /* Check that wc was not modified. */
14927 if (wc != (wchar_t) 0xBADFACE)
14933 if ac_fn_c_try_run "$LINENO"; then :
14934 gl_cv_func_mbrtowc_null_arg2=yes
14936 gl_cv_func_mbrtowc_null_arg2=no
14938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14939 conftest.$ac_objext conftest.beam conftest.$ac_ext
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14946 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14954 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14955 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14960 # Guess no on HP-UX, Solaris, native Windows.
14961 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14962 # Guess yes otherwise.
14963 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14965 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14966 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14967 if test "$cross_compiling" = yes; then :
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 #include <locale.h>
14974 #include <string.h>
14975 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14977 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14978 included before <wchar.h>. */
14979 #include <stddef.h>
14986 int found_some_locale = 0;
14987 /* This fails on Solaris. */
14988 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14990 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14994 memset (&state, '\0', sizeof (mbstate_t));
14995 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14998 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15001 found_some_locale = 1;
15003 /* This fails on HP-UX 11.11. */
15004 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15006 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15010 memset (&state, '\0', sizeof (mbstate_t));
15011 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15014 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15017 found_some_locale = 1;
15019 /* This fails on native Windows. */
15020 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15022 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15026 memset (&state, '\0', sizeof (mbstate_t));
15027 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15030 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15033 found_some_locale = 1;
15035 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15037 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15041 memset (&state, '\0', sizeof (mbstate_t));
15042 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15045 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15048 found_some_locale = 1;
15050 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15052 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15056 memset (&state, '\0', sizeof (mbstate_t));
15057 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15060 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15063 found_some_locale = 1;
15065 return (found_some_locale ? result : 77);
15068 if ac_fn_c_try_run "$LINENO"; then :
15069 gl_cv_func_mbrtowc_retval=yes
15071 if test $? != 77; then
15072 gl_cv_func_mbrtowc_retval=no
15076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15077 conftest.$ac_objext conftest.beam conftest.$ac_ext
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15084 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15090 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15091 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15092 $as_echo_n "(cached) " >&6
15096 # Guess no on Solaris 8 and 9.
15097 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15098 # Guess yes otherwise.
15099 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15101 if test $LOCALE_ZH_CN != none; then
15102 if test "$cross_compiling" = yes; then :
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15108 #include <locale.h>
15109 #include <string.h>
15110 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15112 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15113 included before <wchar.h>. */
15114 #include <stddef.h>
15120 /* This fails on Solaris 8 and 9. */
15121 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15126 memset (&state, '\0', sizeof (mbstate_t));
15127 if (mbrtowc (&wc, "", 1, &state) != 0)
15133 if ac_fn_c_try_run "$LINENO"; then :
15134 gl_cv_func_mbrtowc_nul_retval=yes
15136 gl_cv_func_mbrtowc_nul_retval=no
15138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15139 conftest.$ac_objext conftest.beam conftest.$ac_ext
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15146 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15151 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15152 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15153 $as_echo_n "(cached) " >&6
15157 # Guess no on AIX and glibc systems.
15159 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15160 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15162 if test "$cross_compiling" = yes; then :
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15170 static mbstate_t mbs;
15174 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15177 if ac_fn_c_try_run "$LINENO"; then :
15178 gl_cv_func_mbrtowc_empty_input=no
15180 gl_cv_func_mbrtowc_empty_input=yes
15182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15183 conftest.$ac_objext conftest.beam conftest.$ac_ext
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15189 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15191 case "$gl_cv_func_mbrtowc_null_arg1" in
15194 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15199 case "$gl_cv_func_mbrtowc_null_arg2" in
15202 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15207 case "$gl_cv_func_mbrtowc_retval" in
15210 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15215 case "$gl_cv_func_mbrtowc_nul_retval" in
15218 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15223 case "$gl_cv_func_mbrtowc_empty_input" in
15226 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15234 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15243 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15260 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15275 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15280 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15281 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15282 $as_echo_n "(cached) " >&6
15286 # Guess no on AIX and OSF/1.
15287 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15288 # Guess yes otherwise.
15289 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15291 if test $LOCALE_JA != none; then
15292 if test "$cross_compiling" = yes; then :
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15298 #include <locale.h>
15299 #include <string.h>
15300 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15302 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15303 included before <wchar.h>. */
15304 #include <stddef.h>
15310 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15312 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15316 memset (&state, '\0', sizeof (mbstate_t));
15317 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15318 if (mbsinit (&state))
15324 if ac_fn_c_try_run "$LINENO"; then :
15325 gl_cv_func_mbrtowc_incomplete_state=yes
15327 gl_cv_func_mbrtowc_incomplete_state=no
15329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15330 conftest.$ac_objext conftest.beam conftest.$ac_ext
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15337 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15343 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15344 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15349 # Guess no on Solaris 8.
15350 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15351 # Guess yes otherwise.
15352 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15354 if test $LOCALE_ZH_CN != none; then
15355 if test "$cross_compiling" = yes; then :
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h. */
15361 #include <locale.h>
15362 #include <stdlib.h>
15363 #include <string.h>
15364 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15366 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15367 included before <wchar.h>. */
15368 #include <stddef.h>
15374 /* This fails on Solaris 8:
15375 mbrtowc returns 2, and sets wc to 0x00F0.
15376 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15377 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15379 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15383 memset (&state, '\0', sizeof (mbstate_t));
15384 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15385 && mbtowc (&wc, input + 3, 6) == 4)
15391 if ac_fn_c_try_run "$LINENO"; then :
15392 gl_cv_func_mbrtowc_sanitycheck=yes
15394 gl_cv_func_mbrtowc_sanitycheck=no
15396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15397 conftest.$ac_objext conftest.beam conftest.$ac_ext
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15404 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15406 REPLACE_MBSTATE_T=0
15407 case "$gl_cv_func_mbrtowc_incomplete_state" in
15409 *) REPLACE_MBSTATE_T=1 ;;
15411 case "$gl_cv_func_mbrtowc_sanitycheck" in
15413 *) REPLACE_MBSTATE_T=1 ;;
15416 REPLACE_MBSTATE_T=1
15421 if test $ac_cv_func_mbsinit = no; then
15423 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15424 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15426 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15427 included before <wchar.h>. */
15428 #include <stddef.h>
15434 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15440 cat >>confdefs.h <<_ACEOF
15441 #define HAVE_DECL_MBSINIT $ac_have_decl
15444 if test $ac_cv_have_decl_mbsinit = yes; then
15448 if test $REPLACE_MBSTATE_T = 1; then
15452 mingw*) REPLACE_MBSINIT=1 ;;
15457 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15466 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15483 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15497 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15502 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15503 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15504 $as_echo_n "(cached) " >&6
15508 # Guess no on AIX and OSF/1.
15509 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15510 # Guess yes otherwise.
15511 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15513 if test $LOCALE_JA != none; then
15514 if test "$cross_compiling" = yes; then :
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 #include <locale.h>
15521 #include <string.h>
15522 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15524 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15525 included before <wchar.h>. */
15526 #include <stddef.h>
15532 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15534 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15538 memset (&state, '\0', sizeof (mbstate_t));
15539 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15540 if (mbsinit (&state))
15546 if ac_fn_c_try_run "$LINENO"; then :
15547 gl_cv_func_mbrtowc_incomplete_state=yes
15549 gl_cv_func_mbrtowc_incomplete_state=no
15551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15552 conftest.$ac_objext conftest.beam conftest.$ac_ext
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15559 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15565 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15566 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15567 $as_echo_n "(cached) " >&6
15571 # Guess no on Solaris 8.
15572 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15573 # Guess yes otherwise.
15574 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15576 if test $LOCALE_ZH_CN != none; then
15577 if test "$cross_compiling" = yes; then :
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15583 #include <locale.h>
15584 #include <stdlib.h>
15585 #include <string.h>
15586 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15588 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15589 included before <wchar.h>. */
15590 #include <stddef.h>
15596 /* This fails on Solaris 8:
15597 mbrtowc returns 2, and sets wc to 0x00F0.
15598 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15599 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15601 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15605 memset (&state, '\0', sizeof (mbstate_t));
15606 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15607 && mbtowc (&wc, input + 3, 6) == 4)
15613 if ac_fn_c_try_run "$LINENO"; then :
15614 gl_cv_func_mbrtowc_sanitycheck=yes
15616 gl_cv_func_mbrtowc_sanitycheck=no
15618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15619 conftest.$ac_objext conftest.beam conftest.$ac_ext
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15626 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15628 REPLACE_MBSTATE_T=0
15629 case "$gl_cv_func_mbrtowc_incomplete_state" in
15631 *) REPLACE_MBSTATE_T=1 ;;
15633 case "$gl_cv_func_mbrtowc_sanitycheck" in
15635 *) REPLACE_MBSTATE_T=1 ;;
15638 REPLACE_MBSTATE_T=1
15643 if test $ac_cv_func_mbsrtowcs = no; then
15645 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15646 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15648 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15649 included before <wchar.h>. */
15650 #include <stddef.h>
15656 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15662 cat >>confdefs.h <<_ACEOF
15663 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
15666 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15667 REPLACE_MBSRTOWCS=1
15670 if test $REPLACE_MBSTATE_T = 1; then
15671 REPLACE_MBSRTOWCS=1
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15680 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
15681 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15682 $as_echo_n "(cached) " >&6
15686 # Guess no on HP-UX, Solaris, mingw.
15687 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15688 # Guess yes otherwise.
15689 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15691 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15692 if test "$cross_compiling" = yes; then :
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15698 #include <locale.h>
15699 #include <string.h>
15700 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15702 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15703 included before <wchar.h>. */
15704 #include <stddef.h>
15711 /* Test whether the function supports a NULL destination argument.
15712 This fails on native Windows. */
15713 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15715 const char input[] = "\337er";
15716 const char *src = input;
15719 memset (&state, '\0', sizeof (mbstate_t));
15720 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15724 /* Test whether the function works when started with a conversion state
15725 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15726 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15728 const char input[] = "B\303\274\303\237er";
15731 memset (&state, '\0', sizeof (mbstate_t));
15732 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15733 if (!mbsinit (&state))
15735 const char *src = input + 2;
15736 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15740 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15742 const char input[] = "<\306\374\313\334\270\354>";
15745 memset (&state, '\0', sizeof (mbstate_t));
15746 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15747 if (!mbsinit (&state))
15749 const char *src = input + 4;
15750 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15754 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15756 const char input[] = "B\250\271\201\060\211\070er";
15759 memset (&state, '\0', sizeof (mbstate_t));
15760 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15761 if (!mbsinit (&state))
15763 const char *src = input + 2;
15764 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15771 if ac_fn_c_try_run "$LINENO"; then :
15772 gl_cv_func_mbsrtowcs_works=yes
15774 gl_cv_func_mbsrtowcs_works=no
15776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15777 conftest.$ac_objext conftest.beam conftest.$ac_ext
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15784 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15786 case "$gl_cv_func_mbsrtowcs_works" in
15788 *) REPLACE_MBSRTOWCS=1 ;;
15793 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
15802 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15812 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15829 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15834 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15843 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15846 for ac_header in bp-sym.h
15848 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15849 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_BP_SYM_H 1
15871 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15877 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15879 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15880 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15881 $as_echo_n "(cached) " >&6
15883 if test "$cross_compiling" = yes; then :
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15887 #include <features.h>
15888 #ifdef __GNU_LIBRARY__
15889 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15890 && !defined __UCLIBC__
15895 #include <cygwin/version.h>
15896 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15903 $EGREP "Lucky user" >/dev/null 2>&1; then :
15904 gl_cv_func_memmem_works_fast="guessing yes"
15906 gl_cv_func_memmem_works_fast="guessing no"
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15915 #include <signal.h> /* for signal */
15916 #include <string.h> /* for memmem */
15917 #include <stdlib.h> /* for malloc */
15918 #include <unistd.h> /* for alarm */
15919 static void quit (int sig) { exit (sig + 128); }
15926 size_t m = 1000000;
15927 char *haystack = (char *) malloc (2 * m + 1);
15928 char *needle = (char *) malloc (m + 1);
15929 /* Failure to compile this test due to missing alarm is okay,
15930 since all such platforms (mingw) also lack memmem. */
15931 signal (SIGALRM, quit);
15933 /* Check for quadratic performance. */
15934 if (haystack && needle)
15936 memset (haystack, 'A', 2 * m);
15937 haystack[2 * m] = 'B';
15938 memset (needle, 'A', m);
15940 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15949 if ac_fn_c_try_run "$LINENO"; then :
15950 gl_cv_func_memmem_works_fast=yes
15952 gl_cv_func_memmem_works_fast=no
15954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15955 conftest.$ac_objext conftest.beam conftest.$ac_ext
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15961 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15962 case "$gl_cv_func_memmem_works_fast" in
15970 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15979 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15986 for ac_func in memmem
15988 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15989 if test "x$ac_cv_func_memmem" = x""yes; then :
15990 cat >>confdefs.h <<_ACEOF
15991 #define HAVE_MEMMEM 1
15997 if test $ac_cv_func_memmem = yes; then
16003 if test $ac_cv_have_decl_memmem = no; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16007 $as_echo_n "checking whether memmem works... " >&6; }
16008 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16009 $as_echo_n "(cached) " >&6
16011 if test "$cross_compiling" = yes; then :
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16015 #ifdef __GNU_LIBRARY__
16016 #include <features.h>
16017 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16018 || __GLIBC_MINOR__ > 12)) \
16019 || (__GLIBC__ > 2)) \
16020 || defined __UCLIBC__
16023 #elif defined __CYGWIN__
16024 #include <cygwin/version.h>
16025 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16034 $EGREP "Lucky user" >/dev/null 2>&1; then :
16035 gl_cv_func_memmem_works_always="guessing yes"
16037 gl_cv_func_memmem_works_always="guessing no"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16046 #include <string.h> /* for memmem */
16047 #define P "_EF_BF_BD"
16048 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16049 #define NEEDLE P P P P P
16056 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16058 /* Check for empty needle behavior. */
16060 const char *haystack = "AAA";
16061 if (memmem (haystack, 3, NULL, 0) != haystack)
16070 if ac_fn_c_try_run "$LINENO"; then :
16071 gl_cv_func_memmem_works_always=yes
16073 gl_cv_func_memmem_works_always=no
16075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16076 conftest.$ac_objext conftest.beam conftest.$ac_ext
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16082 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16083 case "$gl_cv_func_memmem_works_always" in
16092 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16101 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16115 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16127 for ac_func in rawmemchr
16129 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16130 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_RAWMEMCHR 1
16138 if test $ac_cv_func_rawmemchr = no; then
16142 if test $HAVE_RAWMEMCHR = 0; then
16151 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
16166 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16173 if test $ac_cv_func_readlink = no; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16177 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16178 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16179 $as_echo_n "(cached) " >&6
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 #include <unistd.h>
16184 /* Cause compilation failure if original declaration has wrong type. */
16185 ssize_t readlink (const char *, char *, size_t);
16194 if ac_fn_c_try_compile "$LINENO"; then :
16195 gl_cv_decl_readlink_works=yes
16197 gl_cv_decl_readlink_works=no
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16202 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16204 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16205 if test "${gl_cv_func_readlink_works+set}" = set; then :
16206 $as_echo_n "(cached) " >&6
16208 # We have readlink, so assume ln -s works.
16209 ln -s conftest.no-such conftest.link
16210 ln -s conftest.link conftest.lnk2
16211 if test "$cross_compiling" = yes; then :
16213 # Guess yes on glibc systems.
16214 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16215 # If we don't know, assume the worst.
16216 *) gl_cv_func_readlink_works="guessing no" ;;
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 #include <unistd.h>
16228 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16233 if ac_fn_c_try_run "$LINENO"; then :
16234 gl_cv_func_readlink_works=yes
16236 gl_cv_func_readlink_works=no
16238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16239 conftest.$ac_objext conftest.beam conftest.$ac_ext
16242 rm -f conftest.link conftest.lnk2
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16245 $as_echo "$gl_cv_func_readlink_works" >&6; }
16246 case "$gl_cv_func_readlink_works" in
16248 if test "$gl_cv_decl_readlink_works" != yes; then
16254 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16261 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16270 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16287 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16297 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16298 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16299 $as_echo_n "(cached) " >&6
16301 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16302 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16303 as_fn_error "cannot create temporary files" "$LINENO" 5
16304 # Assume that if we have lstat, we can also check symlinks.
16305 if test $ac_cv_func_lstat = yes; then
16306 ln -s conftest.f conftest.lnk
16308 if test "$cross_compiling" = yes; then :
16310 # Guess yes on glibc systems.
16311 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16312 # If we don't know, assume the worst.
16313 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16320 # include <stdio.h>
16321 # include <stdlib.h>
16327 if (rename ("conftest.f1", "conftest.f2/") == 0)
16329 if (rename ("conftest.d1", "conftest.d2/") != 0)
16332 if (rename ("conftest.f", "conftest.lnk/") == 0)
16341 if ac_fn_c_try_run "$LINENO"; then :
16342 gl_cv_func_rename_slash_dst_works=yes
16344 gl_cv_func_rename_slash_dst_works=no
16346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16347 conftest.$ac_objext conftest.beam conftest.$ac_ext
16350 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16354 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16355 case "$gl_cv_func_rename_slash_dst_works" in
16360 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16366 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16367 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16368 $as_echo_n "(cached) " >&6
16370 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16371 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16372 as_fn_error "cannot create temporary files" "$LINENO" 5
16373 # Assume that if we have lstat, we can also check symlinks.
16374 if test $ac_cv_func_lstat = yes; then
16375 ln -s conftest.f conftest.lnk
16377 if test "$cross_compiling" = yes; then :
16379 # Guess yes on glibc systems.
16380 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16381 # If we don't know, assume the worst.
16382 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16389 # include <stdio.h>
16390 # include <stdlib.h>
16396 if (rename ("conftest.f1/", "conftest.d3") == 0)
16398 if (rename ("conftest.d1/", "conftest.d2") != 0)
16401 if (rename ("conftest.lnk/", "conftest.f") == 0)
16410 if ac_fn_c_try_run "$LINENO"; then :
16411 gl_cv_func_rename_slash_src_works=yes
16413 gl_cv_func_rename_slash_src_works=no
16415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16416 conftest.$ac_objext conftest.beam conftest.$ac_ext
16419 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16423 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16424 case "$gl_cv_func_rename_slash_src_works" in
16429 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16436 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16437 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16438 $as_echo_n "(cached) " >&6
16440 if test $ac_cv_func_link = yes; then
16441 rm -rf conftest.f conftest.f1
16442 if touch conftest.f && ln conftest.f conftest.f1 &&
16443 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
16444 if test "$cross_compiling" = yes; then :
16446 # Guess yes on glibc systems.
16447 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16448 # If we don't know, assume the worst.
16449 *) gl_cv_func_rename_link_works="guessing no" ;;
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16456 # include <stdio.h>
16457 # include <stdlib.h>
16458 # include <unistd.h>
16464 if (rename ("conftest.f", "conftest.f1"))
16466 if (unlink ("conftest.f1"))
16468 if (rename ("conftest.f", "conftest.f"))
16470 if (rename ("conftest.f1", "conftest.f1") == 0)
16478 if ac_fn_c_try_run "$LINENO"; then :
16479 gl_cv_func_rename_link_works=yes
16481 gl_cv_func_rename_link_works=no
16483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16484 conftest.$ac_objext conftest.beam conftest.$ac_ext
16488 gl_cv_func_rename_link_works="guessing no"
16490 rm -rf conftest.f conftest.f1
16492 gl_cv_func_rename_link_works=yes
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16497 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16498 case "$gl_cv_func_rename_link_works" in
16503 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16509 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16510 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16513 rm -rf conftest.f conftest.d1 conftest.d2
16514 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16515 as_fn_error "cannot create temporary files" "$LINENO" 5
16516 if test "$cross_compiling" = yes; then :
16518 # Guess yes on glibc systems.
16519 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16520 # If we don't know, assume the worst.
16521 *) gl_cv_func_rename_dest_works="guessing no" ;;
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16528 # include <stdio.h>
16529 # include <stdlib.h>
16535 if (rename ("conftest.d1", "conftest.d2") != 0)
16537 if (rename ("conftest.d2", "conftest.f") == 0)
16545 if ac_fn_c_try_run "$LINENO"; then :
16546 gl_cv_func_rename_dest_works=yes
16548 gl_cv_func_rename_dest_works=no
16550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16551 conftest.$ac_objext conftest.beam conftest.$ac_ext
16554 rm -rf conftest.f conftest.d1 conftest.d2
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16558 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16559 case "$gl_cv_func_rename_dest_works" in
16564 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16569 if test $REPLACE_RENAME = 1; then
16578 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16592 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16600 $as_echo_n "checking whether rmdir works... " >&6; }
16601 if test "${gl_cv_func_rmdir_works+set}" = set; then :
16602 $as_echo_n "(cached) " >&6
16605 touch conftest.file
16606 if test "$cross_compiling" = yes; then :
16608 # Guess yes on glibc systems.
16609 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16610 # If we don't know, assume the worst.
16611 *) gl_cv_func_rmdir_works="guessing no" ;;
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16620 # include <unistd.h>
16621 #else /* on Windows with MSVC */
16622 # include <direct.h>
16629 if (!rmdir ("conftest.file/"))
16631 else if (errno != ENOTDIR)
16633 if (!rmdir ("conftest.dir/./"))
16641 if ac_fn_c_try_run "$LINENO"; then :
16642 gl_cv_func_rmdir_works=yes
16644 gl_cv_func_rmdir_works=no
16646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16647 conftest.$ac_objext conftest.beam conftest.$ac_ext
16650 rm -rf conftest.dir conftest.file
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16653 $as_echo "$gl_cv_func_rmdir_works" >&6; }
16654 case "$gl_cv_func_rmdir_works" in
16661 if test $REPLACE_RMDIR = 1; then
16670 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16684 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16699 if test $gl_cv_have_include_next = yes; then
16700 gl_cv_next_signal_h='<'signal.h'>'
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
16703 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
16704 if test "${gl_cv_next_signal_h+set}" = set; then :
16705 $as_echo_n "(cached) " >&6
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16712 #include <signal.h>
16715 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16716 *) gl_absname_cpp="$ac_cpp" ;;
16721 gl_dirsep_regex='[/\\]'
16724 gl_dirsep_regex='\/'
16727 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16728 gl_header_literal_regex=`echo 'signal.h' \
16729 |
sed -e "$gl_make_literal_regex_sed"`
16730 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16731 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16737 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16738 sed -n "$gl_absolute_header_sed"`
16740 gl_header=$gl_cv_absolute_signal_h
16741 gl_cv_next_signal_h='"'$gl_header'"'
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
16746 $as_echo "$gl_cv_next_signal_h" >&6; }
16748 NEXT_SIGNAL_H=$gl_cv_next_signal_h
16750 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16751 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16752 gl_next_as_first_directive='<'signal.h'>'
16754 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16755 gl_next_as_first_directive=$gl_cv_next_signal_h
16757 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
16763 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
16764 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
16765 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
16766 #include <signal.h>
16769 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
16772 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
16781 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
16782 #include <signal.h>
16785 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
16788 HAVE_SIGHANDLER_T=0
16793 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
16794 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16796 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16797 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16798 $as_echo_n "(cached) " >&6
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 #include <signal.h>
16813 if ac_fn_c_try_compile "$LINENO"; then :
16814 eval "$as_gl_Symbol=yes"
16816 eval "$as_gl_Symbol=no"
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 eval ac_res=\$$as_gl_Symbol
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16822 $as_echo "$ac_res" >&6; }
16823 eval as_val=\$$as_gl_Symbol
16824 if test "x$as_val" = x""yes; then :
16825 cat >>confdefs.h <<_ACEOF
16826 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16829 eval ac_cv_have_decl_$gl_func=yes
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16836 $as_echo_n "checking for ssize_t... " >&6; }
16837 if test "${gt_cv_ssize_t+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 #include <sys/types.h>
16846 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16852 if ac_fn_c_try_compile "$LINENO"; then :
16857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16860 $as_echo "$gt_cv_ssize_t" >&6; }
16861 if test $gt_cv_ssize_t = no; then
16863 $as_echo "#define ssize_t int" >>confdefs.h
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16871 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16872 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16873 $as_echo_n "(cached) " >&6
16875 if test "$cross_compiling" = yes; then :
16877 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16878 *) gl_cv_func_stat_dir_slash="guessing yes";;
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16883 #include <sys/stat.h>
16888 struct stat st; return stat (".", &st) != stat ("./", &st);
16893 if ac_fn_c_try_run "$LINENO"; then :
16894 gl_cv_func_stat_dir_slash=yes
16896 gl_cv_func_stat_dir_slash=no
16898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16899 conftest.$ac_objext conftest.beam conftest.$ac_ext
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16904 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16906 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16907 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16911 # Assume that if we have lstat, we can also check symlinks.
16912 if test $ac_cv_func_lstat = yes; then
16913 ln -s conftest.tmp conftest.lnk
16915 if test "$cross_compiling" = yes; then :
16917 # Guess yes on glibc systems.
16918 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16919 # If we don't know, assume the worst.
16920 *) gl_cv_func_stat_file_slash="guessing no" ;;
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16926 #include <sys/stat.h>
16933 if (!stat ("conftest.tmp/", &st))
16936 if (!stat ("conftest.lnk/", &st))
16945 if ac_fn_c_try_run "$LINENO"; then :
16946 gl_cv_func_stat_file_slash=yes
16948 gl_cv_func_stat_file_slash=no
16950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16951 conftest.$ac_objext conftest.beam conftest.$ac_ext
16954 rm -f conftest.tmp conftest.lnk
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16957 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16958 case $gl_cv_func_stat_dir_slash in
16959 *no) REPLACE_STAT=1
16961 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16964 case $gl_cv_func_stat_file_slash in
16965 *no) REPLACE_STAT=1
16967 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16971 if test $REPLACE_STAT = 1; then
16980 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16995 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17002 # Define two additional variables used in the Makefile substitution.
17004 if test "$ac_cv_header_stdbool_h" = yes; then
17007 STDBOOL_H='stdbool.h'
17010 if test -n "$STDBOOL_H"; then
17011 GL_GENERATE_STDBOOL_H_TRUE=
17012 GL_GENERATE_STDBOOL_H_FALSE='#'
17014 GL_GENERATE_STDBOOL_H_TRUE='#'
17015 GL_GENERATE_STDBOOL_H_FALSE=
17019 if test "$ac_cv_type__Bool" = yes; then
17030 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
17033 if test "x$ac_cv_type_max_align_t" = x""yes; then :
17036 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
17039 if test $gt_cv_c_wchar_t = no; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17044 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17045 if test "${gl_cv_decl_null_works+set}" = set; then :
17046 $as_echo_n "(cached) " >&6
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17050 #include <stddef.h>
17051 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17061 if ac_fn_c_try_compile "$LINENO"; then :
17062 gl_cv_decl_null_works=yes
17064 gl_cv_decl_null_works=no
17066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17069 $as_echo "$gl_cv_decl_null_works" >&6; }
17070 if test $gl_cv_decl_null_works = no; then
17075 if test -n "$STDDEF_H"; then
17076 GL_GENERATE_STDDEF_H_TRUE=
17077 GL_GENERATE_STDDEF_H_FALSE='#'
17079 GL_GENERATE_STDDEF_H_TRUE='#'
17080 GL_GENERATE_STDDEF_H_FALSE=
17083 if test -n "$STDDEF_H"; then
17092 if test $gl_cv_have_include_next = yes; then
17093 gl_cv_next_stddef_h='<'stddef.h'>'
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17096 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17097 if test "${gl_cv_next_stddef_h+set}" = set; then :
17098 $as_echo_n "(cached) " >&6
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105 #include <stddef.h>
17108 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17109 *) gl_absname_cpp="$ac_cpp" ;;
17114 gl_dirsep_regex='[/\\]'
17117 gl_dirsep_regex='\/'
17120 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17121 gl_header_literal_regex=`echo 'stddef.h' \
17122 |
sed -e "$gl_make_literal_regex_sed"`
17123 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17124 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17130 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17131 sed -n "$gl_absolute_header_sed"`
17133 gl_header=$gl_cv_absolute_stddef_h
17134 gl_cv_next_stddef_h='"'$gl_header'"'
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17139 $as_echo "$gl_cv_next_stddef_h" >&6; }
17141 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17143 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17144 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17145 gl_next_as_first_directive='<'stddef.h'>'
17147 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17148 gl_next_as_first_directive=$gl_cv_next_stddef_h
17150 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17170 if test $gl_cv_have_include_next = yes; then
17171 gl_cv_next_stdio_h='<'stdio.h'>'
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17174 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17175 if test "${gl_cv_next_stdio_h+set}" = set; then :
17176 $as_echo_n "(cached) " >&6
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17186 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17187 *) gl_absname_cpp="$ac_cpp" ;;
17192 gl_dirsep_regex='[/\\]'
17195 gl_dirsep_regex='\/'
17198 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17199 gl_header_literal_regex=`echo 'stdio.h' \
17200 |
sed -e "$gl_make_literal_regex_sed"`
17201 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17202 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17208 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17209 sed -n "$gl_absolute_header_sed"`
17211 gl_header=$gl_cv_absolute_stdio_h
17212 gl_cv_next_stdio_h='"'$gl_header'"'
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17217 $as_echo "$gl_cv_next_stdio_h" >&6; }
17219 NEXT_STDIO_H=$gl_cv_next_stdio_h
17221 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17223 gl_next_as_first_directive='<'stdio.h'>'
17225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17226 gl_next_as_first_directive=$gl_cv_next_stdio_h
17228 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17235 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17236 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17237 $as_echo_n "(cached) " >&6
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17242 #define __STDC_FORMAT_MACROS 1
17244 #include <inttypes.h>
17245 /* For non-mingw systems, compilation will trivially succeed.
17246 For mingw, compilation will succeed for older mingw (system
17247 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17248 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17249 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17250 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17261 if ac_fn_c_try_compile "$LINENO"; then :
17262 gl_cv_func_printf_attribute_flavor=system
17264 gl_cv_func_printf_attribute_flavor=gnu
17266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17269 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17270 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17272 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17279 cat >>confdefs.h <<_ACEOF
17280 #define GNULIB_FSCANF 1
17287 cat >>confdefs.h <<_ACEOF
17288 #define GNULIB_SCANF 1
17313 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17314 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17316 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17317 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17318 $as_echo_n "(cached) " >&6
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17333 if ac_fn_c_try_compile "$LINENO"; then :
17334 eval "$as_gl_Symbol=yes"
17336 eval "$as_gl_Symbol=no"
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 eval ac_res=\$$as_gl_Symbol
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17342 $as_echo "$ac_res" >&6; }
17343 eval as_val=\$$as_gl_Symbol
17344 if test "x$as_val" = x""yes; then :
17345 cat >>confdefs.h <<_ACEOF
17346 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17349 eval ac_cv_have_decl_$gl_func=yes
17364 if test $gl_cv_have_include_next = yes; then
17365 gl_cv_next_stdlib_h='<'stdlib.h'>'
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17368 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17369 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17370 $as_echo_n "(cached) " >&6
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 #include <stdlib.h>
17380 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17381 *) gl_absname_cpp="$ac_cpp" ;;
17386 gl_dirsep_regex='[/\\]'
17389 gl_dirsep_regex='\/'
17392 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17393 gl_header_literal_regex=`echo 'stdlib.h' \
17394 |
sed -e "$gl_make_literal_regex_sed"`
17395 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17396 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17402 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17403 sed -n "$gl_absolute_header_sed"`
17405 gl_header=$gl_cv_absolute_stdlib_h
17406 gl_cv_next_stdlib_h='"'$gl_header'"'
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17411 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17413 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17417 gl_next_as_first_directive='<'stdlib.h'>'
17419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17420 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17422 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17429 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 random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
17430 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17432 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17433 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17434 $as_echo_n "(cached) " >&6
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 #include <stdlib.h>
17439 #if HAVE_SYS_LOADAVG_H
17440 # include <sys/loadavg.h>
17443 # include <random.h>
17455 if ac_fn_c_try_compile "$LINENO"; then :
17456 eval "$as_gl_Symbol=yes"
17458 eval "$as_gl_Symbol=no"
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17462 eval ac_res=\$$as_gl_Symbol
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17464 $as_echo "$ac_res" >&6; }
17465 eval as_val=\$$as_gl_Symbol
17466 if test "x$as_val" = x""yes; then :
17467 cat >>confdefs.h <<_ACEOF
17468 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17471 eval ac_cv_have_decl_$gl_func=yes
17480 for ac_func in strchrnul
17482 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17483 if test "x$ac_cv_func_strchrnul" = x""yes; then :
17484 cat >>confdefs.h <<_ACEOF
17485 #define HAVE_STRCHRNUL 1
17491 if test $ac_cv_func_strchrnul = no; then
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
17495 $as_echo_n "checking whether strchrnul works... " >&6; }
17496 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
17497 $as_echo_n "(cached) " >&6
17499 if test "$cross_compiling" = yes; then :
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17503 #if defined __CYGWIN__
17504 #include <cygwin/version.h>
17505 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
17513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17514 $EGREP "Lucky user" >/dev/null 2>&1; then :
17515 gl_cv_func_strchrnul_works="guessing yes"
17517 gl_cv_func_strchrnul_works="guessing no"
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 #include <string.h> /* for strchrnul */
17531 const char *buf = "a";
17532 return strchrnul (buf, 'b') != buf + 1;
17538 if ac_fn_c_try_run "$LINENO"; then :
17539 gl_cv_func_strchrnul_works=yes
17541 gl_cv_func_strchrnul_works=no
17543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17544 conftest.$ac_objext conftest.beam conftest.$ac_ext
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
17550 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
17551 case "$gl_cv_func_strchrnul_works" in
17553 *) REPLACE_STRCHRNUL=1 ;;
17557 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
17566 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
17581 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
17590 if test $REPLACE_STRSTR = 0; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17592 $as_echo_n "checking whether strstr works in linear time... " >&6; }
17593 if test "${gl_cv_func_strstr_linear+set}" = set; then :
17594 $as_echo_n "(cached) " >&6
17596 if test "$cross_compiling" = yes; then :
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17600 #include <features.h>
17601 #ifdef __GNU_LIBRARY__
17602 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17603 && !(defined __i386__ || defined __x86_64__) \
17604 && !defined __UCLIBC__
17609 #include <cygwin/version.h>
17610 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17617 $EGREP "Lucky user" >/dev/null 2>&1; then :
17618 gl_cv_func_strstr_linear="guessing yes"
17620 gl_cv_func_strstr_linear="guessing no"
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17629 #include <signal.h> /* for signal */
17630 #include <string.h> /* for strstr */
17631 #include <stdlib.h> /* for malloc */
17632 #include <unistd.h> /* for alarm */
17633 static void quit (int sig) { exit (sig + 128); }
17640 size_t m = 1000000;
17641 char *haystack = (char *) malloc (2 * m + 2);
17642 char *needle = (char *) malloc (m + 2);
17643 /* Failure to compile this test due to missing alarm is okay,
17644 since all such platforms (mingw) also have quadratic strstr. */
17645 signal (SIGALRM, quit);
17647 /* Check for quadratic performance. */
17648 if (haystack && needle)
17650 memset (haystack, 'A', 2 * m);
17651 haystack[2 * m] = 'B';
17652 haystack[2 * m + 1] = 0;
17653 memset (needle, 'A', m);
17656 if (!strstr (haystack, needle))
17665 if ac_fn_c_try_run "$LINENO"; then :
17666 gl_cv_func_strstr_linear=yes
17668 gl_cv_func_strstr_linear=no
17670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17671 conftest.$ac_objext conftest.beam conftest.$ac_ext
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17677 $as_echo "$gl_cv_func_strstr_linear" >&6; }
17678 case "$gl_cv_func_strstr_linear" in
17686 if test $REPLACE_STRSTR = 1; then
17695 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17701 if test "$gl_cv_func_memchr_works" != yes; then
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17705 $as_echo_n "checking whether strstr works... " >&6; }
17706 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
17707 $as_echo_n "(cached) " >&6
17709 if test "$cross_compiling" = yes; then :
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17713 #ifdef __GNU_LIBRARY__
17714 #include <features.h>
17715 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17716 || defined __UCLIBC__
17719 #elif defined __CYGWIN__
17720 #include <cygwin/version.h>
17721 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17730 $EGREP "Lucky user" >/dev/null 2>&1; then :
17731 gl_cv_func_strstr_works_always="guessing yes"
17733 gl_cv_func_strstr_works_always="guessing no"
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17742 #include <string.h> /* for strstr */
17743 #define P "_EF_BF_BD"
17744 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17745 #define NEEDLE P P P P P
17750 return !!strstr (HAYSTACK, NEEDLE);
17756 if ac_fn_c_try_run "$LINENO"; then :
17757 gl_cv_func_strstr_works_always=yes
17759 gl_cv_func_strstr_works_always=no
17761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17762 conftest.$ac_objext conftest.beam conftest.$ac_ext
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17768 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
17769 case "$gl_cv_func_strstr_works_always" in
17777 if test $REPLACE_STRSTR = 1; then
17786 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17800 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
17808 for ac_func in strtok_r
17810 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17811 if test "x$ac_cv_func_strtok_r" = x""yes; then :
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_STRTOK_R 1
17819 if test $ac_cv_func_strtok_r = yes; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17822 $as_echo_n "checking whether strtok_r works... " >&6; }
17823 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17824 $as_echo_n "(cached) " >&6
17826 if test "$cross_compiling" = yes; then :
17829 # Guess no on glibc systems.
17830 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17831 *) gl_cv_func_strtok_r_works="guessing yes";;
17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17838 #ifndef __OPTIMIZE__
17839 # define __OPTIMIZE__ 1
17841 #undef __OPTIMIZE_SIZE__
17842 #undef __NO_INLINE__
17843 #include <stdlib.h>
17844 #include <string.h>
17849 static const char dummy[] = "\177\01a";
17850 char delimiters[] = "xxxxxxxx";
17851 char *save_ptr = (char *) dummy;
17852 strtok_r (delimiters, "x", &save_ptr);
17853 strtok_r (NULL, "x", &save_ptr);
17861 if ac_fn_c_try_run "$LINENO"; then :
17862 gl_cv_func_strtok_r_works=yes
17864 gl_cv_func_strtok_r_works=no
17866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17867 conftest.$ac_objext conftest.beam conftest.$ac_ext
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17873 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
17874 case "$gl_cv_func_strtok_r_works" in
17876 UNDEFINE_STRTOK_R=1
17883 if test $ac_cv_have_decl_strtok_r = no; then
17884 HAVE_DECL_STRTOK_R=0
17887 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17896 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17913 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17931 if test $gl_cv_have_include_next = yes; then
17932 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17935 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17936 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17940 if test $ac_cv_header_sys_stat_h = yes; then
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h. */
17947 #include <sys/stat.h>
17950 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17951 *) gl_absname_cpp="$ac_cpp" ;;
17956 gl_dirsep_regex='[/\\]'
17959 gl_dirsep_regex='\/'
17962 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17963 gl_header_literal_regex=`echo 'sys/stat.h' \
17964 |
sed -e "$gl_make_literal_regex_sed"`
17965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17972 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17973 sed -n "$gl_absolute_header_sed"`
17975 gl_header=$gl_cv_absolute_sys_stat_h
17976 gl_cv_next_sys_stat_h='"'$gl_header'"'
17978 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17984 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17986 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17990 gl_next_as_first_directive='<'sys/stat.h'>'
17992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17993 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17995 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18007 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18009 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18013 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18014 #include <sys/stat.h>
18016 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18020 $as_echo "#define nlink_t int" >>confdefs.h
18026 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18027 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18029 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18030 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18031 $as_echo_n "(cached) " >&6
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18035 #include <sys/stat.h>
18046 if ac_fn_c_try_compile "$LINENO"; then :
18047 eval "$as_gl_Symbol=yes"
18049 eval "$as_gl_Symbol=no"
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 eval ac_res=\$$as_gl_Symbol
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18055 $as_echo "$ac_res" >&6; }
18056 eval as_val=\$$as_gl_Symbol
18057 if test "x$as_val" = x""yes; then :
18058 cat >>confdefs.h <<_ACEOF
18059 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18062 eval ac_cv_have_decl_$gl_func=yes
18089 if test $gl_cv_have_include_next = yes; then
18090 gl_cv_next_unistd_h='<'unistd.h'>'
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18093 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18094 if test "${gl_cv_next_unistd_h+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18098 if test $ac_cv_header_unistd_h = yes; then
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18105 #include <unistd.h>
18108 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18109 *) gl_absname_cpp="$ac_cpp" ;;
18114 gl_dirsep_regex='[/\\]'
18117 gl_dirsep_regex='\/'
18120 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18121 gl_header_literal_regex=`echo 'unistd.h' \
18122 |
sed -e "$gl_make_literal_regex_sed"`
18123 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18124 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18130 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18131 sed -n "$gl_absolute_header_sed"`
18133 gl_header=$gl_cv_absolute_unistd_h
18134 gl_cv_next_unistd_h='"'$gl_header'"'
18136 gl_cv_next_unistd_h='<'unistd.h'>'
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18142 $as_echo "$gl_cv_next_unistd_h" >&6; }
18144 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18146 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18147 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18148 gl_next_as_first_directive='<'unistd.h'>'
18150 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18151 gl_next_as_first_directive=$gl_cv_next_unistd_h
18153 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18158 if test $ac_cv_header_unistd_h = yes; then
18170 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
18171 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18173 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18174 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18175 $as_echo_n "(cached) " >&6
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18181 # include <unistd.h>
18183 /* Some systems declare various items in the wrong headers. */
18184 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18185 # include <fcntl.h>
18186 # include <stdio.h>
18187 # include <stdlib.h>
18188 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18202 if ac_fn_c_try_compile "$LINENO"; then :
18203 eval "$as_gl_Symbol=yes"
18205 eval "$as_gl_Symbol=no"
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 eval ac_res=\$$as_gl_Symbol
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18211 $as_echo "$ac_res" >&6; }
18212 eval as_val=\$$as_gl_Symbol
18213 if test "x$as_val" = x""yes; then :
18214 cat >>confdefs.h <<_ACEOF
18215 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18218 eval ac_cv_have_decl_$gl_func=yes
18235 if test $gl_cv_have_include_next = yes; then
18236 gl_cv_next_wchar_h='<'wchar.h'>'
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18239 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18240 if test "${gl_cv_next_wchar_h+set}" = set; then :
18241 $as_echo_n "(cached) " >&6
18244 if test $ac_cv_header_wchar_h = yes; then
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18255 *) gl_absname_cpp="$ac_cpp" ;;
18260 gl_dirsep_regex='[/\\]'
18263 gl_dirsep_regex='\/'
18266 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18267 gl_header_literal_regex=`echo 'wchar.h' \
18268 |
sed -e "$gl_make_literal_regex_sed"`
18269 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18270 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18276 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18277 sed -n "$gl_absolute_header_sed"`
18279 gl_header=$gl_cv_absolute_wchar_h
18280 gl_cv_next_wchar_h='"'$gl_header'"'
18282 gl_cv_next_wchar_h='<'wchar.h'>'
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18288 $as_echo "$gl_cv_next_wchar_h" >&6; }
18290 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18292 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18294 gl_next_as_first_directive='<'wchar.h'>'
18296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18297 gl_next_as_first_directive=$gl_cv_next_wchar_h
18299 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18304 if test $ac_cv_header_wchar_h = yes; then
18314 if test $gt_cv_c_wint_t = yes; then
18322 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
18323 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18325 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18326 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18327 $as_echo_n "(cached) " >&6
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18335 included before <wchar.h>. */
18336 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18337 # include <stddef.h>
18338 # include <stdio.h>
18352 if ac_fn_c_try_compile "$LINENO"; then :
18353 eval "$as_gl_Symbol=yes"
18355 eval "$as_gl_Symbol=no"
18357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 eval ac_res=\$$as_gl_Symbol
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18361 $as_echo "$ac_res" >&6; }
18362 eval as_val=\$$as_gl_Symbol
18363 if test "x$as_val" = x""yes; then :
18364 cat >>confdefs.h <<_ACEOF
18365 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18368 eval ac_cv_have_decl_$gl_func=yes
18378 if test $ac_cv_func_iswcntrl = yes; then
18386 if test $gt_cv_c_wint_t = yes; then
18402 if test $gl_cv_have_include_next = yes; then
18403 gl_cv_next_wctype_h='<'wctype.h'>'
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18406 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18407 if test "${gl_cv_next_wctype_h+set}" = set; then :
18408 $as_echo_n "(cached) " >&6
18411 if test $ac_cv_header_wctype_h = yes; then
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18418 #include <wctype.h>
18421 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18422 *) gl_absname_cpp="$ac_cpp" ;;
18427 gl_dirsep_regex='[/\\]'
18430 gl_dirsep_regex='\/'
18433 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18434 gl_header_literal_regex=`echo 'wctype.h' \
18435 |
sed -e "$gl_make_literal_regex_sed"`
18436 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18437 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18443 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18444 sed -n "$gl_absolute_header_sed"`
18446 gl_header=$gl_cv_absolute_wctype_h
18447 gl_cv_next_wctype_h='"'$gl_header'"'
18449 gl_cv_next_wctype_h='<'wctype.h'>'
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18455 $as_echo "$gl_cv_next_wctype_h" >&6; }
18457 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18459 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18461 gl_next_as_first_directive='<'wctype.h'>'
18463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18464 gl_next_as_first_directive=$gl_cv_next_wctype_h
18466 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18471 if test $ac_cv_header_wctype_h = yes; then
18472 if test $ac_cv_func_iswcntrl = yes; then
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18474 $as_echo_n "checking whether iswcntrl works... " >&6; }
18475 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18479 if test "$cross_compiling" = yes; then :
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482 #include <stdlib.h>
18483 #if __GNU_LIBRARY__ == 1
18484 Linux libc5 i18n is broken.
18494 if ac_fn_c_try_compile "$LINENO"; then :
18495 gl_cv_func_iswcntrl_works="guessing yes"
18497 gl_cv_func_iswcntrl_works="guessing no"
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18505 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18506 included before <wchar.h>.
18507 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18508 must be included before <wchar.h>. */
18509 #include <stddef.h>
18513 #include <wctype.h>
18514 int main () { return iswprint ('x') == 0; }
18517 if ac_fn_c_try_run "$LINENO"; then :
18518 gl_cv_func_iswcntrl_works=yes
18520 gl_cv_func_iswcntrl_works=no
18522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18523 conftest.$ac_objext conftest.beam conftest.$ac_ext
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18529 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18537 case "$gl_cv_func_iswcntrl_works" in
18538 *yes) REPLACE_ISWCNTRL=0 ;;
18539 *) REPLACE_ISWCNTRL=1 ;;
18543 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18547 if test $REPLACE_ISWCNTRL = 1; then
18550 for ac_func in towlower
18552 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18553 if test "x$ac_cv_func_towlower" = x""yes; then :
18554 cat >>confdefs.h <<_ACEOF
18555 #define HAVE_TOWLOWER 1
18561 if test $ac_cv_func_towlower = yes; then
18564 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18565 included before <wchar.h>.
18566 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18567 must be included before <wchar.h>. */
18568 #include <stddef.h>
18573 # include <wctype.h>
18577 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18583 cat >>confdefs.h <<_ACEOF
18584 #define HAVE_DECL_TOWLOWER $ac_have_decl
18587 if test $ac_cv_have_decl_towlower = yes; then
18596 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18601 $as_echo_n "checking for wctype_t... " >&6; }
18602 if test "${gl_cv_type_wctype_t+set}" = set; then :
18603 $as_echo_n "(cached) " >&6
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18608 included before <wchar.h>.
18609 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18610 must be included before <wchar.h>. */
18611 #include <stddef.h>
18616 # include <wctype.h>
18628 if ac_fn_c_try_compile "$LINENO"; then :
18629 gl_cv_type_wctype_t=yes
18631 gl_cv_type_wctype_t=no
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18637 $as_echo "$gl_cv_type_wctype_t" >&6; }
18638 if test $gl_cv_type_wctype_t = no; then
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18643 $as_echo_n "checking for wctrans_t... " >&6; }
18644 if test "${gl_cv_type_wctrans_t+set}" = set; then :
18645 $as_echo_n "(cached) " >&6
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18649 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18650 included before <wchar.h>.
18651 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18652 must be included before <wchar.h>. */
18653 #include <stddef.h>
18657 #include <wctype.h>
18668 if ac_fn_c_try_compile "$LINENO"; then :
18669 gl_cv_type_wctrans_t=yes
18671 gl_cv_type_wctrans_t=no
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18677 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18678 if test $gl_cv_type_wctrans_t = no; then
18683 for gl_func in wctype iswctype wctrans towctrans ; do
18684 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18686 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18687 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18688 $as_echo_n "(cached) " >&6
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18693 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18695 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18696 included before <wchar.h>. */
18697 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18698 # include <stddef.h>
18699 # include <stdio.h>
18701 # include <wchar.h>
18703 #include <wctype.h>
18714 if ac_fn_c_try_compile "$LINENO"; then :
18715 eval "$as_gl_Symbol=yes"
18717 eval "$as_gl_Symbol=no"
18719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721 eval ac_res=\$$as_gl_Symbol
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18723 $as_echo "$ac_res" >&6; }
18724 eval as_val=\$$as_gl_Symbol
18725 if test "x$as_val" = x""yes; then :
18726 cat >>confdefs.h <<_ACEOF
18727 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18730 eval ac_cv_have_decl_$gl_func=yes
18735 # End of code from modules
18756 gl_source_base='tests'
18757 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
18759 gl_module_indicator_condition=$gltests_WITNESS
18769 LIBGNU_LIBDEPS="$gl_libdeps"
18771 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18775 # We don't use automake, but gnulib does. This line lets us generate
18777 am__api_version='1.11'
18779 # Find a good install program. We prefer a C program (faster),
18780 # so one script is as good as another. But avoid the broken or
18781 # incompatible versions:
18782 # SysV /etc/install, /usr/sbin/install
18783 # SunOS /usr/etc/install
18784 # IRIX /sbin/install
18786 # AmigaOS /C/install, which installs bootblocks on floppy discs
18787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18790 # OS/2's system install, which has a completely different semantic
18791 # ./install, which can be erroneously created by make from ./install.sh.
18792 # Reject install programs that cannot install multiple files.
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18794 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18795 if test -z "$INSTALL"; then
18796 if test "${ac_cv_path_install+set}" = set; then :
18797 $as_echo_n "(cached) " >&6
18799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18800 for as_dir in $PATH
18803 test -z "$as_dir" && as_dir=.
18804 # Account for people who put trailing slashes in PATH elements.
18805 case $as_dir/ in #((
18806 ./ | .// | /[cC]/* | \
18807 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18808 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18811 # OSF1 and SCO ODT 3.0 have their own names for install.
18812 # Don't use installbsd from OSF since it installs stuff as root
18814 for ac_prog in ginstall scoinst install; do
18815 for ac_exec_ext in '' $ac_executable_extensions; do
18816 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18817 if test $ac_prog = install &&
18818 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18819 # AIX install. It has an incompatible calling convention.
18821 elif test $ac_prog = install &&
18822 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18823 # program-specific install script used by HP pwplus--don't use.
18826 rm -rf conftest.one conftest.two conftest.dir
18827 echo one > conftest.one
18828 echo two > conftest.two
18830 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18831 test -s conftest.one && test -s conftest.two &&
18832 test -s conftest.dir/conftest.one &&
18833 test -s conftest.dir/conftest.two
18835 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18848 rm -rf conftest.one conftest.two conftest.dir
18851 if test "${ac_cv_path_install+set}" = set; then
18852 INSTALL=$ac_cv_path_install
18854 # As a last resort, use the slow shell script. Don't cache a
18855 # value for INSTALL within a source directory, because that will
18856 # break other packages using the cache if that directory is
18857 # removed, or if the value is a relative name.
18858 INSTALL=$ac_install_sh
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18862 $as_echo "$INSTALL" >&6; }
18864 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18865 # It thinks the first close brace ends the variable substitution.
18866 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18868 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18870 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18873 $as_echo_n "checking whether build environment is sane... " >&6; }
18876 echo timestamp > conftest.file
18877 # Reject unsafe characters in $srcdir or the absolute working directory
18878 # name. Accept space and tab only in the latter.
18882 *[\\\"\#\$\&\'\`$am_lf]*)
18883 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
18886 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
18887 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18890 # Do `set' in a subshell so we don't clobber the current shell's
18891 # arguments. Must try -L first in case configure is actually a
18892 # symlink; some systems play weird games with the mod time of symlinks
18893 # (eg FreeBSD returns the mod time of the symlink's containing
18896 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18897 if test "$*" = "X"; then
18899 set X
`ls -t "$srcdir/configure" conftest.file`
18901 rm -f conftest.
file
18902 if test "$*" != "X $srcdir/configure conftest.file" \
18903 && test "$*" != "X conftest.file $srcdir/configure"; then
18905 # If neither matched, then we have a broken ls. This can happen
18906 # if, for instance, CONFIG_SHELL is bash and it inherits a
18907 # broken ls alias from the environment. This has actually
18908 # happened. Such a system could not be considered "sane".
18909 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
18910 alias in your environment" "$LINENO" 5
18913 test "$2" = conftest.
file
18919 as_fn_error
"newly created file is older than distributed files!
18920 Check your system clock" "$LINENO" 5
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18923 $as_echo "yes" >&6; }
18924 test "$program_prefix" != NONE
&&
18925 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
18926 # Use a double $ so make ignores it.
18927 test "$program_suffix" != NONE
&&
18928 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
18929 # Double any \ or $.
18930 # By default was `s,x,x', remove it if useless.
18931 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
18932 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
18934 # expand $ac_aux_dir to an absolute path
18935 am_aux_dir
=`cd $ac_aux_dir && pwd`
18937 if test x
"${MISSING+set}" != xset
; then
18938 case $am_aux_dir in
18940 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
18942 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
18945 # Use eval to expand $SHELL
18946 if eval "$MISSING --run true"; then
18947 am_missing_run
="$MISSING --run "
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18951 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18954 if test x
"${install_sh}" != xset
; then
18955 case $am_aux_dir in
18957 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
18959 install_sh
="\${SHELL} $am_aux_dir/install-sh"
18963 # Installed binaries are usually stripped using `strip' when the user
18964 # run `make install-strip'. However `strip' might not be the right
18965 # tool to use in cross-compilation environments, therefore Automake
18966 # will honor the `STRIP' environment variable to overrule this program.
18967 if test "$cross_compiling" != no
; then
18968 if test -n "$ac_tool_prefix"; then
18969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18970 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18972 $as_echo_n "checking for $ac_word... " >&6; }
18973 if test "${ac_cv_prog_STRIP+set}" = set; then :
18974 $as_echo_n "(cached) " >&6
18976 if test -n "$STRIP"; then
18977 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
18979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18980 for as_dir
in $PATH
18983 test -z "$as_dir" && as_dir
=.
18984 for ac_exec_ext
in '' $ac_executable_extensions; do
18985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18986 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
18987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18996 STRIP
=$ac_cv_prog_STRIP
18997 if test -n "$STRIP"; then
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18999 $as_echo "$STRIP" >&6; }
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19002 $as_echo "no" >&6; }
19007 if test -z "$ac_cv_prog_STRIP"; then
19009 # Extract the first word of "strip", so it can be a program name with args.
19010 set dummy strip
; ac_word
=$2
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19012 $as_echo_n "checking for $ac_word... " >&6; }
19013 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19014 $as_echo_n "(cached) " >&6
19016 if test -n "$ac_ct_STRIP"; then
19017 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
19019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19020 for as_dir
in $PATH
19023 test -z "$as_dir" && as_dir
=.
19024 for ac_exec_ext
in '' $ac_executable_extensions; do
19025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19026 ac_cv_prog_ac_ct_STRIP
="strip"
19027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19036 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
19037 if test -n "$ac_ct_STRIP"; then
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19039 $as_echo "$ac_ct_STRIP" >&6; }
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19042 $as_echo "no" >&6; }
19045 if test "x$ac_ct_STRIP" = x
; then
19048 case $cross_compiling:$ac_tool_warned in
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19052 ac_tool_warned
=yes ;;
19057 STRIP
="$ac_cv_prog_STRIP"
19061 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
19065 [\\/$
]* | ?
:[\\/]*) ;;
19066 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
19069 for ac_prog
in gawk mawk nawk
awk
19071 # Extract the first word of "$ac_prog", so it can be a program name with args.
19072 set dummy
$ac_prog; ac_word
=$2
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19074 $as_echo_n "checking for $ac_word... " >&6; }
19075 if test "${ac_cv_prog_AWK+set}" = set; then :
19076 $as_echo_n "(cached) " >&6
19078 if test -n "$AWK"; then
19079 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
19081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19082 for as_dir
in $PATH
19085 test -z "$as_dir" && as_dir
=.
19086 for ac_exec_ext
in '' $ac_executable_extensions; do
19087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19088 ac_cv_prog_AWK
="$ac_prog"
19089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19098 AWK
=$ac_cv_prog_AWK
19099 if test -n "$AWK"; then
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19101 $as_echo "$AWK" >&6; }
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 $as_echo "no" >&6; }
19108 test -n "$AWK" && break
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19112 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19114 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19115 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
19116 $as_echo_n "(cached) " >&6
19118 cat >conftest.
make <<\_ACEOF
19121 @
echo '@@@%%%=$(MAKE)=@@@%%%'
19123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19124 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19125 *@@@
%%%=?
*=@@@
%%%*)
19126 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
19128 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
19130 rm -f conftest.
make
19132 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19134 $as_echo "yes" >&6; }
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138 $as_echo "no" >&6; }
19139 SET_MAKE
="MAKE=${MAKE-make}"
19142 rm -rf .tst
2>/dev
/null
19143 mkdir .tst
2>/dev
/null
19144 if test -d .tst
; then
19149 rmdir .tst
2>/dev
/null
19151 DEPDIR
="${am__leading_dot}deps"
19153 ac_config_commands
="$ac_config_commands depfiles"
19156 am_make
=${MAKE-make}
19157 cat > confinc
<< 'END'
19159 @
echo this is the am__doit target
19162 # If we don't find an include directive, just comment out the code.
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19164 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19168 # First try GNU make style include.
19169 echo "include confinc" > confmf
19170 # Ignore all kinds of additional output from `make'.
19171 case `$am_make -s -f confmf 2> /dev/null` in #(
19172 *the\ am__doit\ target
*)
19173 am__include
=include
19178 # Now try BSD make style include.
19179 if test "$am__include" = "#"; then
19180 echo '.include "confinc"' > confmf
19181 case `$am_make -s -f confmf 2> /dev/null` in #(
19182 *the\ am__doit\ target
*)
19183 am__include
=.include
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19192 $as_echo "$_am_result" >&6; }
19193 rm -f confinc confmf
19195 # Check whether --enable-dependency-tracking was given.
19196 if test "${enable_dependency_tracking+set}" = set; then :
19197 enableval
=$enable_dependency_tracking;
19200 if test "x$enable_dependency_tracking" != xno
; then
19201 am_depcomp
="$ac_aux_dir/depcomp"
19204 if test "x$enable_dependency_tracking" != xno; then
19213 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19214 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19215 # is not polluted with repeated "-I."
19216 am__isrc
=' -I$(srcdir)'
19217 # test to see if srcdir already configured
19218 if test -f $srcdir/config.status
; then
19219 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19223 # test whether we have cygpath
19224 if test -z "$CYGPATH_W"; then
19225 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
19226 CYGPATH_W
='cygpath -w'
19233 # Define the identity of the package.
19235 VERSION
=UNUSED-VERSION
19238 # Some tools Automake needs.
19240 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19243 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
19246 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19249 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
19252 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
19254 # We need awk for the "check" target. The system "awk" is bad on
19256 # Always define AMTAR for backward compatibility.
19258 AMTAR
=${AMTAR-"${am_missing_run}tar"}
19260 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
19265 depcc
="$CC" am_compiler_list
=
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19268 $as_echo_n "checking dependency style of $depcc... " >&6; }
19269 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19270 $as_echo_n "(cached) " >&6
19272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19273 # We make a subdir and do the tests there. Otherwise we can end up
19274 # making bogus files that we don't know about and never remove. For
19275 # instance it was reported that on HP-UX the gcc test will end up
19276 # making a dummy file named `D' -- because `-MD' means `put the output
19279 # Copy depcomp to subdir because otherwise we won't find it if we're
19280 # using a relative directory.
19281 cp "$am_depcomp" conftest.dir
19283 # We will build objects and dependencies in a subdirectory because
19284 # it helps to detect inapplicable dependency modes. For instance
19285 # both Tru64's cc and ICC support -MD to output dependencies as a
19286 # side effect of compilation, but ICC will put the dependencies in
19287 # the current directory while Tru64 will put them in the object
19291 am_cv_CC_dependencies_compiler_type
=none
19292 if test "$am_compiler_list" = ""; then
19293 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19295 am__universal
=false
19296 case " $depcc " in #(
19297 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
19300 for depmode
in $am_compiler_list; do
19301 # Setup a source with many dependencies, because some compilers
19302 # like to wrap large dependency lists on column 80 (with \), and
19303 # we should not choose a depcomp mode which is confused by this.
19305 # We need to recreate these files for each test, as the compiler may
19306 # overwrite some of them when testing with obscure command lines.
19307 # This happens at least with the AIX C compiler.
19309 for i
in 1 2 3 4 5 6; do
19310 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
19311 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19312 # Solaris 8's {/usr,}/bin/sh.
19313 touch sub
/conftst
$i.h
19315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19317 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19318 # mode. It turns out that the SunPro C++ compiler does not properly
19319 # handle `-M -o', and we need to detect this. Also, some Intel
19320 # versions had trouble with output in subdirs
19321 am__obj
=sub
/conftest.
${OBJEXT-o}
19322 am__minus_obj
="-o $am__obj"
19325 # This depmode causes a compiler race in universal mode.
19326 test "$am__universal" = false ||
continue
19329 # after this tag, mechanisms are not by side-effect, so they'll
19330 # only be used when explicitly requested
19331 if test "x$enable_dependency_tracking" = xyes
; then
19337 msvisualcpp | msvcmsys
)
19338 # This compiler won't grok `-c -o', but also, the minuso test has
19339 # not run yet. These depmodes are late enough in the game, and
19340 # so weak that their functioning should not be impacted.
19341 am__obj
=conftest.
${OBJEXT-o}
19346 if depmode
=$depmode \
19347 source=sub
/conftest.c object
=$am__obj \
19348 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
19349 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
19350 >/dev
/null
2>conftest.err
&&
19351 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19352 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
19353 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
19354 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
19355 # icc doesn't choke on unknown options, it will just issue warnings
19356 # or remarks (even with -Werror). So we grep stderr for any message
19357 # that says an option was ignored or not supported.
19358 # When given -MP, icc 7.0 and 7.1 complain thusly:
19359 # icc: Command line warning: ignoring option '-M'; no argument required
19360 # The diagnosis changed in icc 8.0:
19361 # icc: Command line remark: option '-MP' not supported
19362 if (grep 'ignoring option' conftest.err ||
19363 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
19364 am_cv_CC_dependencies_compiler_type
=$depmode
19371 rm -rf conftest.dir
19373 am_cv_CC_dependencies_compiler_type
=none
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19378 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19379 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
19382 test "x$enable_dependency_tracking" != xno \
19383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
19384 am__fastdepCC_TRUE
=
19385 am__fastdepCC_FALSE
='#'
19387 am__fastdepCC_TRUE
='#'
19388 am__fastdepCC_FALSE
=
19394 # --------------------- #
19395 # Checks for programs. #
19396 # --------------------- #
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19400 $as_echo_n "checking whether ln -s works... " >&6; }
19402 if test "$LN_S" = "ln -s"; then
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19404 $as_echo "yes" >&6; }
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19407 $as_echo "no, using $LN_S" >&6; }
19410 if test -n "$ac_tool_prefix"; then
19411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19412 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19414 $as_echo_n "checking for $ac_word... " >&6; }
19415 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19416 $as_echo_n "(cached) " >&6
19418 if test -n "$RANLIB"; then
19419 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19422 for as_dir
in $PATH
19425 test -z "$as_dir" && as_dir
=.
19426 for ac_exec_ext
in '' $ac_executable_extensions; do
19427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19428 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19438 RANLIB
=$ac_cv_prog_RANLIB
19439 if test -n "$RANLIB"; then
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19441 $as_echo "$RANLIB" >&6; }
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19449 if test -z "$ac_cv_prog_RANLIB"; then
19450 ac_ct_RANLIB
=$RANLIB
19451 # Extract the first word of "ranlib", so it can be a program name with args.
19452 set dummy ranlib
; ac_word
=$2
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19454 $as_echo_n "checking for $ac_word... " >&6; }
19455 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19456 $as_echo_n "(cached) " >&6
19458 if test -n "$ac_ct_RANLIB"; then
19459 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19462 for as_dir
in $PATH
19465 test -z "$as_dir" && as_dir
=.
19466 for ac_exec_ext
in '' $ac_executable_extensions; do
19467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19468 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19478 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19479 if test -n "$ac_ct_RANLIB"; then
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19481 $as_echo "$ac_ct_RANLIB" >&6; }
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19484 $as_echo "no" >&6; }
19487 if test "x$ac_ct_RANLIB" = x
; then
19490 case $cross_compiling:$ac_tool_warned in
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19494 ac_tool_warned
=yes ;;
19496 RANLIB
=$ac_ct_RANLIB
19499 RANLIB
="$ac_cv_prog_RANLIB"
19503 if test -n "$ac_tool_prefix"; then
19504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19505 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19507 $as_echo_n "checking for $ac_word... " >&6; }
19508 if test "${ac_cv_prog_AR+set}" = set; then :
19509 $as_echo_n "(cached) " >&6
19511 if test -n "$AR"; then
19512 ac_cv_prog_AR
="$AR" # Let the user override the test.
19514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19515 for as_dir
in $PATH
19518 test -z "$as_dir" && as_dir
=.
19519 for ac_exec_ext
in '' $ac_executable_extensions; do
19520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19521 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19532 if test -n "$AR"; then
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19534 $as_echo "$AR" >&6; }
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19537 $as_echo "no" >&6; }
19542 if test -z "$ac_cv_prog_AR"; then
19544 # Extract the first word of "ar", so it can be a program name with args.
19545 set dummy
ar; ac_word
=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19551 if test -n "$ac_ct_AR"; then
19552 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19555 for as_dir
in $PATH
19558 test -z "$as_dir" && as_dir
=.
19559 for ac_exec_ext
in '' $ac_executable_extensions; do
19560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19561 ac_cv_prog_ac_ct_AR
="ar"
19562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19571 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19572 if test -n "$ac_ct_AR"; then
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19574 $as_echo "$ac_ct_AR" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19580 if test "x$ac_ct_AR" = x
; then
19583 case $cross_compiling:$ac_tool_warned in
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19587 ac_tool_warned
=yes ;;
19592 AR
="$ac_cv_prog_AR"
19596 # ---------------------- #
19597 # Checks for libraries. #
19598 # ---------------------- #
19600 ac_config_files
="$ac_config_files Makefile import/Makefile"
19602 ac_config_commands
="$ac_config_commands default"
19604 cat >confcache
<<\_ACEOF
19605 # This file is a shell script that caches the results of configure
19606 # tests run on this system so they can be shared between configure
19607 # scripts and configure runs, see configure's option --config-cache.
19608 # It is not useful on other systems. If it contains results you don't
19609 # want to keep, you may remove or edit it.
19611 # config.status only pays attention to the cache file if you give it
19612 # the --recheck option to rerun configure.
19614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19616 # following values.
19620 # The following way of writing the cache mishandles newlines in values,
19621 # but we know of no workaround that is simple, portable, and efficient.
19622 # So, we kill variables containing newlines.
19623 # Ultrix sh set writes to stderr and can't be redirected directly,
19624 # and sets the high bit in the cache file unless we assign to the vars.
19626 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19627 eval ac_val
=\$
$ac_var
19631 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19635 _ | IFS | as_nl
) ;; #(
19636 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19637 *) { eval $ac_var=; unset $ac_var;} ;;
19643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19644 *${as_nl}ac_space
=\
*)
19645 # `set' does not quote correctly, so add quotes: double-quote
19646 # substitution turns \\\\ into \\, and sed turns \\ into \.
19649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19652 # `set' quotes correctly as required by POSIX, so do not add quotes.
19653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19666 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19667 if test -w "$cache_file"; then
19668 test "x$cache_file" != "x/dev/null" &&
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19670 $as_echo "$as_me: updating cache $cache_file" >&6;}
19671 cat confcache
>$cache_file
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19679 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19680 # Let make expand exec_prefix.
19681 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19683 DEFS
=-DHAVE_CONFIG_H
19687 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19688 # 1. Remove the extension, and $U if already installed.
19689 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19690 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19692 # will be set to the directory where LIBOBJS objects are built.
19693 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19694 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19696 LIBOBJS
=$ac_libobjs
19698 LTLIBOBJS
=$ac_ltlibobjs
19701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19702 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19705 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19706 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19709 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19710 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19714 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19718 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19721 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19722 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19725 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19726 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
19727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19732 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19736 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19742 if test -n "$gl_LIBOBJS"; then
19743 # Remove the extension.
19744 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19745 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19746 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19747 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19750 gl_LIBOBJS
=$gl_libobjs
19752 gl_LTLIBOBJS
=$gl_ltlibobjs
19758 if test -n "$gltests_LIBOBJS"; then
19759 # Remove the extension.
19760 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19761 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19762 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19763 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19766 gltests_LIBOBJS
=$gltests_libobjs
19768 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19772 as_fn_error
"conditional \"AMDEP\" was never defined.
19773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19776 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
19777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19779 if test -n "$EXEEXT"; then
19781 am__EXEEXT_FALSE
='#'
19783 am__EXEEXT_TRUE
='#'
19788 : ${CONFIG_STATUS=./config.status}
19790 ac_clean_files_save
=$ac_clean_files
19791 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19797 # Generated by $as_me.
19798 # Run this file to recreate the current configuration.
19799 # Compiler output produced by configure, useful for debugging
19800 # configure, is in config.log if it exists.
19803 ac_cs_recheck=false
19806 SHELL=\${CONFIG_SHELL-$SHELL}
19809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19810 ## -------------------- ##
19811 ## M4sh Initialization. ##
19812 ## -------------------- ##
19814 # Be more Bourne compatible
19815 DUALCASE
=1; export DUALCASE
# for MKS sh
19816 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19820 # is contrary to our usage. Disable this feature.
19821 alias -g '${1+"$@"}'='"$@"'
19822 setopt NO_GLOB_SUBST
19824 case `(set -o) 2>/dev/null` in #(
19836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19837 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19840 # Prefer a ksh shell builtin over an external printf program on Solaris,
19841 # but without wasting forks for bash or zsh.
19842 if test -z "$BASH_VERSION$ZSH_VERSION" \
19843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19844 as_echo='print
-r --'
19845 as_echo_n='print
-rn --'
19846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19847 as_echo='printf %s
\n'
19848 as_echo_n='printf %s
'
19850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19851 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19852 as_echo_n='/usr
/ucb
/echo -n'
19854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19855 as_echo_n_body='eval
19859 expr "X$arg" : "X\\(.*\\)$as_nl";
19860 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19862 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19864 export as_echo_n_body
19865 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19867 export as_echo_body
19868 as_echo='sh
-c $as_echo_body as_echo
'
19871 # The user is always right.
19872 if test "${PATH_SEPARATOR+set}" != set; then
19874 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19875 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19882 # We need space, tab and new line, in precisely that order. Quoting is
19883 # there to prevent editors from complaining about space-tab.
19884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19885 # splitting by setting IFS to empty value.)
19888 # Find who we are. Look in the path if we contain no directory separator.
19890 *[\\/]* ) as_myself=$0 ;;
19891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892 for as_dir in $PATH
19895 test -z "$as_dir" && as_dir=.
19896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19902 # We did not find ourselves, most probably we were run as `sh COMMAND'
19903 # in which case we are not to be found in the path.
19904 if test "x$as_myself" = x
; then
19907 if test ! -f "$as_myself"; then
19908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19912 # Unset variables that we do not need and which cause bugs (e.g. in
19913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19914 # suppresses any "Segmentation fault" message there. '((' could
19915 # trigger a bug in pdksh 5.2.14.
19916 for as_var
in BASH_ENV ENV MAIL MAILPATH
19917 do eval test x\
${$as_var+set} = xset \
19918 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19931 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19934 # as_fn_error ERROR [LINENO LOG_FD]
19935 # ---------------------------------
19936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19938 # script with status $?, using 1 if that was 0.
19941 as_status
=$?
; test $as_status -eq 0 && as_status
=1
19943 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19946 $as_echo "$as_me: error: $1" >&2
19947 as_fn_exit
$as_status
19951 # as_fn_set_status STATUS
19952 # -----------------------
19953 # Set $? to STATUS, without forking.
19954 as_fn_set_status
()
19957 } # as_fn_set_status
19959 # as_fn_exit STATUS
19960 # -----------------
19961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19965 as_fn_set_status
$1
19971 # Portably unset VAR.
19974 { eval $1=; unset $1;}
19976 as_unset
=as_fn_unset
19977 # as_fn_append VAR VALUE
19978 # ----------------------
19979 # Append the text in VALUE to the end of the definition contained in VAR. Take
19980 # advantage of any shell optimizations that allow amortized linear growth over
19981 # repeated appends, instead of the typical quadratic growth present in naive
19983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19984 eval 'as_fn_append ()
19995 # as_fn_arith ARG...
19996 # ------------------
19997 # Perform arithmetic evaluation on the ARGs, and store the result in the
19998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19999 # must be portable across $(()) and expr.
20000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20001 eval 'as_fn_arith ()
20008 as_val
=`expr "$@" || test $? -eq 1`
20013 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20014 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20020 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20021 as_basename
=basename
20026 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20032 as_me
=`$as_basename -- "$0" ||
20033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20034 X"$0" : 'X\(//\)$' \| \
20035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20037 sed '/^.*\/\([^/][^/]*\)\/*$/{
20051 # Avoid depending upon Character Ranges.
20052 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20053 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20054 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20055 as_cr_digits
='0123456789'
20056 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20058 ECHO_C
= ECHO_N
= ECHO_T
=
20059 case `echo -n x` in #(((((
20061 case `echo 'xy\c'` in
20062 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20064 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20071 rm -f conf$$ conf$$.exe conf$$.
file
20072 if test -d conf$$.dir
; then
20073 rm -f conf$$.dir
/conf$$.
file
20076 mkdir conf$$.dir
2>/dev
/null
20078 if (echo >conf$$.
file) 2>/dev
/null
; then
20079 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20081 # ... but there are two gotchas:
20082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20084 # In both cases, we have to default to `cp -p'.
20085 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20087 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20095 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20096 rmdir conf$$.dir
2>/dev
/null
20101 # Create "$as_dir" as a directory, including parents if necessary.
20106 -*) as_dir
=.
/$as_dir;;
20108 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20112 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20113 *) as_qdir
=$as_dir;;
20115 as_dirs
="'$as_qdir' $as_dirs"
20116 as_dir
=`$as_dirname -- "$as_dir" ||
20117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20118 X"$as_dir" : 'X\(//\)[^/]' \| \
20119 X"$as_dir" : 'X\(//\)$' \| \
20120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20121 $as_echo X"$as_dir" |
20122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20126 /^X\(\/\/\)[^/].*/{
20139 test -d "$as_dir" && break
20141 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20142 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20146 if mkdir
-p .
2>/dev
/null
; then
20147 as_mkdir_p
='mkdir -p "$as_dir"'
20149 test -d .
/-p && rmdir .
/-p
20153 if test -x / >/dev
/null
2>&1; then
20154 as_test_x
='test -x'
20156 if ls -dL / >/dev
/null
2>&1; then
20163 if test -d "$1"; then
20169 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20170 ???[sx]*):;;*)false;;esac;fi
20174 as_executable_p
=$as_test_x
20176 # Sed expression to map a string onto a valid CPP name.
20177 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20179 # Sed expression to map a string onto a valid variable name.
20180 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20184 ## ----------------------------------- ##
20185 ## Main body of $CONFIG_STATUS script. ##
20186 ## ----------------------------------- ##
20188 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20191 # Save the log message, to keep $0 and so on meaningful, and to
20192 # report actual input values of CONFIG_FILES etc. instead of their
20193 # values after options handling.
20195 This file was extended by $as_me, which was
20196 generated by GNU Autoconf 2.64. Invocation command line was
20198 CONFIG_FILES = $CONFIG_FILES
20199 CONFIG_HEADERS = $CONFIG_HEADERS
20200 CONFIG_LINKS = $CONFIG_LINKS
20201 CONFIG_COMMANDS = $CONFIG_COMMANDS
20204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20209 case $ac_config_files in *"
20210 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20213 case $ac_config_headers in *"
20214 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20219 # Files that config.status was made for.
20220 config_files="$ac_config_files"
20221 config_headers="$ac_config_headers"
20222 config_commands="$ac_config_commands"
20226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20228 \`$as_me' instantiates files and other configuration actions
20229 from templates according to the current configuration. Unless the files
20230 and actions are specified as TAGs, all are instantiated by default.
20232 Usage: $0 [OPTION]... [TAG]...
20234 -h, --help print this help, then exit
20235 -V, --version print version number and configuration settings, then exit
20236 -q, --quiet, --silent
20237 do not print progress messages
20238 -d, --debug don't remove temporary files
20239 --recheck update $as_me by reconfiguring in the same conditions
20240 --file=FILE[:TEMPLATE]
20241 instantiate the configuration file FILE
20242 --header=FILE[:TEMPLATE]
20243 instantiate the configuration header FILE
20245 Configuration files:
20248 Configuration headers:
20251 Configuration commands:
20254 Report bugs to the package provider."
20257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20260 configured by $0, generated by GNU Autoconf 2.64,
20261 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20263 Copyright (C) 2009 Free Software Foundation, Inc.
20264 This config.status script is free software; the Free Software Foundation
20265 gives unlimited permission to copy, distribute and modify it."
20272 test -n "\$AWK" || AWK=awk
20275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20276 # The default lists apply if the user does not specify any file.
20282 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20283 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20294 # Handling of the options.
20295 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20297 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20298 $as_echo "$ac_cs_version"; exit ;;
20299 --debug |
--debu |
--deb |
--de |
--d |
-d )
20301 --file |
--fil |
--fi |
--f )
20304 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20306 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20307 ac_need_defaults
=false
;;
20308 --header |
--heade |
--head |
--hea )
20311 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20313 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20314 ac_need_defaults
=false
;;
20316 # Conflict between --help and --header
20317 as_fn_error
"ambiguous option: \`$1'
20318 Try \`$0 --help' for more information.";;
20319 --help |
--hel |
-h )
20320 $as_echo "$ac_cs_usage"; exit ;;
20321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20322 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20325 # This is an error.
20326 -*) as_fn_error
"unrecognized option: \`$1'
20327 Try \`$0 --help' for more information." ;;
20329 *) as_fn_append ac_config_targets
" $1"
20330 ac_need_defaults
=false
;;
20336 ac_configure_extra_args
=
20338 if $ac_cs_silent; then
20340 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20345 if \$ac_cs_recheck; then
20346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20349 CONFIG_SHELL='$SHELL'
20350 export CONFIG_SHELL
20355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20360 ## Running $as_me. ##
20366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20376 # Handling of arguments.
20377 for ac_config_target
in $ac_config_targets
20379 case $ac_config_target in
20380 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20381 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20382 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20383 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
20384 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20386 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20391 # If the user did not use the arguments to specify the items to instantiate,
20392 # then the envvar interface is used. Set only those that are not.
20393 # We use the long form for the default assignment because of an extremely
20394 # bizarre bug on SunOS 4.1.3.
20395 if $ac_need_defaults; then
20396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20401 # Have a temporary directory for convenience. Make it in the build tree
20402 # simply because there is no reason against having it here, and in addition,
20403 # creating and moving files from /tmp can sometimes cause problems.
20404 # Hook for its removal unless debugging.
20405 # Note that there is a small window in which the directory will not be cleaned:
20406 # after its creation but before its name has been assigned to `$tmp'.
20410 trap 'exit_status=$?
20411 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20413 trap 'as_fn_exit 1' 1 2 13 15
20415 # Create a (secure) tmp directory for tmp files.
20418 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20419 test -n "$tmp" && test -d "$tmp"
20422 tmp
=.
/conf$$
-$RANDOM
20423 (umask 077 && mkdir
"$tmp")
20424 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20426 # Set up the scripts for CONFIG_FILES section.
20427 # No need to generate them if there are no CONFIG_FILES.
20428 # This happens for instance with `./config.status config.h'.
20429 if test -n "$CONFIG_FILES"; then
20432 ac_cr
=`echo X | tr X '\015'`
20433 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20434 # But we know of no other shell where ac_cr would be empty at this
20435 # point, so we can use a bashism as a fallback.
20436 if test "x$ac_cr" = x
; then
20437 eval ac_cr
=\$
\'\\r
\'
20439 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20440 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20443 ac_cs_awk_cr
=$ac_cr
20446 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20451 echo "cat >conf$$subs.awk <<_ACEOF" &&
20452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20454 } >conf$$subs.sh ||
20455 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20458 for ac_last_try in false false false false false :; do
20459 . ./conf$$subs.sh ||
20460 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20462 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20463 if test $ac_delim_n = $ac_delim_num; then
20465 elif $ac_last_try; then
20466 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20468 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20471 rm -f conf$$subs.sh
20473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20474 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20478 s/^/S["/; s
/!.
*/"]=/
20488 s/\(.\{148\}\).*/\1/
20490 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20495 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20502 s/\(.\{148\}\).*/\1/
20504 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20508 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20513 ' <conf$$subs.awk | sed '
20518 ' >>$CONFIG_STATUS || ac_write_fail=1
20519 rm -f conf$$subs.awk
20520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20522 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20523 for (key in S) S_is_set[key] = 1
20529 nfields = split(line, field, "@
")
20531 len = length(field[1])
20532 for (i = 2; i < nfields; i++) {
20534 keylen = length(key)
20535 if (S_is_set[key]) {
20537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20538 len += length(value) + length(field[++i])
20549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20550 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20551 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20554 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20555 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
20558 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20559 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
20560 # trailing colons and then remove the whole line if VPATH becomes empty
20561 # (actually we leave an empty line to preserve line numbers).
20562 if test "x
$srcdir" = x.; then
20563 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20564 s/:*\$(srcdir):*/:/
20565 s/:*\${srcdir}:*/:/
20567 s/^\([^=]*=[ ]*\):*/\1/
20573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20574 fi # test -n "$CONFIG_FILES"
20576 # Set up the scripts for CONFIG_HEADERS section.
20577 # No need to generate them if there are no CONFIG_HEADERS.
20578 # This happens for instance with `./config.status Makefile'.
20579 if test -n "$CONFIG_HEADERS"; then
20580 cat >"$tmp/defines.
awk" <<\_ACAWK ||
20584 # Transform confdefs.h into an awk script `defines.awk', embedded as
20585 # here-document in config.status, that substitutes the proper values into
20586 # config.h.in to produce config.h.
20588 # Create a delimiter string that does not exist in confdefs.h, to ease
20589 # handling of long lines.
20591 for ac_last_try in false false :; do
20592 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
20593 if test -z "$ac_t"; then
20595 elif $ac_last_try; then
20596 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
20598 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20602 # For the awk script, D is an array of macro values keyed by name,
20603 # likewise P contains macro parameters if any. Preserve backslash
20604 # newline sequences.
20606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20608 s/.\{148\}/&'"$ac_delim"'/g
20611 s/^[ ]*#[ ]*define[ ][ ]*/ /
20618 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20620 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20625 D["\
1"]=" \
3\\\\\\n
"\\/p
20627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20632 s/.\{148\}/&'"$ac_delim"'/g
20637 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20640 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20642 ' <confdefs.h | sed '
20643 s/'"$ac_delim"'/"\\\
20644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20647 for (key in D) D_is_set[key] = 1
20650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20652 split(line, arg, " ")
20653 if (arg[1] == "#") {
20657 defundef
= substr
(arg
[1], 2)
20660 split(mac1
, mac2
, "(") #)
20662 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20663 if (D_is_set
[macro
]) {
20664 # Preserve the white space surrounding the "#".
20665 print prefix
"define", macro P
[macro
] D
[macro
]
20668 # Replace #undef with comments. This is necessary, for example,
20669 # in the case of _POSIX_SOURCE, which is predefined and required
20670 # on some systems where configure will not decide to define it.
20671 if (defundef
== "undef") {
20672 print
"/*", prefix defundef
, macro
, "*/"
20680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20681 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
20682 fi # test -n "$CONFIG_HEADERS"
20685 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20690 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20692 case $ac_mode$ac_tag in
20694 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20695 :[FH
]-) ac_tag
=-:-;;
20696 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20713 -) ac_f
="$tmp/stdin";;
20714 *) # Look for the file first in the build tree, then in the source tree
20715 # (if the path is not absolute). The absolute path cannot be DOS-style,
20716 # because $ac_f cannot contain `:'.
20720 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20722 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
20724 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20725 as_fn_append ac_file_inputs
" '$ac_f'"
20728 # Let's still pretend it is `configure' which instantiates (i.e., don't
20729 # use $as_me), people would be surprised to read:
20730 # /* config.h. Generated by config.status. */
20731 configure_input
='Generated from '`
20732 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20734 if test x
"$ac_file" != x-
; then
20735 configure_input
="$ac_file. $configure_input"
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20737 $as_echo "$as_me: creating $ac_file" >&6;}
20739 # Neutralize special characters interpreted by sed in replacement strings.
20740 case $configure_input in #(
20741 *\
&* |
*\|
* |
*\\* )
20742 ac_sed_conf_input
=`$as_echo "$configure_input" |
20743 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20744 *) ac_sed_conf_input
=$configure_input;;
20748 *:-:* |
*:-) cat >"$tmp/stdin" \
20749 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
20754 ac_dir
=`$as_dirname -- "$ac_file" ||
20755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20756 X"$ac_file" : 'X\(//\)[^/]' \| \
20757 X"$ac_file" : 'X\(//\)$' \| \
20758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20759 $as_echo X"$ac_file" |
20760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20764 /^X\(\/\/\)[^/].*/{
20777 as_dir
="$ac_dir"; as_fn_mkdir_p
20781 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20783 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20784 # A ".." for each directory in $ac_dir_suffix.
20785 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20786 case $ac_top_builddir_sub in
20787 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20788 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20791 ac_abs_top_builddir
=$ac_pwd
20792 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20793 # for backward compatibility:
20794 ac_top_builddir
=$ac_top_build_prefix
20797 .
) # We are building in place.
20799 ac_top_srcdir
=$ac_top_builddir_sub
20800 ac_abs_top_srcdir
=$ac_pwd ;;
20801 [\\/]* | ?
:[\\/]* ) # Absolute name.
20802 ac_srcdir
=$srcdir$ac_dir_suffix;
20803 ac_top_srcdir
=$srcdir
20804 ac_abs_top_srcdir
=$srcdir ;;
20805 *) # Relative name.
20806 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20807 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20808 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20810 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20820 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20821 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20823 ac_MKDIR_P
=$MKDIR_P
20825 [\\/$
]* | ?
:[\\/]* ) ;;
20826 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20831 # If the template does not know about datarootdir, expand it.
20832 # FIXME: This hack should be removed a few years after 2.60.
20833 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20844 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20845 *datarootdir
*) ac_datarootdir_seen
=yes;;
20846 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20848 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 ac_datarootdir_hack='
20852 s&@datadir@&$datadir&g
20853 s&@docdir@&$docdir&g
20854 s&@infodir@&$infodir&g
20855 s&@localedir@&$localedir&g
20856 s&@mandir@&$mandir&g
20857 s&\\\${datarootdir}&$datarootdir&g' ;;
20861 # Neutralize VPATH when `$srcdir' = `.'.
20862 # Shell code in configure.ac might set extrasub.
20863 # FIXME: do we really want to maintain this feature?
20864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20865 ac_sed_extra="$ac_vpsub
20868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20870 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20871 s|@configure_input@|
$ac_sed_conf_input|
;t t
20872 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20873 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20874 s
&@srcdir@
&$ac_srcdir&;t t
20875 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20876 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20877 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20878 s
&@builddir@
&$ac_builddir&;t t
20879 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20880 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20881 s
&@INSTALL@
&$ac_INSTALL&;t t
20882 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20883 $ac_datarootdir_hack
20885 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
20886 || as_fn_error "could not create
$ac_file" "$LINENO" 5
20888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20889 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
20890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20892 which seems to be undefined. Please make sure it is defined." >&5
20893 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20894 which seems to be undefined. Please make sure it is defined." >&2;}
20898 -) cat "$tmp/out" && rm -f "$tmp/out";;
20899 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20901 || as_fn_error "could not create $ac_file" "$LINENO" 5
20907 if test x"$ac_file" != x-; then
20909 $as_echo "/* $configure_input */" \
20910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20911 } >"$tmp/config.h" \
20912 || as_fn_error "could not create $ac_file" "$LINENO" 5
20913 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20915 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20918 mv "$tmp/config.h" "$ac_file" \
20919 || as_fn_error "could not create $ac_file" "$LINENO" 5
20922 $as_echo "/* $configure_input */" \
20923 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20924 || as_fn_error "could not create -" "$LINENO" 5
20926 # Compute "$ac_file"'s index
in $config_headers.
20929 for _am_header
in $config_headers :; do
20930 case $_am_header in
20931 $_am_arg |
$_am_arg:* )
20934 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20937 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20938 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20939 X"$_am_arg" : 'X\(//\)[^/]' \| \
20940 X"$_am_arg" : 'X\(//\)$' \| \
20941 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20942 $as_echo X"$_am_arg" |
20943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20947 /^X\(\/\/\)[^/].*/{
20959 s/.*/./; q'`/stamp-h
$_am_stamp_count
20962 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20963 $as_echo "$as_me: executing $ac_file commands" >&6;}
20968 case $ac_file$ac_mode in
20969 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20970 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20971 # are listed without --file. Let's play safe and only enable the eval
20972 # if we detect the quoting.
20973 case $CONFIG_FILES in
20974 *\'*) eval set x
"$CONFIG_FILES" ;;
20975 *) set x
$CONFIG_FILES ;;
20980 # Strip MF so we end up with the name of the file.
20981 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20982 # Check whether this is an Automake generated Makefile or not.
20983 # We used to match only the files named `Makefile.in', but
20984 # some people rename them; so instead we look at the file content.
20985 # Grep'ing the first line is not enough: some people post-process
20986 # each Makefile.in and add a new line on top of each file to say so.
20987 # Grep'ing the whole file is not good either: AIX grep has a line
20988 # limit of 2048, but all sed's we know have understand at least 4000.
20989 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20990 dirpart
=`$as_dirname -- "$mf" ||
20991 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20992 X"$mf" : 'X\(//\)[^/]' \| \
20993 X"$mf" : 'X\(//\)$' \| \
20994 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21000 /^X\(\/\/\)[^/].*/{
21016 # Extract the definition of DEPDIR, am__include, and am__quote
21017 # from the Makefile without running `make'.
21018 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21019 test -z "$DEPDIR" && continue
21020 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21021 test -z "am__include" && continue
21022 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21023 # When using ansi2knr, U may be empty or an underscore; expand it
21024 U
=`sed -n 's/^U = //p' < "$mf"`
21025 # Find all dependency output files, they are included files with
21026 # $(DEPDIR) in their names. We invoke sed twice because it is the
21027 # simplest approach to changing $(DEPDIR) to its actual value in the
21029 for file in `sed -n "
21030 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21031 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21032 # Make sure the directory exists.
21033 test -f "$dirpart/$file" && continue
21034 fdir
=`$as_dirname -- "$file" ||
21035 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21036 X"$file" : 'X\(//\)[^/]' \| \
21037 X"$file" : 'X\(//\)$' \| \
21038 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21039 $as_echo X"$file" |
21040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21044 /^X\(\/\/\)[^/].*/{
21057 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21058 # echo "creating $dirpart/$file"
21059 echo '# dummy' > "$dirpart/$file"
21065 case x
$CONFIG_HEADERS in
21066 xconfig.h
:config.
in)
21077 ac_clean_files
=$ac_clean_files_save
21079 test $ac_write_fail = 0 ||
21080 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21083 # configure is writing to config.log, and then calls config.status.
21084 # config.status does its own redirection, appending to config.log.
21085 # Unfortunately, on DOS this fails, as config.log is still kept open
21086 # by configure, so config.status won't be able to write to it; its
21087 # output is simply discarded. So we exec the FD to /dev/null,
21088 # effectively closing config.log, so it can be properly (re)opened and
21089 # appended to by config.status. When coming back to configure, we
21090 # need to make the FD available again.
21091 if test "$no_create" != yes; then
21093 ac_config_status_args
=
21094 test "$silent" = yes &&
21095 ac_config_status_args
="$ac_config_status_args --quiet"
21097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21100 # would make configure fail if this is the last instruction.
21101 $ac_cs_success || as_fn_exit $?
21103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}