2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_fnmatch_required
=POSIX
625 ac_subst_vars
='am__EXEEXT_FALSE
655 INSTALL_STRIP_PROGRAM
676 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
689 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
692 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694 UNISTD_H_DEFINES_STRUCT_TIMESPEC
695 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
696 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
697 TIME_H_DEFINES_STRUCT_TIMESPEC
698 NEXT_AS_FIRST_DIRECTIVE_TIME_H
709 HAVE_DECL_LOCALTIME_R
717 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
720 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
722 NEXT_AS_FIRST_DIRECTIVE_STRING_H
724 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
726 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
728 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
730 GL_GENERATE_STDDEF_H_FALSE
731 GL_GENERATE_STDDEF_H_TRUE
737 GL_GENERATE_STDBOOL_H_FALSE
738 GL_GENERATE_STDBOOL_H_TRUE
740 GL_GENERATE_STDALIGN_H_FALSE
741 GL_GENERATE_STDALIGN_H_TRUE
743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
746 REPLACE_PTHREAD_SIGMASK
748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
749 HAVE_STRUCT_SIGACTION_SA_SIGACTION
755 HAVE_POSIX_SIGNALBLOCKING
758 GNULIB_SIGNAL_H_SIGPIPE
760 GNULIB_PTHREAD_SIGMASK
768 REPLACE_STDIO_WRITE_FUNCS
769 REPLACE_STDIO_READ_FUNCS
778 REPLACE_OBSTACK_PRINTF
803 HAVE_DECL_OBSTACK_PRINTF
809 GNULIB_VSPRINTF_POSIX
813 GNULIB_VFPRINTF_POSIX
820 GNULIB_STDIO_H_SIGPIPE
821 GNULIB_STDIO_H_NONBLOCKING
836 GNULIB_OBSTACK_PRINTF_POSIX
837 GNULIB_OBSTACK_PRINTF
862 GL_GENERATE_NETINET_IN_H_FALSE
863 GL_GENERATE_NETINET_IN_H_TRUE
866 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1036 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1038 LOCALCHARSET_TESTS_ENVIRONMENT
1040 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1042 UINT64_MAX_EQ_ULONG_MAX
1043 UINT32_MAX_LT_UINTMAX_MAX
1046 INT64_MAX_EQ_LONG_MAX
1047 INT32_MAX_LT_INTMAX_MAX
1058 GL_GENERATE_STDINT_H_FALSE
1059 GL_GENERATE_STDINT_H_TRUE
1071 HAVE_SIGNED_SIG_ATOMIC_T
1074 BITSIZEOF_SIG_ATOMIC_T
1077 APPLE_UNIVERSAL_BUILD
1079 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1084 HAVE_UNSIGNED_LONG_LONG_INT
1086 GL_GENERATE_LIMITS_H_FALSE
1087 GL_GENERATE_LIMITS_H_TRUE
1089 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1093 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1097 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1098 HAVE_STRUCT_SOCKADDR_STORAGE
1116 GL_GENERATE_GLOB_H_FALSE
1117 GL_GENERATE_GLOB_H_TRUE
1119 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1121 REPLACE_STRUCT_TIMEVAL
1122 REPLACE_GETTIMEOFDAY
1130 WINDOWS_64_BIT_ST_SIZE
1131 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1167 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1173 REPLACE_SIGNBIT_USING_GCC
1242 HAVE_DECL_REMAINDERL
1423 GL_GENERATE_FNMATCH_H_FALSE
1424 GL_GENERATE_FNMATCH_H_TRUE
1427 GL_GENERATE_FLOAT_H_FALSE
1428 GL_GENERATE_FLOAT_H_TRUE
1430 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1432 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1449 GL_GENERATE_ERRNO_H_FALSE
1450 GL_GENERATE_ERRNO_H_TRUE
1452 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1455 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1482 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1483 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1484 UNISTD_H_HAVE_WINSOCK2_H
1507 REPLACE_GETDTABLESIZE
1508 REPLACE_GETDOMAINNAME
1519 HAVE_DECL_SETHOSTNAME
1520 HAVE_DECL_GETUSERSHELL
1521 HAVE_DECL_GETPAGESIZE
1522 HAVE_DECL_GETLOGIN_R
1523 HAVE_DECL_GETDOMAINNAME
1562 GNULIB_UNISTD_H_SIGPIPE
1563 GNULIB_UNISTD_H_NONBLOCKING
1589 GNULIB_GETDTABLESIZE
1590 GNULIB_GETDOMAINNAME
1620 REPLACE_CANONICALIZE_FILE_NAME
1625 HAVE_STRUCT_RANDOM_DATA
1648 HAVE_DECL_GETLOADAVG
1649 HAVE_CANONICALIZE_FILE_NAME
1660 GNULIB_SECURE_GETENV
1663 GNULIB_REALLOC_POSIX
1681 GNULIB_CANONICALIZE_FILE_NAME
1687 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1690 PRAGMA_SYSTEM_HEADER
1691 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1700 GL_GENERATE_ALLOCA_H_FALSE
1701 GL_GENERATE_ALLOCA_H_TRUE
1704 GL_COND_LIBTOOL_FALSE
1705 GL_COND_LIBTOOL_TRUE
1733 MAINTAINER_MODE_FALSE
1734 MAINTAINER_MODE_TRUE
1762 program_transform_name
1775 enable_option_checking
1776 enable_maintainer_mode
1778 enable_dependency_tracking
1781 ac_precious_vars
='build_alias
1792 # Initialize some variables set by options.
1794 ac_init_version
=false
1795 ac_unrecognized_opts
=
1796 ac_unrecognized_sep
=
1797 # The variables have the same names as the options, with
1798 # dashes changed to underlines.
1799 cache_file
=/dev
/null
1806 program_transform_name
=s
,x
,x
,
1814 # Installation directory options.
1815 # These are left unexpanded so users can "make install exec_prefix=/foo"
1816 # and all the variables that are supposed to be based on exec_prefix
1817 # by default will actually change.
1818 # Use braces instead of parens because sh, perl, etc. also accept them.
1819 # (The list follows the same order as the GNU Coding Standards.)
1820 bindir
='${exec_prefix}/bin'
1821 sbindir
='${exec_prefix}/sbin'
1822 libexecdir
='${exec_prefix}/libexec'
1823 datarootdir
='${prefix}/share'
1824 datadir
='${datarootdir}'
1825 sysconfdir
='${prefix}/etc'
1826 sharedstatedir
='${prefix}/com'
1827 localstatedir
='${prefix}/var'
1828 includedir
='${prefix}/include'
1829 oldincludedir
='/usr/include'
1830 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1831 infodir
='${datarootdir}/info'
1836 libdir
='${exec_prefix}/lib'
1837 localedir
='${datarootdir}/locale'
1838 mandir
='${datarootdir}/man'
1844 # If the previous option needs an argument, assign it.
1845 if test -n "$ac_prev"; then
1846 eval $ac_prev=\
$ac_option
1852 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1857 # Accept the important Cygnus configure options, so we can diagnose typos.
1859 case $ac_dashdash$ac_option in
1863 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1865 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1866 bindir
=$ac_optarg ;;
1868 -build |
--build |
--buil |
--bui |
--bu)
1869 ac_prev
=build_alias
;;
1870 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1871 build_alias
=$ac_optarg ;;
1873 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1874 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1875 ac_prev
=cache_file
;;
1876 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1877 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1878 cache_file
=$ac_optarg ;;
1880 --config-cache |
-C)
1881 cache_file
=config.cache
;;
1883 -datadir |
--datadir |
--datadi |
--datad)
1885 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1886 datadir
=$ac_optarg ;;
1888 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1889 |
--dataroo |
--dataro |
--datar)
1890 ac_prev
=datarootdir
;;
1891 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1892 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1893 datarootdir
=$ac_optarg ;;
1895 -disable-* |
--disable-*)
1896 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1897 # Reject names that are not valid shell variable names.
1898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1899 as_fn_error $?
"invalid feature name: $ac_useropt"
1900 ac_useropt_orig
=$ac_useropt
1901 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1902 case $ac_user_opts in
1904 "enable_
$ac_useropt"
1906 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1907 ac_unrecognized_sep
=', ';;
1909 eval enable_
$ac_useropt=no
;;
1911 -docdir |
--docdir |
--docdi |
--doc |
--do)
1913 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1914 docdir
=$ac_optarg ;;
1916 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1918 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1919 dvidir
=$ac_optarg ;;
1921 -enable-* |
--enable-*)
1922 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1923 # Reject names that are not valid shell variable names.
1924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1925 as_fn_error $?
"invalid feature name: $ac_useropt"
1926 ac_useropt_orig
=$ac_useropt
1927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1928 case $ac_user_opts in
1930 "enable_
$ac_useropt"
1932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1933 ac_unrecognized_sep
=', ';;
1935 eval enable_
$ac_useropt=\
$ac_optarg ;;
1937 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1938 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1939 |
--exec |
--exe |
--ex)
1940 ac_prev
=exec_prefix
;;
1941 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1942 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1943 |
--exec=* |
--exe=* |
--ex=*)
1944 exec_prefix
=$ac_optarg ;;
1946 -gas |
--gas |
--ga |
--g)
1947 # Obsolete; use --with-gas.
1950 -help |
--help |
--hel |
--he |
-h)
1951 ac_init_help
=long
;;
1952 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1953 ac_init_help
=recursive
;;
1954 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1955 ac_init_help
=short
;;
1957 -host |
--host |
--hos |
--ho)
1958 ac_prev
=host_alias
;;
1959 -host=* |
--host=* |
--hos=* |
--ho=*)
1960 host_alias
=$ac_optarg ;;
1962 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1964 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1966 htmldir
=$ac_optarg ;;
1968 -includedir |
--includedir |
--includedi |
--included |
--include \
1969 |
--includ |
--inclu |
--incl |
--inc)
1970 ac_prev
=includedir
;;
1971 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1972 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1973 includedir
=$ac_optarg ;;
1975 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1977 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1978 infodir
=$ac_optarg ;;
1980 -libdir |
--libdir |
--libdi |
--libd)
1982 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1983 libdir
=$ac_optarg ;;
1985 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1986 |
--libexe |
--libex |
--libe)
1987 ac_prev
=libexecdir
;;
1988 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1989 |
--libexe=* |
--libex=* |
--libe=*)
1990 libexecdir
=$ac_optarg ;;
1992 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1993 ac_prev
=localedir
;;
1994 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1995 localedir
=$ac_optarg ;;
1997 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1998 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1999 ac_prev
=localstatedir
;;
2000 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2001 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2002 localstatedir
=$ac_optarg ;;
2004 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2006 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2007 mandir
=$ac_optarg ;;
2009 -nfp |
--nfp |
--nf)
2010 # Obsolete; use --without-fp.
2013 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2014 |
--no-cr |
--no-c |
-n)
2017 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2018 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2021 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2022 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2023 |
--oldin |
--oldi |
--old |
--ol |
--o)
2024 ac_prev
=oldincludedir
;;
2025 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2026 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2027 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2028 oldincludedir
=$ac_optarg ;;
2030 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2032 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2033 prefix
=$ac_optarg ;;
2035 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2036 |
--program-pre |
--program-pr |
--program-p)
2037 ac_prev
=program_prefix
;;
2038 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2039 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2040 program_prefix
=$ac_optarg ;;
2042 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2043 |
--program-suf |
--program-su |
--program-s)
2044 ac_prev
=program_suffix
;;
2045 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2046 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2047 program_suffix
=$ac_optarg ;;
2049 -program-transform-name |
--program-transform-name \
2050 |
--program-transform-nam |
--program-transform-na \
2051 |
--program-transform-n |
--program-transform- \
2052 |
--program-transform |
--program-transfor \
2053 |
--program-transfo |
--program-transf \
2054 |
--program-trans |
--program-tran \
2055 |
--progr-tra |
--program-tr |
--program-t)
2056 ac_prev
=program_transform_name
;;
2057 -program-transform-name=* |
--program-transform-name=* \
2058 |
--program-transform-nam=* |
--program-transform-na=* \
2059 |
--program-transform-n=* |
--program-transform-=* \
2060 |
--program-transform=* |
--program-transfor=* \
2061 |
--program-transfo=* |
--program-transf=* \
2062 |
--program-trans=* |
--program-tran=* \
2063 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2064 program_transform_name
=$ac_optarg ;;
2066 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2068 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2069 pdfdir
=$ac_optarg ;;
2071 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2073 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2076 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2077 |
-silent |
--silent |
--silen |
--sile |
--sil)
2080 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2082 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2084 sbindir
=$ac_optarg ;;
2086 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2087 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2088 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2090 ac_prev
=sharedstatedir
;;
2091 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2092 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2093 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2095 sharedstatedir
=$ac_optarg ;;
2097 -site |
--site |
--sit)
2099 -site=* |
--site=* |
--sit=*)
2102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2105 srcdir
=$ac_optarg ;;
2107 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2108 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2109 ac_prev
=sysconfdir
;;
2110 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2111 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2112 sysconfdir
=$ac_optarg ;;
2114 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2115 ac_prev
=target_alias
;;
2116 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2117 target_alias
=$ac_optarg ;;
2119 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2122 -version |
--version |
--versio |
--versi |
--vers |
-V)
2123 ac_init_version
=: ;;
2126 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2127 # Reject names that are not valid shell variable names.
2128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2129 as_fn_error $?
"invalid package name: $ac_useropt"
2130 ac_useropt_orig
=$ac_useropt
2131 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2132 case $ac_user_opts in
2136 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2137 ac_unrecognized_sep
=', ';;
2139 eval with_
$ac_useropt=\
$ac_optarg ;;
2141 -without-* |
--without-*)
2142 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2143 # Reject names that are not valid shell variable names.
2144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2145 as_fn_error $?
"invalid package name: $ac_useropt"
2146 ac_useropt_orig
=$ac_useropt
2147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2148 case $ac_user_opts in
2152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2153 ac_unrecognized_sep
=', ';;
2155 eval with_
$ac_useropt=no
;;
2158 # Obsolete; use --with-x.
2161 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2162 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2163 ac_prev
=x_includes
;;
2164 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2165 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2166 x_includes
=$ac_optarg ;;
2168 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2169 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2170 ac_prev
=x_libraries
;;
2171 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2172 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2173 x_libraries
=$ac_optarg ;;
2175 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2176 Try \`$0 --help' for more information"
2180 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2181 # Reject names that are not valid shell variable names.
2182 case $ac_envvar in #(
2183 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2184 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2186 eval $ac_envvar=\
$ac_optarg
2187 export $ac_envvar ;;
2190 # FIXME: should be removed in autoconf 3.0.
2191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2200 if test -n "$ac_prev"; then
2201 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2202 as_fn_error $?
"missing argument to $ac_option"
2205 if test -n "$ac_unrecognized_opts"; then
2206 case $enable_option_checking in
2208 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2213 # Check all directory arguments for consistency.
2214 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2215 datadir sysconfdir sharedstatedir localstatedir includedir \
2216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2217 libdir localedir mandir
2219 eval ac_val
=\$
$ac_var
2220 # Remove trailing slashes.
2223 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2224 eval $ac_var=\
$ac_val;;
2226 # Be sure to have absolute directory names.
2228 [\\/$
]* | ?
:[\\/]* ) continue;;
2229 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2231 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2234 # There might be people who depend on the old broken behavior: `$host'
2235 # used to hold the argument of --host etc.
2236 # FIXME: To remove some day.
2239 target
=$target_alias
2241 # FIXME: To remove some day.
2242 if test "x$host_alias" != x
; then
2243 if test "x$build_alias" = x
; then
2244 cross_compiling
=maybe
2245 elif test "x$build_alias" != "x$host_alias"; then
2251 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2253 test "$silent" = yes && exec 6>/dev
/null
2256 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2257 ac_ls_di
=`ls -di .` &&
2258 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2259 as_fn_error $?
"working directory cannot be determined"
2260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2261 as_fn_error $?
"pwd does not report name of working directory"
2264 # Find the source files, if location was not specified.
2265 if test -z "$srcdir"; then
2266 ac_srcdir_defaulted
=yes
2267 # Try the directory containing this script, then the parent directory.
2268 ac_confdir
=`$as_dirname -- "$as_myself" ||
2269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2270 X"$as_myself" : 'X\(//\)[^/]' \| \
2271 X"$as_myself" : 'X\(//\)$' \| \
2272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2273 $as_echo X"$as_myself" |
2274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2292 if test ! -r "$srcdir/$ac_unique_file"; then
2296 ac_srcdir_defaulted
=no
2298 if test ! -r "$srcdir/$ac_unique_file"; then
2299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2300 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2306 # When building in place, set srcdir=.
2307 if test "$ac_abs_confdir" = "$ac_pwd"; then
2310 # Remove unnecessary trailing slashes from srcdir.
2311 # Double slashes in file names in object file debugging info
2312 # mess up M-x gdb in Emacs.
2314 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2316 for ac_var
in $ac_precious_vars; do
2317 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2318 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2319 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2320 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2324 # Report the --help message.
2326 if test "$ac_init_help" = "long"; then
2327 # Omit some internal or obsolete options to make the list less imposing.
2328 # This message is too long to be a string in the A/UX 3.1 sh.
2330 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2332 Usage: $0 [OPTION]... [VAR=VALUE]...
2334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2335 VAR=VALUE. See below for descriptions of some of the useful variables.
2337 Defaults for the options are specified in brackets.
2340 -h, --help display this help and exit
2341 --help=short display options specific to this package
2342 --help=recursive display the short help of all the included packages
2343 -V, --version display version information and exit
2344 -q, --quiet, --silent do not print \`checking ...' messages
2345 --cache-file=FILE cache test results in FILE [disabled]
2346 -C, --config-cache alias for \`--cache-file=config.cache'
2347 -n, --no-create do not create output files
2348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2350 Installation directories:
2351 --prefix=PREFIX install architecture-independent files in PREFIX
2352 [$ac_default_prefix]
2353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2356 By default, \`make install' will install all the files in
2357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2359 for instance \`--prefix=\$HOME'.
2361 For better control, use the options below.
2363 Fine tuning of the installation directories:
2364 --bindir=DIR user executables [EPREFIX/bin]
2365 --sbindir=DIR system admin executables [EPREFIX/sbin]
2366 --libexecdir=DIR program executables [EPREFIX/libexec]
2367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2370 --libdir=DIR object code libraries [EPREFIX/lib]
2371 --includedir=DIR C header files [PREFIX/include]
2372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2375 --infodir=DIR info documentation [DATAROOTDIR/info]
2376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2377 --mandir=DIR man documentation [DATAROOTDIR/man]
2378 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2379 --htmldir=DIR html documentation [DOCDIR]
2380 --dvidir=DIR dvi documentation [DOCDIR]
2381 --pdfdir=DIR pdf documentation [DOCDIR]
2382 --psdir=DIR ps documentation [DOCDIR]
2388 --program-prefix=PREFIX prepend PREFIX to installed program names
2389 --program-suffix=SUFFIX append SUFFIX to installed program names
2390 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2393 --build=BUILD configure
for building on BUILD
[guessed
]
2394 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2395 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2399 if test -n "$ac_init_help"; then
2400 case $ac_init_help in
2401 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2406 --disable-option-checking ignore unrecognized
--enable/--with options
2407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2409 --enable-maintainer-mode
2410 enable make rules and dependencies not useful
(and
2411 sometimes confusing
) to the casual installer
2412 --disable-largefile omit support
for large files
2413 --enable-dependency-tracking
2414 do not reject slow dependency extractors
2415 --disable-dependency-tracking
2416 speeds up one-time build
2417 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2418 --disable-silent-rules verbose build output
(undo
: "make V=0")
2420 Some influential environment variables
:
2421 CC C compiler
command
2422 CFLAGS C compiler flags
2423 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2424 nonstandard directory
<lib dir
>
2425 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2426 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2427 you have headers
in a nonstandard directory
<include dir
>
2430 Use these variables to override the choices made by
`configure' or to help
2431 it to find libraries and programs with nonstandard names/locations.
2433 Report bugs to the package provider.
2438 if test "$ac_init_help" = "recursive"; then
2439 # If there are subdirs, report their specific --help.
2440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2441 test -d "$ac_dir" ||
2442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2449 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2450 # A ".." for each directory in $ac_dir_suffix.
2451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2452 case $ac_top_builddir_sub in
2453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2457 ac_abs_top_builddir=$ac_pwd
2458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2459 # for backward compatibility:
2460 ac_top_builddir=$ac_top_build_prefix
2463 .) # We are building in place.
2465 ac_top_srcdir=$ac_top_builddir_sub
2466 ac_abs_top_srcdir=$ac_pwd ;;
2467 [\\/]* | ?:[\\/]* ) # Absolute name.
2468 ac_srcdir=$srcdir$ac_dir_suffix;
2469 ac_top_srcdir=$srcdir
2470 ac_abs_top_srcdir=$srcdir ;;
2472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2473 ac_top_srcdir=$ac_top_build_prefix$srcdir
2474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2478 cd "$ac_dir" || { ac_status=$?; continue; }
2479 # Check for guested configure.
2480 if test -f "$ac_srcdir/configure.gnu"; then
2482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2483 elif test -f "$ac_srcdir/configure"; then
2485 $SHELL "$ac_srcdir/configure" --help=recursive
2487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2489 cd "$ac_pwd" || { ac_status=$?; break; }
2493 test -n "$ac_init_help" && exit $ac_status
2494 if $ac_init_version; then
2496 libgnu configure UNUSED-VERSION
2497 generated by GNU Autoconf 2.69
2499 Copyright (C) 2012 Free Software Foundation, Inc.
2500 This configure script is free software; the Free Software Foundation
2501 gives unlimited permission to copy, distribute and modify it.
2506 ## ------------------------ ##
2507 ## Autoconf initialization. ##
2508 ## ------------------------ ##
2510 # ac_fn_c_try_compile LINENO
2511 # --------------------------
2512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2513 ac_fn_c_try_compile ()
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 rm -f conftest.$ac_objext
2517 if { { ac_try="$ac_compile"
2519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2520 *) ac_try_echo
=$ac_try;;
2522 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523 $as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_compile") 2>conftest.err
2526 if test -s conftest.err
; then
2527 grep -v '^ *+' conftest.err
>conftest.er1
2528 cat conftest.er1
>&5
2529 mv -f conftest.er1 conftest.err
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.
$ac_objext; then :
2538 $as_echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.
$ac_ext >&5
2543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2544 as_fn_set_status
$ac_retval
2546 } # ac_fn_c_try_compile
2548 # ac_fn_c_try_cpp LINENO
2549 # ----------------------
2550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2553 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2554 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2563 if test -s conftest.err; then
2564 grep -v '^ *+' conftest.err >conftest.er1
2565 cat conftest.er1 >&5
2566 mv -f conftest.er1 conftest.err
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; } > conftest.i && {
2570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2571 test ! -s conftest.err
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2581 as_fn_set_status $ac_retval
2585 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2586 # -------------------------------------------------------
2587 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2588 # the include files in INCLUDES and setting the cache variable VAR
2590 ac_fn_c_check_header_mongrel ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 if eval \${$3+:} false; then :
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if eval \${$3+:} false; then :
2597 $as_echo_n "(cached) " >&6
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2603 # Is the header compilable?
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2605 $as_echo_n "checking $2 usability... " >&6; }
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612 ac_header_compiler=yes
2614 ac_header_compiler=no
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2618 $as_echo "$ac_header_compiler" >&6; }
2620 # Is the header present?
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2622 $as_echo_n "checking $2 presence... " >&6; }
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2627 if ac_fn_c_try_cpp "$LINENO"; then :
2628 ac_header_preproc=yes
2630 ac_header_preproc=no
2632 rm -f conftest.err conftest.i conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2634 $as_echo "$ac_header_preproc" >&6; }
2636 # So? What about this header?
2637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2640 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2646 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2648 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2650 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2652 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \${$3+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 eval "$3=\$ac_header_compiler"
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2666 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 } # ac_fn_c_check_header_mongrel
2672 # ac_fn_c_try_run LINENO
2673 # ----------------------
2674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2675 # that executables *can* be run.
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 if { { ac_try="$ac_link"
2681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2682 *) ac_try_echo
=$ac_try;;
2684 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_link") 2>&5
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2690 { { case "(($ac_try" in
2691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_try") 2>&5
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; }; then :
2702 $as_echo "$as_me: program exited with status $ac_status" >&5
2703 $as_echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2706 ac_retval=$ac_status
2708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710 as_fn_set_status $ac_retval
2714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2715 # -------------------------------------------------------
2716 # Tests whether HEADER exists and can be compiled using the include files in
2717 # INCLUDES, setting the cache variable VAR accordingly.
2718 ac_fn_c_check_header_compile ()
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722 $as_echo_n "checking for $2... " >&6; }
2723 if eval \${$3+:} false; then :
2724 $as_echo_n "(cached) " >&6
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2731 if ac_fn_c_try_compile "$LINENO"; then :
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740 $as_echo "$ac_res" >&6; }
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2743 } # ac_fn_c_check_header_compile
2745 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2746 # -------------------------------------------
2747 # Tests whether TYPE exists after having included INCLUDES, setting cache
2748 # variable VAR accordingly.
2749 ac_fn_c_check_type ()
2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if eval \${$3+:} false; then :
2755 $as_echo_n "(cached) " >&6
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2783 if ac_fn_c_try_compile "$LINENO"; then :
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2794 $as_echo "$ac_res" >&6; }
2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2797 } # ac_fn_c_check_type
2799 # ac_fn_c_try_link LINENO
2800 # -----------------------
2801 # Try to link conftest.$ac_ext, and return whether this succeeded.
2804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2805 rm -f conftest.$ac_objext conftest$ac_exeext
2806 if { { ac_try="$ac_link"
2808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2809 *) ac_try_echo
=$ac_try;;
2811 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_link") 2>conftest.err
2815 if test -s conftest.err
; then
2816 grep -v '^ *+' conftest.err
>conftest.er1
2817 cat conftest.er1
>&5
2818 mv -f conftest.er1 conftest.err
2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; } && {
2822 test -z "$ac_c_werror_flag" ||
2823 test ! -s conftest.err
2824 } && test -s conftest
$ac_exeext && {
2825 test "$cross_compiling" = yes ||
2826 test -x conftest
$ac_exeext
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.
$ac_ext >&5
2835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2837 # interfere with the next link command; also delete a directory that is
2838 # left behind by Apple's compiler. We do this before executing the actions.
2839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 as_fn_set_status
$ac_retval
2843 } # ac_fn_c_try_link
2845 # ac_fn_c_check_func LINENO FUNC VAR
2846 # ----------------------------------
2847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2848 ac_fn_c_check_func
()
2850 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2852 $as_echo_n "checking for $2... " >&6; }
2853 if eval \
${$3+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2860 #define $2 innocuous_$2
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char $2 (); below.
2864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2865 <limits.h> exists even on freestanding compilers. */
2868 # include <limits.h>
2870 # include <assert.h>
2875 /* Override any GCC internal prototype to avoid an error.
2876 Use char because int might match the return type of a GCC
2877 builtin and then its argument prototype would still apply. */
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined __stub_$2 || defined __stub___$2
2897 if ac_fn_c_try_link
"$LINENO"; then :
2902 rm -f core conftest.err conftest.
$ac_objext \
2903 conftest
$ac_exeext conftest.
$ac_ext
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2907 $as_echo "$ac_res" >&6; }
2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2910 } # ac_fn_c_check_func
2912 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2913 # ---------------------------------------------
2914 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2916 ac_fn_c_check_decl
()
2918 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2919 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2920 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2922 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2923 if eval \
${$3+:} false
; then :
2924 $as_echo_n "(cached) " >&6
2926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2932 #ifndef $as_decl_name
2934 (void) $as_decl_use;
2936 (void) $as_decl_name;
2944 if ac_fn_c_try_compile
"$LINENO"; then :
2949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2953 $as_echo "$ac_res" >&6; }
2954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2956 } # ac_fn_c_check_decl
2958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2959 # --------------------------------------------
2960 # Tries to find the compile-time value of EXPR in a program that includes
2961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2963 ac_fn_c_compute_int
()
2965 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2966 if test "$cross_compiling" = yes; then
2967 # Depending upon the size, compute the lo and hi bounds.
2968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h. */
2974 static int test_array [1 - 2 * !(($2) >= 0)];
2976 return test_array [0];
2982 if ac_fn_c_try_compile
"$LINENO"; then :
2985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2991 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2993 return test_array [0];
2999 if ac_fn_c_try_compile
"$LINENO"; then :
3000 ac_hi
=$ac_mid; break
3002 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3003 if test $ac_lo -le $ac_mid; then
3007 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3018 static int test_array [1 - 2 * !(($2) < 0)];
3020 return test_array [0];
3026 if ac_fn_c_try_compile
"$LINENO"; then :
3029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3035 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3037 return test_array [0];
3043 if ac_fn_c_try_compile
"$LINENO"; then :
3044 ac_lo
=$ac_mid; break
3046 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3047 if test $ac_mid -le $ac_hi; then
3051 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3061 # Binary search between lo and hi bounds.
3062 while test "x$ac_lo" != "x$ac_hi"; do
3063 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3072 return test_array [0];
3078 if ac_fn_c_try_compile
"$LINENO"; then :
3081 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3093 static long int longval () { return $2; }
3094 static unsigned long int ulongval () { return $2; }
3101 FILE *f = fopen ("conftest.val", "w");
3106 long int i = longval ();
3109 fprintf (f, "%ld", i);
3113 unsigned long int i = ulongval ();
3116 fprintf (f, "%lu", i);
3118 /* Do not output a trailing newline, as this causes \r\n confusion
3119 on some platforms. */
3120 return ferror (f) || fclose (f) != 0;
3126 if ac_fn_c_try_run
"$LINENO"; then :
3127 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137 as_fn_set_status
$ac_retval
3139 } # ac_fn_c_compute_int
3141 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3142 # ----------------------------------------------------
3143 # Tries to find if the field MEMBER exists in type AGGR, after including
3144 # INCLUDES, setting cache variable VAR accordingly.
3145 ac_fn_c_check_member
()
3147 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3149 $as_echo_n "checking for $2.$3... " >&6; }
3150 if eval \
${$4+:} false
; then :
3151 $as_echo_n "(cached) " >&6
3153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3166 if ac_fn_c_try_compile
"$LINENO"; then :
3169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3176 if (sizeof ac_aggr.$3)
3182 if ac_fn_c_try_compile
"$LINENO"; then :
3187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3193 $as_echo "$ac_res" >&6; }
3194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3196 } # ac_fn_c_check_member
3197 cat >config.log
<<_ACEOF
3198 This file contains any messages produced by compilers while
3199 running configure, to aid debugging if configure makes a mistake.
3201 It was created by libgnu $as_me UNUSED-VERSION, which was
3202 generated by GNU Autoconf 2.69. Invocation command line was
3214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3226 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 $as_echo "PATH: $as_dir"
3254 # Keep a trace of the command line.
3255 # Strip out --no-create and --no-recursion so they do not pile up.
3256 # Strip out --silent because we don't want to record it for future runs.
3257 # Also quote any args containing shell meta-characters.
3258 # Make two passes to allow for proper duplicate-argument suppression.
3262 ac_must_keep_next
=false
3268 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3269 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3270 |
-silent |
--silent |
--silen |
--sile |
--sil)
3273 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3276 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3278 as_fn_append ac_configure_args1
" '$ac_arg'"
3279 if test $ac_must_keep_next = true
; then
3280 ac_must_keep_next
=false
# Got value, back to normal.
3283 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3284 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3285 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3286 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3287 case "$ac_configure_args0 " in
3288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3291 -* ) ac_must_keep_next
=true
;;
3294 as_fn_append ac_configure_args
" '$ac_arg'"
3299 { ac_configure_args0
=; unset ac_configure_args0
;}
3300 { ac_configure_args1
=; unset ac_configure_args1
;}
3302 # When interrupted or exit'd, cleanup temporary files, and complete
3303 # config.log. We remove comments because anyway the quotes in there
3304 # would cause problems or look ugly.
3305 # WARNING: Use '\'' to represent an apostrophe within the trap.
3306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3307 trap 'exit_status=$?
3308 # Save into config.log some information that might help in debugging.
3312 $as_echo "## ---------------- ##
3313 ## Cache variables. ##
3314 ## ---------------- ##"
3316 # The following way of writing the cache mishandles newlines in values,
3318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3319 eval ac_val=\$$ac_var
3323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3324 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3327 _ | IFS | as_nl) ;; #(
3328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3329 *) { eval $ac_var=; unset $ac_var;} ;;
3334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3335 *${as_nl}ac_space=\ *)
3337 "s/'\''/'\''\\\\'\'''\''/g;
3338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3348 $as_echo "## ----------------- ##
3349 ## Output variables. ##
3350 ## ----------------- ##"
3352 for ac_var in $ac_subst_vars
3354 eval ac_val=\$$ac_var
3356 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3358 $as_echo "$ac_var='\''$ac_val'\''"
3362 if test -n "$ac_subst_files"; then
3363 $as_echo "## ------------------- ##
3364 ## File substitutions. ##
3365 ## ------------------- ##"
3367 for ac_var
in $ac_subst_files
3369 eval ac_val
=\$
$ac_var
3371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3373 $as_echo "$ac_var='\''$ac_val'\''"
3378 if test -s confdefs.h; then
3379 $as_echo "## ----------- ##
3386 test "$ac_signal" != 0 &&
3387 $as_echo "$as_me: caught signal $ac_signal"
3388 $as_echo "$as_me: exit $exit_status"
3390 rm -f core *.core core.conftest.* &&
3391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3394 for ac_signal
in 1 2 13 15; do
3395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3400 rm -f -r conftest
* confdefs.h
3402 $as_echo "/* confdefs.h */" > confdefs.h
3404 # Predefined preprocessor variables.
3406 cat >>confdefs.h
<<_ACEOF
3407 #define PACKAGE_NAME "$PACKAGE_NAME"
3410 cat >>confdefs.h
<<_ACEOF
3411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3414 cat >>confdefs.h
<<_ACEOF
3415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3418 cat >>confdefs.h
<<_ACEOF
3419 #define PACKAGE_STRING "$PACKAGE_STRING"
3422 cat >>confdefs.h
<<_ACEOF
3423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3426 cat >>confdefs.h
<<_ACEOF
3427 #define PACKAGE_URL "$PACKAGE_URL"
3431 # Let the site file select an alternate cache file if it wants to.
3432 # Prefer an explicitly selected file to automatically selected ones.
3435 if test -n "$CONFIG_SITE"; then
3436 # We do not want a PATH search for config.site.
3437 case $CONFIG_SITE in #((
3438 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3439 */*) ac_site_file1
=$CONFIG_SITE;;
3440 *) ac_site_file1
=.
/$CONFIG_SITE;;
3442 elif test "x$prefix" != xNONE
; then
3443 ac_site_file1
=$prefix/share
/config.site
3444 ac_site_file2
=$prefix/etc
/config.site
3446 ac_site_file1
=$ac_default_prefix/share
/config.site
3447 ac_site_file2
=$ac_default_prefix/etc
/config.site
3449 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3451 test "x$ac_site_file" = xNONE
&& continue
3452 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3454 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3455 sed 's/^/| /' "$ac_site_file" >&5
3457 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $?
"failed to load site script $ac_site_file
3460 See \`config.log' for more details" "$LINENO" 5; }
3464 if test -r "$cache_file"; then
3465 # Some versions of bash will fail to source /dev/null (special files
3466 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3467 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3469 $as_echo "$as_me: loading cache $cache_file" >&6;}
3471 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3472 *) .
"./$cache_file";;
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3477 $as_echo "$as_me: creating cache $cache_file" >&6;}
3481 gl_header_list
="$gl_header_list arpa/inet.h"
3482 gl_header_list
="$gl_header_list features.h"
3483 gl_func_list
="$gl_func_list canonicalize_file_name"
3484 gl_func_list
="$gl_func_list getcwd"
3485 gl_func_list
="$gl_func_list readlink"
3486 gl_func_list
="$gl_func_list realpath"
3487 gl_header_list
="$gl_header_list sys/param.h"
3488 gl_header_list
="$gl_header_list unistd.h"
3489 gl_func_list
="$gl_func_list _set_invalid_parameter_handler"
3490 gl_header_list
="$gl_header_list sys/socket.h"
3491 gl_func_list
="$gl_func_list fchdir"
3492 gl_header_list
="$gl_header_list dirent.h"
3493 gl_func_list
="$gl_func_list fcntl"
3494 gl_func_list
="$gl_func_list symlink"
3495 gl_func_list
="$gl_func_list fdopendir"
3496 gl_func_list
="$gl_func_list mempcpy"
3497 gl_func_list
="$gl_func_list btowc"
3498 gl_func_list
="$gl_func_list isblank"
3499 gl_func_list
="$gl_func_list iswctype"
3500 gl_func_list
="$gl_func_list mbsrtowcs"
3501 gl_func_list
="$gl_func_list wmemchr"
3502 gl_func_list
="$gl_func_list wmemcpy"
3503 gl_func_list
="$gl_func_list wmempcpy"
3504 gl_header_list
="$gl_header_list wctype.h"
3505 gl_fnmatch_required
=GNU
3506 gl_header_list
="$gl_header_list sys/stat.h"
3507 gl_func_list
="$gl_func_list fstatat"
3508 gl_func_list
="$gl_func_list getdtablesize"
3509 gl_func_list
="$gl_func_list getlogin_r"
3510 gl_func_list
="$gl_func_list getprogname"
3511 gl_func_list
="$gl_func_list getexecname"
3512 gl_header_list
="$gl_header_list sys/time.h"
3513 gl_func_list
="$gl_func_list gettimeofday"
3514 gl_header_list
="$gl_header_list sys/cdefs.h"
3515 gl_func_list
="$gl_func_list getpwnam_r"
3516 gl_header_list
="$gl_header_list netdb.h"
3517 gl_header_list
="$gl_header_list netinet/in.h"
3518 gl_header_list
="$gl_header_list limits.h"
3519 gl_header_list
="$gl_header_list wchar.h"
3520 gl_header_list
="$gl_header_list stdint.h"
3521 gl_header_list
="$gl_header_list inttypes.h"
3522 gl_func_list
="$gl_func_list lstat"
3523 gl_header_list
="$gl_header_list math.h"
3524 gl_func_list
="$gl_func_list mbsinit"
3525 gl_func_list
="$gl_func_list mbrtowc"
3526 gl_header_list
="$gl_header_list sys/mman.h"
3527 gl_func_list
="$gl_func_list mprotect"
3528 gl_func_list
="$gl_func_list mkstemp"
3529 gl_func_list
="$gl_func_list openat"
3530 gl_func_list
="$gl_func_list link"
3531 gl_func_list
="$gl_func_list secure_getenv"
3532 gl_func_list
="$gl_func_list getuid"
3533 gl_func_list
="$gl_func_list geteuid"
3534 gl_func_list
="$gl_func_list getgid"
3535 gl_func_list
="$gl_func_list getegid"
3536 gl_func_list
="$gl_func_list setenv"
3537 gl_func_list
="$gl_func_list strdup"
3538 gl_header_list
="$gl_header_list sys/uio.h"
3539 gl_func_list
="$gl_func_list pipe"
3540 gl_func_list
="$gl_func_list iswcntrl"
3541 # Check that the precious variables saved in the cache have kept the same
3543 ac_cache_corrupted
=false
3544 for ac_var
in $ac_precious_vars; do
3545 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3546 eval ac_new_set
=\
$ac_env_${ac_var}_set
3547 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3548 eval ac_new_val
=\
$ac_env_${ac_var}_value
3549 case $ac_old_set,$ac_new_set in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3553 ac_cache_corrupted
=: ;;
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3557 ac_cache_corrupted
=: ;;
3560 if test "x$ac_old_val" != "x$ac_new_val"; then
3561 # differences in whitespace do not lead to failure.
3562 ac_old_val_w
=`echo x $ac_old_val`
3563 ac_new_val_w
=`echo x $ac_new_val`
3564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3567 ac_cache_corrupted
=:
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3571 eval $ac_var=\
$ac_old_val
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3579 # Pass precious variables to config.status.
3580 if test "$ac_new_set" = set; then
3582 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3583 *) ac_arg
=$ac_var=$ac_new_val ;;
3585 case " $ac_configure_args " in
3586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3587 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3591 if $ac_cache_corrupted; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3596 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3598 ## -------------------- ##
3599 ## Main body of script. ##
3600 ## -------------------- ##
3603 ac_cpp
='$CPP $CPPFLAGS'
3604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3610 ac_config_headers
="$ac_config_headers config.h:config.in"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3614 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3615 # Check whether --enable-maintainer-mode was given.
3616 if test "${enable_maintainer_mode+set}" = set; then :
3617 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3619 USE_MAINTAINER_MODE
=no
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3623 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3624 if test $USE_MAINTAINER_MODE = yes; then
3625 MAINTAINER_MODE_TRUE
=
3626 MAINTAINER_MODE_FALSE
='#'
3628 MAINTAINER_MODE_TRUE
='#'
3629 MAINTAINER_MODE_FALSE
=
3632 MAINT
=$MAINTAINER_MODE_TRUE
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3643 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CC+:} false
; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC
="$CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3680 if test -z "$ac_cv_prog_CC"; then
3682 # Extract the first word of "gcc", so it can be a program name with args.
3683 set dummy gcc
; ac_word
=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3687 $as_echo_n "(cached) " >&6
3689 if test -n "$ac_ct_CC"; then
3690 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir
=.
3697 for ac_exec_ext
in '' $ac_executable_extensions; do
3698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_ac_ct_CC
="gcc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3712 $as_echo "$ac_ct_CC" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3718 if test "x$ac_ct_CC" = x
; then
3721 case $cross_compiling:$ac_tool_warned in
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned
=yes ;;
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false
; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC
="$CC" # Let the user override the test.
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir
=.
3750 for ac_exec_ext
in '' $ac_executable_extensions; do
3751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3774 if test -z "$CC"; then
3775 # Extract the first word of "cc", so it can be a program name with args.
3776 set dummy cc
; ac_word
=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_CC+:} false
; then :
3780 $as_echo_n "(cached) " >&6
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC
="$CC" # Let the user override the test.
3786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir
=.
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794 ac_prog_rejected
=yes
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 if test $ac_prog_rejected = yes; then
3806 # We found a bogon in the path, so make sure we never use it.
3807 set dummy
$ac_cv_prog_CC
3809 if test $# != 0; then
3810 # We chose a different compiler from the bogus one.
3811 # However, it has the same basename, so the bogon will be chosen
3812 # first if we set CC to just the basename; use the full file name.
3814 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog
in cl.exe
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false
; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC
="$CC" # Let the user override the test.
3844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir
=.
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3871 test -n "$CC" && break
3874 if test -z "$CC"; then
3876 for ac_prog
in cl.exe
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy
$ac_prog; ac_word
=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3883 $as_echo_n "(cached) " >&6
3885 if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3892 test -z "$as_dir" && as_dir
=.
3893 for ac_exec_ext
in '' $ac_executable_extensions; do
3894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_ac_ct_CC
="$ac_prog"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908 $as_echo "$ac_ct_CC" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3915 test -n "$ac_ct_CC" && break
3918 if test "x$ac_ct_CC" = x
; then
3921 case $cross_compiling:$ac_tool_warned in
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned
=yes ;;
3934 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error $?
"no acceptable C compiler found in \$PATH
3937 See \`config.log' for more details" "$LINENO" 5; }
3939 # Provide some information about the compiler.
3940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3943 for ac_option
in --version -v -V -qversion; do
3944 { { ac_try
="$ac_compiler $ac_option >&5"
3946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3953 if test -s conftest.err; then
3955 ... rest of stderr output deleted ...
3956 10q' conftest.err >conftest.er1
3957 cat conftest.er1 >&5
3959 rm -f conftest.er1 conftest.err
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 ac_clean_files_save=$ac_clean_files
3976 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3977 # Try to create an executable without -o first, disregard a.out.
3978 # It will help us diagnose broken compilers, and finding out an intuition
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3981 $as_echo_n "checking whether the C compiler works... " >&6; }
3982 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3984 # The possible output files:
3985 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3988 for ac_file in $ac_files
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3997 if { { ac_try="$ac_link_default"
3999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4000 *) ac_try_echo
=$ac_try;;
4002 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link_default") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4009 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4010 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4011 # so that the user can short-circuit this test for compilers unknown to
4013 for ac_file
in $ac_files ''
4015 test -f "$ac_file" ||
continue
4017 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4020 # We found the default executable, but exeext='' is most
4024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4026 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4028 # We set ac_cv_exeext here because the later test for it is not
4029 # safe: cross compilers may not add the suffix if given an `-o'
4030 # argument, so we may need to know it at that point already.
4031 # Even if this section looks crufty: it has the advantage of
4038 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4043 if test -z "$ac_file"; then :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.
$ac_ext >&5
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error
77 "C compiler cannot create executables
4052 See \`config.log' for more details" "$LINENO" 5; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 $as_echo "yes" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058 $as_echo_n "checking for C compiler default output file name... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4060 $as_echo "$ac_file" >&6; }
4061 ac_exeext
=$ac_cv_exeext
4063 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4064 ac_clean_files
=$ac_clean_files_save
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066 $as_echo_n "checking for suffix of executables... " >&6; }
4067 if { { ac_try
="$ac_link"
4069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4079 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4080 # work properly (i.e., refer to `conftest.exe'), while it won't with
4082 for ac_file
in conftest.exe conftest conftest.
*; do
4083 test -f "$ac_file" ||
continue
4085 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4086 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4095 See \`config.log' for more details" "$LINENO" 5; }
4097 rm -f conftest conftest
$ac_cv_exeext
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099 $as_echo "$ac_cv_exeext" >&6; }
4101 rm -f conftest.
$ac_ext
4102 EXEEXT
=$ac_cv_exeext
4104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4110 FILE *f = fopen ("conftest.out", "w");
4111 return ferror (f) || fclose (f) != 0;
4117 ac_clean_files
="$ac_clean_files conftest.out"
4118 # Check that the compiler produces executables we can run. If not, either
4119 # the compiler is broken, or we cross compile.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4121 $as_echo_n "checking whether we are cross compiling... " >&6; }
4122 if test "$cross_compiling" != yes; then
4123 { { ac_try
="$ac_link"
4125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129 $as_echo "$ac_try_echo"; } >&5
4130 (eval "$ac_link") 2>&5
4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133 test $ac_status = 0; }
4134 if { ac_try='./conftest$ac_cv_exeext'
4135 { { case "(($ac_try" in
4136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4137 *) ac_try_echo
=$ac_try;;
4139 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141 (eval "$ac_try") 2>&5
4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }; }; then
4147 if test "$cross_compiling" = maybe
; then
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 as_fn_error $?
"cannot run C compiled programs.
4153 If you meant to cross compile, use \`--host'.
4154 See \`config.log' for more details" "$LINENO" 5; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4159 $as_echo "$cross_compiling" >&6; }
4161 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4162 ac_clean_files
=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4164 $as_echo_n "checking for suffix of object files... " >&6; }
4165 if ${ac_cv_objext+:} false
; then :
4166 $as_echo_n "(cached) " >&6
4168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4179 rm -f conftest.o conftest.obj
4180 if { { ac_try
="$ac_compile"
4182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_compile") 2>&5
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; then :
4191 for ac_file in conftest.o conftest.obj conftest.*; do
4192 test -f "$ac_file" || continue;
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4206 See \
`config.log' for more details" "$LINENO" 5; }
4208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4211 $as_echo "$ac_cv_objext" >&6; }
4212 OBJEXT=$ac_cv_objext
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4215 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4216 if ${ac_cv_c_compiler_gnu+:} false; then :
4217 $as_echo_n "(cached) " >&6
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4233 if ac_fn_c_try_compile "$LINENO"; then :
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4243 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4244 if test $ac_compiler_gnu = yes; then
4249 ac_test_CFLAGS=${CFLAGS+set}
4250 ac_save_CFLAGS=$CFLAGS
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4252 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4253 if ${ac_cv_prog_cc_g+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4271 if ac_fn_c_try_compile "$LINENO"; then :
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_c_werror_flag=$ac_save_c_werror_flag
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4302 if ac_fn_c_try_compile "$LINENO"; then :
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_c_werror_flag=$ac_save_c_werror_flag
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4313 $as_echo "$ac_cv_prog_cc_g" >&6; }
4314 if test "$ac_test_CFLAGS" = set; then
4315 CFLAGS=$ac_save_CFLAGS
4316 elif test $ac_cv_prog_cc_g = yes; then
4317 if test "$GCC" = yes; then
4323 if test "$GCC" = yes; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4330 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4331 if ${ac_cv_prog_cc_c89+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 ac_cv_prog_cc_c89=no
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4342 struct buf { int x; };
4343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344 static char *e (p, i)
4350 static char *f (char * (*g) (char **, int), char **p, ...)
4355 s = g (p, va_arg (v,int));
4360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4361 function prototypes and stuff, but not '\xHH' hex character constants.
4362 These don't provoke an error unfortunately, instead are silently treated
4363 as 'x'. The following induces an error, until -std is added to get
4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4365 array size at least. It's necessary to write '\x00'==0 to get something
4366 that's true only with -std. */
4367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370 inside strings and character constants. */
4372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4374 int test (int i, double x);
4375 struct s1 {int (*f) (int a);};
4376 struct s2 {int (*f) (double a);};
4377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_c89=$ac_arg
4395 rm -f core conftest.err conftest.$ac_objext
4396 test "x$ac_cv_prog_cc_c89" != "xno" && break
4398 rm -f conftest.$ac_ext
4403 case "x$ac_cv_prog_cc_c89" in
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406 $as_echo "none needed" >&6; } ;;
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409 $as_echo "unsupported" >&6; } ;;
4411 CC="$CC $ac_cv_prog_cc_c89"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4415 if test "x$ac_cv_prog_cc_c89" != xno; then :
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4427 if test -f "$ac_dir/install-sh"; then
4429 ac_install_sh="$ac_aux_dir/install-sh -c"
4431 elif test -f "$ac_dir/install.sh"; then
4433 ac_install_sh="$ac_aux_dir/install.sh -c"
4435 elif test -f "$ac_dir/shtool"; then
4437 ac_install_sh="$ac_aux_dir/shtool install -c"
4441 if test -z "$ac_aux_dir"; then
4442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4445 # These three variables are undocumented and unsupported,
4446 # and are intended to be withdrawn in a future Autoconf release.
4447 # They can cause serious problems if a builder's source tree is in a directory
4448 # whose full name contains unusual characters.
4449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4454 # Expand $ac_aux_dir to an absolute path.
4455 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4463 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4464 if ${am_cv_prog_cc_c_o+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4478 # Make sure it works both with $CC and with simple cc.
4479 # Following AC_PROG_CC_C_O, we do the test twice because some
4480 # compilers refuse to overwrite an existing .o file with -o,
4481 # though they will create one.
4482 am_cv_prog_cc_c_o=yes
4484 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4485 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } \
4489 && test -f conftest2.$ac_objext; then
4492 am_cv_prog_cc_c_o=no
4496 rm -f core conftest*
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4500 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4501 if test "$am_cv_prog_cc_c_o" != yes; then
4502 # Losing compiler, so override with the script.
4503 # FIXME: It is wrong to rewrite CC.
4504 # But if we don't then we get into trouble of one sort or another.
4505 # A longer-term fix would be to have automake use am__CC in this case,
4506 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4507 CC="$am_aux_dir/compile $CC"
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4523 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4524 # On Suns, sometimes $CPP names a directory.
4525 if test -n "$CPP" && test -d "$CPP"; then
4528 if test -z "$CPP"; then
4529 if ${ac_cv_prog_CPP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 # Double quotes because CPP needs to be expanded
4533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4536 for ac_c_preproc_warn_flag in '' yes
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4547 # include <limits.h>
4549 # include <assert.h>
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4556 # Broken: fails on valid input.
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4567 if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4571 # Passes both tests.
4575 rm -f conftest.err conftest.i conftest.$ac_ext
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.i conftest.err conftest.
$ac_ext
4580 if $ac_preproc_ok; then :
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4593 $as_echo "$CPP" >&6; }
4595 for ac_c_preproc_warn_flag
in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # include <limits.h>
4608 # include <assert.h>
4612 if ac_fn_c_try_cpp
"$LINENO"; then :
4615 # Broken: fails on valid input.
4618 rm -f conftest.err conftest.i conftest.
$ac_ext
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4626 if ac_fn_c_try_cpp
"$LINENO"; then :
4627 # Broken: success on invalid input.
4630 # Passes both tests.
4634 rm -f conftest.err conftest.i conftest.
$ac_ext
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.
$ac_ext
4639 if $ac_preproc_ok; then :
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4645 See \`config.log' for more details" "$LINENO" 5; }
4649 ac_cpp
='$CPP $CPPFLAGS'
4650 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4656 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4657 if ${ac_cv_path_GREP+:} false
; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -z "$GREP"; then
4661 ac_path_GREP_found
=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4664 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4667 test -z "$as_dir" && as_dir
=.
4668 for ac_prog
in grep ggrep
; do
4669 for ac_exec_ext
in '' $ac_executable_extensions; do
4670 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4671 as_fn_executable_p
"$ac_path_GREP" ||
continue
4672 # Check for GNU ac_path_GREP and select it if it is found.
4673 # Check for GNU $ac_path_GREP
4674 case `"$ac_path_GREP" --version 2>&1` in
4676 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'GREP' >> "conftest.nl"
4686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4687 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4688 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_GREP
="$ac_path_GREP"
4692 ac_path_GREP_max
=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4700 $ac_path_GREP_found && break 3
4705 if test -z "$ac_cv_path_GREP"; then
4706 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 ac_cv_path_GREP
=$GREP
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4714 $as_echo "$ac_cv_path_GREP" >&6; }
4715 GREP
="$ac_cv_path_GREP"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4719 $as_echo_n "checking for egrep... " >&6; }
4720 if ${ac_cv_path_EGREP+:} false
; then :
4721 $as_echo_n "(cached) " >&6
4723 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4724 then ac_cv_path_EGREP
="$GREP -E"
4726 if test -z "$EGREP"; then
4727 ac_path_EGREP_found
=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4733 test -z "$as_dir" && as_dir
=.
4734 for ac_prog
in egrep; do
4735 for ac_exec_ext
in '' $ac_executable_extensions; do
4736 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4737 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4738 # Check for GNU ac_path_EGREP and select it if it is found.
4739 # Check for GNU $ac_path_EGREP
4740 case `"$ac_path_EGREP" --version 2>&1` in
4742 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4745 $as_echo_n 0123456789 >"conftest.in"
4748 cat "conftest.in" "conftest.in" >"conftest.tmp"
4749 mv "conftest.tmp" "conftest.in"
4750 cp "conftest.in" "conftest.nl"
4751 $as_echo 'EGREP' >> "conftest.nl"
4752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4753 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4754 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4756 # Best one so far, save it but keep looking for a better one
4757 ac_cv_path_EGREP
="$ac_path_EGREP"
4758 ac_path_EGREP_max
=$ac_count
4760 # 10*(2^10) chars as input seems more than enough
4761 test $ac_count -gt 10 && break
4763 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4766 $ac_path_EGREP_found && break 3
4771 if test -z "$ac_cv_path_EGREP"; then
4772 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775 ac_cv_path_EGREP
=$EGREP
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4781 $as_echo "$ac_cv_path_EGREP" >&6; }
4782 EGREP
="$ac_cv_path_EGREP"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4786 $as_echo_n "checking for ANSI C header files... " >&6; }
4787 if ${ac_cv_header_stdc+:} false
; then :
4788 $as_echo_n "(cached) " >&6
4790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4805 if ac_fn_c_try_compile
"$LINENO"; then :
4806 ac_cv_header_stdc
=yes
4808 ac_cv_header_stdc
=no
4810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "memchr" >/dev
/null
2>&1; then :
4823 ac_cv_header_stdc
=no
4829 if test $ac_cv_header_stdc = yes; then
4830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837 $EGREP "free" >/dev
/null
2>&1; then :
4840 ac_cv_header_stdc
=no
4846 if test $ac_cv_header_stdc = yes; then
4847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4848 if test "$cross_compiling" = yes; then :
4851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4855 #if ((' ' & 0x0FF) == 0x020)
4856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859 # define ISLOWER(c) \
4860 (('a' <= (c) && (c) <= 'i') \
4861 || ('j' <= (c) && (c) <= 'r') \
4862 || ('s' <= (c) && (c) <= 'z'))
4863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871 for (i = 0; i < 256; i++)
4872 if (XOR (islower (i), ISLOWER (i))
4873 || toupper (i) != TOUPPER (i))
4878 if ac_fn_c_try_run
"$LINENO"; then :
4881 ac_cv_header_stdc
=no
4883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4890 $as_echo "$ac_cv_header_stdc" >&6; }
4891 if test $ac_cv_header_stdc = yes; then
4893 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4898 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4899 inttypes.h stdint.h unistd.h
4901 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4904 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4905 cat >>confdefs.h
<<_ACEOF
4906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4915 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4916 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4923 if test "$MINIX" = yes; then
4925 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4928 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4931 $as_echo "#define _MINIX 1" >>confdefs.h
4934 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4940 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4941 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4942 $as_echo_n "(cached) " >&6
4944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4947 # define __EXTENSIONS__ 1
4948 $ac_includes_default
4957 if ac_fn_c_try_compile
"$LINENO"; then :
4958 ac_cv_safe_to_define___extensions__
=yes
4960 ac_cv_safe_to_define___extensions__
=no
4962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4965 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4966 test $ac_cv_safe_to_define___extensions__ = yes &&
4967 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4969 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4971 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4973 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4975 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4977 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4979 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4981 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4983 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4985 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4987 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4989 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4991 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4994 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4995 if ${ac_cv_should_define__xopen_source+:} false
; then :
4996 $as_echo_n "(cached) " >&6
4998 ac_cv_should_define__xopen_source
=no
4999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5012 if ac_fn_c_try_compile
"$LINENO"; then :
5015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 #define _XOPEN_SOURCE 500
5029 if ac_fn_c_try_compile
"$LINENO"; then :
5030 ac_cv_should_define__xopen_source
=yes
5032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5037 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5038 test $ac_cv_should_define__xopen_source = yes &&
5039 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5052 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5053 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5054 $as_echo_n "(cached) " >&6
5057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5067 gl_cv_c_amsterdam_compiler
=yes
5069 gl_cv_c_amsterdam_compiler
=no
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5076 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5078 if test $gl_cv_c_amsterdam_compiler = yes; then
5079 if test -z "$AR"; then
5082 if test -z "$ARFLAGS"; then
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog
in ar lib
"link -lib"
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_AR+:} false
; then :
5094 $as_echo_n "(cached) " >&6
5096 if test -n "$AR"; then
5097 ac_cv_prog_AR
="$AR" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 if test -n "$AR"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5119 $as_echo "$AR" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$AR" && break
5129 if test -z "$AR"; then
5131 for ac_prog
in ar lib
"link -lib"
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy
$ac_prog; ac_word
=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$ac_ct_AR"; then
5141 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir
=.
5148 for ac_exec_ext
in '' $ac_executable_extensions; do
5149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_AR
="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5161 if test -n "$ac_ct_AR"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5163 $as_echo "$ac_ct_AR" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5170 test -n "$ac_ct_AR" && break
5173 if test "x$ac_ct_AR" = x
; then
5176 case $cross_compiling:$ac_tool_warned in
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned
=yes ;;
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5189 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5190 if ${am_cv_ar_interface+:} false
; then :
5191 $as_echo_n "(cached) " >&6
5194 ac_cpp
='$CPP $CPPFLAGS'
5195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5199 am_cv_ar_interface
=ar
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int some_variable = 0;
5204 if ac_fn_c_try_compile
"$LINENO"; then :
5205 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5207 (eval $am_ar_try) 2>&5
5209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210 test $ac_status = 0; }
5211 if test "$ac_status" -eq 0; then
5212 am_cv_ar_interface
=ar
5214 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5216 (eval $am_ar_try) 2>&5
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }
5220 if test "$ac_status" -eq 0; then
5221 am_cv_ar_interface
=lib
5223 am_cv_ar_interface
=unknown
5226 rm -f conftest.lib libconftest.a
5229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5231 ac_cpp
='$CPP $CPPFLAGS'
5232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5238 $as_echo "$am_cv_ar_interface" >&6; }
5240 case $am_cv_ar_interface in
5244 # Microsoft lib, so override with the ar-lib wrapper script.
5245 # FIXME: It is wrong to rewrite AR.
5246 # But if we don't then we get into trouble of one sort or another.
5247 # A longer-term fix would be to have automake use am__AR in this case,
5248 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5250 AR
="$am_aux_dir/ar-lib $AR"
5253 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5261 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_AR+:} false
; then :
5265 $as_echo_n "(cached) " >&6
5267 if test -n "$AR"; then
5268 ac_cv_prog_AR
="$AR" # Let the user override the test.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 if test -n "$AR"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5290 $as_echo "$AR" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5298 if test -z "$ac_cv_prog_AR"; then
5300 # Extract the first word of "ar", so it can be a program name with args.
5301 set dummy
ar; ac_word
=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5305 $as_echo_n "(cached) " >&6
5307 if test -n "$ac_ct_AR"; then
5308 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_exec_ext
in '' $ac_executable_extensions; do
5316 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_AR
="ar"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5328 if test -n "$ac_ct_AR"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5330 $as_echo "$ac_ct_AR" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5336 if test "x$ac_ct_AR" = x
; then
5339 case $cross_compiling:$ac_tool_warned in
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343 ac_tool_warned
=yes ;;
5351 if test -z "$ARFLAGS"; then
5357 if test -z "$RANLIB"; then
5358 if test $gl_cv_c_amsterdam_compiler = yes; then
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_RANLIB+:} false
; then :
5367 $as_echo_n "(cached) " >&6
5369 if test -n "$RANLIB"; then
5370 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 RANLIB
=$ac_cv_prog_RANLIB
5390 if test -n "$RANLIB"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5392 $as_echo "$RANLIB" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5400 if test -z "$ac_cv_prog_RANLIB"; then
5401 ac_ct_RANLIB
=$RANLIB
5402 # Extract the first word of "ranlib", so it can be a program name with args.
5403 set dummy ranlib
; ac_word
=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$ac_ct_RANLIB"; then
5410 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir
=.
5417 for ac_exec_ext
in '' $ac_executable_extensions; do
5418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5430 if test -n "$ac_ct_RANLIB"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5432 $as_echo "$ac_ct_RANLIB" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5438 if test "x$ac_ct_RANLIB" = x
; then
5441 case $cross_compiling:$ac_tool_warned in
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned
=yes ;;
5447 RANLIB
=$ac_ct_RANLIB
5450 RANLIB
="$ac_cv_prog_RANLIB"
5457 # Make sure we can run config.sub.
5458 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5459 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5462 $as_echo_n "checking build system type... " >&6; }
5463 if ${ac_cv_build+:} false
; then :
5464 $as_echo_n "(cached) " >&6
5466 ac_build_alias
=$build_alias
5467 test "x$ac_build_alias" = x
&&
5468 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5469 test "x$ac_build_alias" = x
&&
5470 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5471 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5472 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5476 $as_echo "$ac_cv_build" >&6; }
5477 case $ac_cv_build in
5479 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5482 ac_save_IFS
=$IFS; IFS
='-'
5488 # Remember, the first character of IFS is used to create $*,
5489 # except with old shells:
5492 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5496 $as_echo_n "checking host system type... " >&6; }
5497 if ${ac_cv_host+:} false
; then :
5498 $as_echo_n "(cached) " >&6
5500 if test "x$host_alias" = x
; then
5501 ac_cv_host
=$ac_cv_build
5503 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5504 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5509 $as_echo "$ac_cv_host" >&6; }
5512 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5515 ac_save_IFS
=$IFS; IFS
='-'
5521 # Remember, the first character of IFS is used to create $*,
5522 # except with old shells:
5525 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5531 # IEEE behaviour is the default on all CPUs except Alpha and SH
5532 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5533 # and the GCC 4.1.2 manual).
5536 # On Alpha systems, a compiler option provides the behaviour.
5537 # See the ieee(3) manual page, also available at
5538 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5539 if test -n "$GCC"; then
5540 # GCC has the option -mieee.
5541 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5542 CPPFLAGS
="$CPPFLAGS -mieee"
5544 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5545 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5546 CPPFLAGS
="$CPPFLAGS -ieee"
5550 if test -n "$GCC"; then
5551 # GCC has the option -mieee.
5552 CPPFLAGS
="$CPPFLAGS -mieee"
5557 # Check whether --enable-largefile was given.
5558 if test "${enable_largefile+set}" = set; then :
5559 enableval
=$enable_largefile;
5562 if test "$enable_largefile" != no
; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5565 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5566 if ${ac_cv_sys_largefile_CC+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 ac_cv_sys_largefile_CC
=no
5570 if test "$GCC" != yes; then
5573 # IRIX 6.2 and later do not support large files by default,
5574 # so use the C compiler's -n32 option if that helps.
5575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <sys/types.h>
5578 /* Check that off_t can represent 2**63 - 1 correctly.
5579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5580 since some C++ compilers masquerading as C compilers
5581 incorrectly reject 9223372036854775807. */
5582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5584 && LARGE_OFF_T % 2147483647 == 1)
5594 if ac_fn_c_try_compile
"$LINENO"; then :
5597 rm -f core conftest.err conftest.
$ac_objext
5599 if ac_fn_c_try_compile
"$LINENO"; then :
5600 ac_cv_sys_largefile_CC
=' -n32'; break
5602 rm -f core conftest.err conftest.
$ac_objext
5606 rm -f conftest.
$ac_ext
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5610 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5611 if test "$ac_cv_sys_largefile_CC" != no
; then
5612 CC
=$CC$ac_cv_sys_largefile_CC
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5616 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5617 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5618 $as_echo_n "(cached) " >&6
5621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5640 if ac_fn_c_try_compile
"$LINENO"; then :
5641 ac_cv_sys_file_offset_bits
=no
; break
5643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #define _FILE_OFFSET_BITS 64
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5664 if ac_fn_c_try_compile
"$LINENO"; then :
5665 ac_cv_sys_file_offset_bits
=64; break
5667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5668 ac_cv_sys_file_offset_bits
=unknown
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5673 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5674 case $ac_cv_sys_file_offset_bits in #(
5677 cat >>confdefs.h
<<_ACEOF
5678 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5683 if test $ac_cv_sys_file_offset_bits = unknown
; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5685 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5686 if ${ac_cv_sys_large_files+:} false
; then :
5687 $as_echo_n "(cached) " >&6
5690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 if ac_fn_c_try_compile
"$LINENO"; then :
5710 ac_cv_sys_large_files
=no
; break
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #define _LARGE_FILES 1
5716 #include <sys/types.h>
5717 /* Check that off_t can represent 2**63 - 1 correctly.
5718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5719 since some C++ compilers masquerading as C compilers
5720 incorrectly reject 9223372036854775807. */
5721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5723 && LARGE_OFF_T % 2147483647 == 1)
5733 if ac_fn_c_try_compile
"$LINENO"; then :
5734 ac_cv_sys_large_files
=1; break
5736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5737 ac_cv_sys_large_files
=unknown
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5742 $as_echo "$ac_cv_sys_large_files" >&6; }
5743 case $ac_cv_sys_large_files in #(
5746 cat >>confdefs.h
<<_ACEOF
5747 #define _LARGE_FILES $ac_cv_sys_large_files
5755 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5761 # Pre-early section.
5765 # Code from module absolute-header:
5766 # Code from module alloca:
5767 # Code from module alloca-opt:
5768 # Code from module arpa_inet:
5769 # Code from module assure:
5770 # Code from module at-internal:
5771 # Code from module canonicalize-lgpl:
5772 # Code from module chdir:
5773 # Code from module chdir-long:
5774 # Code from module cloexec:
5775 # Code from module close:
5776 # Code from module closedir:
5777 # Code from module configmake:
5778 # Code from module d-ino:
5779 # Code from module d-type:
5780 # Code from module dirent:
5781 # Code from module dirfd:
5782 # Code from module dirname-lgpl:
5783 # Code from module dosname:
5784 # Code from module double-slash-root:
5785 # Code from module dup:
5786 # Code from module dup2:
5787 # Code from module environ:
5788 # Code from module errno:
5789 # Code from module error:
5790 # Code from module exitfail:
5791 # Code from module extensions:
5792 # Code from module extern-inline:
5793 # Code from module fchdir:
5794 # Code from module fcntl:
5795 # Code from module fcntl-h:
5796 # Code from module fd-hook:
5797 # Code from module fdopendir:
5798 # Code from module filename:
5799 # Code from module filenamecat-lgpl:
5800 # Code from module flexmember:
5801 # Code from module float:
5802 # Code from module fnmatch:
5803 # Code from module fnmatch-gnu:
5804 # Code from module fpieee:
5806 # Code from module fpucw:
5807 # Code from module frexp:
5808 # Code from module frexpl:
5809 # Code from module fstat:
5810 # Code from module fstatat:
5811 # Code from module getcwd:
5812 # Code from module getcwd-lgpl:
5813 # Code from module getdtablesize:
5814 # Code from module getlogin_r:
5815 # Code from module getprogname:
5816 # Code from module gettext-h:
5817 # Code from module gettimeofday:
5818 # Code from module glob:
5819 # Code from module hard-locale:
5820 # Code from module include_next:
5821 # Code from module inet_ntop:
5822 # Code from module intprops:
5823 # Code from module inttypes:
5824 # Code from module inttypes-incomplete:
5825 # Code from module isnand-nolibm:
5826 # Code from module isnanl-nolibm:
5827 # Code from module largefile:
5829 # Code from module limits-h:
5830 # Code from module localcharset:
5831 # Code from module lstat:
5832 # Code from module malloc-posix:
5833 # Code from module malloca:
5834 # Code from module math:
5835 # Code from module mbrtowc:
5836 # Code from module mbsinit:
5837 # Code from module mbsrtowcs:
5838 # Code from module memchr:
5839 # Code from module memmem:
5840 # Code from module memmem-simple:
5841 # Code from module mempcpy:
5842 # Code from module memrchr:
5843 # Code from module mkdir:
5844 # Code from module mkstemp:
5845 # Code from module msvc-inval:
5846 # Code from module msvc-nothrow:
5847 # Code from module multiarch:
5848 # Code from module netinet_in:
5849 # Code from module nocrash:
5850 # Code from module open:
5851 # Code from module openat:
5852 # Code from module openat-die:
5853 # Code from module openat-h:
5854 # Code from module opendir:
5855 # Code from module pathmax:
5856 # Code from module rawmemchr:
5857 # Code from module readdir:
5858 # Code from module readlink:
5859 # Code from module realloc-posix:
5860 # Code from module rename:
5861 # Code from module rewinddir:
5862 # Code from module rmdir:
5863 # Code from module same-inode:
5864 # Code from module save-cwd:
5865 # Code from module secure_getenv:
5866 # Code from module setenv:
5867 # Code from module signal-h:
5868 # Code from module snippet/_Noreturn:
5869 # Code from module snippet/arg-nonnull:
5870 # Code from module snippet/c++defs:
5871 # Code from module snippet/warn-on-use:
5872 # Code from module socklen:
5873 # Code from module ssize_t:
5874 # Code from module stat:
5875 # Code from module stdalign:
5876 # Code from module stdbool:
5877 # Code from module stddef:
5878 # Code from module stdint:
5879 # Code from module stdio:
5880 # Code from module stdlib:
5881 # Code from module strchrnul:
5882 # Code from module strdup-posix:
5883 # Code from module streq:
5884 # Code from module strerror:
5885 # Code from module strerror-override:
5886 # Code from module string:
5887 # Code from module strnlen1:
5888 # Code from module strstr:
5889 # Code from module strstr-simple:
5890 # Code from module strtok_r:
5891 # Code from module sys_socket:
5892 # Code from module sys_stat:
5893 # Code from module sys_time:
5894 # Code from module sys_types:
5895 # Code from module sys_uio:
5896 # Code from module tempname:
5897 # Code from module time:
5898 # Code from module unistd:
5899 # Code from module unistd-safer:
5900 # Code from module unsetenv:
5901 # Code from module update-copyright:
5902 # Code from module verify:
5903 # Code from module wchar:
5904 # Code from module wctype-h:
5907 ac_cpp
='$CPP $CPPFLAGS'
5908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5911 if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5913 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_CC+:} false
; then :
5917 $as_echo_n "(cached) " >&6
5919 if test -n "$CC"; then
5920 ac_cv_prog_CC
="$CC" # Let the user override the test.
5922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir
=.
5927 for ac_exec_ext
in '' $ac_executable_extensions; do
5928 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 if test -n "$CC"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5942 $as_echo "$CC" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5950 if test -z "$ac_cv_prog_CC"; then
5952 # Extract the first word of "gcc", so it can be a program name with args.
5953 set dummy gcc
; ac_word
=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5957 $as_echo_n "(cached) " >&6
5959 if test -n "$ac_ct_CC"; then
5960 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir
=.
5967 for ac_exec_ext
in '' $ac_executable_extensions; do
5968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_CC
="gcc"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5980 if test -n "$ac_ct_CC"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5982 $as_echo "$ac_ct_CC" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5988 if test "x$ac_ct_CC" = x
; then
5991 case $cross_compiling:$ac_tool_warned in
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned
=yes ;;
6003 if test -z "$CC"; then
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6006 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_CC+:} false
; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$CC"; then
6013 ac_cv_prog_CC
="$CC" # Let the user override the test.
6015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir
=.
6020 for ac_exec_ext
in '' $ac_executable_extensions; do
6021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 if test -n "$CC"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6035 $as_echo "$CC" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6044 if test -z "$CC"; then
6045 # Extract the first word of "cc", so it can be a program name with args.
6046 set dummy cc
; ac_word
=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_CC+:} false
; then :
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$CC"; then
6053 ac_cv_prog_CC
="$CC" # Let the user override the test.
6056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir
=.
6061 for ac_exec_ext
in '' $ac_executable_extensions; do
6062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6064 ac_prog_rejected
=yes
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 if test $ac_prog_rejected = yes; then
6076 # We found a bogon in the path, so make sure we never use it.
6077 set dummy
$ac_cv_prog_CC
6079 if test $# != 0; then
6080 # We chose a different compiler from the bogus one.
6081 # However, it has the same basename, so the bogon will be chosen
6082 # first if we set CC to just the basename; use the full file name.
6084 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6090 if test -n "$CC"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6092 $as_echo "$CC" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6100 if test -z "$CC"; then
6101 if test -n "$ac_tool_prefix"; then
6102 for ac_prog
in cl.exe
6104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_CC+:} false
; then :
6109 $as_echo_n "(cached) " >&6
6111 if test -n "$CC"; then
6112 ac_cv_prog_CC
="$CC" # Let the user override the test.
6114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir
=.
6119 for ac_exec_ext
in '' $ac_executable_extensions; do
6120 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 if test -n "$CC"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6134 $as_echo "$CC" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6141 test -n "$CC" && break
6144 if test -z "$CC"; then
6146 for ac_prog
in cl.exe
6148 # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy
$ac_prog; ac_word
=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$ac_ct_CC"; then
6156 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir
=.
6163 for ac_exec_ext
in '' $ac_executable_extensions; do
6164 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_ac_ct_CC
="$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6176 if test -n "$ac_ct_CC"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6178 $as_echo "$ac_ct_CC" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6185 test -n "$ac_ct_CC" && break
6188 if test "x$ac_ct_CC" = x
; then
6191 case $cross_compiling:$ac_tool_warned in
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned
=yes ;;
6204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6206 as_fn_error $?
"no acceptable C compiler found in \$PATH
6207 See \`config.log' for more details" "$LINENO" 5; }
6209 # Provide some information about the compiler.
6210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6213 for ac_option
in --version -v -V -qversion; do
6214 { { ac_try
="$ac_compiler $ac_option >&5"
6216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6220 $as_echo "$ac_try_echo"; } >&5
6221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6223 if test -s conftest.err; then
6225 ... rest of stderr output deleted ...
6226 10q' conftest.err >conftest.er1
6227 cat conftest.er1 >&5
6229 rm -f conftest.er1 conftest.err
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6236 if ${ac_cv_c_compiler_gnu+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6253 if ac_fn_c_try_compile "$LINENO"; then :
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6264 if test $ac_compiler_gnu = yes; then
6269 ac_test_CFLAGS=${CFLAGS+set}
6270 ac_save_CFLAGS=$CFLAGS
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6272 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6273 if ${ac_cv_prog_cc_g+:} false; then :
6274 $as_echo_n "(cached) " >&6
6276 ac_save_c_werror_flag=$ac_c_werror_flag
6277 ac_c_werror_flag=yes
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6291 if ac_fn_c_try_compile "$LINENO"; then :
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6306 if ac_fn_c_try_compile "$LINENO"; then :
6309 ac_c_werror_flag=$ac_save_c_werror_flag
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6322 if ac_fn_c_try_compile "$LINENO"; then :
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_c_werror_flag=$ac_save_c_werror_flag
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6333 $as_echo "$ac_cv_prog_cc_g" >&6; }
6334 if test "$ac_test_CFLAGS" = set; then
6335 CFLAGS=$ac_save_CFLAGS
6336 elif test $ac_cv_prog_cc_g = yes; then
6337 if test "$GCC" = yes; then
6343 if test "$GCC" = yes; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6350 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6351 if ${ac_cv_prog_cc_c89+:} false; then :
6352 $as_echo_n "(cached) " >&6
6354 ac_cv_prog_cc_c89=no
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6362 struct buf { int x; };
6363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6364 static char *e (p, i)
6370 static char *f (char * (*g) (char **, int), char **p, ...)
6375 s = g (p, va_arg (v,int));
6380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6381 function prototypes and stuff, but not '\xHH' hex character constants.
6382 These don't provoke an error unfortunately, instead are silently treated
6383 as 'x'. The following induces an error, until -std is added to get
6384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6385 array size at least. It's necessary to write '\x00'==0 to get something
6386 that's true only with -std. */
6387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6390 inside strings and character constants. */
6392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6394 int test (int i, double x);
6395 struct s1 {int (*f) (int a);};
6396 struct s2 {int (*f) (double a);};
6397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6411 CC="$ac_save_CC $ac_arg"
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 ac_cv_prog_cc_c89=$ac_arg
6415 rm -f core conftest.err conftest.$ac_objext
6416 test "x$ac_cv_prog_cc_c89" != "xno" && break
6418 rm -f conftest.$ac_ext
6423 case "x$ac_cv_prog_cc_c89" in
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6426 $as_echo "none needed" >&6; } ;;
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6429 $as_echo "unsupported" >&6; } ;;
6431 CC="$CC $ac_cv_prog_cc_c89"
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6435 if test "x$ac_cv_prog_cc_c89" != xno; then :
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6451 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6452 if ${am_cv_prog_cc_c_o+:} false; then :
6453 $as_echo_n "(cached) " >&6
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6466 # Make sure it works both with $CC and with simple cc.
6467 # Following AC_PROG_CC_C_O, we do the test twice because some
6468 # compilers refuse to overwrite an existing .o file with -o,
6469 # though they will create one.
6470 am_cv_prog_cc_c_o=yes
6472 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6473 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } \
6477 && test -f conftest2.$ac_objext; then
6480 am_cv_prog_cc_c_o=no
6484 rm -f core conftest*
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6488 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6489 if test "$am_cv_prog_cc_c_o" != yes; then
6490 # Losing compiler, so override with the script.
6491 # FIXME: It is wrong to rewrite CC.
6492 # But if we don't then we get into trouble of one sort or another.
6493 # A longer-term fix would be to have automake use am__CC in this case,
6494 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6495 CC="$am_aux_dir/compile $CC"
6498 ac_cpp='$CPP $CPPFLAGS'
6499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6508 for ac_dir in ../.. "$srcdir"/../..; do
6509 if test -f "$ac_dir/install-sh"; then
6511 ac_install_sh="$ac_aux_dir/install-sh -c"
6513 elif test -f "$ac_dir/install.sh"; then
6515 ac_install_sh="$ac_aux_dir/install.sh -c"
6517 elif test -f "$ac_dir/shtool"; then
6519 ac_install_sh="$ac_aux_dir/shtool install -c"
6523 if test -z "$ac_aux_dir"; then
6524 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6527 # These three variables are undocumented and unsupported,
6528 # and are intended to be withdrawn in a future Autoconf release.
6529 # They can cause serious problems if a builder's source tree is in a directory
6530 # whose full name contains unusual characters.
6531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6537 $as_echo_n "checking target system type... " >&6; }
6538 if ${ac_cv_target+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test "x$target_alias" = x; then
6542 ac_cv_target=$ac_cv_host
6544 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6550 $as_echo "$ac_cv_target" >&6; }
6551 case $ac_cv_target in
6553 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6555 target=$ac_cv_target
6556 ac_save_IFS=$IFS; IFS='-'
6562 # Remember, the first character of IFS is used to create $*,
6563 # except with old shells:
6566 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6569 # The aliases save the names the user supplied, while $host etc.
6570 # will get canonicalized.
6571 test -n "$target_alias" &&
6572 test "$program_prefix$program_suffix$program_transform_name" = \
6574 program_prefix=${target_alias}-
6582 LIBC_FATAL_STDERR_=1
6583 export LIBC_FATAL_STDERR_
6585 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6586 if test "x$ac_cv_type_size_t" = xyes; then :
6590 cat >>confdefs.h <<_ACEOF
6591 #define size_t unsigned int
6596 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6597 # for constant arguments. Useless!
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6599 $as_echo_n "checking for working alloca.h... " >&6; }
6600 if ${ac_cv_working_alloca_h+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6609 char *p = (char *) alloca (2 * sizeof (int));
6615 if ac_fn_c_try_link "$LINENO"; then :
6616 ac_cv_working_alloca_h=yes
6618 ac_cv_working_alloca_h=no
6620 rm -f core conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6624 $as_echo "$ac_cv_working_alloca_h" >&6; }
6625 if test $ac_cv_working_alloca_h = yes; then
6627 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6632 $as_echo_n "checking for alloca... " >&6; }
6633 if ${ac_cv_func_alloca_works+:} false; then :
6634 $as_echo_n "(cached) " >&6
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6639 # define alloca __builtin_alloca
6642 # include <malloc.h>
6643 # define alloca _alloca
6645 # ifdef HAVE_ALLOCA_H
6646 # include <alloca.h>
6651 # ifndef alloca /* predefined by HP cc +Olibcalls */
6652 void *alloca (size_t);
6662 char *p = (char *) alloca (1);
6668 if ac_fn_c_try_link "$LINENO"; then :
6669 ac_cv_func_alloca_works=yes
6671 ac_cv_func_alloca_works=no
6673 rm -f core conftest.err conftest.$ac_objext \
6674 conftest$ac_exeext conftest.$ac_ext
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6677 $as_echo "$ac_cv_func_alloca_works" >&6; }
6679 if test $ac_cv_func_alloca_works = yes; then
6681 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6684 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6685 # that cause trouble. Some versions do not even contain alloca or
6686 # contain a buggy version. If you still want to use their alloca,
6687 # use ar to extract alloca.o from them instead of compiling alloca.c.
6693 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6695 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
6699 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
6700 if ${ac_cv_os_cray+:} false; then :
6701 $as_echo_n "(cached
) " >&6
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 #if defined CRAY && ! defined CRAY2
6712 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6713 $EGREP "webecray
" >/dev/null 2>&1; then :
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
6722 $as_echo "$ac_cv_os_cray" >&6; }
6723 if test $ac_cv_os_cray = yes; then
6724 for ac_func in _getb67 GETB67 getb67; do
6725 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6729 cat >>confdefs.h <<_ACEOF
6730 #define CRAY_STACKSEG_END $ac_func
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
6740 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
6741 if ${ac_cv_c_stack_direction+:} false; then :
6742 $as_echo_n "(cached
) " >&6
6744 if test "$cross_compiling" = yes; then :
6745 ac_cv_c_stack_direction=0
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 $ac_includes_default
6751 find_stack_direction (int *addr, int depth)
6756 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6757 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6762 main (int argc, char **argv)
6764 return find_stack_direction (0, argc + !argv + 20) < 0;
6767 if ac_fn_c_try_run "$LINENO"; then :
6768 ac_cv_c_stack_direction=1
6770 ac_cv_c_stack_direction=-1
6772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6773 conftest.$ac_objext conftest.beam conftest.$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
6778 $as_echo "$ac_cv_c_stack_direction" >&6; }
6779 cat >>confdefs.h <<_ACEOF
6780 #define STACK_DIRECTION $ac_cv_c_stack_direction
6789 HAVE_DECL_INET_NTOP=1;
6790 HAVE_DECL_INET_PTON=1;
6791 REPLACE_INET_NTOP=0;
6792 REPLACE_INET_PTON=0;
6798 for ac_header in $gl_header_list
6800 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next
" >&5
6818 $as_echo_n "checking whether the preprocessor supports include_next...
" >&6; }
6819 if ${gl_cv_have_include_next+:} false; then :
6820 $as_echo_n "(cached
) " >&6
6822 rm -rf conftestd1a conftestd1b conftestd2
6823 mkdir conftestd1a conftestd1b conftestd2
6824 cat <<EOF > conftestd1a/conftest.h
6825 #define DEFINED_IN_CONFTESTD1
6826 #include_next <conftest.h>
6827 #ifdef DEFINED_IN_CONFTESTD2
6830 #error "include_next doesn
't work"
6833 cat <<EOF > conftestd1b/conftest.h
6834 #define DEFINED_IN_CONFTESTD1
6836 #include_next <conftest.h>
6837 #ifdef DEFINED_IN_CONFTESTD2
6840 #error "include_next doesn't work
"
6843 cat <<EOF > conftestd2/conftest.h
6844 #ifndef DEFINED_IN_CONFTESTD1
6845 #error "include_next
test doesn
't work"
6847 #define DEFINED_IN_CONFTESTD2
6849 gl_save_CPPFLAGS="$CPPFLAGS"
6850 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <conftest.h>
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 gl_cv_have_include_next=yes
6858 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <conftest.h>
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 gl_cv_have_include_next=buggy
6866 gl_cv_have_include_next=no
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 CPPFLAGS="$gl_save_CPPFLAGS"
6873 rm -rf conftestd1a conftestd1b conftestd2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6877 $as_echo "$gl_cv_have_include_next" >&6; }
6878 PRAGMA_SYSTEM_HEADER=
6879 if test $gl_cv_have_include_next = yes; then
6880 INCLUDE_NEXT=include_next
6881 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6882 if test -n "$GCC"; then
6883 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6886 if test $gl_cv_have_include_next = buggy
; then
6887 INCLUDE_NEXT
=include
6888 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
6890 INCLUDE_NEXT
=include
6891 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6898 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6899 if ${gl_cv_pragma_columns+:} false
; then :
6900 $as_echo_n "(cached) " >&6
6902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "choke me" >/dev
/null
2>&1; then :
6912 gl_cv_pragma_columns
=yes
6914 gl_cv_pragma_columns
=no
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6921 $as_echo "$gl_cv_pragma_columns" >&6; }
6922 if test $gl_cv_pragma_columns = yes; then
6923 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
6942 if test $ac_cv_header_features_h = yes; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6950 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6951 if test -z "$MKDIR_P"; then
6952 if ${ac_cv_path_mkdir+:} false
; then :
6953 $as_echo_n "(cached) " >&6
6955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6956 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6959 test -z "$as_dir" && as_dir
=.
6960 for ac_prog
in mkdir gmkdir
; do
6961 for ac_exec_ext
in '' $ac_executable_extensions; do
6962 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
6963 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6964 'mkdir (GNU coreutils) '* | \
6965 'mkdir (coreutils) '* | \
6966 'mkdir (fileutils) '4.1*)
6967 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6977 test -d .
/--version && rmdir .
/--version
6978 if test "${ac_cv_path_mkdir+set}" = set; then
6979 MKDIR_P
="$ac_cv_path_mkdir -p"
6981 # As a last resort, use the slow shell script. Don't cache a
6982 # value for MKDIR_P within a source directory, because that will
6983 # break other packages using the cache if that directory is
6984 # removed, or if the value is a relative name.
6985 MKDIR_P
="$ac_install_sh -d"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6989 $as_echo "$MKDIR_P" >&6; }
6994 GNULIB_CALLOC_POSIX
=0;
6995 GNULIB_CANONICALIZE_FILE_NAME
=0;
6996 GNULIB_GETLOADAVG
=0;
6999 GNULIB_MALLOC_POSIX
=0;
7006 GNULIB_POSIX_OPENPT
=0;
7013 GNULIB_REALLOC_POSIX
=0;
7016 GNULIB_SECURE_GETENV
=0;
7021 GNULIB_SYSTEM_POSIX
=0;
7027 HAVE_CANONICALIZE_FILE_NAME
=1;
7028 HAVE_DECL_GETLOADAVG
=1;
7036 HAVE_POSIX_OPENPT
=1;
7045 HAVE_SECURE_GETENV
=1;
7051 HAVE_STRUCT_RANDOM_DATA
=1;
7052 HAVE_SYS_LOADAVG_H
=0;
7054 HAVE_DECL_UNSETENV
=1;
7056 REPLACE_CANONICALIZE_FILE_NAME
=0;
7061 REPLACE_PTSNAME_R
=0;
7076 for ac_func
in $gl_func_list
7078 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7079 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7080 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7081 cat >>confdefs.h
<<_ACEOF
7082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7105 $as_echo_n "checking whether // is distinct from /... " >&6; }
7106 if ${gl_cv_double_slash_root+:} false
; then :
7107 $as_echo_n "(cached) " >&6
7109 if test x
"$cross_compiling" = xyes
; then
7110 # When cross-compiling, there is no way to tell whether // is special
7111 # short of a list of hosts. However, the only known hosts to date
7112 # that have a distinct // are Apollo DomainOS (too old to port to),
7113 # Cygwin, and z/OS. If anyone knows of another system for which // has
7114 # special semantics and is distinct from /, please report it to
7115 # <bug-gnulib@gnu.org>.
7117 *-cygwin | i370-ibm-openedition
)
7118 gl_cv_double_slash_root
=yes ;;
7120 # Be optimistic and assume that / and // are the same when we
7122 gl_cv_double_slash_root
='unknown, assuming no' ;;
7125 set x
`ls -di / // 2>/dev/null`
7126 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7127 gl_cv_double_slash_root
=no
7129 gl_cv_double_slash_root
=yes
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7134 $as_echo "$gl_cv_double_slash_root" >&6; }
7135 if test "$gl_cv_double_slash_root" = yes; then
7137 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7155 $as_echo_n "checking whether realpath works... " >&6; }
7156 if ${gl_cv_func_realpath_works+:} false
; then :
7157 $as_echo_n "(cached) " >&6
7162 if test "$cross_compiling" = yes; then :
7164 # Guess yes on glibc systems.
7165 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7166 # If we don't know, assume the worst.
7167 *) gl_cv_func_realpath_works
="guessing no" ;;
7171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7177 #if defined __MACH__ && defined __APPLE__
7178 /* Avoid a crash on Mac OS X. */
7179 #include <mach/mach.h>
7180 #include <mach/mach_error.h>
7181 #include <mach/thread_status.h>
7182 #include <mach/exception.h>
7183 #include <mach/task.h>
7184 #include <pthread.h>
7185 /* The exception port on which our thread listens. */
7186 static mach_port_t our_exception_port;
7187 /* The main function of the thread listening for exceptions of type
7190 mach_exception_thread (void *arg)
7192 /* Buffer for a message to be received. */
7194 mach_msg_header_t head;
7195 mach_msg_body_t msgh_body;
7198 mach_msg_return_t retval;
7199 /* Wait for a message on the exception port. */
7200 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7201 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7202 if (retval != MACH_MSG_SUCCESS)
7209 mach_port_t self = mach_task_self ();
7210 /* Allocate a port on which the thread shall listen for exceptions. */
7211 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7213 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7214 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7215 MACH_MSG_TYPE_MAKE_SEND)
7217 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7219 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7220 /* Create the thread listening on the exception port. */
7221 pthread_attr_t attr;
7223 if (pthread_attr_init (&attr) == 0
7224 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7225 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7226 pthread_attr_destroy (&attr);
7227 /* Replace the exception port info for these exceptions with our own.
7228 Note that we replace the exception port for the entire task, not only
7229 for a particular thread. This has the effect that when our exception
7230 port gets the message, the thread specific exception port has already
7231 been asked, and we don't need to bother about it.
7232 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7233 task_set_exception_ports (self, mask, our_exception_port,
7234 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7239 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7240 /* Avoid a crash on native Windows. */
7241 #define WIN32_LEAN_AND_MEAN
7242 #include <windows.h>
7243 #include <winerror.h>
7245 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7247 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7249 case EXCEPTION_ACCESS_VIOLATION:
7250 case EXCEPTION_IN_PAGE_ERROR:
7251 case EXCEPTION_STACK_OVERFLOW:
7252 case EXCEPTION_GUARD_PAGE:
7253 case EXCEPTION_PRIV_INSTRUCTION:
7254 case EXCEPTION_ILLEGAL_INSTRUCTION:
7255 case EXCEPTION_DATATYPE_MISALIGNMENT:
7256 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7257 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7260 return EXCEPTION_CONTINUE_SEARCH;
7265 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7268 /* Avoid a crash on POSIX systems. */
7271 /* A POSIX signal handler. */
7273 exception_handler (int sig)
7281 signal (SIGSEGV, exception_handler);
7284 signal (SIGBUS, exception_handler);
7298 char *name = realpath ("conftest.a", NULL);
7299 if (!(name && *name == '/'))
7304 char *name = realpath ("conftest.b/../conftest.a", NULL);
7310 char *name = realpath ("conftest.a/", NULL);
7316 char *name1 = realpath (".", NULL);
7317 char *name2 = realpath ("conftest.d//./..", NULL);
7318 if (! name1 || ! name2 || strcmp (name1, name2))
7330 if ac_fn_c_try_run
"$LINENO"; then :
7331 gl_cv_func_realpath_works
=yes
7333 gl_cv_func_realpath_works
=no
7335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7339 rm -rf conftest.a conftest.d
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7343 $as_echo "$gl_cv_func_realpath_works" >&6; }
7344 case "$gl_cv_func_realpath_works" in
7347 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7390 GNULIB_EUIDACCESS
=0;
7398 GNULIB_GETDOMAINNAME
=0;
7399 GNULIB_GETDTABLESIZE
=0;
7401 GNULIB_GETHOSTNAME
=0;
7403 GNULIB_GETLOGIN_R
=0;
7404 GNULIB_GETPAGESIZE
=0;
7405 GNULIB_GETUSERSHELL
=0;
7406 GNULIB_GROUP_MEMBER
=0;
7418 GNULIB_READLINKAT
=0;
7420 GNULIB_SETHOSTNAME
=0;
7425 GNULIB_UNISTD_H_NONBLOCKING
=0;
7426 GNULIB_UNISTD_H_SIGPIPE
=0;
7441 HAVE_GETDTABLESIZE
=1;
7446 HAVE_GROUP_MEMBER
=1;
7462 HAVE_DECL_ENVIRON
=1;
7464 HAVE_DECL_FDATASYNC
=1;
7465 HAVE_DECL_GETDOMAINNAME
=1;
7466 HAVE_DECL_GETLOGIN_R
=1;
7467 HAVE_DECL_GETPAGESIZE
=1;
7468 HAVE_DECL_GETUSERSHELL
=1;
7469 HAVE_DECL_SETHOSTNAME
=1;
7470 HAVE_DECL_TTYNAME_R
=1;
7478 REPLACE_FTRUNCATE
=0;
7480 REPLACE_GETDOMAINNAME
=0;
7481 REPLACE_GETDTABLESIZE
=0;
7482 REPLACE_GETLOGIN_R
=0;
7483 REPLACE_GETGROUPS
=0;
7484 REPLACE_GETPAGESIZE
=0;
7494 REPLACE_READLINKAT
=0;
7498 REPLACE_SYMLINKAT
=0;
7499 REPLACE_TTYNAME_R
=0;
7504 UNISTD_H_HAVE_WINSOCK2_H
=0;
7505 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7538 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7539 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7541 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7544 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7572 HAVE_DECL_FDOPENDIR
=1;
7579 REPLACE_FDOPENDIR
=0;
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7600 $as_echo_n "checking if environ is properly declared... " >&6; }
7601 if ${gt_cv_var_environ_declaration+:} false
; then :
7602 $as_echo_n "(cached) " >&6
7605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7610 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7613 extern struct { int foo; } environ;
7622 if ac_fn_c_try_compile
"$LINENO"; then :
7623 gt_cv_var_environ_declaration
=no
7625 gt_cv_var_environ_declaration
=yes
7627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7631 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7632 if test $gt_cv_var_environ_declaration = yes; then
7634 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7639 if test $gt_cv_var_environ_declaration != yes; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7646 $as_echo_n "checking for complete errno.h... " >&6; }
7647 if ${gl_cv_header_errno_h_complete+:} false
; then :
7648 $as_echo_n "(cached) " >&6
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7655 #if !defined ETXTBSY
7664 #if !defined ENOLINK
7670 #if !defined EMULTIHOP
7673 #if !defined EBADMSG
7676 #if !defined EOVERFLOW
7679 #if !defined ENOTSUP
7682 #if !defined ENETRESET
7685 #if !defined ECONNABORTED
7694 #if !defined ECANCELED
7697 #if !defined EOWNERDEAD
7700 #if !defined ENOTRECOVERABLE
7708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7709 $EGREP "booboo" >/dev
/null
2>&1; then :
7710 gl_cv_header_errno_h_complete
=no
7712 gl_cv_header_errno_h_complete
=yes
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7719 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7720 if test $gl_cv_header_errno_h_complete = yes; then
7731 if test $gl_cv_have_include_next = yes; then
7732 gl_cv_next_errno_h
='<'errno.h
'>'
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7735 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7736 if ${gl_cv_next_errno_h+:} false
; then :
7737 $as_echo_n "(cached) " >&6
7742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7747 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7748 *) gl_absname_cpp
="$ac_cpp" ;;
7753 gl_dirsep_regex
='[/\\]'
7756 gl_dirsep_regex
='\/'
7759 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7760 gl_header_literal_regex
=`echo 'errno.h' \
7761 | sed -e "$gl_make_literal_regex_sed"`
7762 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7769 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7770 sed -n "$gl_absolute_header_sed"`
7772 gl_header
=$gl_cv_absolute_errno_h
7773 gl_cv_next_errno_h
='"'$gl_header'"'
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7778 $as_echo "$gl_cv_next_errno_h" >&6; }
7780 NEXT_ERRNO_H
=$gl_cv_next_errno_h
7782 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7784 gl_next_as_first_directive
='<'errno.h
'>'
7786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7787 gl_next_as_first_directive
=$gl_cv_next_errno_h
7789 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
7797 if test -n "$ERRNO_H"; then
7798 GL_GENERATE_ERRNO_H_TRUE
=
7799 GL_GENERATE_ERRNO_H_FALSE
='#'
7801 GL_GENERATE_ERRNO_H_TRUE
='#'
7802 GL_GENERATE_ERRNO_H_FALSE
=
7806 if test -n "$ERRNO_H"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7808 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7809 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
7810 $as_echo_n "(cached) " >&6
7813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 $EGREP "yes" >/dev
/null
2>&1; then :
7824 gl_cv_header_errno_h_EMULTIHOP
=yes
7826 gl_cv_header_errno_h_EMULTIHOP
=no
7830 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
7831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7834 #define _XOPEN_SOURCE_EXTENDED 1
7841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7842 $EGREP "yes" >/dev
/null
2>&1; then :
7843 gl_cv_header_errno_h_EMULTIHOP
=hidden
7847 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
7848 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7849 #define _XOPEN_SOURCE_EXTENDED 1
7851 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7863 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7864 case $gl_cv_header_errno_h_EMULTIHOP in
7866 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
7869 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
7877 if test -n "$ERRNO_H"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7879 $as_echo_n "checking for ENOLINK value... " >&6; }
7880 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
7881 $as_echo_n "(cached) " >&6
7884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894 $EGREP "yes" >/dev
/null
2>&1; then :
7895 gl_cv_header_errno_h_ENOLINK
=yes
7897 gl_cv_header_errno_h_ENOLINK
=no
7901 if test $gl_cv_header_errno_h_ENOLINK = no
; then
7902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7905 #define _XOPEN_SOURCE_EXTENDED 1
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 $EGREP "yes" >/dev
/null
2>&1; then :
7914 gl_cv_header_errno_h_ENOLINK
=hidden
7918 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
7919 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7920 #define _XOPEN_SOURCE_EXTENDED 1
7922 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7934 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7935 case $gl_cv_header_errno_h_ENOLINK in
7937 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
7940 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
7948 if test -n "$ERRNO_H"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7950 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7951 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
7952 $as_echo_n "(cached) " >&6
7955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7965 $EGREP "yes" >/dev
/null
2>&1; then :
7966 gl_cv_header_errno_h_EOVERFLOW
=yes
7968 gl_cv_header_errno_h_EOVERFLOW
=no
7972 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
7973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7976 #define _XOPEN_SOURCE_EXTENDED 1
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984 $EGREP "yes" >/dev
/null
2>&1; then :
7985 gl_cv_header_errno_h_EOVERFLOW
=hidden
7989 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
7990 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7991 #define _XOPEN_SOURCE_EXTENDED 1
7993 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8005 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8006 case $gl_cv_header_errno_h_EOVERFLOW in
8008 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8011 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8019 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8020 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8026 cat >>confdefs.h
<<_ACEOF
8027 #define HAVE_DECL_STRERROR_R $ac_have_decl
8030 for ac_func
in strerror_r
8032 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8033 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8034 cat >>confdefs.h
<<_ACEOF
8035 #define HAVE_STRERROR_R 1
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8042 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8043 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8044 $as_echo_n "(cached) " >&6
8047 ac_cv_func_strerror_r_char_p
=no
8048 if test $ac_cv_have_decl_strerror_r = yes; then
8049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 $ac_includes_default
8057 char x = *strerror_r (0, buf, sizeof buf);
8058 char *p = strerror_r (0, buf, sizeof buf);
8065 if ac_fn_c_try_compile
"$LINENO"; then :
8066 ac_cv_func_strerror_r_char_p
=yes
8068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8070 # strerror_r is not declared. Choose between
8071 # systems that have relatively inaccessible declarations for the
8072 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8073 # former has a strerror_r that returns char*, while the latter
8074 # has a strerror_r that returns `int'.
8075 # This test should segfault on the DEC system.
8076 if test "$cross_compiling" = yes; then :
8079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 $ac_includes_default
8082 extern char *strerror_r ();
8087 char x = *strerror_r (0, buf, sizeof buf);
8088 return ! isalpha (x);
8093 if ac_fn_c_try_run
"$LINENO"; then :
8094 ac_cv_func_strerror_r_char_p
=yes
8096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8104 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8105 if test $ac_cv_func_strerror_r_char_p = yes; then
8107 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8115 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8116 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8122 cat >>confdefs.h
<<_ACEOF
8123 #define HAVE_DECL_FCHDIR $ac_have_decl
8129 GNULIB_NONBLOCKING
=0;
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8166 $as_echo_n "checking for working fcntl.h... " >&6; }
8167 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8168 $as_echo_n "(cached) " >&6
8170 if test "$cross_compiling" = yes; then :
8171 gl_cv_header_working_fcntl_h
=cross-compiling
8173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <sys/types.h>
8176 #include <sys/stat.h>
8178 # include <unistd.h>
8179 #else /* on Windows with MSVC */
8181 # include <stdlib.h>
8182 # defined sleep(n) _sleep ((n) * 1000)
8189 #define O_NOFOLLOW 0
8191 static int const constants[] =
8193 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8194 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8201 int result = !constants;
8204 static char const sym[] = "conftest.sym";
8205 if (symlink ("/dev/null", sym) != 0)
8209 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8216 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8220 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8231 static char const file[] = "confdefs.h";
8232 int fd = open (file, O_RDONLY | O_NOATIME);
8238 if (fstat (fd, &st0) != 0)
8244 if (read (fd, &c, 1) != 1)
8248 if (close (fd) != 0)
8253 if (stat (file, &st1) != 0)
8256 if (st0.st_atime != st1.st_atime)
8268 if ac_fn_c_try_run
"$LINENO"; then :
8269 gl_cv_header_working_fcntl_h
=yes
8272 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8273 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8274 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8275 *) gl_cv_header_working_fcntl_h
='no';;
8278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8284 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8286 case $gl_cv_header_working_fcntl_h in #(
8287 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8291 cat >>confdefs.h
<<_ACEOF
8292 #define HAVE_WORKING_O_NOATIME $ac_val
8296 case $gl_cv_header_working_fcntl_h in #(
8297 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8301 cat >>confdefs.h
<<_ACEOF
8302 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8306 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8307 if test "x$ac_cv_type_pid_t" = xyes
; then :
8311 cat >>confdefs.h
<<_ACEOF
8317 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8318 if test "x$ac_cv_type_mode_t" = xyes
; then :
8322 cat >>confdefs.h
<<_ACEOF
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8341 $as_echo_n "checking for mbstate_t... " >&6; }
8342 if ${ac_cv_type_mbstate_t+:} false
; then :
8343 $as_echo_n "(cached) " >&6
8345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8350 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8351 included before <wchar.h>. */
8359 mbstate_t x; return sizeof x;
8364 if ac_fn_c_try_compile
"$LINENO"; then :
8365 ac_cv_type_mbstate_t
=yes
8367 ac_cv_type_mbstate_t
=no
8369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8372 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8373 if test $ac_cv_type_mbstate_t = yes; then
8375 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8379 $as_echo "#define mbstate_t int" >>confdefs.h
8499 GNULIB_REMAINDERF
=0;
8500 GNULIB_REMAINDERL
=0;
8586 HAVE_DECL_COPYSIGNF
=1;
8603 HAVE_DECL_REMAINDER
=1;
8604 HAVE_DECL_REMAINDERL
=1;
8666 REPLACE_REMAINDER
=0;
8667 REPLACE_REMAINDERF
=0;
8668 REPLACE_REMAINDERL
=0;
8673 REPLACE_SIGNBIT_USING_GCC
=0;
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8681 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8682 if ${gl_cv_func_frexp_no_libm+:} false
; then :
8683 $as_echo_n "(cached) " >&6
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8693 int e; return frexp (x, &e) > 0;
8698 if ac_fn_c_try_link
"$LINENO"; then :
8699 gl_cv_func_frexp_no_libm
=yes
8701 gl_cv_func_frexp_no_libm
=no
8703 rm -f core conftest.err conftest.
$ac_objext \
8704 conftest
$ac_exeext conftest.
$ac_ext
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8708 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8711 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8712 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
8718 cat >>confdefs.h
<<_ACEOF
8719 #define HAVE_DECL_ALARM $ac_have_decl
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8725 $as_echo_n "checking whether long double and double are the same... " >&6; }
8726 if ${gl_cv_long_double_equals_double+:} false
; then :
8727 $as_echo_n "(cached) " >&6
8729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8735 typedef int check[sizeof (long double) == sizeof (double)
8736 && LDBL_MANT_DIG == DBL_MANT_DIG
8737 && LDBL_MAX_EXP == DBL_MAX_EXP
8738 && LDBL_MIN_EXP == DBL_MIN_EXP
8745 if ac_fn_c_try_compile
"$LINENO"; then :
8746 gl_cv_long_double_equals_double
=yes
8748 gl_cv_long_double_equals_double
=no
8750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8754 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8755 if test $gl_cv_long_double_equals_double = yes; then
8757 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8759 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
8761 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
8798 REPLACE_UTIMENSAT
=0;
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8801 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8802 if ${ac_cv_header_stat_broken+:} false
; then :
8803 $as_echo_n "(cached) " >&6
8805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <sys/types.h>
8808 #include <sys/stat.h>
8810 #if defined S_ISBLK && defined S_IFDIR
8811 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8814 #if defined S_ISBLK && defined S_IFCHR
8815 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8818 #if defined S_ISLNK && defined S_IFREG
8819 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8822 #if defined S_ISSOCK && defined S_IFREG
8823 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8827 if ac_fn_c_try_compile
"$LINENO"; then :
8828 ac_cv_header_stat_broken
=no
8830 ac_cv_header_stat_broken
=yes
8832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8835 $as_echo "$ac_cv_header_stat_broken" >&6; }
8836 if test $ac_cv_header_stat_broken = yes; then
8838 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8852 $as_echo_n "checking for 64-bit off_t... " >&6; }
8853 if ${gl_cv_type_off_t_64+:} false
; then :
8854 $as_echo_n "(cached) " >&6
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8869 if ac_fn_c_try_compile
"$LINENO"; then :
8870 gl_cv_type_off_t_64
=yes
8872 gl_cv_type_off_t_64
=no
8874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8878 $as_echo "$gl_cv_type_off_t_64" >&6; }
8879 if test $gl_cv_type_off_t_64 = no
; then
8880 WINDOWS_64_BIT_OFF_T
=1
8882 WINDOWS_64_BIT_OFF_T
=0
8884 WINDOWS_64_BIT_ST_SIZE
=1
8887 WINDOWS_64_BIT_OFF_T
=0
8888 WINDOWS_64_BIT_ST_SIZE
=0
8912 if test $gl_cv_have_include_next = yes; then
8913 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8916 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8917 if ${gl_cv_next_sys_stat_h+:} false
; then :
8918 $as_echo_n "(cached) " >&6
8921 if test $ac_cv_header_sys_stat_h = yes; then
8926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 #include <sys/stat.h>
8931 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8932 *) gl_absname_cpp
="$ac_cpp" ;;
8937 gl_dirsep_regex
='[/\\]'
8940 gl_dirsep_regex
='\/'
8943 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8944 gl_header_literal_regex
=`echo 'sys/stat.h' \
8945 | sed -e "$gl_make_literal_regex_sed"`
8946 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8953 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8954 sed -n "$gl_absolute_header_sed"`
8956 gl_header
=$gl_cv_absolute_sys_stat_h
8957 gl_cv_next_sys_stat_h
='"'$gl_header'"'
8959 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8965 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8967 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
8969 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8971 gl_next_as_first_directive
='<'sys
/stat.h
'>'
8973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8974 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
8976 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
8988 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8990 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8994 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8995 #include <sys/stat.h>
8997 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9001 $as_echo "#define nlink_t int" >>confdefs.h
9007 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
9008 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9010 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9011 if eval \
${$as_gl_Symbol+:} false
; then :
9012 $as_echo_n "(cached) " >&6
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #include <sys/stat.h>
9027 if ac_fn_c_try_compile
"$LINENO"; then :
9028 eval "$as_gl_Symbol=yes"
9030 eval "$as_gl_Symbol=no"
9032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9034 eval ac_res
=\$
$as_gl_Symbol
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9036 $as_echo "$ac_res" >&6; }
9037 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9038 cat >>confdefs.h
<<_ACEOF
9039 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9042 eval ac_cv_have_decl_
$gl_func=yes
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9049 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9050 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9051 $as_echo_n "(cached) " >&6
9053 rm -f conftest.sym conftest.
file
9055 if test "$cross_compiling" = yes; then :
9058 # Guess yes on glibc systems.
9059 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9061 # If we don't know, assume the worst.
9062 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 $ac_includes_default
9073 if (symlink ("conftest.file", "conftest.sym") != 0)
9075 /* Linux will dereference the symlink and fail, as required by
9076 POSIX. That is better in the sense that it means we will not
9077 have to compile and use the lstat wrapper. */
9078 return lstat ("conftest.sym/", &sbuf) == 0;
9084 if ac_fn_c_try_run
"$LINENO"; then :
9085 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9087 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9093 rm -f conftest.sym conftest.
file
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9097 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9098 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9101 cat >>confdefs.h
<<_ACEOF
9102 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9122 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9123 if ${gl_cv_func_getcwd_null+:} false
; then :
9124 $as_echo_n "(cached) " >&6
9126 if test "$cross_compiling" = yes; then :
9128 # Guess yes on glibc systems.
9129 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
9130 # Guess yes on Cygwin.
9131 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9132 # If we don't know, assume the worst.
9133 *) gl_cv_func_getcwd_null
="guessing no";;
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 # include <stdlib.h>
9142 # include <unistd.h>
9143 # else /* on Windows with MSVC */
9144 # include <direct.h>
9154 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9155 /* mingw cwd does not start with '/', but getcwd does allocate.
9156 However, mingw fails to honor non-zero size. */
9158 if (chdir ("/") != 0)
9162 char *f = getcwd (NULL, 0);
9178 if ac_fn_c_try_run
"$LINENO"; then :
9179 gl_cv_func_getcwd_null
=yes
9181 gl_cv_func_getcwd_null
=no
9183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9189 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9193 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9194 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9195 $as_echo_n "(cached) " >&6
9197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9207 char *getcwd (char *, size_t);
9214 if ac_fn_c_try_compile
"$LINENO"; then :
9215 gl_cv_func_getcwd_posix_signature
=yes
9217 gl_cv_func_getcwd_posix_signature
=no
9219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9223 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9226 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9227 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9233 cat >>confdefs.h
<<_ACEOF
9234 #define HAVE_DECL_GETCWD $ac_have_decl
9244 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9245 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9251 cat >>confdefs.h
<<_ACEOF
9252 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9257 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9258 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9264 cat >>confdefs.h
<<_ACEOF
9265 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9275 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9276 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9282 cat >>confdefs.h
<<_ACEOF
9283 #define HAVE_DECL_GETLOGIN $ac_have_decl
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9298 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9299 if ${ac_cv_c_restrict+:} false
; then :
9300 $as_echo_n "(cached) " >&6
9303 # The order here caters to the fact that C++ does not require restrict.
9304 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 typedef int *int_ptr;
9308 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9309 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9310 int bar (int ip[$ac_kw]) { return ip[0]; }
9318 return foo (t) + bar (t);
9324 if ac_fn_c_try_compile
"$LINENO"; then :
9325 ac_cv_c_restrict
=$ac_kw
9327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9328 test "$ac_cv_c_restrict" != no
&& break
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9333 $as_echo "$ac_cv_c_restrict" >&6; }
9335 case $ac_cv_c_restrict in
9337 no
) $as_echo "#define restrict /**/" >>confdefs.h
9339 *) cat >>confdefs.h
<<_ACEOF
9340 #define restrict $ac_cv_c_restrict
9346 GNULIB_GETTIMEOFDAY
=0;
9347 HAVE_GETTIMEOFDAY
=1;
9348 HAVE_STRUCT_TIMEVAL
=1;
9351 REPLACE_GETTIMEOFDAY
=0;
9352 REPLACE_STRUCT_TIMEVAL
=0;
9384 if test $gl_cv_have_include_next = yes; then
9385 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9388 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9389 if ${gl_cv_next_sys_time_h+:} false
; then :
9390 $as_echo_n "(cached) " >&6
9393 if test $ac_cv_header_sys_time_h = yes; then
9398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400 #include <sys/time.h>
9403 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9404 *) gl_absname_cpp
="$ac_cpp" ;;
9409 gl_dirsep_regex
='[/\\]'
9412 gl_dirsep_regex
='\/'
9415 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9416 gl_header_literal_regex
=`echo 'sys/time.h' \
9417 | sed -e "$gl_make_literal_regex_sed"`
9418 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9419 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9425 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9426 sed -n "$gl_absolute_header_sed"`
9428 gl_header
=$gl_cv_absolute_sys_time_h
9429 gl_cv_next_sys_time_h
='"'$gl_header'"'
9431 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9437 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9439 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9441 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9442 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9443 gl_next_as_first_directive
='<'sys
/time.h
'>'
9445 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9446 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9448 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9454 if test $ac_cv_header_sys_time_h != yes; then
9468 if test $ac_cv_header_sys_socket_h != yes; then
9469 for ac_header
in winsock2.h
9471 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9472 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9473 cat >>confdefs.h
<<_ACEOF
9474 #define HAVE_WINSOCK2_H 1
9482 if test "$ac_cv_header_winsock2_h" = yes; then
9484 UNISTD_H_HAVE_WINSOCK2_H
=1
9485 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9492 $as_echo_n "checking for struct timeval... " >&6; }
9493 if ${gl_cv_sys_struct_timeval+:} false
; then :
9494 $as_echo_n "(cached) " >&6
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9499 #include <sys/time.h>
9503 # include <winsock2.h>
9509 static struct timeval x; x.tv_sec = x.tv_usec;
9514 if ac_fn_c_try_compile
"$LINENO"; then :
9515 gl_cv_sys_struct_timeval
=yes
9517 gl_cv_sys_struct_timeval
=no
9519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9523 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9524 if test $gl_cv_sys_struct_timeval != yes; then
9525 HAVE_STRUCT_TIMEVAL
=0
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9528 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9529 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9530 $as_echo_n "(cached) " >&6
9532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 #include <sys/time.h>
9539 # include <winsock2.h>
9545 static struct timeval x;
9546 typedef int verify_tv_sec_type[
9547 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9554 if ac_fn_c_try_compile
"$LINENO"; then :
9555 gl_cv_sys_struct_timeval_tv_sec
=yes
9557 gl_cv_sys_struct_timeval_tv_sec
=no
9559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9563 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9564 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9565 REPLACE_STRUCT_TIMEVAL
=1
9570 for gl_func
in gettimeofday
; do
9571 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9573 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9574 if eval \
${$as_gl_Symbol+:} false
; then :
9575 $as_echo_n "(cached) " >&6
9577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9581 # include <sys/time.h>
9594 if ac_fn_c_try_compile
"$LINENO"; then :
9595 eval "$as_gl_Symbol=yes"
9597 eval "$as_gl_Symbol=no"
9599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9601 eval ac_res
=\$
$as_gl_Symbol
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9603 $as_echo "$ac_res" >&6; }
9604 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9605 cat >>confdefs.h
<<_ACEOF
9606 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9609 eval ac_cv_have_decl_
$gl_func=yes
9642 GNULIB_GETPEERNAME
=0;
9643 GNULIB_GETSOCKNAME
=0;
9644 GNULIB_GETSOCKOPT
=0;
9650 GNULIB_SETSOCKOPT
=0;
9653 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
9654 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
9666 if test $ac_cv_header_sys_socket_h = no
; then
9667 for ac_header
in ws2tcpip.h
9669 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
9670 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
9671 cat >>confdefs.h
<<_ACEOF
9672 #define HAVE_WS2TCPIP_H 1
9688 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
9694 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9695 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
9696 $as_echo_n "(cached) " >&6
9699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 #include <sys/socket.h>
9710 if ac_fn_c_try_compile
"$LINENO"; then :
9711 gl_cv_header_sys_socket_h_selfcontained
=yes
9713 gl_cv_header_sys_socket_h_selfcontained
=no
9715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9719 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9720 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9721 for ac_func
in shutdown
9723 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
9724 if test "x$ac_cv_func_shutdown" = xyes
; then :
9725 cat >>confdefs.h
<<_ACEOF
9726 #define HAVE_SHUTDOWN 1
9732 if test $ac_cv_func_shutdown = yes; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9734 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9735 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
9736 $as_echo_n "(cached) " >&6
9739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <sys/socket.h>
9745 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9750 if ac_fn_c_try_compile
"$LINENO"; then :
9751 gl_cv_header_sys_socket_h_shut
=yes
9753 gl_cv_header_sys_socket_h_shut
=no
9755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
9759 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9760 if test $gl_cv_header_sys_socket_h_shut = no
; then
9761 SYS_SOCKET_H
='sys/socket.h'
9765 # We need to check for ws2tcpip.h now.
9783 if test $gl_cv_have_include_next = yes; then
9784 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
9787 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9788 if ${gl_cv_next_sys_socket_h+:} false
; then :
9789 $as_echo_n "(cached) " >&6
9792 if test $ac_cv_header_sys_socket_h = yes; then
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #include <sys/socket.h>
9802 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9803 *) gl_absname_cpp
="$ac_cpp" ;;
9808 gl_dirsep_regex
='[/\\]'
9811 gl_dirsep_regex
='\/'
9814 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9815 gl_header_literal_regex
=`echo 'sys/socket.h' \
9816 | sed -e "$gl_make_literal_regex_sed"`
9817 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9818 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9824 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9825 sed -n "$gl_absolute_header_sed"`
9827 gl_header
=$gl_cv_absolute_sys_socket_h
9828 gl_cv_next_sys_socket_h
='"'$gl_header'"'
9830 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
9836 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9838 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
9840 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9842 gl_next_as_first_directive
='<'sys
/socket.h
'>'
9844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9845 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
9847 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
9852 if test $ac_cv_header_sys_socket_h = yes; then
9857 if test $ac_cv_header_ws2tcpip_h = yes; then
9866 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9867 /* sys/types.h is not needed according to POSIX, but the
9868 sys/socket.h in i386-unknown-freebsd4.10 and
9869 powerpc-apple-darwin5.5 required it. */
9870 #include <sys/types.h>
9871 #ifdef HAVE_SYS_SOCKET_H
9872 #include <sys/socket.h>
9874 #ifdef HAVE_WS2TCPIP_H
9875 #include <ws2tcpip.h>
9879 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
9881 cat >>confdefs.h
<<_ACEOF
9882 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9887 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
9888 /* sys/types.h is not needed according to POSIX, but the
9889 sys/socket.h in i386-unknown-freebsd4.10 and
9890 powerpc-apple-darwin5.5 required it. */
9891 #include <sys/types.h>
9892 #ifdef HAVE_SYS_SOCKET_H
9893 #include <sys/socket.h>
9895 #ifdef HAVE_WS2TCPIP_H
9896 #include <ws2tcpip.h>
9900 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
9902 cat >>confdefs.h
<<_ACEOF
9903 #define HAVE_SA_FAMILY_T 1
9909 if test $ac_cv_type_struct_sockaddr_storage = no
; then
9910 HAVE_STRUCT_SOCKADDR_STORAGE
=0
9912 if test $ac_cv_type_sa_family_t = no
; then
9915 if test $ac_cv_type_struct_sockaddr_storage != no
; then
9916 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
9917 #ifdef HAVE_SYS_SOCKET_H
9918 #include <sys/socket.h>
9920 #ifdef HAVE_WS2TCPIP_H
9921 #include <ws2tcpip.h>
9925 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
9927 cat >>confdefs.h
<<_ACEOF
9928 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9933 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
9937 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
9938 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
9939 SYS_SOCKET_H
='sys/socket.h'
9951 if test $ac_cv_header_sys_socket_h != yes; then
9952 for ac_header
in winsock2.h
9954 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9956 cat >>confdefs.h
<<_ACEOF
9957 #define HAVE_WINSOCK2_H 1
9965 if test "$ac_cv_header_winsock2_h" = yes; then
9967 UNISTD_H_HAVE_WINSOCK2_H
=1
9968 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9976 for gl_func
in socket connect accept
bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4
; do
9977 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9979 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9980 if eval \
${$as_gl_Symbol+:} false
; then :
9981 $as_echo_n "(cached) " >&6
9983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9986 /* Some systems require prerequisite headers. */
9987 #include <sys/types.h>
9988 #include <sys/socket.h>
9999 if ac_fn_c_try_compile
"$LINENO"; then :
10000 eval "$as_gl_Symbol=yes"
10002 eval "$as_gl_Symbol=no"
10004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10006 eval ac_res
=\$
$as_gl_Symbol
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10008 $as_echo "$ac_res" >&6; }
10009 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10010 cat >>confdefs.h
<<_ACEOF
10011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10014 eval ac_cv_have_decl_
$gl_func=yes
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10035 $as_echo_n "checking for IPv4 sockets... " >&6; }
10036 if ${gl_cv_socket_ipv4+:} false
; then :
10037 $as_echo_n "(cached) " >&6
10039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 #include <sys/types.h>
10042 #ifdef HAVE_SYS_SOCKET_H
10043 #include <sys/socket.h>
10045 #ifdef HAVE_NETINET_IN_H
10046 #include <netinet/in.h>
10048 #ifdef HAVE_WINSOCK2_H
10049 #include <winsock2.h>
10054 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10055 if (&x && &y && &z) return 0;
10060 if ac_fn_c_try_compile
"$LINENO"; then :
10061 gl_cv_socket_ipv4
=yes
10063 gl_cv_socket_ipv4
=no
10065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10069 $as_echo "$gl_cv_socket_ipv4" >&6; }
10070 if test $gl_cv_socket_ipv4 = yes; then
10072 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10077 $as_echo_n "checking for IPv6 sockets... " >&6; }
10078 if ${gl_cv_socket_ipv6+:} false
; then :
10079 $as_echo_n "(cached) " >&6
10081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 #include <sys/types.h>
10084 #ifdef HAVE_SYS_SOCKET_H
10085 #include <sys/socket.h>
10087 #ifdef HAVE_NETINET_IN_H
10088 #include <netinet/in.h>
10090 #ifdef HAVE_WINSOCK2_H
10091 #include <winsock2.h>
10093 #ifdef HAVE_WS2TCPIP_H
10094 #include <ws2tcpip.h>
10099 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10100 if (&x && &y && &z) return 0;
10105 if ac_fn_c_try_compile
"$LINENO"; then :
10106 gl_cv_socket_ipv6
=yes
10108 gl_cv_socket_ipv6
=no
10110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10114 $as_echo "$gl_cv_socket_ipv6" >&6; }
10115 if test $gl_cv_socket_ipv6 = yes; then
10117 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10142 if test $gl_cv_have_include_next = yes; then
10143 gl_cv_next_limits_h
='<'limits.h
'>'
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10146 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10147 if ${gl_cv_next_limits_h+:} false
; then :
10148 $as_echo_n "(cached) " >&6
10151 if test $ac_cv_header_limits_h = yes; then
10156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <limits.h>
10161 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10162 *) gl_absname_cpp
="$ac_cpp" ;;
10167 gl_dirsep_regex
='[/\\]'
10170 gl_dirsep_regex
='\/'
10173 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10174 gl_header_literal_regex
=`echo 'limits.h' \
10175 | sed -e "$gl_make_literal_regex_sed"`
10176 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10177 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10183 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10184 sed -n "$gl_absolute_header_sed"`
10186 gl_header
=$gl_cv_absolute_limits_h
10187 gl_cv_next_limits_h
='"'$gl_header'"'
10189 gl_cv_next_limits_h
='<'limits.h
'>'
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10195 $as_echo "$gl_cv_next_limits_h" >&6; }
10197 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10199 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10201 gl_next_as_first_directive
='<'limits.h
'>'
10203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10204 gl_next_as_first_directive
=$gl_cv_next_limits_h
10206 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10213 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10214 if ${gl_cv_header_limits_width+:} false
; then :
10215 $as_echo_n "(cached) " >&6
10217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10220 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10222 #include <limits.h>
10223 int ullw = ULLONG_WIDTH;
10232 if ac_fn_c_try_compile
"$LINENO"; then :
10233 gl_cv_header_limits_width
=yes
10235 gl_cv_header_limits_width
=no
10237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10240 $as_echo "$gl_cv_header_limits_width" >&6; }
10241 if test "$gl_cv_header_limits_width" = yes; then
10247 if test -n "$LIMITS_H"; then
10248 GL_GENERATE_LIMITS_H_TRUE
=
10249 GL_GENERATE_LIMITS_H_FALSE
='#'
10251 GL_GENERATE_LIMITS_H_TRUE
='#'
10252 GL_GENERATE_LIMITS_H_FALSE
=
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10258 $as_echo_n "checking for unsigned long long int... " >&6; }
10259 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10260 $as_echo_n "(cached) " >&6
10262 ac_cv_type_unsigned_long_long_int
=yes
10263 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10267 /* For now, do not test the preprocessor; as of 2007 there are too many
10268 implementations with broken preprocessors. Perhaps this can
10269 be revisited in 2012. In the meantime, code should not expect
10270 #if to work with literals wider than 32 bits. */
10271 /* Test literals. */
10272 long long int ll = 9223372036854775807ll;
10273 long long int nll = -9223372036854775807LL;
10274 unsigned long long int ull = 18446744073709551615ULL;
10275 /* Test constant expressions. */
10276 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10278 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10284 /* Test availability of runtime routines for shift and division. */
10285 long long int llmax = 9223372036854775807ll;
10286 unsigned long long int ullmax = 18446744073709551615ull;
10287 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10288 | (llmax / ll) | (llmax % ll)
10289 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10290 | (ullmax / ull) | (ullmax % ull));
10296 if ac_fn_c_try_link
"$LINENO"; then :
10299 ac_cv_type_unsigned_long_long_int
=no
10301 rm -f core conftest.err conftest.
$ac_objext \
10302 conftest
$ac_exeext conftest.
$ac_ext
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10306 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10307 if test $ac_cv_type_unsigned_long_long_int = yes; then
10309 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10316 $as_echo_n "checking for long long int... " >&6; }
10317 if ${ac_cv_type_long_long_int+:} false
; then :
10318 $as_echo_n "(cached) " >&6
10320 ac_cv_type_long_long_int
=yes
10321 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10322 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10323 if test $ac_cv_type_long_long_int = yes; then
10324 if test "$cross_compiling" = yes; then :
10327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 #include <limits.h>
10332 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10333 # define LLONG_MAX (HALF - 1 + HALF)
10338 long long int n = 1;
10342 long long int m = n << i;
10345 if (LLONG_MAX / 2 < m)
10353 if ac_fn_c_try_run
"$LINENO"; then :
10356 ac_cv_type_long_long_int
=no
10358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10366 $as_echo "$ac_cv_type_long_long_int" >&6; }
10367 if test $ac_cv_type_long_long_int = yes; then
10369 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10384 gl_cv_c_multiarch
=no
10385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 #ifndef __APPLE_CC__
10388 not a universal capable compiler
10393 if ac_fn_c_try_compile
"$LINENO"; then :
10397 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10398 if test -n "$prev"; then
10400 i?
86 | x86_64 | ppc | ppc64
)
10401 if test -z "$arch" ||
test "$arch" = "$word"; then
10404 gl_cv_c_multiarch
=yes
10410 if test "x$word" = "x-arch"; then
10417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10418 if test $gl_cv_c_multiarch = yes; then
10419 APPLE_UNIVERSAL_BUILD
=1
10421 APPLE_UNIVERSAL_BUILD
=0
10430 if test $ac_cv_type_long_long_int = yes; then
10431 HAVE_LONG_LONG_INT
=1
10433 HAVE_LONG_LONG_INT
=0
10437 if test $ac_cv_type_unsigned_long_long_int = yes; then
10438 HAVE_UNSIGNED_LONG_LONG_INT
=1
10440 HAVE_UNSIGNED_LONG_LONG_INT
=0
10451 if test $ac_cv_header_wchar_h = yes; then
10458 if test $ac_cv_header_inttypes_h = yes; then
10465 if test $ac_cv_header_sys_types_h = yes; then
10487 if test $gl_cv_have_include_next = yes; then
10488 gl_cv_next_stdint_h
='<'stdint.h
'>'
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10491 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10492 if ${gl_cv_next_stdint_h+:} false
; then :
10493 $as_echo_n "(cached) " >&6
10496 if test $ac_cv_header_stdint_h = yes; then
10501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503 #include <stdint.h>
10506 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10507 *) gl_absname_cpp
="$ac_cpp" ;;
10512 gl_dirsep_regex
='[/\\]'
10515 gl_dirsep_regex
='\/'
10518 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10519 gl_header_literal_regex
=`echo 'stdint.h' \
10520 | sed -e "$gl_make_literal_regex_sed"`
10521 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10522 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10528 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10529 sed -n "$gl_absolute_header_sed"`
10531 gl_header
=$gl_cv_absolute_stdint_h
10532 gl_cv_next_stdint_h
='"'$gl_header'"'
10534 gl_cv_next_stdint_h
='<'stdint.h
'>'
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10540 $as_echo "$gl_cv_next_stdint_h" >&6; }
10542 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10544 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10545 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10546 gl_next_as_first_directive
='<'stdint.h
'>'
10548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10549 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10551 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10556 if test $ac_cv_header_stdint_h = yes; then
10563 if test $ac_cv_header_stdint_h = yes; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10565 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10566 if ${gl_cv_header_working_stdint_h+:} false
; then :
10567 $as_echo_n "(cached) " >&6
10569 gl_cv_header_working_stdint_h
=no
10570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10574 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10575 #define __STDC_CONSTANT_MACROS 1
10576 #define __STDC_LIMIT_MACROS 1
10577 #include <stdint.h>
10578 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10579 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10580 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10584 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10585 included before <wchar.h>. */
10586 #include <stddef.h>
10587 #include <signal.h>
10589 # include <stdio.h>
10591 # include <wchar.h>
10596 int8_t a1 = INT8_MAX;
10597 int8_t a1min = INT8_MIN;
10600 int16_t a2 = INT16_MAX;
10601 int16_t a2min = INT16_MIN;
10604 int32_t a3 = INT32_MAX;
10605 int32_t a3min = INT32_MIN;
10608 int64_t a4 = INT64_MAX;
10609 int64_t a4min = INT64_MIN;
10612 uint8_t b1 = UINT8_MAX;
10614 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10617 uint16_t b2 = UINT16_MAX;
10620 uint32_t b3 = UINT32_MAX;
10623 uint64_t b4 = UINT64_MAX;
10625 int_least8_t c1 = INT8_C (0x7f);
10626 int_least8_t c1max = INT_LEAST8_MAX;
10627 int_least8_t c1min = INT_LEAST8_MIN;
10628 int_least16_t c2 = INT16_C (0x7fff);
10629 int_least16_t c2max = INT_LEAST16_MAX;
10630 int_least16_t c2min = INT_LEAST16_MIN;
10631 int_least32_t c3 = INT32_C (0x7fffffff);
10632 int_least32_t c3max = INT_LEAST32_MAX;
10633 int_least32_t c3min = INT_LEAST32_MIN;
10634 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10635 int_least64_t c4max = INT_LEAST64_MAX;
10636 int_least64_t c4min = INT_LEAST64_MIN;
10637 uint_least8_t d1 = UINT8_C (0xff);
10638 uint_least8_t d1max = UINT_LEAST8_MAX;
10639 uint_least16_t d2 = UINT16_C (0xffff);
10640 uint_least16_t d2max = UINT_LEAST16_MAX;
10641 uint_least32_t d3 = UINT32_C (0xffffffff);
10642 uint_least32_t d3max = UINT_LEAST32_MAX;
10643 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10644 uint_least64_t d4max = UINT_LEAST64_MAX;
10645 int_fast8_t e1 = INT_FAST8_MAX;
10646 int_fast8_t e1min = INT_FAST8_MIN;
10647 int_fast16_t e2 = INT_FAST16_MAX;
10648 int_fast16_t e2min = INT_FAST16_MIN;
10649 int_fast32_t e3 = INT_FAST32_MAX;
10650 int_fast32_t e3min = INT_FAST32_MIN;
10651 int_fast64_t e4 = INT_FAST64_MAX;
10652 int_fast64_t e4min = INT_FAST64_MIN;
10653 uint_fast8_t f1 = UINT_FAST8_MAX;
10654 uint_fast16_t f2 = UINT_FAST16_MAX;
10655 uint_fast32_t f3 = UINT_FAST32_MAX;
10656 uint_fast64_t f4 = UINT_FAST64_MAX;
10658 intptr_t g = INTPTR_MAX;
10659 intptr_t gmin = INTPTR_MIN;
10662 uintptr_t h = UINTPTR_MAX;
10664 intmax_t i = INTMAX_MAX;
10665 uintmax_t j = UINTMAX_MAX;
10667 /* Check that SIZE_MAX has the correct type, if possible. */
10668 #if 201112 <= __STDC_VERSION__
10669 int k = _Generic (SIZE_MAX, size_t: 0);
10670 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
10671 || (0x5110 <= __SUNPRO_C && !__STDC__))
10673 extern __typeof__ (SIZE_MAX) k;
10676 #include <limits.h> /* for CHAR_BIT */
10677 #define TYPE_MINIMUM(t) \
10678 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10679 #define TYPE_MAXIMUM(t) \
10680 ((t) ((t) 0 < (t) -1 \
10682 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10685 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10686 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10688 /* Detect bug in FreeBSD 6.0 / ia64. */
10689 int check_SIG_ATOMIC:
10690 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10691 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10693 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10695 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10696 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10698 /* Detect bug in mingw. */
10700 WINT_MIN == TYPE_MINIMUM (wint_t)
10701 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10704 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10706 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10707 int check_UINT16_C:
10708 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10710 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10712 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10715 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10718 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10721 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10723 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10724 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10725 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10726 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10727 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10728 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10729 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10730 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10731 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10732 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10733 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10744 if ac_fn_c_try_compile
"$LINENO"; then :
10745 if test "$cross_compiling" = yes; then :
10746 gl_cv_header_working_stdint_h
=yes
10749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10753 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10754 #define __STDC_CONSTANT_MACROS 1
10755 #define __STDC_LIMIT_MACROS 1
10756 #include <stdint.h>
10759 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10760 included before <wchar.h>. */
10761 #include <stddef.h>
10762 #include <signal.h>
10764 # include <stdio.h>
10766 # include <wchar.h>
10771 #include <string.h>
10772 #define MVAL(macro) MVAL1(macro)
10773 #define MVAL1(expression) #expression
10774 static const char *macro_values[] =
10808 for (mv = macro_values; *mv != NULL; mv++)
10810 const char *value = *mv;
10811 /* Test whether it looks like a cast expression. */
10812 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10813 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10814 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10815 || strncmp (value, "((int)"/*)*/, 6) == 0
10816 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10817 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10818 return mv - macro_values + 1;
10826 if ac_fn_c_try_run
"$LINENO"; then :
10827 gl_cv_header_working_stdint_h
=yes
10829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10839 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10842 HAVE_C99_STDINT_H
=0
10843 HAVE_SYS_BITYPES_H
=0
10844 HAVE_SYS_INTTYPES_H
=0
10846 if test "$gl_cv_header_working_stdint_h" = yes; then
10847 HAVE_C99_STDINT_H
=1
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10849 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10850 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
10851 $as_echo_n "(cached) " >&6
10853 gl_cv_header_stdint_predates_cxx11_h
=yes
10854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10858 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10859 #include <stdint.h>
10862 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10863 included before <wchar.h>. */
10864 #include <stddef.h>
10865 #include <signal.h>
10867 # include <stdio.h>
10869 # include <wchar.h>
10873 intmax_t im = INTMAX_MAX;
10874 int32_t i32 = INT32_C (0x7fffffff);
10884 if ac_fn_c_try_compile
"$LINENO"; then :
10885 gl_cv_header_stdint_predates_cxx11_h
=no
10887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10890 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10892 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10894 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10897 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10901 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10902 if ${gl_cv_header_stdint_width+:} false
; then :
10903 $as_echo_n "(cached) " >&6
10905 gl_cv_header_stdint_width
=no
10906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10909 /* Work if build is not clean. */
10910 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10911 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10912 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10914 #include <stdint.h>
10916 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10917 included before <wchar.h>. */
10918 #include <stddef.h>
10919 #include <signal.h>
10921 # include <stdio.h>
10923 # include <wchar.h>
10926 int iw = UINTMAX_WIDTH;
10936 if ac_fn_c_try_compile
"$LINENO"; then :
10937 gl_cv_header_stdint_width
=yes
10939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10942 $as_echo "$gl_cv_header_stdint_width" >&6; }
10943 if test "$gl_cv_header_stdint_width" = yes; then
10947 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10949 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10951 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10952 cat >>confdefs.h
<<_ACEOF
10953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10960 if test $ac_cv_header_sys_inttypes_h = yes; then
10961 HAVE_SYS_INTTYPES_H
=1
10963 if test $ac_cv_header_sys_bitypes_h = yes; then
10964 HAVE_SYS_BITYPES_H
=1
10968 if test $APPLE_UNIVERSAL_BUILD = 0; then
10971 for gltype
in ptrdiff_t size_t
; do
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10973 $as_echo_n "checking for bit size of $gltype... " >&6; }
10974 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10975 $as_echo_n "(cached) " >&6
10977 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10979 included before <wchar.h>. */
10980 #include <stddef.h>
10981 #include <signal.h>
10983 # include <stdio.h>
10985 # include <wchar.h>
10988 #include <limits.h>"; then :
10994 eval gl_cv_bitsizeof_
${gltype}=\
$result
10997 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11000 eval result
=\
$gl_cv_bitsizeof_${gltype}
11001 if test $result = unknown
; then
11004 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11005 cat >>confdefs.h
<<_ACEOF
11006 #define BITSIZEOF_${GLTYPE} $result
11009 eval BITSIZEOF_
${GLTYPE}=\
$result
11016 for gltype
in sig_atomic_t wchar_t wint_t
; do
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11018 $as_echo_n "checking for bit size of $gltype... " >&6; }
11019 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11020 $as_echo_n "(cached) " >&6
11022 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11023 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11024 included before <wchar.h>. */
11025 #include <stddef.h>
11026 #include <signal.h>
11028 # include <stdio.h>
11030 # include <wchar.h>
11033 #include <limits.h>"; then :
11039 eval gl_cv_bitsizeof_
${gltype}=\
$result
11042 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11044 $as_echo "$ac_res" >&6; }
11045 eval result
=\
$gl_cv_bitsizeof_${gltype}
11046 if test $result = unknown
; then
11049 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11050 cat >>confdefs.h
<<_ACEOF
11051 #define BITSIZEOF_${GLTYPE} $result
11054 eval BITSIZEOF_
${GLTYPE}=\
$result
11060 for gltype
in sig_atomic_t wchar_t wint_t
; do
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11062 $as_echo_n "checking whether $gltype is signed... " >&6; }
11063 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11064 $as_echo_n "(cached) " >&6
11066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11070 included before <wchar.h>. */
11071 #include <stddef.h>
11072 #include <signal.h>
11074 # include <stdio.h>
11076 # include <wchar.h>
11079 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11088 if ac_fn_c_try_compile
"$LINENO"; then :
11093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11094 eval gl_cv_type_
${gltype}_signed
=\
$result
11097 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11099 $as_echo "$ac_res" >&6; }
11100 eval result
=\
$gl_cv_type_${gltype}_signed
11101 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11102 if test "$result" = yes; then
11103 cat >>confdefs.h
<<_ACEOF
11104 #define HAVE_SIGNED_${GLTYPE} 1
11107 eval HAVE_SIGNED_
${GLTYPE}=1
11109 eval HAVE_SIGNED_
${GLTYPE}=0
11114 gl_cv_type_ptrdiff_t_signed
=yes
11115 gl_cv_type_size_t_signed
=no
11116 if test $APPLE_UNIVERSAL_BUILD = 0; then
11119 for gltype
in ptrdiff_t size_t
; do
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11121 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11122 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11123 $as_echo_n "(cached) " >&6
11125 eval gl_cv_type_
${gltype}_suffix
=no
11126 eval result
=\
$gl_cv_type_${gltype}_signed
11127 if test "$result" = yes; then
11132 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11134 '') gltype1
='int';;
11135 l
) gltype1
='long int';;
11136 ll
) gltype1
='long long int';;
11137 i64
) gltype1
='__int64';;
11138 u
) gltype1
='unsigned int';;
11139 ul
) gltype1
='unsigned long int';;
11140 ull
) gltype1
='unsigned long long int';;
11141 ui64
)gltype1
='unsigned __int64';;
11143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11146 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11147 included before <wchar.h>. */
11148 #include <stddef.h>
11149 #include <signal.h>
11151 # include <stdio.h>
11153 # include <wchar.h>
11156 extern $gltype foo;
11157 extern $gltype1 foo;
11166 if ac_fn_c_try_compile
"$LINENO"; then :
11167 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11170 eval result
=\
$gl_cv_type_${gltype}_suffix
11171 test "$result" != no
&& break
11174 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11176 $as_echo "$ac_res" >&6; }
11177 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11178 eval result
=\
$gl_cv_type_${gltype}_suffix
11179 test "$result" = no
&& result
=
11180 eval ${GLTYPE}_SUFFIX
=\
$result
11181 cat >>confdefs.h
<<_ACEOF
11182 #define ${GLTYPE}_SUFFIX $result
11191 for gltype
in sig_atomic_t wchar_t wint_t
; do
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11193 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11194 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11195 $as_echo_n "(cached) " >&6
11197 eval gl_cv_type_
${gltype}_suffix
=no
11198 eval result
=\
$gl_cv_type_${gltype}_signed
11199 if test "$result" = yes; then
11204 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11206 '') gltype1
='int';;
11207 l
) gltype1
='long int';;
11208 ll
) gltype1
='long long int';;
11209 i64
) gltype1
='__int64';;
11210 u
) gltype1
='unsigned int';;
11211 ul
) gltype1
='unsigned long int';;
11212 ull
) gltype1
='unsigned long long int';;
11213 ui64
)gltype1
='unsigned __int64';;
11215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11219 included before <wchar.h>. */
11220 #include <stddef.h>
11221 #include <signal.h>
11223 # include <stdio.h>
11225 # include <wchar.h>
11228 extern $gltype foo;
11229 extern $gltype1 foo;
11238 if ac_fn_c_try_compile
"$LINENO"; then :
11239 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11242 eval result
=\
$gl_cv_type_${gltype}_suffix
11243 test "$result" != no
&& break
11246 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11248 $as_echo "$ac_res" >&6; }
11249 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11250 eval result
=\
$gl_cv_type_${gltype}_suffix
11251 test "$result" = no
&& result
=
11252 eval ${GLTYPE}_SUFFIX
=\
$result
11253 cat >>confdefs.h
<<_ACEOF
11254 #define ${GLTYPE}_SUFFIX $result
11261 if test $BITSIZEOF_WINT_T -lt 32; then
11262 BITSIZEOF_WINT_T
=32
11267 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11269 if test -n "$LIMITS_H"; then
11270 GL_GENERATE_LIMITS_H_TRUE
=
11271 GL_GENERATE_LIMITS_H_FALSE
='#'
11273 GL_GENERATE_LIMITS_H_TRUE
='#'
11274 GL_GENERATE_LIMITS_H_FALSE
=
11282 if test -n "$STDINT_H"; then
11283 GL_GENERATE_STDINT_H_TRUE
=
11284 GL_GENERATE_STDINT_H_FALSE
='#'
11286 GL_GENERATE_STDINT_H_TRUE
='#'
11287 GL_GENERATE_STDINT_H_FALSE
=
11299 GNULIB_STRTOIMAX
=0;
11300 GNULIB_STRTOUMAX
=0;
11301 HAVE_DECL_IMAXABS
=1;
11302 HAVE_DECL_IMAXDIV
=1;
11303 HAVE_DECL_STRTOIMAX
=1;
11304 HAVE_DECL_STRTOUMAX
=1;
11305 REPLACE_STRTOIMAX
=0;
11306 REPLACE_STRTOUMAX
=0;
11307 INT32_MAX_LT_INTMAX_MAX
=1;
11308 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11309 PRI_MACROS_BROKEN
=0;
11310 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11311 UINT32_MAX_LT_UINTMAX_MAX
=1;
11312 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11340 if test $gl_cv_have_include_next = yes; then
11341 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11344 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11345 if ${gl_cv_next_inttypes_h+:} false
; then :
11346 $as_echo_n "(cached) " >&6
11349 if test $ac_cv_header_inttypes_h = yes; then
11354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 #include <inttypes.h>
11359 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11360 *) gl_absname_cpp
="$ac_cpp" ;;
11365 gl_dirsep_regex
='[/\\]'
11368 gl_dirsep_regex
='\/'
11371 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11372 gl_header_literal_regex
=`echo 'inttypes.h' \
11373 | sed -e "$gl_make_literal_regex_sed"`
11374 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11381 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11382 sed -n "$gl_absolute_header_sed"`
11384 gl_header
=$gl_cv_absolute_inttypes_h
11385 gl_cv_next_inttypes_h
='"'$gl_header'"'
11387 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11393 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11395 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11397 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11399 gl_next_as_first_directive
='<'inttypes.h
'>'
11401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11402 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11404 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11413 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
11414 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11417 if eval \
${$as_gl_Symbol+:} false
; then :
11418 $as_echo_n "(cached) " >&6
11420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422 #include <inttypes.h>
11433 if ac_fn_c_try_compile
"$LINENO"; then :
11434 eval "$as_gl_Symbol=yes"
11436 eval "$as_gl_Symbol=no"
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11440 eval ac_res
=\$
$as_gl_Symbol
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11442 $as_echo "$ac_res" >&6; }
11443 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
11444 cat >>confdefs.h
<<_ACEOF
11445 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11448 eval ac_cv_have_decl_
$gl_func=yes
11454 for ac_header
in inttypes.h
11456 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11457 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11458 cat >>confdefs.h
<<_ACEOF
11459 #define HAVE_INTTYPES_H 1
11466 if test $ac_cv_header_inttypes_h = yes; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11468 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11469 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11470 $as_echo_n "(cached) " >&6
11473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11476 #include <inttypes.h>
11489 if ac_fn_c_try_compile
"$LINENO"; then :
11490 gt_cv_inttypes_pri_broken
=no
11492 gt_cv_inttypes_pri_broken
=yes
11494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11498 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11500 if test "$gt_cv_inttypes_pri_broken" = yes; then
11502 cat >>confdefs.h
<<_ACEOF
11503 #define PRI_MACROS_BROKEN 1
11506 PRI_MACROS_BROKEN
=1
11508 PRI_MACROS_BROKEN
=0
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11514 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11515 if ${gl_cv_cc_double_expbit0+:} false
; then :
11516 $as_echo_n "(cached) " >&6
11519 if test "$cross_compiling" = yes; then :
11521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 #if defined arm || defined __arm || defined __arm__
11529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11530 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11531 gl_cv_cc_double_expbit0
="unknown"
11535 if ${ac_cv_c_bigendian+:} false
; then :
11536 $as_echo_n "(cached) " >&6
11538 ac_cv_c_bigendian
=unknown
11539 # See if we're dealing with a universal compiler.
11540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542 #ifndef __APPLE_CC__
11543 not a universal capable compiler
11548 if ac_fn_c_try_compile
"$LINENO"; then :
11550 # Check for potential -arch flags. It is not universal unless
11551 # there are at least two -arch flags with different values.
11554 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11555 if test -n "$ac_prev"; then
11557 i?
86 | x86_64 | ppc | ppc64
)
11558 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11561 ac_cv_c_bigendian
=universal
11567 elif test "x$ac_word" = "x-arch"; then
11572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11573 if test $ac_cv_c_bigendian = unknown
; then
11574 # See if sys/param.h defines the BYTE_ORDER macro.
11575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <sys/types.h>
11578 #include <sys/param.h>
11583 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11584 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11586 bogus endian macros
11593 if ac_fn_c_try_compile
"$LINENO"; then :
11594 # It does; now see whether it defined to BIG_ENDIAN or not.
11595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #include <sys/types.h>
11598 #include <sys/param.h>
11603 #if BYTE_ORDER != BIG_ENDIAN
11611 if ac_fn_c_try_compile
"$LINENO"; then :
11612 ac_cv_c_bigendian
=yes
11614 ac_cv_c_bigendian
=no
11616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11620 if test $ac_cv_c_bigendian = unknown
; then
11621 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624 #include <limits.h>
11629 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11630 bogus endian macros
11637 if ac_fn_c_try_compile
"$LINENO"; then :
11638 # It does; now see whether it defined to _BIG_ENDIAN or not.
11639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #include <limits.h>
11646 #ifndef _BIG_ENDIAN
11654 if ac_fn_c_try_compile
"$LINENO"; then :
11655 ac_cv_c_bigendian
=yes
11657 ac_cv_c_bigendian
=no
11659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11663 if test $ac_cv_c_bigendian = unknown
; then
11664 # Compile a test program.
11665 if test "$cross_compiling" = yes; then :
11666 # Try to guess by grepping values from an object file.
11667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 short int ascii_mm[] =
11670 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11671 short int ascii_ii[] =
11672 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11673 int use_ascii (int i) {
11674 return ascii_mm[i] + ascii_ii[i];
11676 short int ebcdic_ii[] =
11677 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11678 short int ebcdic_mm[] =
11679 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11680 int use_ebcdic (int i) {
11681 return ebcdic_mm[i] + ebcdic_ii[i];
11688 return use_ascii (foo) == use_ebcdic (foo);
11693 if ac_fn_c_try_compile
"$LINENO"; then :
11694 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11695 ac_cv_c_bigendian
=yes
11697 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11698 if test "$ac_cv_c_bigendian" = unknown
; then
11699 ac_cv_c_bigendian
=no
11701 # finding both strings is unlikely to happen, but who knows?
11702 ac_cv_c_bigendian
=unknown
11706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 $ac_includes_default
11715 /* Are we little or big endian? From Harbison&Steele. */
11719 char c[sizeof (long int)];
11722 return u.c[sizeof (long int) - 1] == 1;
11728 if ac_fn_c_try_run
"$LINENO"; then :
11729 ac_cv_c_bigendian
=no
11731 ac_cv_c_bigendian
=yes
11733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11740 case $ac_cv_c_bigendian in #(
11742 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
11744 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
11747 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11751 gl_cv_cc_double_expbit0
="unknown" ;;
11760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11764 #include <stddef.h>
11766 #include <string.h>
11768 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11769 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11770 static unsigned int ored_words[NWORDS];
11771 static unsigned int anded_words[NWORDS];
11772 static void add_to_ored_words (double x)
11776 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11777 memset (&m, 0, sizeof (memory_double));
11779 for (i = 0; i < NWORDS; i++)
11781 ored_words[i] |= m.word[i];
11782 anded_words[i] &= m.word[i];
11788 FILE *fp = fopen ("conftest.out", "w");
11791 for (j = 0; j < NWORDS; j++)
11792 anded_words[j] = ~ (unsigned int) 0;
11793 add_to_ored_words (0.25);
11794 add_to_ored_words (0.5);
11795 add_to_ored_words (1.0);
11796 add_to_ored_words (2.0);
11797 add_to_ored_words (4.0);
11798 /* Remove bits that are common (e.g. if representation of the first mantissa
11799 bit is explicit). */
11800 for (j = 0; j < NWORDS; j++)
11801 ored_words[j] &= ~anded_words[j];
11802 /* Now find the nonzero word. */
11803 for (j = 0; j < NWORDS; j++)
11804 if (ored_words[j] != 0)
11809 for (i = j + 1; i < NWORDS; i++)
11810 if (ored_words[i] != 0)
11812 fprintf (fp, "unknown");
11813 return (fclose (fp) != 0);
11816 if ((ored_words[j] >> i) & 1)
11818 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11819 return (fclose (fp) != 0);
11822 fprintf (fp, "unknown");
11823 return (fclose (fp) != 0);
11827 if ac_fn_c_try_run
"$LINENO"; then :
11828 gl_cv_cc_double_expbit0
=`cat conftest.out`
11830 gl_cv_cc_double_expbit0
="unknown"
11832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11840 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11841 case "$gl_cv_cc_double_expbit0" in
11843 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11844 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11846 cat >>confdefs.h
<<_ACEOF
11847 #define DBL_EXPBIT0_WORD $word
11851 cat >>confdefs.h
<<_ACEOF
11852 #define DBL_EXPBIT0_BIT $bit
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11861 if ${ac_cv_c_bigendian+:} false
; then :
11862 $as_echo_n "(cached) " >&6
11864 ac_cv_c_bigendian
=unknown
11865 # See if we're dealing with a universal compiler.
11866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #ifndef __APPLE_CC__
11869 not a universal capable compiler
11874 if ac_fn_c_try_compile
"$LINENO"; then :
11876 # Check for potential -arch flags. It is not universal unless
11877 # there are at least two -arch flags with different values.
11880 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11881 if test -n "$ac_prev"; then
11883 i?
86 | x86_64 | ppc | ppc64
)
11884 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11887 ac_cv_c_bigendian
=universal
11893 elif test "x$ac_word" = "x-arch"; then
11898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11899 if test $ac_cv_c_bigendian = unknown
; then
11900 # See if sys/param.h defines the BYTE_ORDER macro.
11901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 #include <sys/types.h>
11904 #include <sys/param.h>
11909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11910 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11912 bogus endian macros
11919 if ac_fn_c_try_compile
"$LINENO"; then :
11920 # It does; now see whether it defined to BIG_ENDIAN or not.
11921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <sys/types.h>
11924 #include <sys/param.h>
11929 #if BYTE_ORDER != BIG_ENDIAN
11937 if ac_fn_c_try_compile
"$LINENO"; then :
11938 ac_cv_c_bigendian
=yes
11940 ac_cv_c_bigendian
=no
11942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11946 if test $ac_cv_c_bigendian = unknown
; then
11947 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950 #include <limits.h>
11955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11956 bogus endian macros
11963 if ac_fn_c_try_compile
"$LINENO"; then :
11964 # It does; now see whether it defined to _BIG_ENDIAN or not.
11965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #include <limits.h>
11972 #ifndef _BIG_ENDIAN
11980 if ac_fn_c_try_compile
"$LINENO"; then :
11981 ac_cv_c_bigendian
=yes
11983 ac_cv_c_bigendian
=no
11985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11989 if test $ac_cv_c_bigendian = unknown
; then
11990 # Compile a test program.
11991 if test "$cross_compiling" = yes; then :
11992 # Try to guess by grepping values from an object file.
11993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995 short int ascii_mm[] =
11996 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11997 short int ascii_ii[] =
11998 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11999 int use_ascii (int i) {
12000 return ascii_mm[i] + ascii_ii[i];
12002 short int ebcdic_ii[] =
12003 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12004 short int ebcdic_mm[] =
12005 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12006 int use_ebcdic (int i) {
12007 return ebcdic_mm[i] + ebcdic_ii[i];
12014 return use_ascii (foo) == use_ebcdic (foo);
12019 if ac_fn_c_try_compile
"$LINENO"; then :
12020 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12021 ac_cv_c_bigendian
=yes
12023 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12024 if test "$ac_cv_c_bigendian" = unknown
; then
12025 ac_cv_c_bigendian
=no
12027 # finding both strings is unlikely to happen, but who knows?
12028 ac_cv_c_bigendian
=unknown
12032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 $ac_includes_default
12041 /* Are we little or big endian? From Harbison&Steele. */
12045 char c[sizeof (long int)];
12048 return u.c[sizeof (long int) - 1] == 1;
12054 if ac_fn_c_try_run
"$LINENO"; then :
12055 ac_cv_c_bigendian
=no
12057 ac_cv_c_bigendian
=yes
12059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12066 $as_echo "$ac_cv_c_bigendian" >&6; }
12067 case $ac_cv_c_bigendian in #(
12069 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12079 as_fn_error $?
"unknown endianness
12080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12086 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12087 if ${am_cv_langinfo_codeset+:} false
; then :
12088 $as_echo_n "(cached) " >&6
12090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092 #include <langinfo.h>
12096 char* cs = nl_langinfo(CODESET); return !cs;
12101 if ac_fn_c_try_link
"$LINENO"; then :
12102 am_cv_langinfo_codeset
=yes
12104 am_cv_langinfo_codeset
=no
12106 rm -f core conftest.err conftest.
$ac_objext \
12107 conftest
$ac_exeext conftest.
$ac_ext
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12111 $as_echo "$am_cv_langinfo_codeset" >&6; }
12112 if test $am_cv_langinfo_codeset = yes; then
12114 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12119 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12120 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
12126 cat >>confdefs.h
<<_ACEOF
12127 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12133 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12134 if ${ac_cv_gnu_library_2_1+:} false
; then :
12135 $as_echo_n "(cached) " >&6
12137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 #include <features.h>
12141 #ifdef __GNU_LIBRARY__
12142 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152 $EGREP "Lucky" >/dev
/null
2>&1; then :
12153 ac_cv_gnu_library_2_1
=yes
12155 ac_cv_gnu_library_2_1
=no
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12163 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12165 GLIBC21
="$ac_cv_gnu_library_2_1"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12175 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12176 if ${gl_cv_func_malloc_posix+:} false
; then :
12177 $as_echo_n "(cached) " >&6
12180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12186 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12194 if ac_fn_c_try_compile
"$LINENO"; then :
12195 gl_cv_func_malloc_posix
=yes
12197 gl_cv_func_malloc_posix
=no
12199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12203 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12207 for ac_header
in stdlib.h
12209 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12210 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12211 cat >>confdefs.h
<<_ACEOF
12212 #define HAVE_STDLIB_H 1
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12220 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12221 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
12222 $as_echo_n "(cached) " >&6
12224 if test "$cross_compiling" = yes; then :
12226 # Guess yes on platforms where we know the result.
12227 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
12228 | hpux
* | solaris
* | cygwin
* | mingw
*)
12229 ac_cv_func_malloc_0_nonnull
=yes ;;
12230 # If we don't know, assume the worst.
12231 *) ac_cv_func_malloc_0_nonnull
=no
;;
12235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12238 # include <stdlib.h>
12246 char *p = malloc (0);
12255 if ac_fn_c_try_run
"$LINENO"; then :
12256 ac_cv_func_malloc_0_nonnull
=yes
12258 ac_cv_func_malloc_0_nonnull
=no
12260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12267 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12268 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12269 gl_cv_func_malloc_0_nonnull
=1
12271 gl_cv_func_malloc_0_nonnull
=0
12275 cat >>confdefs.h
<<_ACEOF
12276 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12291 GNULIB_MBSRTOWCS
=0;
12292 GNULIB_MBSNRTOWCS
=0;
12294 GNULIB_WCSRTOMBS
=0;
12295 GNULIB_WCSNRTOMBS
=0;
12312 GNULIB_WCSCASECMP
=0;
12313 GNULIB_WCSNCASECMP
=0;
12350 HAVE_WCSNCASECMP
=1;
12363 HAVE_DECL_WCWIDTH
=1;
12364 REPLACE_MBSTATE_T
=0;
12370 REPLACE_MBSRTOWCS
=0;
12371 REPLACE_MBSNRTOWCS
=0;
12373 REPLACE_WCSRTOMBS
=0;
12374 REPLACE_WCSNRTOMBS
=0;
12376 REPLACE_WCSWIDTH
=0;
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12392 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12393 if ${gt_cv_locale_ja+:} false
; then :
12394 $as_echo_n "(cached) " >&6
12397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12400 #include <locale.h>
12402 #if HAVE_LANGINFO_CODESET
12403 # include <langinfo.h>
12405 #include <stdlib.h>
12406 #include <string.h>
12412 /* Check whether the given locale name is recognized by the system. */
12413 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12414 /* On native Windows, setlocale(category, "") looks at the system settings,
12415 not at the environment variables. Also, when an encoding suffix such
12416 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12417 category of the locale to "C". */
12418 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12419 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12422 if (setlocale (LC_ALL, "") == NULL) return 1;
12424 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12425 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12426 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12427 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12428 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12429 some unit tests fail.
12430 On MirBSD 10, when an unsupported locale is specified, setlocale()
12431 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12432 #if HAVE_LANGINFO_CODESET
12434 const char *cs = nl_langinfo (CODESET);
12435 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12436 || strcmp (cs, "UTF-8") == 0)
12441 /* On Cygwin, avoid locale names without encoding suffix, because the
12442 locale_charset() function relies on the encoding suffix. Note that
12443 LC_ALL is set on the command line. */
12444 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12446 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12447 on Cygwin 1.5.x. */
12448 if (MB_CUR_MAX == 1)
12450 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12451 This excludes the UTF-8 encoding (except on MirBSD). */
12452 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12453 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12454 for (p = buf; *p != '\0'; p++)
12455 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12462 (eval $ac_link) 2>&5
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12467 # Handle native Windows specially, because there setlocale() interprets
12468 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12469 # "fr" or "fra" as "French" or "French_France.1252",
12470 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12471 # "ja" as "Japanese" or "Japanese_Japan.932",
12474 # Note that on native Windows, the Japanese locale is
12475 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12476 # cannot use it here.
12477 gt_cv_locale_ja
=none
12480 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12481 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12482 # configure script would override the LC_ALL setting. Likewise for
12483 # LC_CTYPE, which is also set at the beginning of the configure script.
12484 # Test for the AIX locale name.
12485 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12486 gt_cv_locale_ja
=ja_JP
12488 # Test for the locale name with explicit encoding suffix.
12489 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12490 gt_cv_locale_ja
=ja_JP.EUC-JP
12492 # Test for the HP-UX, OSF/1, NetBSD locale name.
12493 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12494 gt_cv_locale_ja
=ja_JP.eucJP
12496 # Test for the IRIX, FreeBSD locale name.
12497 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12498 gt_cv_locale_ja
=ja_JP.EUC
12500 # Test for the Solaris 7 locale name.
12501 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12504 # Special test for NetBSD 1.6.
12505 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
12506 gt_cv_locale_ja
=ja_JP.eucJP
12509 gt_cv_locale_ja
=none
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12523 $as_echo "$gt_cv_locale_ja" >&6; }
12524 LOCALE_JA
=$gt_cv_locale_ja
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12531 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12532 if ${gt_cv_locale_zh_CN+:} false
; then :
12533 $as_echo_n "(cached) " >&6
12536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12539 #include <locale.h>
12540 #include <stdlib.h>
12542 #if HAVE_LANGINFO_CODESET
12543 # include <langinfo.h>
12545 #include <stdlib.h>
12546 #include <string.h>
12552 /* Check whether the given locale name is recognized by the system. */
12553 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12554 /* On native Windows, setlocale(category, "") looks at the system settings,
12555 not at the environment variables. Also, when an encoding suffix such
12556 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12557 category of the locale to "C". */
12558 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12559 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12562 if (setlocale (LC_ALL, "") == NULL) return 1;
12564 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12565 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12566 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12567 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12568 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12569 some unit tests fail.
12570 On MirBSD 10, when an unsupported locale is specified, setlocale()
12571 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12572 #if HAVE_LANGINFO_CODESET
12574 const char *cs = nl_langinfo (CODESET);
12575 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12576 || strcmp (cs, "UTF-8") == 0)
12581 /* On Cygwin, avoid locale names without encoding suffix, because the
12582 locale_charset() function relies on the encoding suffix. Note that
12583 LC_ALL is set on the command line. */
12584 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12586 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12587 This excludes the UTF-8 encoding (except on MirBSD). */
12588 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12589 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12590 for (p = buf; *p != '\0'; p++)
12591 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12593 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12594 single wide character. This excludes the GB2312 and GBK encodings. */
12595 if (mblen ("\203\062\332\066", 5) != 4)
12601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12602 (eval $ac_link) 2>&5
12604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12605 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12607 # Handle native Windows specially, because there setlocale() interprets
12608 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12609 # "fr" or "fra" as "French" or "French_France.1252",
12610 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12611 # "ja" as "Japanese" or "Japanese_Japan.932",
12614 # Test for the hypothetical native Windows locale name.
12615 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12616 gt_cv_locale_zh_CN
=Chinese_China
.54936
12619 gt_cv_locale_zh_CN
=none
12623 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12624 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12625 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12626 gt_cv_locale_zh_CN
=none
12629 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12630 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12631 # configure script would override the LC_ALL setting. Likewise for
12632 # LC_CTYPE, which is also set at the beginning of the configure script.
12633 # Test for the locale name without encoding suffix.
12634 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12635 gt_cv_locale_zh_CN
=zh_CN
12637 # Test for the locale name with explicit encoding suffix.
12638 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12639 gt_cv_locale_zh_CN
=zh_CN.GB18030
12642 gt_cv_locale_zh_CN
=none
12648 # If there was a link error, due to mblen(), the system is so old that
12649 # it certainly doesn't have a chinese locale.
12650 gt_cv_locale_zh_CN
=none
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12656 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12657 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12663 $as_echo_n "checking for a french Unicode locale... " >&6; }
12664 if ${gt_cv_locale_fr_utf8+:} false
; then :
12665 $as_echo_n "(cached) " >&6
12668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12671 #include <locale.h>
12673 #if HAVE_LANGINFO_CODESET
12674 # include <langinfo.h>
12676 #include <stdlib.h>
12677 #include <string.h>
12681 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12682 imitates locale dependent behaviour by looking at the environment
12683 variables, and all locales use the UTF-8 encoding. */
12684 #if !(defined __BEOS__ || defined __HAIKU__)
12685 /* Check whether the given locale name is recognized by the system. */
12686 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12687 /* On native Windows, setlocale(category, "") looks at the system settings,
12688 not at the environment variables. Also, when an encoding suffix such
12689 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12690 category of the locale to "C". */
12691 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12692 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12695 if (setlocale (LC_ALL, "") == NULL) return 1;
12697 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12698 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12699 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12700 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12701 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12702 some unit tests fail. */
12703 # if HAVE_LANGINFO_CODESET
12705 const char *cs = nl_langinfo (CODESET);
12706 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12711 /* On Cygwin, avoid locale names without encoding suffix, because the
12712 locale_charset() function relies on the encoding suffix. Note that
12713 LC_ALL is set on the command line. */
12714 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12716 /* Check whether in the abbreviation of the second month, the second
12717 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12718 two bytes long, with UTF-8 encoding. */
12719 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12720 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12721 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12724 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12725 /* Check whether the decimal separator is a comma.
12726 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12727 are nl_langinfo(RADIXCHAR) are both ".". */
12728 if (localeconv () ->decimal_point[0] != ',') return 1;
12734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12735 (eval $ac_link) 2>&5
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12740 # Handle native Windows specially, because there setlocale() interprets
12741 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12742 # "fr" or "fra" as "French" or "French_France.1252",
12743 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12744 # "ja" as "Japanese" or "Japanese_Japan.932",
12747 # Test for the hypothetical native Windows locale name.
12748 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12749 gt_cv_locale_fr_utf8
=French_France
.65001
12752 gt_cv_locale_fr_utf8
=none
12756 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12757 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12758 # configure script would override the LC_ALL setting. Likewise for
12759 # LC_CTYPE, which is also set at the beginning of the configure script.
12760 # Test for the usual locale name.
12761 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12762 gt_cv_locale_fr_utf8
=fr_FR
12764 # Test for the locale name with explicit encoding suffix.
12765 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12766 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
12768 # Test for the Solaris 7 locale name.
12769 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12770 gt_cv_locale_fr_utf8
=fr.UTF-8
12773 gt_cv_locale_fr_utf8
=none
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12784 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12785 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12792 $as_echo_n "checking for a traditional french locale... " >&6; }
12793 if ${gt_cv_locale_fr+:} false
; then :
12794 $as_echo_n "(cached) " >&6
12797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12800 #include <locale.h>
12802 #if HAVE_LANGINFO_CODESET
12803 # include <langinfo.h>
12805 #include <stdlib.h>
12806 #include <string.h>
12810 /* Check whether the given locale name is recognized by the system. */
12811 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12812 /* On native Windows, setlocale(category, "") looks at the system settings,
12813 not at the environment variables. Also, when an encoding suffix such
12814 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12815 category of the locale to "C". */
12816 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12817 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12820 if (setlocale (LC_ALL, "") == NULL) return 1;
12822 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12823 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12824 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12825 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12826 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12827 some unit tests fail.
12828 On MirBSD 10, when an unsupported locale is specified, setlocale()
12829 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12830 #if HAVE_LANGINFO_CODESET
12832 const char *cs = nl_langinfo (CODESET);
12833 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12834 || strcmp (cs, "UTF-8") == 0)
12839 /* On Cygwin, avoid locale names without encoding suffix, because the
12840 locale_charset() function relies on the encoding suffix. Note that
12841 LC_ALL is set on the command line. */
12842 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12844 /* Check whether in the abbreviation of the second month, the second
12845 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12846 one byte long. This excludes the UTF-8 encoding. */
12847 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12848 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12849 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12850 /* Check whether the decimal separator is a comma.
12851 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12852 are nl_langinfo(RADIXCHAR) are both ".". */
12853 if (localeconv () ->decimal_point[0] != ',') return 1;
12859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12860 (eval $ac_link) 2>&5
12862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12865 # Handle native Windows specially, because there setlocale() interprets
12866 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12867 # "fr" or "fra" as "French" or "French_France.1252",
12868 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12869 # "ja" as "Japanese" or "Japanese_Japan.932",
12872 # Test for the native Windows locale name.
12873 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12874 gt_cv_locale_fr
=French_France
.1252
12877 gt_cv_locale_fr
=none
12881 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12882 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12883 # configure script would override the LC_ALL setting. Likewise for
12884 # LC_CTYPE, which is also set at the beginning of the configure script.
12885 # Test for the usual locale name.
12886 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12887 gt_cv_locale_fr
=fr_FR
12889 # Test for the locale name with explicit encoding suffix.
12890 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12891 gt_cv_locale_fr
=fr_FR.ISO-8859-1
12893 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12894 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12895 gt_cv_locale_fr
=fr_FR.ISO8859-1
12897 # Test for the HP-UX locale name.
12898 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12899 gt_cv_locale_fr
=fr_FR.iso88591
12901 # Test for the Solaris 7 locale name.
12902 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12906 gt_cv_locale_fr
=none
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12919 $as_echo "$gt_cv_locale_fr" >&6; }
12920 LOCALE_FR
=$gt_cv_locale_fr
12940 GNULIB_RAWMEMCHR
=0;
12943 GNULIB_STRCHRNUL
=0;
12951 GNULIB_STRCASESTR
=0;
12958 GNULIB_MBSCASECMP
=0;
12959 GNULIB_MBSNCASECMP
=0;
12960 GNULIB_MBSPCASECMP
=0;
12961 GNULIB_MBSCASESTR
=0;
12968 GNULIB_STRERROR_R
=0;
12969 GNULIB_STRSIGNAL
=0;
12970 GNULIB_STRVERSCMP
=0;
12975 HAVE_DECL_MEMMEM
=1;
12977 HAVE_DECL_MEMRCHR
=1;
12982 HAVE_DECL_STRDUP
=1;
12983 HAVE_DECL_STRNDUP
=1;
12984 HAVE_DECL_STRNLEN
=1;
12988 HAVE_DECL_STRTOK_R
=1;
12989 HAVE_DECL_STRERROR_R
=1;
12990 HAVE_DECL_STRSIGNAL
=1;
12997 REPLACE_STRCASESTR
=0;
12998 REPLACE_STRCHRNUL
=0;
12999 REPLACE_STRERROR
=0;
13000 REPLACE_STRERROR_R
=0;
13004 REPLACE_STRSIGNAL
=0;
13005 REPLACE_STRTOK_R
=0;
13006 UNDEFINE_STRTOK_R
=0;
13012 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13013 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13014 # irrelevant for anonymous mappings.
13015 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
13016 if test "x$ac_cv_func_mmap" = xyes
; then :
13023 # Try to allow MAP_ANONYMOUS.
13024 gl_have_mmap_anonymous
=no
13025 if test $gl_have_mmap = yes; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
13027 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
13028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13031 #include <sys/mman.h>
13032 #ifdef MAP_ANONYMOUS
13033 I cannot identify this map
13037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13038 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13039 gl_have_mmap_anonymous
=yes
13043 if test $gl_have_mmap_anonymous != yes; then
13044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 #include <sys/mman.h>
13049 I cannot identify this map
13053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13054 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13056 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13058 gl_have_mmap_anonymous
=yes
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13064 $as_echo "$gl_have_mmap_anonymous" >&6; }
13065 if test $gl_have_mmap_anonymous = yes; then
13067 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13089 if test $HAVE_MEMCHR = 1; then
13090 # Detect platform-specific bugs in some versions of glibc:
13091 # memchr should not dereference anything with length 0
13092 # http://bugzilla.redhat.com/499689
13093 # memchr should not dereference overestimated length after a match
13094 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13095 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
13096 # Assume that memchr works on platforms that lack mprotect.
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13098 $as_echo_n "checking whether memchr works... " >&6; }
13099 if ${gl_cv_func_memchr_works+:} false
; then :
13100 $as_echo_n "(cached) " >&6
13102 if test "$cross_compiling" = yes; then :
13103 gl_cv_func_memchr_works
="guessing no"
13105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13108 #include <string.h>
13109 #if HAVE_SYS_MMAN_H
13110 # include <fcntl.h>
13111 # include <unistd.h>
13112 # include <sys/types.h>
13113 # include <sys/mman.h>
13115 # define MAP_FILE 0
13124 char *fence = NULL;
13125 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13126 # if HAVE_MAP_ANONYMOUS
13127 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13129 # else /* !HAVE_MAP_ANONYMOUS */
13130 const int flags = MAP_FILE | MAP_PRIVATE;
13131 int fd = open ("/dev/zero", O_RDONLY, 0666);
13135 int pagesize = getpagesize ();
13137 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13139 if (two_pages != (char *)(-1)
13140 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13141 fence = two_pages + pagesize;
13146 if (memchr (fence, 0, 0))
13148 strcpy (fence - 9, "12345678");
13149 if (memchr (fence - 9, 0, 79) != fence - 1)
13151 if (memchr (fence - 1, 0, 3) != fence - 1)
13160 if ac_fn_c_try_run
"$LINENO"; then :
13161 gl_cv_func_memchr_works
=yes
13163 gl_cv_func_memchr_works
=no
13165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13166 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13171 $as_echo "$gl_cv_func_memchr_works" >&6; }
13172 if test "$gl_cv_func_memchr_works" != yes; then
13178 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
13179 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
13185 cat >>confdefs.h
<<_ACEOF
13186 #define HAVE_DECL_MEMMEM $ac_have_decl
13194 for ac_func
in memmem
13196 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
13197 if test "x$ac_cv_func_memmem" = xyes
; then :
13198 cat >>confdefs.h
<<_ACEOF
13199 #define HAVE_MEMMEM 1
13205 if test $ac_cv_func_memmem = yes; then
13217 if test $ac_cv_have_decl_memmem = no
; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13221 $as_echo_n "checking whether memmem works... " >&6; }
13222 if ${gl_cv_func_memmem_works_always+:} false
; then :
13223 $as_echo_n "(cached) " >&6
13225 if test "$cross_compiling" = yes; then :
13226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13229 #ifdef __GNU_LIBRARY__
13230 #include <features.h>
13231 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13232 || __GLIBC_MINOR__ > 12)) \
13233 || (__GLIBC__ > 2)) \
13234 || defined __UCLIBC__
13237 #elif defined __CYGWIN__
13238 #include <cygwin/version.h>
13239 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13248 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13249 gl_cv_func_memmem_works_always
="guessing yes"
13251 gl_cv_func_memmem_works_always
="guessing no"
13257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13260 #include <string.h> /* for memmem */
13261 #define P "_EF_BF_BD"
13262 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13263 #define NEEDLE P P P P P
13270 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13272 /* Check for empty needle behavior. */
13274 const char *haystack = "AAA";
13275 if (memmem (haystack, 3, NULL, 0) != haystack)
13284 if ac_fn_c_try_run
"$LINENO"; then :
13285 gl_cv_func_memmem_works_always
=yes
13287 gl_cv_func_memmem_works_always
=no
13289 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13290 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13296 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13297 case "$gl_cv_func_memmem_works_always" in
13307 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
13308 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
13314 cat >>confdefs.h
<<_ACEOF
13315 #define HAVE_DECL_MEMRCHR $ac_have_decl
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13330 $as_echo_n "checking for promoted mode_t type... " >&6; }
13331 if ${gl_cv_promoted_mode_t+:} false
; then :
13332 $as_echo_n "(cached) " >&6
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <sys/types.h>
13341 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13346 if ac_fn_c_try_compile
"$LINENO"; then :
13347 gl_cv_promoted_mode_t
='int'
13349 gl_cv_promoted_mode_t
='mode_t'
13351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13355 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13357 cat >>confdefs.h
<<_ACEOF
13358 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13376 GNULIB_FPRINTF_POSIX
=0;
13392 GNULIB_OBSTACK_PRINTF
=0;
13393 GNULIB_OBSTACK_PRINTF_POSIX
=0;
13398 GNULIB_PRINTF_POSIX
=0;
13407 GNULIB_SPRINTF_POSIX
=0;
13408 GNULIB_STDIO_H_NONBLOCKING
=0;
13409 GNULIB_STDIO_H_SIGPIPE
=0;
13411 GNULIB_VASPRINTF
=0;
13416 GNULIB_VFPRINTF_POSIX
=0;
13418 GNULIB_VPRINTF_POSIX
=0;
13419 GNULIB_VSNPRINTF
=0;
13420 GNULIB_VSPRINTF_POSIX
=0;
13421 HAVE_DECL_FPURGE
=1;
13422 HAVE_DECL_FSEEKO
=1;
13423 HAVE_DECL_FTELLO
=1;
13424 HAVE_DECL_GETDELIM
=1;
13425 HAVE_DECL_GETLINE
=1;
13426 HAVE_DECL_OBSTACK_PRINTF
=1;
13427 HAVE_DECL_SNPRINTF
=1;
13428 HAVE_DECL_VSNPRINTF
=1;
13449 REPLACE_GETDELIM
=0;
13451 REPLACE_OBSTACK_PRINTF
=0;
13457 REPLACE_RENAMEAT
=0;
13458 REPLACE_SNPRINTF
=0;
13460 REPLACE_STDIO_READ_FUNCS
=0;
13461 REPLACE_STDIO_WRITE_FUNCS
=0;
13463 REPLACE_VASPRINTF
=0;
13464 REPLACE_VDPRINTF
=0;
13465 REPLACE_VFPRINTF
=0;
13467 REPLACE_VSNPRINTF
=0;
13468 REPLACE_VSPRINTF
=0;
13501 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13502 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
13508 cat >>confdefs.h
<<_ACEOF
13509 #define HAVE_DECL_SETENV $ac_have_decl
13527 if test $ac_cv_have_decl_setenv = no
; then
13547 for ac_header
in search.h
13549 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
13550 if test "x$ac_cv_header_search_h" = xyes
; then :
13551 cat >>confdefs.h
<<_ACEOF
13552 #define HAVE_SEARCH_H 1
13559 for ac_func
in tsearch
13561 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
13562 if test "x$ac_cv_func_tsearch" = xyes
; then :
13563 cat >>confdefs.h
<<_ACEOF
13564 #define HAVE_TSEARCH 1
13573 GNULIB_PTHREAD_SIGMASK
=0;
13575 GNULIB_SIGNAL_H_SIGPIPE
=0;
13576 GNULIB_SIGPROCMASK
=0;
13577 GNULIB_SIGACTION
=0;
13578 HAVE_POSIX_SIGNALBLOCKING
=1;
13579 HAVE_PTHREAD_SIGMASK
=1;
13584 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
13586 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
13588 HAVE_SIGHANDLER_T
=1;
13589 REPLACE_PTHREAD_SIGMASK
=0;
13593 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13594 #include <signal.h>
13595 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
13596 #include <sys/types.h>
13599 if test "x$ac_cv_type_sigset_t" = xyes
; then :
13601 cat >>confdefs.h
<<_ACEOF
13602 #define HAVE_SIGSET_T 1
13605 gl_cv_type_sigset_t
=yes
13607 gl_cv_type_sigset_t
=no
13610 if test $gl_cv_type_sigset_t != yes; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13615 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13616 if ${ac_cv_type_uid_t+:} false
; then :
13617 $as_echo_n "(cached) " >&6
13619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 #include <sys/types.h>
13624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13625 $EGREP "uid_t" >/dev
/null
2>&1; then :
13626 ac_cv_type_uid_t
=yes
13628 ac_cv_type_uid_t
=no
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13634 $as_echo "$ac_cv_type_uid_t" >&6; }
13635 if test $ac_cv_type_uid_t = no
; then
13637 $as_echo "#define uid_t int" >>confdefs.h
13640 $as_echo "#define gid_t int" >>confdefs.h
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13645 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13646 if ${ac_cv_header_stdbool_h+:} false
; then :
13647 $as_echo_n "(cached) " >&6
13649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13652 #include <stdbool.h>
13657 typedef _Bool Bool;
13659 "error: bool is not defined"
13662 "error: false is not defined"
13665 "error: false is not 0"
13668 "error: true is not defined"
13671 "error: true is not 1"
13675 #ifndef __bool_true_false_are_defined
13676 "error: __bool_true_false_are_defined is not defined"
13679 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13681 char a[true == 1 ? 1 : -1];
13682 char b[false == 0 ? 1 : -1];
13683 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13684 char d[(bool) 0.5 == true ? 1 : -1];
13685 /* See body of main program for 'e'. */
13686 char f[(Bool) 0.0 == false ? 1 : -1];
13688 char h[sizeof (Bool)];
13689 char i[sizeof s.t];
13690 enum { j = false, k = true, l = false * true, m = true * 256 };
13691 /* The following fails for
13692 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13694 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13695 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13696 /* Catch a bug in an HP-UX C compiler. See
13697 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13698 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13709 *pq |= q; *pq |= ! q;
13710 *qq |= q; *qq |= ! q;
13711 /* Refer to every declared value, to avoid compiler optimizations. */
13712 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13713 + !m + !n + !o + !p + !q + !pq + !qq);
13719 if ac_fn_c_try_compile
"$LINENO"; then :
13720 ac_cv_header_stdbool_h
=yes
13722 ac_cv_header_stdbool_h
=no
13724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13727 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13728 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13729 if test "x$ac_cv_type__Bool" = xyes
; then :
13731 cat >>confdefs.h
<<_ACEOF
13732 #define HAVE__BOOL 1
13741 HAVE_MAX_ALIGN_T
=1;
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13746 $as_echo_n "checking for wchar_t... " >&6; }
13747 if ${gt_cv_c_wchar_t+:} false
; then :
13748 $as_echo_n "(cached) " >&6
13750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <stddef.h>
13753 wchar_t foo = (wchar_t)'\0';
13762 if ac_fn_c_try_compile
"$LINENO"; then :
13763 gt_cv_c_wchar_t
=yes
13767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13770 $as_echo "$gt_cv_c_wchar_t" >&6; }
13771 if test $gt_cv_c_wchar_t = yes; then
13773 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13783 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13784 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
13790 cat >>confdefs.h
<<_ACEOF
13791 #define HAVE_DECL_STRDUP $ac_have_decl
13796 REPLACE_STRERROR_0
=0
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13798 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13799 if ${gl_cv_func_strerror_0_works+:} false
; then :
13800 $as_echo_n "(cached) " >&6
13802 if test "$cross_compiling" = yes; then :
13804 # Guess yes on glibc systems.
13805 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
13806 # If we don't know, assume the worst.
13807 *) gl_cv_func_strerror_0_works
="guessing no" ;;
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 #include <string.h>
13822 str = strerror (0);
13823 if (!*str) result |= 1;
13824 if (errno) result |= 2;
13825 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13832 if ac_fn_c_try_run
"$LINENO"; then :
13833 gl_cv_func_strerror_0_works
=yes
13835 gl_cv_func_strerror_0_works
=no
13837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13844 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13845 case "$gl_cv_func_strerror_0_works" in
13848 REPLACE_STRERROR_0
=1
13850 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13866 if test $gl_cv_have_include_next = yes; then
13867 gl_cv_next_string_h
='<'string.h
'>'
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13870 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13871 if ${gl_cv_next_string_h+:} false
; then :
13872 $as_echo_n "(cached) " >&6
13877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #include <string.h>
13882 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13883 *) gl_absname_cpp
="$ac_cpp" ;;
13888 gl_dirsep_regex
='[/\\]'
13891 gl_dirsep_regex
='\/'
13894 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13895 gl_header_literal_regex
=`echo 'string.h' \
13896 | sed -e "$gl_make_literal_regex_sed"`
13897 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13898 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13904 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13905 sed -n "$gl_absolute_header_sed"`
13907 gl_header
=$gl_cv_absolute_string_h
13908 gl_cv_next_string_h
='"'$gl_header'"'
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13913 $as_echo "$gl_cv_next_string_h" >&6; }
13915 NEXT_STRING_H
=$gl_cv_next_string_h
13917 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13919 gl_next_as_first_directive
='<'string.h
'>'
13921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13922 gl_next_as_first_directive
=$gl_cv_next_string_h
13924 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
13931 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
13932 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13934 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13935 if eval \
${$as_gl_Symbol+:} false
; then :
13936 $as_echo_n "(cached) " >&6
13938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #include <string.h>
13951 if ac_fn_c_try_compile
"$LINENO"; then :
13952 eval "$as_gl_Symbol=yes"
13954 eval "$as_gl_Symbol=no"
13956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13958 eval ac_res
=\$
$as_gl_Symbol
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13960 $as_echo "$ac_res" >&6; }
13961 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
13962 cat >>confdefs.h
<<_ACEOF
13963 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13966 eval ac_cv_have_decl_
$gl_func=yes
13974 if test "$gl_cv_func_memchr_works" != yes; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13978 $as_echo_n "checking whether strstr works... " >&6; }
13979 if ${gl_cv_func_strstr_works_always+:} false
; then :
13980 $as_echo_n "(cached) " >&6
13982 if test "$cross_compiling" = yes; then :
13983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13986 #ifdef __GNU_LIBRARY__
13987 #include <features.h>
13988 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13989 || defined __UCLIBC__
13992 #elif defined __CYGWIN__
13993 #include <cygwin/version.h>
13994 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14003 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14004 gl_cv_func_strstr_works_always
="guessing yes"
14006 gl_cv_func_strstr_works_always
="guessing no"
14012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14015 #include <string.h> /* for strstr */
14016 #define P "_EF_BF_BD"
14017 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14018 #define NEEDLE P P P P P
14023 return !!strstr (HAYSTACK, NEEDLE);
14029 if ac_fn_c_try_run
"$LINENO"; then :
14030 gl_cv_func_strstr_works_always
=yes
14032 gl_cv_func_strstr_works_always
=no
14034 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14035 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14041 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14042 case "$gl_cv_func_strstr_works_always" in
14051 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
14052 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
14058 cat >>confdefs.h
<<_ACEOF
14059 #define HAVE_DECL_STRTOK_R $ac_have_decl
14081 if test $gl_cv_have_include_next = yes; then
14082 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14085 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14086 if ${gl_cv_next_sys_types_h+:} false
; then :
14087 $as_echo_n "(cached) " >&6
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 #include <sys/types.h>
14097 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14098 *) gl_absname_cpp
="$ac_cpp" ;;
14103 gl_dirsep_regex
='[/\\]'
14106 gl_dirsep_regex
='\/'
14109 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14110 gl_header_literal_regex
=`echo 'sys/types.h' \
14111 | sed -e "$gl_make_literal_regex_sed"`
14112 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14113 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14119 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14120 sed -n "$gl_absolute_header_sed"`
14122 gl_header
=$gl_cv_absolute_sys_types_h
14123 gl_cv_next_sys_types_h
='"'$gl_header'"'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14128 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14130 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
14132 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14134 gl_next_as_first_directive
='<'sys
/types.h
'>'
14136 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14137 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
14139 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
14160 GNULIB_NANOSLEEP
=0;
14165 HAVE_DECL_LOCALTIME_R
=1;
14169 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14170 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14171 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14172 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14174 : ${GNULIB_GETTIMEOFDAY=0};
14176 REPLACE_LOCALTIME
=0;
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14187 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14188 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14189 $as_echo_n "(cached) " >&6
14191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14198 static struct timespec x; x.tv_sec = x.tv_nsec;
14203 if ac_fn_c_try_compile
"$LINENO"; then :
14204 gl_cv_sys_struct_timespec_in_time_h
=yes
14206 gl_cv_sys_struct_timespec_in_time_h
=no
14208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14211 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14213 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14214 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14215 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14216 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
14217 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14218 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14221 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14222 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14223 $as_echo_n "(cached) " >&6
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <sys/time.h>
14232 static struct timespec x; x.tv_sec = x.tv_nsec;
14237 if ac_fn_c_try_compile
"$LINENO"; then :
14238 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14240 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14245 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14246 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14247 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14250 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14251 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14252 $as_echo_n "(cached) " >&6
14254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <pthread.h>
14261 static struct timespec x; x.tv_sec = x.tv_nsec;
14266 if ac_fn_c_try_compile
"$LINENO"; then :
14267 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14269 gl_cv_sys_struct_timespec_in_pthread_h
=no
14271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14274 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14275 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14276 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14279 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
14280 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
14281 $as_echo_n "(cached) " >&6
14283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <unistd.h>
14290 static struct timespec x; x.tv_sec = x.tv_nsec;
14295 if ac_fn_c_try_compile
"$LINENO"; then :
14296 gl_cv_sys_struct_timespec_in_unistd_h
=yes
14298 gl_cv_sys_struct_timespec_in_unistd_h
=no
14300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14303 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14304 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14305 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
14326 if test $gl_cv_have_include_next = yes; then
14327 gl_cv_next_time_h
='<'time.h
'>'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14330 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14331 if ${gl_cv_next_time_h+:} false
; then :
14332 $as_echo_n "(cached) " >&6
14337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14342 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14343 *) gl_absname_cpp
="$ac_cpp" ;;
14348 gl_dirsep_regex
='[/\\]'
14351 gl_dirsep_regex
='\/'
14354 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14355 gl_header_literal_regex
=`echo 'time.h' \
14356 | sed -e "$gl_make_literal_regex_sed"`
14357 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14364 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14365 sed -n "$gl_absolute_header_sed"`
14367 gl_header
=$gl_cv_absolute_time_h
14368 gl_cv_next_time_h
='"'$gl_header'"'
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14373 $as_echo "$gl_cv_next_time_h" >&6; }
14375 NEXT_TIME_H
=$gl_cv_next_time_h
14377 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14379 gl_next_as_first_directive
='<'time.h
'>'
14381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14382 gl_next_as_first_directive
=$gl_cv_next_time_h
14384 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14397 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
14398 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
14404 cat >>confdefs.h
<<_ACEOF
14405 #define HAVE_DECL_UNSETENV $ac_have_decl
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
14411 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
14412 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
14413 $as_echo_n "(cached) " >&6
14415 gl_cv_header_wchar_h_correct_inline
=yes
14416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14419 #define wcstod renamed_wcstod
14420 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14422 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14423 included before <wchar.h>. */
14424 #include <stddef.h>
14428 extern int zero (void);
14429 int main () { return zero(); }
14432 save_ac_compile
="$ac_compile"
14433 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
14434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14435 (eval $ac_compile) 2>&5
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; then
14439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14442 #define wcstod renamed_wcstod
14443 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14445 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14446 included before <wchar.h>. */
14447 #include <stddef.h>
14451 int zero (void) { return 0; }
14454 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
14455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14456 (eval $ac_compile) 2>&5
14458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14459 test $ac_status = 0; }; then
14460 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
14463 gl_cv_header_wchar_h_correct_inline
=no
14467 ac_compile
="$save_ac_compile"
14468 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
14472 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
14473 if test $gl_cv_header_wchar_h_correct_inline = no
; then
14474 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
14475 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
14476 C99 mode. You have four options:
14477 - Add the flag -fgnu89-inline to CC and reconfigure, or
14478 - Fix your include files, using parts of
14479 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
14480 - Use a gcc version older than 4.3, or
14481 - Don't use the flags -std=c99 or -std=gnu99.
14482 Configuration aborted." "$LINENO" 5
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14487 $as_echo_n "checking for wint_t... " >&6; }
14488 if ${gt_cv_c_wint_t+:} false
; then :
14489 $as_echo_n "(cached) " >&6
14491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14494 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14496 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
14497 before <wchar.h>. */
14498 #include <stddef.h>
14502 wint_t foo = (wchar_t)'\0';
14511 if ac_fn_c_try_compile
"$LINENO"; then :
14516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14519 $as_echo "$gt_cv_c_wint_t" >&6; }
14520 if test $gt_cv_c_wint_t = yes; then
14522 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14531 GNULIB_TOWCTRANS
=0;
14535 REPLACE_ISWBLANK
=0;
14544 GL_COND_LIBTOOL_TRUE
=
14545 GL_COND_LIBTOOL_FALSE
='#'
14547 GL_COND_LIBTOOL_TRUE
='#'
14548 GL_COND_LIBTOOL_FALSE
=
14551 gl_cond_libtool
=false
14554 gl_m4_base
='import/m4'
14564 gl_source_base
='import'
14567 if test $ac_cv_func_alloca_works = no
; then
14571 # Define an additional variable used in the Makefile substitution.
14572 if test $ac_cv_working_alloca_h = yes; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
14574 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14575 if ${gl_cv_rpl_alloca+:} false
; then :
14576 $as_echo_n "(cached) " >&6
14579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14582 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14588 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
14589 gl_cv_rpl_alloca
=yes
14591 gl_cv_rpl_alloca
=no
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
14598 $as_echo "$gl_cv_rpl_alloca" >&6; }
14599 if test $gl_cv_rpl_alloca = yes; then
14601 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14611 if test -n "$ALLOCA_H"; then
14612 GL_GENERATE_ALLOCA_H_TRUE
=
14613 GL_GENERATE_ALLOCA_H_FALSE
='#'
14615 GL_GENERATE_ALLOCA_H_TRUE
='#'
14616 GL_GENERATE_ALLOCA_H_FALSE
=
14630 if test $ac_cv_header_arpa_inet_h = yes; then
14651 if test $gl_cv_have_include_next = yes; then
14652 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
14655 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
14656 if ${gl_cv_next_arpa_inet_h+:} false
; then :
14657 $as_echo_n "(cached) " >&6
14660 if test $ac_cv_header_arpa_inet_h = yes; then
14665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 #include <arpa/inet.h>
14670 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14671 *) gl_absname_cpp
="$ac_cpp" ;;
14676 gl_dirsep_regex
='[/\\]'
14679 gl_dirsep_regex
='\/'
14682 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14683 gl_header_literal_regex
=`echo 'arpa/inet.h' \
14684 | sed -e "$gl_make_literal_regex_sed"`
14685 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14692 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14693 sed -n "$gl_absolute_header_sed"`
14695 gl_header
=$gl_cv_absolute_arpa_inet_h
14696 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
14698 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
14704 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
14706 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
14708 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14710 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
14712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14713 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
14715 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
14724 for gl_func
in inet_ntop inet_pton
; do
14725 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14727 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14728 if eval \
${$as_gl_Symbol+:} false
; then :
14729 $as_echo_n "(cached) " >&6
14731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14734 /* On some systems, this header is not self-consistent. */
14735 #if !(defined __GLIBC__ || defined __UCLIBC__)
14736 # include <sys/socket.h>
14739 # include <netdb.h>
14741 #include <arpa/inet.h>
14752 if ac_fn_c_try_compile
"$LINENO"; then :
14753 eval "$as_gl_Symbol=yes"
14755 eval "$as_gl_Symbol=no"
14757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14759 eval ac_res
=\$
$as_gl_Symbol
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14761 $as_echo "$ac_res" >&6; }
14762 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
14763 cat >>confdefs.h
<<_ACEOF
14764 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14767 eval ac_cv_have_decl_
$gl_func=yes
14781 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
14786 if test $ac_cv_func_canonicalize_file_name = no
; then
14787 HAVE_CANONICALIZE_FILE_NAME
=0
14788 if test $ac_cv_func_realpath = no
; then
14791 case "$gl_cv_func_realpath_works" in
14793 *) REPLACE_REALPATH
=1 ;;
14797 case "$gl_cv_func_realpath_works" in
14801 REPLACE_CANONICALIZE_FILE_NAME
=1
14807 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14816 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14821 cat >>confdefs.h
<<_ACEOF
14822 #define GNULIB_CANONICALIZE_LGPL 1
14831 GNULIB_CANONICALIZE_FILE_NAME
=1
14837 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14852 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14867 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14874 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14875 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
14876 $as_echo_n "(cached) " >&6
14878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14881 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14883 # include <unistd.h>
14885 #include <limits.h>
14886 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14887 # include <sys/param.h>
14889 #if !defined PATH_MAX && defined MAXPATHLEN
14890 # define PATH_MAX MAXPATHLEN
14894 # define PATH_MAX 1024
14896 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14898 # define PATH_MAX 260
14902 have_arbitrary_file_name_length_limit
14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14906 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
14907 gl_cv_have_arbitrary_file_name_length_limit
=yes
14909 gl_cv_have_arbitrary_file_name_length_limit
=no
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14915 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14917 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14926 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
14932 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14938 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14952 if test $ac_cv_header_sys_socket_h != yes; then
14953 for ac_header
in winsock2.h
14955 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14956 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
14957 cat >>confdefs.h
<<_ACEOF
14958 #define HAVE_WINSOCK2_H 1
14966 if test "$ac_cv_header_winsock2_h" = yes; then
14968 UNISTD_H_HAVE_WINSOCK2_H
=1
14969 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
14975 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14980 if test $REPLACE_CLOSE = 0; then
14990 if test $ac_cv_func_fchdir = no
; then
14994 if test $HAVE_FCHDIR = 0; then
15000 if test $REPLACE_CLOSE = 1; then
15009 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
15023 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
15030 for ac_func
in closedir
15032 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
15033 if test "x$ac_cv_func_closedir" = xyes
; then :
15034 cat >>confdefs.h
<<_ACEOF
15035 #define HAVE_CLOSEDIR 1
15041 if test $ac_cv_func_closedir = no
; then
15054 if test $ac_cv_func_fchdir = no
; then
15058 if test $HAVE_FCHDIR = 0; then
15059 if test $HAVE_CLOSEDIR = 1; then
15064 case $host_os,$HAVE_CLOSEDIR in
15066 REPLACE_CLOSEDIR
=1;;
15069 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
15078 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
15092 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
15097 if test "x$datarootdir" = x
; then
15098 datarootdir
='${datadir}'
15101 if test "x$docdir" = x
; then
15102 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
15105 if test "x$htmldir" = x
; then
15106 htmldir
='${docdir}'
15109 if test "x$dvidir" = x
; then
15113 if test "x$pdfdir" = x
; then
15117 if test "x$psdir" = x
; then
15121 if test "x$lispdir" = x
; then
15122 lispdir
='${datarootdir}/emacs/site-lisp'
15125 if test "x$localedir" = x
; then
15126 localedir
='${datarootdir}/locale'
15129 if test "x$runstatedir" = x
; then
15130 runstatedir
='${localstatedir}/run'
15134 pkglibexecdir
='${libexecdir}/${PACKAGE}'
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
15138 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
15139 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
15140 $as_echo_n "(cached) " >&6
15142 if test "$cross_compiling" = yes; then :
15144 # Guess yes on glibc systems with Linux kernel.
15145 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
15146 # If we don't know, assume the worst.
15147 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
15151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #include <sys/types.h>
15154 #include <sys/stat.h>
15155 #include <dirent.h>
15160 DIR *dp = opendir (".");
15168 if (lstat (e->d_name, &st) != 0)
15170 if (e->d_ino != st.st_ino)
15179 if ac_fn_c_try_run
"$LINENO"; then :
15180 gl_cv_struct_dirent_d_ino
=yes
15182 gl_cv_struct_dirent_d_ino
=no
15184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15185 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
15190 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
15191 case "$gl_cv_struct_dirent_d_ino" in
15194 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
15201 $as_echo_n "checking for d_type member in directory struct... " >&6; }
15202 if ${gl_cv_struct_dirent_d_type+:} false
; then :
15203 $as_echo_n "(cached) " >&6
15205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15208 #include <sys/types.h>
15209 #include <dirent.h>
15214 struct dirent dp; dp.d_type = 0;
15219 if ac_fn_c_try_link
"$LINENO"; then :
15220 gl_cv_struct_dirent_d_type
=yes
15222 gl_cv_struct_dirent_d_type
=no
15224 rm -f core conftest.err conftest.
$ac_objext \
15225 conftest
$ac_exeext conftest.
$ac_ext
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
15230 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
15231 if test $gl_cv_struct_dirent_d_type = yes; then
15233 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
15256 if test $gl_cv_have_include_next = yes; then
15257 gl_cv_next_dirent_h
='<'dirent.h
'>'
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
15260 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
15261 if ${gl_cv_next_dirent_h+:} false
; then :
15262 $as_echo_n "(cached) " >&6
15265 if test $ac_cv_header_dirent_h = yes; then
15270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272 #include <dirent.h>
15275 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15276 *) gl_absname_cpp
="$ac_cpp" ;;
15281 gl_dirsep_regex
='[/\\]'
15284 gl_dirsep_regex
='\/'
15287 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15288 gl_header_literal_regex
=`echo 'dirent.h' \
15289 | sed -e "$gl_make_literal_regex_sed"`
15290 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15297 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15298 sed -n "$gl_absolute_header_sed"`
15300 gl_header
=$gl_cv_absolute_dirent_h
15301 gl_cv_next_dirent_h
='"'$gl_header'"'
15303 gl_cv_next_dirent_h
='<'dirent.h
'>'
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
15309 $as_echo "$gl_cv_next_dirent_h" >&6; }
15311 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
15313 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15315 gl_next_as_first_directive
='<'dirent.h
'>'
15317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15318 gl_next_as_first_directive
=$gl_cv_next_dirent_h
15320 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
15325 if test $ac_cv_header_dirent_h = yes; then
15333 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
15334 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15336 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15337 if eval \
${$as_gl_Symbol+:} false
; then :
15338 $as_echo_n "(cached) " >&6
15340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 #include <dirent.h>
15353 if ac_fn_c_try_compile
"$LINENO"; then :
15354 eval "$as_gl_Symbol=yes"
15356 eval "$as_gl_Symbol=no"
15358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15360 eval ac_res
=\$
$as_gl_Symbol
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15362 $as_echo "$ac_res" >&6; }
15363 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15364 cat >>confdefs.h
<<_ACEOF
15365 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15368 eval ac_cv_have_decl_
$gl_func=yes
15378 for ac_func
in dirfd
15380 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
15381 if test "x$ac_cv_func_dirfd" = xyes
; then :
15382 cat >>confdefs.h
<<_ACEOF
15383 #define HAVE_DIRFD 1
15389 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
15390 #include <dirent.h>
15392 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
15398 cat >>confdefs.h
<<_ACEOF
15399 #define HAVE_DECL_DIRFD $ac_have_decl
15402 if test $ac_cv_have_decl_dirfd = no
; then
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
15407 $as_echo_n "checking whether dirfd is a macro... " >&6; }
15408 if ${gl_cv_func_dirfd_macro+:} false
; then :
15409 $as_echo_n "(cached) " >&6
15411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15414 #include <sys/types.h>
15415 #include <dirent.h>
15417 dirent_header_defines_dirfd
15420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15421 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
15422 gl_cv_func_dirfd_macro
=yes
15424 gl_cv_func_dirfd_macro
=no
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
15430 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
15432 # Use the replacement if we have no function or macro with that name,
15433 # or if OS/2 kLIBC whose dirfd() does not work.
15434 # Replace only if the system declares dirfd already.
15435 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
15436 no
,no
,*,yes |
*,*,os2
*,yes)
15439 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
15443 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
15444 ||
test $REPLACE_DIRFD = 1; then
15453 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
15457 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
15458 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
15459 $as_echo_n "(cached) " >&6
15462 dirfd_save_CFLAGS
=$CFLAGS
15463 for ac_expr
in d_fd dd_fd
; do
15465 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
15466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15469 #include <sys/types.h>
15470 #include <dirent.h>
15474 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
15479 if ac_fn_c_try_compile
"$LINENO"; then :
15483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15484 CFLAGS
=$dirfd_save_CFLAGS
15485 test "$dir_fd_found" = yes && break
15487 test "$dir_fd_found" = yes || ac_expr
=no_such_member
15489 gl_cv_sys_dir_fd_member_name
=$ac_expr
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
15494 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
15495 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
15497 cat >>confdefs.h
<<_ACEOF
15498 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
15516 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15527 $as_echo_n "checking whether // is distinct from /... " >&6; }
15528 if ${gl_cv_double_slash_root+:} false
; then :
15529 $as_echo_n "(cached) " >&6
15531 if test x
"$cross_compiling" = xyes
; then
15532 # When cross-compiling, there is no way to tell whether // is special
15533 # short of a list of hosts. However, the only known hosts to date
15534 # that have a distinct // are Apollo DomainOS (too old to port to),
15535 # Cygwin, and z/OS. If anyone knows of another system for which // has
15536 # special semantics and is distinct from /, please report it to
15537 # <bug-gnulib@gnu.org>.
15539 *-cygwin | i370-ibm-openedition
)
15540 gl_cv_double_slash_root
=yes ;;
15542 # Be optimistic and assume that / and // are the same when we
15544 gl_cv_double_slash_root
='unknown, assuming no' ;;
15547 set x
`ls -di / // 2>/dev/null`
15548 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
15549 gl_cv_double_slash_root
=no
15551 gl_cv_double_slash_root
=yes
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15556 $as_echo "$gl_cv_double_slash_root" >&6; }
15557 if test "$gl_cv_double_slash_root" = yes; then
15559 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15566 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15579 if test $ac_cv_func_fchdir = no
; then
15583 if test $HAVE_FCHDIR = 0; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
15588 $as_echo_n "checking whether dup works... " >&6; }
15589 if ${gl_cv_func_dup_works+:} false
; then :
15590 $as_echo_n "(cached) " >&6
15592 if test "$cross_compiling" = yes; then :
15593 gl_cv_func_dup_works
='guessing yes'
15595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597 #include <unistd.h>
15603 /* On OS/2 kLIBC, dup does not work on a directory fd. */
15604 int fd = open (".", O_RDONLY);
15605 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
15612 if ac_fn_c_try_run
"$LINENO"; then :
15613 gl_cv_func_dup_works
=yes
15615 gl_cv_func_dup_works
=no
15617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
15624 $as_echo "$gl_cv_func_dup_works" >&6; }
15625 case "$gl_cv_func_dup_works" in
15632 if test $REPLACE_DUP = 1; then
15641 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
15656 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
15665 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
15668 if test $HAVE_DUP2 = 1; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
15670 $as_echo_n "checking whether dup2 works... " >&6; }
15671 if ${gl_cv_func_dup2_works+:} false
; then :
15672 $as_echo_n "(cached) " >&6
15674 if test "$cross_compiling" = yes; then :
15676 mingw
*) # on this platform, dup2 always returns 0 for success
15677 gl_cv_func_dup2_works
="guessing no" ;;
15678 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
15679 gl_cv_func_dup2_works
="guessing no" ;;
15681 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
15683 gl_cv_func_dup2_works
="guessing no" ;;
15684 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
15685 gl_cv_func_dup2_works
="guessing no" ;;
15686 *-android*) # implemented using dup3(), which fails if oldfd == newfd
15687 gl_cv_func_dup2_works
="guessing no" ;;
15688 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
15689 gl_cv_func_dup2_works
="guessing no" ;;
15690 *) gl_cv_func_dup2_works
="guessing yes" ;;
15693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15698 #include <limits.h>
15699 #include <sys/resource.h>
15700 #include <unistd.h>
15701 #ifndef RLIM_SAVED_CUR
15702 # define RLIM_SAVED_CUR RLIM_INFINITY
15704 #ifndef RLIM_SAVED_MAX
15705 # define RLIM_SAVED_MAX RLIM_INFINITY
15712 int bad_fd = INT_MAX;
15713 struct rlimit rlim;
15714 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15715 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15716 && rlim.rlim_cur != RLIM_INFINITY
15717 && rlim.rlim_cur != RLIM_SAVED_MAX
15718 && rlim.rlim_cur != RLIM_SAVED_CUR)
15719 bad_fd = rlim.rlim_cur;
15721 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
15724 if (dup2 (1, 1) != 1)
15727 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
15731 if (dup2 (0, 0) != -1)
15733 /* Many gnulib modules require POSIX conformance of EBADF. */
15734 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
15736 /* Flush out some cygwin core dumps. */
15737 if (dup2 (2, -1) != -1 || errno != EBADF)
15741 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
15743 int fd = open (".", O_RDONLY);
15746 else if (dup2 (fd, fd + 1) == -1)
15757 if ac_fn_c_try_run
"$LINENO"; then :
15758 gl_cv_func_dup2_works
=yes
15760 gl_cv_func_dup2_works
=no
15762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
15769 $as_echo "$gl_cv_func_dup2_works" >&6; }
15770 case "$gl_cv_func_dup2_works" in
15774 for ac_func
in setdtablesize
15776 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15777 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
15778 cat >>confdefs.h
<<_ACEOF
15779 #define HAVE_SETDTABLESIZE 1
15798 if test $ac_cv_func_fchdir = no
; then
15802 if test $HAVE_FCHDIR = 0; then
15803 if test $HAVE_DUP2 = 1; then
15809 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
15818 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
15833 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15849 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15856 $as_echo_n "checking for error_at_line... " >&6; }
15857 if ${ac_cv_lib_error_at_line+:} false
; then :
15858 $as_echo_n "(cached) " >&6
15860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15866 error_at_line (0, 0, "", 0, "an error occurred");
15871 if ac_fn_c_try_link
"$LINENO"; then :
15872 ac_cv_lib_error_at_line
=yes
15874 ac_cv_lib_error_at_line
=no
15876 rm -f core conftest.err conftest.
$ac_objext \
15877 conftest
$ac_exeext conftest.
$ac_ext
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15880 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15882 if test $ac_cv_lib_error_at_line = no
; then
15891 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
15911 if test $ac_cv_have_decl_fchdir = no
; then
15916 if test $HAVE_FCHDIR = 0; then
15925 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
15929 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15932 $as_echo_n "checking whether open can visit directories... " >&6; }
15933 if ${gl_cv_func_open_directory_works+:} false
; then :
15934 $as_echo_n "(cached) " >&6
15936 if test "$cross_compiling" = yes; then :
15938 # Guess yes on glibc systems.
15939 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
15940 # If we don't know, assume the worst.
15941 *) gl_cv_func_open_directory_works
="guessing no" ;;
15945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15952 return open(".", O_RDONLY) < 0;
15957 if ac_fn_c_try_run
"$LINENO"; then :
15958 gl_cv_func_open_directory_works
=yes
15960 gl_cv_func_open_directory_works
=no
15962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15968 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15969 case "$gl_cv_func_open_directory_works" in
15973 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15990 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
16005 if test $ac_cv_func_fcntl = no
; then
16015 if test $ac_cv_func_fcntl = no
; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16023 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16024 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
16025 $as_echo_n "(cached) " >&6
16027 if test "$cross_compiling" = yes; then :
16029 aix
* | cygwin
* | haiku
*)
16030 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
16031 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
16034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16038 #include <limits.h>
16039 #include <sys/resource.h>
16040 #include <unistd.h>
16041 #ifndef RLIM_SAVED_CUR
16042 # define RLIM_SAVED_CUR RLIM_INFINITY
16044 #ifndef RLIM_SAVED_MAX
16045 # define RLIM_SAVED_MAX RLIM_INFINITY
16052 int bad_fd = INT_MAX;
16053 struct rlimit rlim;
16054 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16055 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16056 && rlim.rlim_cur != RLIM_INFINITY
16057 && rlim.rlim_cur != RLIM_SAVED_MAX
16058 && rlim.rlim_cur != RLIM_SAVED_CUR)
16059 bad_fd = rlim.rlim_cur;
16060 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16061 if (errno != EINVAL) result |= 2;
16062 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16063 if (errno != EINVAL) result |= 8;
16064 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16067 fd = open (".", O_RDONLY);
16070 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16080 if ac_fn_c_try_run
"$LINENO"; then :
16081 gl_cv_func_fcntl_f_dupfd_works
=yes
16083 gl_cv_func_fcntl_f_dupfd_works
=no
16085 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16086 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16091 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16092 case $gl_cv_func_fcntl_f_dupfd_works in
16103 if test $ac_cv_func_fcntl = no
; then
16110 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16115 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16116 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
16117 $as_echo_n "(cached) " >&6
16119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16123 #ifndef F_DUPFD_CLOEXEC
16135 if ac_fn_c_try_compile
"$LINENO"; then :
16136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16140 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16141 it to support the semantics on older kernels that failed with EINVAL. */
16153 if ac_fn_c_try_compile
"$LINENO"; then :
16154 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
16156 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
16158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16160 gl_cv_func_fcntl_f_dupfd_cloexec
=no
16162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16165 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16166 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
16176 if test $ac_cv_func_fcntl = no
; then
16194 if test $ac_cv_func_fchdir = no
; then
16198 if test $HAVE_FCHDIR = 0; then
16208 if test $ac_cv_func_fcntl = no
; then
16217 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
16226 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
16240 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16255 if test $gl_cv_have_include_next = yes; then
16256 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16259 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16260 if ${gl_cv_next_fcntl_h+:} false
; then :
16261 $as_echo_n "(cached) " >&6
16266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16271 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16272 *) gl_absname_cpp
="$ac_cpp" ;;
16277 gl_dirsep_regex
='[/\\]'
16280 gl_dirsep_regex
='\/'
16283 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16284 gl_header_literal_regex
=`echo 'fcntl.h' \
16285 | sed -e "$gl_make_literal_regex_sed"`
16286 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16293 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16294 sed -n "$gl_absolute_header_sed"`
16296 gl_header
=$gl_cv_absolute_fcntl_h
16297 gl_cv_next_fcntl_h
='"'$gl_header'"'
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16302 $as_echo "$gl_cv_next_fcntl_h" >&6; }
16304 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
16306 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16308 gl_next_as_first_directive
='<'fcntl.h
'>'
16310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16311 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
16313 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
16324 for gl_func
in fcntl openat
; do
16325 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16327 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16328 if eval \
${$as_gl_Symbol+:} false
; then :
16329 $as_echo_n "(cached) " >&6
16331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16344 if ac_fn_c_try_compile
"$LINENO"; then :
16345 eval "$as_gl_Symbol=yes"
16347 eval "$as_gl_Symbol=no"
16349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16351 eval ac_res
=\$
$as_gl_Symbol
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16353 $as_echo "$ac_res" >&6; }
16354 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16355 cat >>confdefs.h
<<_ACEOF
16356 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16359 eval ac_cv_have_decl_
$gl_func=yes
16369 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
16370 #include <dirent.h>
16373 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
16379 cat >>confdefs.h
<<_ACEOF
16380 #define HAVE_DECL_FDOPENDIR $ac_have_decl
16382 if test $ac_have_decl = 1; then :
16385 HAVE_DECL_FDOPENDIR
=0
16395 if test $ac_cv_func_fdopendir = no
; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
16399 $as_echo_n "checking whether fdopendir works... " >&6; }
16400 if ${gl_cv_func_fdopendir_works+:} false
; then :
16401 $as_echo_n "(cached) " >&6
16403 if test "$cross_compiling" = yes; then :
16405 # Guess yes on glibc systems.
16406 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
16407 # If we don't know, assume the worst.
16408 *) gl_cv_func_fdopendir_works
="guessing no" ;;
16412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16415 #include <dirent.h>
16417 #include <unistd.h>
16418 #if !HAVE_DECL_FDOPENDIR
16420 # ifdef __cplusplus
16423 DIR *fdopendir (int);
16430 int fd = open ("conftest.c", O_RDONLY);
16431 if (fd < 0) result |= 1;
16432 if (fdopendir (fd)) result |= 2;
16433 if (close (fd)) result |= 4;
16439 if ac_fn_c_try_run
"$LINENO"; then :
16440 gl_cv_func_fdopendir_works
=yes
16442 gl_cv_func_fdopendir_works
=no
16444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16445 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
16450 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
16451 case "$gl_cv_func_fdopendir_works" in
16454 REPLACE_FDOPENDIR
=1
16459 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
16468 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
16482 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
16488 cat >>confdefs.h
<<_ACEOF
16489 #define GNULIB_FDOPENDIR 1
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
16504 $as_echo_n "checking for flexible array member... " >&6; }
16505 if ${ac_cv_c_flexmember+:} false
; then :
16506 $as_echo_n "(cached) " >&6
16508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16510 #include <stdlib.h>
16512 #include <stddef.h>
16513 struct s { int n; double d[]; };
16517 int m = getchar ();
16518 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
16519 nbytes += sizeof (struct s) - 1;
16520 nbytes -= nbytes % sizeof (struct s);
16521 struct s *p = malloc (nbytes);
16523 return p->d != (double *) NULL;
16528 if ac_fn_c_try_compile
"$LINENO"; then :
16529 ac_cv_c_flexmember
=yes
16531 ac_cv_c_flexmember
=no
16533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16536 $as_echo "$ac_cv_c_flexmember" >&6; }
16537 if test $ac_cv_c_flexmember = yes; then
16539 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16542 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16550 REPLACE_FLOAT_LDBL
=0
16552 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
16556 case "$host_cpu" in
16561 # On x86_64 systems, the C compiler may still be generating
16563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16570 $EGREP "yes" >/dev
/null
2>&1; then :
16581 case "$host_cpu" in
16589 aix
* | freebsd
* | linux
*)
16590 if test -n "$FLOAT_H"; then
16591 REPLACE_FLOAT_LDBL
=1
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16598 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16599 if ${gl_cv_func_itold_works+:} false
; then :
16600 $as_echo_n "(cached) " >&6
16603 if test "$cross_compiling" = yes; then :
16606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608 #if defined __LP64__ || defined __arch64__
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613 $EGREP "yes" >/dev
/null
2>&1; then :
16614 gl_cv_func_itold_works
="guessing no"
16616 gl_cv_func_itold_works
="guessing yes"
16621 *) gl_cv_func_itold_works
="guessing yes" ;;
16625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16629 volatile long double ld;
16638 if ac_fn_c_try_run
"$LINENO"; then :
16639 gl_cv_func_itold_works
=yes
16641 gl_cv_func_itold_works
=no
16643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16650 $as_echo "$gl_cv_func_itold_works" >&6; }
16651 case "$gl_cv_func_itold_works" in
16658 if test -n "$FLOAT_H"; then
16667 if test $gl_cv_have_include_next = yes; then
16668 gl_cv_next_float_h
='<'float.h
'>'
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16671 $as_echo_n "checking absolute name of <float.h>... " >&6; }
16672 if ${gl_cv_next_float_h+:} false
; then :
16673 $as_echo_n "(cached) " >&6
16678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16683 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16684 *) gl_absname_cpp
="$ac_cpp" ;;
16689 gl_dirsep_regex
='[/\\]'
16692 gl_dirsep_regex
='\/'
16695 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16696 gl_header_literal_regex
=`echo 'float.h' \
16697 | sed -e "$gl_make_literal_regex_sed"`
16698 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16705 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16706 sed -n "$gl_absolute_header_sed"`
16708 gl_header
=$gl_cv_absolute_float_h
16709 gl_cv_next_float_h
='"'$gl_header'"'
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16714 $as_echo "$gl_cv_next_float_h" >&6; }
16716 NEXT_FLOAT_H
=$gl_cv_next_float_h
16718 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16720 gl_next_as_first_directive
='<'float.h
'>'
16722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16723 gl_next_as_first_directive
=$gl_cv_next_float_h
16725 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
16732 if test -n "$FLOAT_H"; then
16733 GL_GENERATE_FLOAT_H_TRUE
=
16734 GL_GENERATE_FLOAT_H_FALSE
='#'
16736 GL_GENERATE_FLOAT_H_TRUE
='#'
16737 GL_GENERATE_FLOAT_H_FALSE
=
16742 if test $REPLACE_FLOAT_LDBL = 1; then
16751 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
16754 if test $REPLACE_ITOLD = 1; then
16763 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
16772 gl_fnmatch_required_lowercase
=`
16773 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
16775 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16777 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16778 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
16779 $as_echo_n "(cached) " >&6
16781 if test $gl_fnmatch_required = GNU
; then
16782 gl_fnmatch_gnu_start
=
16783 gl_fnmatch_gnu_end
=
16785 gl_fnmatch_gnu_start
='#if 0'
16786 gl_fnmatch_gnu_end
='#endif'
16788 if test "$cross_compiling" = yes; then :
16789 eval "$gl_fnmatch_cache_var=\"guessing no\""
16791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 #include <fnmatch.h>
16795 y (char const *pattern, char const *string, int flags)
16797 return fnmatch (pattern, string, flags) == 0;
16800 n (char const *pattern, char const *string, int flags)
16802 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16808 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16809 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16810 static char const A_1[] = { 'A' - 1, 0 };
16811 static char const A01[] = { 'A' + 1, 0 };
16812 static char const a_1[] = { 'a' - 1, 0 };
16813 static char const a01[] = { 'a' + 1, 0 };
16814 static char const bs_1[] = { '\\\\' - 1, 0 };
16815 static char const bs01[] = { '\\\\' + 1, 0 };
16817 if (!n ("a*", "", 0))
16819 if (!y ("a*", "abc", 0))
16821 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16823 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16825 if (!y ("a\\\\bc", "abc", 0))
16827 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16829 if (!y ("*x", ".x", 0))
16831 if (!n ("*x", ".x", FNM_PERIOD))
16833 if (!y (Apat, "\\\\", 0))
16835 if (!y (Apat, "A", 0))
16837 if (!y (apat, "\\\\", 0))
16839 if (!y (apat, "a", 0))
16841 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16843 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16845 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16847 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16849 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16851 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16853 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16855 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16857 $gl_fnmatch_gnu_start
16858 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16860 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16862 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16864 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16866 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16868 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16870 $gl_fnmatch_gnu_end
16877 if ac_fn_c_try_run
"$LINENO"; then :
16878 eval "$gl_fnmatch_cache_var=yes"
16880 eval "$gl_fnmatch_cache_var=no"
16882 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16883 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16888 eval ac_res
=\$
$gl_fnmatch_cache_var
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16890 $as_echo "$ac_res" >&6; }
16891 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16892 if test "$gl_fnmatch_result" = yes; then
16893 rm -f "$gl_source_base/fnmatch.h"
16895 FNMATCH_H
=fnmatch.h
16898 if test -n "$FNMATCH_H"; then
16899 GL_GENERATE_FNMATCH_H_TRUE
=
16900 GL_GENERATE_FNMATCH_H_FALSE
='#'
16902 GL_GENERATE_FNMATCH_H_TRUE
='#'
16903 GL_GENERATE_FNMATCH_H_FALSE
=
16907 if test -n "$FNMATCH_H"; then
16916 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16920 cat >>confdefs.h
<<_ACEOF
16921 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16925 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16927 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16933 cat >>confdefs.h
<<_ACEOF
16934 #define HAVE_DECL_ISBLANK $ac_have_decl
16979 if test -n "$FNMATCH_H"; then
16988 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16992 cat >>confdefs.h
<<_ACEOF
16993 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16997 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16999 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17005 cat >>confdefs.h
<<_ACEOF
17006 #define HAVE_DECL_ISBLANK $ac_have_decl
17050 if test $gl_cv_func_frexp_no_libm = no
; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
17052 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
17053 if ${gl_cv_func_frexp_in_libm+:} false
; then :
17054 $as_echo_n "(cached) " >&6
17059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17066 int e; return frexp (x, &e) > 0;
17071 if ac_fn_c_try_link
"$LINENO"; then :
17072 gl_cv_func_frexp_in_libm
=yes
17074 gl_cv_func_frexp_in_libm
=no
17076 rm -f core conftest.err conftest.
$ac_objext \
17077 conftest
$ac_exeext conftest.
$ac_ext
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
17082 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
17083 if test $gl_cv_func_frexp_in_libm = yes; then
17087 if test $gl_cv_func_frexp_no_libm = yes \
17088 ||
test $gl_cv_func_frexp_in_libm = yes; then
17090 LIBS
="$LIBS $FREXP_LIBM"
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
17101 $as_echo_n "checking whether frexp works... " >&6; }
17102 if ${gl_cv_func_frexp_works+:} false
; then :
17103 $as_echo_n "(cached) " >&6
17106 if test "$cross_compiling" = yes; then :
17108 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
17109 *) gl_cv_func_frexp_works
="guessing yes";;
17113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17118 #include <string.h>
17119 #if HAVE_DECL_ALARM
17120 # include <signal.h>
17121 # include <unistd.h>
17123 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
17124 ICC 10.0 has a bug when optimizing the expression -zero.
17125 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
17126 to PowerPC on Mac OS X 10.5. */
17127 #if defined __hpux || defined __sgi || defined __ICC
17129 compute_minus_zero (void)
17131 return -DBL_MIN * DBL_MIN;
17133 # define minus_zero compute_minus_zero ()
17135 double minus_zero = -0.0;
17143 #if HAVE_DECL_ALARM
17144 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
17145 number. Let the test fail in this case. */
17146 signal (SIGALRM, SIG_DFL);
17149 /* Test on denormalized numbers. */
17150 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
17155 double y = frexp (x, &exp);
17156 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
17157 On NetBSD: y = 0.75. Correct: y = 0.5. */
17161 /* Test on infinite numbers. */
17165 double y = frexp (x, &exp);
17169 /* Test on negative zero. */
17173 double y = frexp (x, &exp);
17174 if (memcmp (&y, &x, sizeof x))
17180 if ac_fn_c_try_run
"$LINENO"; then :
17181 gl_cv_func_frexp_works
=yes
17183 gl_cv_func_frexp_works
=no
17185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
17192 $as_echo "$gl_cv_func_frexp_works" >&6; }
17195 case "$gl_cv_func_frexp_works" in
17196 *yes) gl_func_frexp
=yes ;;
17197 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
17202 if test $gl_func_frexp = yes; then
17204 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
17209 if test $gl_func_frexp != yes; then
17218 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
17232 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
17242 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
17244 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
17252 if test $HAVE_DECL_FREXPL = 1; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
17255 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
17256 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
17257 $as_echo_n "(cached) " >&6
17260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17261 /* end confdefs.h. */
17267 int e; return frexpl (x, &e) > 0;
17272 if ac_fn_c_try_link
"$LINENO"; then :
17273 gl_cv_func_frexpl_no_libm
=yes
17275 gl_cv_func_frexpl_no_libm
=no
17277 rm -f core conftest.err conftest.
$ac_objext \
17278 conftest
$ac_exeext conftest.
$ac_ext
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
17282 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
17284 if test $gl_cv_func_frexpl_no_libm = no
; then
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
17286 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
17287 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
17288 $as_echo_n "(cached) " >&6
17293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17300 int e; return frexpl (x, &e) > 0;
17305 if ac_fn_c_try_link
"$LINENO"; then :
17306 gl_cv_func_frexpl_in_libm
=yes
17308 gl_cv_func_frexpl_in_libm
=no
17310 rm -f core conftest.err conftest.
$ac_objext \
17311 conftest
$ac_exeext conftest.
$ac_ext
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
17316 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
17317 if test $gl_cv_func_frexpl_in_libm = yes; then
17321 if test $gl_cv_func_frexpl_no_libm = yes \
17322 ||
test $gl_cv_func_frexpl_in_libm = yes; then
17324 LIBS
="$LIBS $FREXPL_LIBM"
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
17328 $as_echo_n "checking whether frexpl works... " >&6; }
17329 if ${gl_cv_func_frexpl_works+:} false
; then :
17330 $as_echo_n "(cached) " >&6
17333 if test "$cross_compiling" = yes; then :
17336 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
17337 gl_cv_func_frexpl_works
="guessing no";;
17338 *) gl_cv_func_frexpl_works
="guessing yes";;
17342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17347 /* Override the values of <float.h>, like done in float.in.h. */
17348 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
17349 # undef LDBL_MIN_EXP
17350 # define LDBL_MIN_EXP (-16381)
17352 #if defined __i386__ && defined __FreeBSD__
17353 # undef LDBL_MIN_EXP
17354 # define LDBL_MIN_EXP (-16381)
17356 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
17357 # undef LDBL_MIN_EXP
17358 # define LDBL_MIN_EXP DBL_MIN_EXP
17360 #if defined __sgi && (LDBL_MANT_DIG >= 106)
17361 # if defined __GNUC__
17362 # undef LDBL_MIN_EXP
17363 # define LDBL_MIN_EXP DBL_MIN_EXP
17370 long double frexpl (long double, int *);
17374 volatile long double x;
17375 /* Test on finite numbers that fails on AIX 5.1. */
17383 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
17384 function returns an invalid (incorrectly normalized) value: it returns
17385 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
17386 but the correct result is
17387 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
17391 long double y = frexpl (x, &exp);
17392 if (!(exp == 1 && y == 0.505L))
17395 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
17396 LDBL_MAX_EXP = 16384.
17397 In the loop end test, we test x against Infinity, rather than comparing
17398 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
17401 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
17412 /* Test on denormalized numbers. */
17415 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
17420 long double y = frexpl (x, &exp);
17421 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
17422 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
17423 if (exp != LDBL_MIN_EXP - 1)
17427 /* Test on infinite numbers. */
17431 long double y = frexpl (x, &exp);
17438 if ac_fn_c_try_run
"$LINENO"; then :
17439 gl_cv_func_frexpl_works
=yes
17441 gl_cv_func_frexpl_works
=no
17443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17444 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
17450 $as_echo "$gl_cv_func_frexpl_works" >&6; }
17453 case "$gl_cv_func_frexpl_works" in
17454 *yes) gl_func_frexpl
=yes ;;
17455 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
17460 if test $gl_func_frexpl = yes; then
17462 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
17466 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
17467 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
17469 FREXPL_LIBM
="$FREXP_LIBM"
17476 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
17485 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
17499 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
17507 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17512 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17526 if test $ac_cv_func_fchdir = no
; then
17530 if test $HAVE_FCHDIR = 0; then
17531 case "$gl_cv_func_open_directory_works" in
17540 if test $REPLACE_FSTAT = 1; then
17549 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
17564 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17580 if test $ac_cv_func_fstatat = no
; then
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
17584 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
17585 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
17586 $as_echo_n "(cached) " >&6
17588 if test "$cross_compiling" = yes; then :
17590 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
17591 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
17595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17599 #include <sys/stat.h>
17604 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
17608 if ac_fn_c_try_run
"$LINENO"; then :
17609 gl_cv_func_fstatat_zero_flag
=yes
17611 gl_cv_func_fstatat_zero_flag
=no
17613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
17620 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
17622 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
17624 *) REPLACE_FSTATAT
=1
17625 case $gl_cv_func_fstatat_zero_flag in
17628 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
17636 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
17645 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
17659 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
17671 gl_cv_func_getcwd_path_max
=yes
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
17692 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
17693 if ${gl_cv_func_getcwd_path_max+:} false
; then :
17694 $as_echo_n "(cached) " >&6
17696 # Arrange for deletion of the temporary directory this test creates.
17697 ac_clean_files
="$ac_clean_files confdir3"
17698 if test "$cross_compiling" = yes; then :
17700 aix
*) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17701 *) gl_cv_func_getcwd_path_max
=no
;;
17704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17708 #include <stdlib.h>
17710 # include <unistd.h>
17712 # include <direct.h>
17714 #include <string.h>
17715 #include <limits.h>
17716 #include <sys/stat.h>
17717 #include <sys/types.h>
17721 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17723 # include <unistd.h>
17725 #include <limits.h>
17726 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17727 # include <sys/param.h>
17729 #if !defined PATH_MAX && defined MAXPATHLEN
17730 # define PATH_MAX MAXPATHLEN
17734 # define PATH_MAX 1024
17736 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17738 # define PATH_MAX 260
17743 # define AT_FDCWD 0
17745 #ifdef ENAMETOOLONG
17746 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
17748 # define is_ENAMETOOLONG(x) 0
17751 /* Use the getcwd function, not any macro. */
17754 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17758 # define S_IRWXU 0700
17761 /* The length of this name must be 8. */
17762 #define DIR_NAME "confdir3"
17763 #define DIR_NAME_LEN 8
17764 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
17766 /* The length of "../". */
17767 #define DOTDOTSLASH_LEN 3
17769 /* Leftover bytes in the buffer, to work around library or OS bugs. */
17770 #define BUF_SLOP 20
17776 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17777 at least not on a local file system. And if we were to start worrying
17778 about remote file systems, we'd have to enable the wrapper function
17779 all of the time, just to be safe. That's not worth the cost. */
17781 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17782 - DIR_NAME_SIZE - BUF_SLOP) \
17784 /* FIXME: Assuming there's a system for which this is true,
17785 this should be done in a compile test. */
17788 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17789 + DIR_NAME_SIZE + BUF_SLOP];
17790 char *cwd = getcwd (buf, PATH_MAX);
17791 size_t initial_cwd_len;
17794 size_t n_chdirs = 0;
17799 cwd_len = initial_cwd_len = strlen (cwd);
17803 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17806 cwd_len += DIR_NAME_SIZE;
17807 /* If mkdir or chdir fails, it could be that this system cannot create
17808 any file with an absolute name longer than PATH_MAX, such as cygwin.
17809 If so, leave fail as 0, because the current working directory can't
17810 be too long for getcwd if it can't even be created. For other
17811 errors, be pessimistic and consider that as a failure, too. */
17812 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17814 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17819 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17823 c = getcwd (buf, PATH_MAX);
17824 if (!c && errno == ENOENT)
17834 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17840 /* Our replacement needs to be able to stat() long ../../paths,
17841 so generate a path larger than PATH_MAX to check,
17842 avoiding the replacement if we can't stat(). */
17843 c = getcwd (buf, cwd_len + 1);
17844 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17851 if (dotdot_max <= cwd_len - initial_cwd_len)
17853 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17855 c = getcwd (buf, cwd_len + 1);
17858 if (! (errno == ERANGE || errno == ENOENT
17859 || is_ENAMETOOLONG (errno)))
17864 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17872 if (c && strlen (c) != cwd_len)
17880 /* Leaving behind such a deep directory is not polite.
17881 So clean up here, right away, even though the driving
17882 shell script would also clean up. */
17886 /* Try rmdir first, in case the chdir failed. */
17888 for (i = 0; i <= n_chdirs; i++)
17890 if (chdir ("..") < 0)
17892 if (rmdir (DIR_NAME) != 0)
17902 if ac_fn_c_try_run
"$LINENO"; then :
17903 gl_cv_func_getcwd_path_max
=yes
17906 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
17907 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17908 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
17909 *) gl_cv_func_getcwd_path_max
=no
;;
17912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17919 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17921 case "$gl_cv_func_getcwd_null" in
17939 for ac_func
in getpagesize
17941 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17942 if test "x$ac_cv_func_getpagesize" = xyes
; then :
17943 cat >>confdefs.h
<<_ACEOF
17944 #define HAVE_GETPAGESIZE 1
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17951 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17952 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
17953 $as_echo_n "(cached) " >&6
17955 # Remove any remnants of a previous test.
17956 rm -rf confdir-14B---
17957 # Arrange for deletion of the temporary directory this test creates.
17958 ac_clean_files
="$ac_clean_files confdir-14B---"
17959 if test "$cross_compiling" = yes; then :
17960 gl_cv_func_getcwd_abort_bug
=yes
17962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17966 #include <stdlib.h>
17968 # include <unistd.h>
17969 #else /* on Windows with MSVC */
17970 # include <direct.h>
17972 #include <string.h>
17973 #include <sys/stat.h>
17976 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17978 # include <unistd.h>
17980 #include <limits.h>
17981 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17982 # include <sys/param.h>
17984 #if !defined PATH_MAX && defined MAXPATHLEN
17985 # define PATH_MAX MAXPATHLEN
17989 # define PATH_MAX 1024
17991 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17993 # define PATH_MAX 260
17997 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18001 # define S_IRWXU 0700
18004 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18005 #if ! HAVE_GETPAGESIZE
18006 # define getpagesize() 0
18009 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18010 the 16kB pagesize on ia64 linux. Those conditions make the code below
18011 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18012 #define TARGET_LEN (5 * 1024)
18018 size_t initial_cwd_len;
18021 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18022 this relatively expensive and invasive test if that's not true. */
18024 int bug_possible = PATH_MAX < getpagesize ();
18026 int bug_possible = 0;
18028 if (! bug_possible)
18031 cwd = getcwd (NULL, 0);
18035 initial_cwd_len = strlen (cwd);
18040 static char const dir_name[] = "confdir-14B---";
18041 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18042 / sizeof dir_name);
18044 for (d = 0; d < desired_depth; d++)
18046 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18048 if (! (errno == ERANGE || errno == ENAMETOOLONG
18049 || errno == ENOENT))
18050 fail = 3; /* Unable to construct deep hierarchy. */
18055 /* If libc has the bug in question, this invocation of getcwd
18056 results in a failed assertion. */
18057 cwd = getcwd (NULL, 0);
18059 fail = 4; /* getcwd didn't assert, but it failed for a long name
18060 where the answer could have been learned. */
18063 /* Call rmdir first, in case the above chdir failed. */
18067 if (chdir ("..") < 0)
18080 if ac_fn_c_try_run
"$LINENO"; then :
18081 gl_cv_func_getcwd_abort_bug
=no
18084 if test $ret -ge 128 ||
test $ret = 4; then
18085 gl_cv_func_getcwd_abort_bug
=yes
18087 gl_cv_func_getcwd_abort_bug
=no
18090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18097 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18098 if test $gl_cv_func_getcwd_abort_bug = yes; then :
18106 case "$gl_cv_func_getcwd_path_max" in
18107 "no"|
"no, it has the AIX bug") ;;
18110 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18114 case "$gl_cv_func_getcwd_path_max" in
18115 "no, but it is partly working")
18117 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18120 "yes, but with shorter paths")
18122 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18127 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
18128 ||
test $gl_cv_func_getcwd_posix_signature != yes \
18129 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
18130 ||
test $gl_abort_bug = yes; then
18134 if test $REPLACE_GETCWD = 1; then
18143 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
18153 cat >>confdefs.h
<<_ACEOF
18154 #define GNULIB_GETCWD 1
18169 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18178 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18185 if test $REPLACE_GETCWD = 1; then
18194 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18208 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18229 if test $ac_cv_func_getdtablesize = yes &&
18230 test $ac_cv_have_decl_getdtablesize = yes; then
18231 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
18232 # up to an unchangeable hard limit; all other platforms correctly
18233 # require setrlimit before getdtablesize() can report a larger value.
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18235 $as_echo_n "checking whether getdtablesize works... " >&6; }
18236 if ${gl_cv_func_getdtablesize_works+:} false
; then :
18237 $as_echo_n "(cached) " >&6
18239 if test "$cross_compiling" = yes; then :
18241 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
18242 gl_cv_func_getdtablesize_works
="guessing no" ;;
18243 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
18246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18249 #include <unistd.h>
18253 int size = getdtablesize();
18254 if (dup2 (0, getdtablesize()) != -1)
18256 if (size != getdtablesize())
18263 if ac_fn_c_try_run
"$LINENO"; then :
18264 gl_cv_func_getdtablesize_works
=yes
18266 gl_cv_func_getdtablesize_works
=no
18268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18275 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18276 case "$gl_cv_func_getdtablesize_works" in
18278 *) REPLACE_GETDTABLESIZE
=1 ;;
18281 HAVE_GETDTABLESIZE
=0
18284 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
18293 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
18302 GNULIB_GETDTABLESIZE
=1
18308 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18324 if test $ac_cv_have_decl_getlogin_r = no
; then
18325 HAVE_DECL_GETLOGIN_R
=0
18335 if test $ac_cv_func_getlogin_r = no
; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18341 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18342 if ${gl_cv_func_getlogin_r_works+:} false
; then :
18343 $as_echo_n "(cached) " >&6
18347 # Guess no on OSF/1.
18348 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
18349 # Guess yes otherwise.
18350 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
18352 if test "$cross_compiling" = yes; then :
18355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18358 #include <stddef.h>
18359 #include <unistd.h>
18360 #if !HAVE_DECL_GETLOGIN_R
18362 # ifdef __cplusplus
18365 int getlogin_r (char *, size_t);
18373 if (getlogin_r (buf, 0) == 0)
18375 if (getlogin_r (buf, 1) == 0)
18380 if ac_fn_c_try_run
"$LINENO"; then :
18381 gl_cv_func_getlogin_r_works
=yes
18384 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
18388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18389 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
18395 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
18396 case "$gl_cv_func_getlogin_r_works" in
18398 *) REPLACE_GETLOGIN_R
=1 ;;
18402 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
18411 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
18428 GNULIB_GETLOGIN_R
=1
18434 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
18451 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18453 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
18459 cat >>confdefs.h
<<_ACEOF
18460 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18462 if test $ac_have_decl = 1; then :
18466 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18468 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
18474 cat >>confdefs.h
<<_ACEOF
18475 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
18477 if test $ac_have_decl = 1; then :
18481 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18483 if test "x$ac_cv_have_decl___argv" = xyes
; then :
18489 cat >>confdefs.h
<<_ACEOF
18490 #define HAVE_DECL___ARGV $ac_have_decl
18492 if test $ac_have_decl = 1; then :
18497 # Incur the cost of this test only if none of the above worked.
18498 if test $ac_found = 0; then
18499 # On OpenBSD 5.1, using the global __progname variable appears to be
18500 # the only way to implement getprogname.
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18502 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
18503 if ${gl_cv_var___progname+:} false
; then :
18504 $as_echo_n "(cached) " >&6
18507 gl_cv_var___progname
=
18508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18510 extern char *__progname;
18514 return *__progname;
18520 if ac_fn_c_try_link
"$LINENO"; then :
18521 gl_cv_var___progname
=yes
18524 rm -f core conftest.err conftest.
$ac_objext \
18525 conftest
$ac_exeext conftest.
$ac_ext
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18530 $as_echo "$gl_cv_var___progname" >&6; }
18531 if test "$gl_cv_var___progname" = yes; then
18533 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18552 gl_gettimeofday_timezone
=void
18553 if test $ac_cv_func_gettimeofday != yes; then
18554 HAVE_GETTIMEOFDAY
=0
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18560 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18561 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
18562 $as_echo_n "(cached) " >&6
18564 if test "$cross_compiling" = yes; then :
18565 # When cross-compiling:
18567 # Guess all is fine on glibc systems.
18568 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
18569 # If we don't know, assume the worst.
18570 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
18574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 #include <string.h>
18577 #include <sys/time.h>
18579 #include <stdlib.h>
18587 struct tm saved_lt;
18589 lt = localtime (&t);
18591 gettimeofday (&tv, NULL);
18592 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18598 if ac_fn_c_try_run
"$LINENO"; then :
18599 gl_cv_func_gettimeofday_clobber
=no
18601 gl_cv_func_gettimeofday_clobber
=yes
18603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18609 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18611 case "$gl_cv_func_gettimeofday_clobber" in
18613 REPLACE_GETTIMEOFDAY
=1
18616 REPLACE_LOCALTIME
=1
18619 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18625 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18626 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
18627 $as_echo_n "(cached) " >&6
18629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18631 #include <sys/time.h>
18633 int gettimeofday (struct timeval *restrict, void *restrict);
18638 /* glibc uses struct timezone * rather than the POSIX void *
18639 if _GNU_SOURCE is defined. However, since the only portable
18640 use of gettimeofday uses NULL as the second parameter, and
18641 since the glibc definition is actually more typesafe, it is
18642 not worth wrapping this to get a compliant signature. */
18643 int (*f) (struct timeval *restrict, void *restrict)
18646 return !(x | c.tv_sec | c.tv_usec);
18652 if ac_fn_c_try_compile
"$LINENO"; then :
18653 gl_cv_func_gettimeofday_posix_signature
=yes
18655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18657 #include <sys/time.h>
18658 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18668 if ac_fn_c_try_compile
"$LINENO"; then :
18669 gl_cv_func_gettimeofday_posix_signature
=almost
18671 gl_cv_func_gettimeofday_posix_signature
=no
18673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18678 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18679 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
18680 gl_gettimeofday_timezone
='struct timezone'
18681 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18682 REPLACE_GETTIMEOFDAY
=1
18684 if test $REPLACE_STRUCT_TIMEVAL = 1; then
18685 REPLACE_GETTIMEOFDAY
=1
18690 cat >>confdefs.h
<<_ACEOF
18691 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18695 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
18704 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
18707 for ac_header
in sys
/timeb.h
18709 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
18710 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
18711 cat >>confdefs.h
<<_ACEOF
18712 #define HAVE_SYS_TIMEB_H 1
18719 for ac_func
in _ftime
18721 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
18722 if test "x$ac_cv_func__ftime" = xyes
; then :
18723 cat >>confdefs.h
<<_ACEOF
18724 #define HAVE__FTIME 1
18737 GNULIB_GETTIMEOFDAY
=1
18743 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18748 for ac_header
in glob.h
18750 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
18751 if test "x$ac_cv_header_glob_h" = xyes
; then :
18752 cat >>confdefs.h
<<_ACEOF
18753 #define HAVE_GLOB_H 1
18763 if test -z "$GLOB_H"; then
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
18765 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
18766 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
18767 $as_echo_n "(cached) " >&6
18769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 #include <gnu-versions.h>
18772 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
18774 if ac_fn_c_try_compile
"$LINENO"; then :
18775 gl_cv_gnu_glob_interface_version_1
=yes
18777 gl_cv_gnu_glob_interface_version_1
=no
18779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18782 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18784 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18789 if test -z "$GLOB_H"; then
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18791 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18792 if ${gl_cv_glob_lists_symlinks+:} false
; then :
18793 $as_echo_n "(cached) " >&6
18795 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
18796 gl_cv_glob_lists_symlinks
=maybe
18798 # If we can't make a symlink, then we cannot test this issue. Be
18799 # pessimistic about this.
18800 gl_cv_glob_lists_symlinks
=no
18803 if test $gl_cv_glob_lists_symlinks = maybe
; then
18804 if test "$cross_compiling" = yes; then :
18805 gl_cv_glob_lists_symlinks
=no
18807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18810 #include <stddef.h>
18816 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18821 if ac_fn_c_try_run
"$LINENO"; then :
18822 gl_cv_glob_lists_symlinks
=yes
18824 gl_cv_glob_lists_symlinks
=no
18826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18833 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18835 if test $gl_cv_glob_lists_symlinks = no
; then
18840 rm -f conf$$
-globtest
18843 if test -n "$GLOB_H"; then
18844 GL_GENERATE_GLOB_H_TRUE
=
18845 GL_GENERATE_GLOB_H_FALSE
='#'
18847 GL_GENERATE_GLOB_H_TRUE
='#'
18848 GL_GENERATE_GLOB_H_FALSE
=
18852 if test -n "$GLOB_H"; then
18861 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
18873 if test $ac_cv_header_sys_cdefs_h = yes; then
18915 if test $ac_cv_header_sys_socket_h != yes; then
18916 for ac_header
in winsock2.h
18918 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18919 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
18920 cat >>confdefs.h
<<_ACEOF
18921 #define HAVE_WINSOCK2_H 1
18929 if test "$ac_cv_header_winsock2_h" = yes; then
18931 UNISTD_H_HAVE_WINSOCK2_H
=1
18932 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18938 if test $HAVE_WINSOCK2_H = 1; then
18939 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
18941 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
18947 cat >>confdefs.h
<<_ACEOF
18948 #define HAVE_DECL_INET_NTOP $ac_have_decl
18951 if test $ac_cv_have_decl_inet_ntop = yes; then
18952 REPLACE_INET_NTOP
=1
18953 INET_NTOP_LIB
="-lws2_32"
18955 HAVE_DECL_INET_NTOP
=0
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18961 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18962 if ${ac_cv_search_inet_ntop+:} false
; then :
18963 $as_echo_n "(cached) " >&6
18965 ac_func_search_save_LIBS
=$LIBS
18966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18969 /* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18979 return inet_ntop ();
18984 for ac_lib
in '' nsl resolv
; do
18985 if test -z "$ac_lib"; then
18986 ac_res
="none required"
18989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18991 if ac_fn_c_try_link
"$LINENO"; then :
18992 ac_cv_search_inet_ntop
=$ac_res
18994 rm -f core conftest.err conftest.
$ac_objext \
18996 if ${ac_cv_search_inet_ntop+:} false
; then :
19000 if ${ac_cv_search_inet_ntop+:} false
; then :
19003 ac_cv_search_inet_ntop
=no
19005 rm conftest.
$ac_ext
19006 LIBS
=$ac_func_search_save_LIBS
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19009 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19010 ac_res
=$ac_cv_search_inet_ntop
19011 if test "$ac_res" != no
; then :
19012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19015 for ac_func
in inet_ntop
19017 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19018 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
19019 cat >>confdefs.h
<<_ACEOF
19020 #define HAVE_INET_NTOP 1
19026 if test $ac_cv_func_inet_ntop = no
; then
19034 if test "$ac_cv_search_inet_ntop" != "no" \
19035 && test "$ac_cv_search_inet_ntop" != "none required"; then
19036 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
19046 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19048 # include <netdb.h>
19052 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19058 cat >>confdefs.h
<<_ACEOF
19059 #define HAVE_DECL_INET_NTOP $ac_have_decl
19062 if test $ac_cv_have_decl_inet_ntop = no
; then
19063 HAVE_DECL_INET_NTOP
=0
19068 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
19077 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
19099 if test -n "$STDINT_H"; then
19100 PRIPTR_PREFIX
='"l"'
19102 for glpfx
in '' l ll I64
; do
19104 '') gltype1
='int';;
19105 l
) gltype1
='long int';;
19106 ll
) gltype1
='long long int';;
19107 I64
) gltype1
='__int64';;
19109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111 #include <stdint.h>
19112 extern intptr_t foo;
19113 extern $gltype1 foo;
19122 if ac_fn_c_try_compile
"$LINENO"; then :
19123 PRIPTR_PREFIX
='"'$glpfx'"'
19125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19126 test -n "$PRIPTR_PREFIX" && break
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19133 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19134 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
19135 $as_echo_n "(cached) " >&6
19137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139 /* Work also in C++ mode. */
19140 #define __STDC_LIMIT_MACROS 1
19142 /* Work if build is not clean. */
19143 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19145 #include <limits.h>
19147 #include <stdint.h>
19150 #if defined INT32_MAX && defined INTMAX_MAX
19151 #define CONDITION (INT32_MAX < INTMAX_MAX)
19152 #elif HAVE_LONG_LONG_INT
19153 #define CONDITION (sizeof (int) < sizeof (long long int))
19155 #define CONDITION 0
19157 int test[CONDITION ? 1 : -1];
19166 if ac_fn_c_try_compile
"$LINENO"; then :
19167 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
19169 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
19171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19174 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19175 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19176 INT32_MAX_LT_INTMAX_MAX
=1;
19178 INT32_MAX_LT_INTMAX_MAX
=0;
19182 if test $APPLE_UNIVERSAL_BUILD = 0; then
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19185 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19186 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
19187 $as_echo_n "(cached) " >&6
19189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191 /* Work also in C++ mode. */
19192 #define __STDC_LIMIT_MACROS 1
19194 /* Work if build is not clean. */
19195 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19197 #include <limits.h>
19199 #include <stdint.h>
19202 #if defined INT64_MAX
19203 #define CONDITION (INT64_MAX == LONG_MAX)
19204 #elif HAVE_LONG_LONG_INT
19205 #define CONDITION (sizeof (long long int) == sizeof (long int))
19207 #define CONDITION 0
19209 int test[CONDITION ? 1 : -1];
19218 if ac_fn_c_try_compile
"$LINENO"; then :
19219 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
19221 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
19223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19226 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19227 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19228 INT64_MAX_EQ_LONG_MAX
=1;
19230 INT64_MAX_EQ_LONG_MAX
=0;
19235 INT64_MAX_EQ_LONG_MAX
=-1
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19239 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19240 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
19241 $as_echo_n "(cached) " >&6
19243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 /* Work also in C++ mode. */
19246 #define __STDC_LIMIT_MACROS 1
19248 /* Work if build is not clean. */
19249 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19251 #include <limits.h>
19253 #include <stdint.h>
19256 #if defined UINT32_MAX && defined UINTMAX_MAX
19257 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19258 #elif HAVE_LONG_LONG_INT
19259 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19261 #define CONDITION 0
19263 int test[CONDITION ? 1 : -1];
19272 if ac_fn_c_try_compile
"$LINENO"; then :
19273 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
19275 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
19277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19280 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19281 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19282 UINT32_MAX_LT_UINTMAX_MAX
=1;
19284 UINT32_MAX_LT_UINTMAX_MAX
=0;
19288 if test $APPLE_UNIVERSAL_BUILD = 0; then
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19291 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19292 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
19293 $as_echo_n "(cached) " >&6
19295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19297 /* Work also in C++ mode. */
19298 #define __STDC_LIMIT_MACROS 1
19300 /* Work if build is not clean. */
19301 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19303 #include <limits.h>
19305 #include <stdint.h>
19308 #if defined UINT64_MAX
19309 #define CONDITION (UINT64_MAX == ULONG_MAX)
19310 #elif HAVE_LONG_LONG_INT
19311 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19313 #define CONDITION 0
19315 int test[CONDITION ? 1 : -1];
19324 if ac_fn_c_try_compile
"$LINENO"; then :
19325 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
19327 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
19329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19332 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19333 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19334 UINT64_MAX_EQ_ULONG_MAX
=1;
19336 UINT64_MAX_EQ_ULONG_MAX
=0;
19341 UINT64_MAX_EQ_ULONG_MAX
=-1
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19349 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19350 if ${gl_cv_func_isnand_no_libm+:} false
; then :
19351 $as_echo_n "(cached) " >&6
19354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h. */
19359 # define isnand(x) __builtin_isnan ((double)(x))
19362 # define isnand(x) isnan ((double)(x))
19373 if ac_fn_c_try_link
"$LINENO"; then :
19374 gl_cv_func_isnand_no_libm
=yes
19376 gl_cv_func_isnand_no_libm
=no
19378 rm -f core conftest.err conftest.
$ac_objext \
19379 conftest
$ac_exeext conftest.
$ac_ext
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19383 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19385 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
19386 if test $gl_cv_func_isnand_no_libm = yes; then
19388 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19392 if test $gl_func_isnand_no_libm != yes; then
19401 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
19410 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
19411 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
19412 $as_echo_n "(cached) " >&6
19415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19420 # define isnanl(x) __builtin_isnanl ((long double)(x))
19421 #elif defined isnan
19423 # define isnanl(x) isnan ((long double)(x))
19434 if ac_fn_c_try_link
"$LINENO"; then :
19435 gl_cv_func_isnanl_no_libm
=yes
19437 gl_cv_func_isnanl_no_libm
=no
19439 rm -f core conftest.err conftest.
$ac_objext \
19440 conftest
$ac_exeext conftest.
$ac_ext
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
19444 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
19446 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
19447 if test $gl_func_isnanl_no_libm = yes; then
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
19453 $as_echo_n "checking whether isnanl works... " >&6; }
19454 if ${gl_cv_func_isnanl_works+:} false
; then :
19455 $as_echo_n "(cached) " >&6
19458 if test "$cross_compiling" = yes; then :
19459 gl_cv_func_isnanl_works
="guessing yes"
19461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h. */
19465 #include <limits.h>
19469 # define isnanl(x) __builtin_isnanl ((long double)(x))
19470 #elif defined isnan
19472 # define isnanl(x) isnan ((long double)(x))
19475 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19476 typedef union { unsigned int word[NWORDS]; long double value; }
19477 memory_long_double;
19478 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
19479 runtime type conversion. */
19481 static long double NaNl ()
19484 return zero / zero;
19487 # define NaNl() (0.0L / 0.0L)
19493 if (!isnanl (NaNl ()))
19497 memory_long_double m;
19500 /* The isnanl function should be immune against changes in the sign bit and
19501 in the mantissa bits. The xor operation twiddles a bit that can only be
19502 a sign bit or a mantissa bit (since the exponent never extends to
19505 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
19506 for (i = 0; i < NWORDS; i++)
19508 if (!isnanl (m.value))
19512 #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
19513 /* Representation of an 80-bit 'long double' as an initializer for a sequence
19514 of 'unsigned int' words. */
19515 # ifdef WORDS_BIGENDIAN
19516 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19517 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
19518 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
19519 (unsigned int) (mantlo) << 16 \
19522 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19523 { mantlo, manthi, exponent }
19526 static memory_long_double x =
19527 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
19528 if (!isnanl (x.value))
19532 /* Signalling NaN. */
19533 static memory_long_double x =
19534 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
19535 if (!isnanl (x.value))
19538 /* isnanl should return something even for noncanonical values. */
19539 { /* Pseudo-NaN. */
19540 static memory_long_double x =
19541 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
19542 if (isnanl (x.value) && !isnanl (x.value))
19545 { /* Pseudo-Infinity. */
19546 static memory_long_double x =
19547 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
19548 if (isnanl (x.value) && !isnanl (x.value))
19551 { /* Pseudo-Zero. */
19552 static memory_long_double x =
19553 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
19554 if (isnanl (x.value) && !isnanl (x.value))
19557 { /* Unnormalized number. */
19558 static memory_long_double x =
19559 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
19560 if (isnanl (x.value) && !isnanl (x.value))
19563 { /* Pseudo-Denormal. */
19564 static memory_long_double x =
19565 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
19566 if (isnanl (x.value) && !isnanl (x.value))
19574 if ac_fn_c_try_run
"$LINENO"; then :
19575 gl_cv_func_isnanl_works
=yes
19577 gl_cv_func_isnanl_works
=no
19579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
19586 $as_echo "$gl_cv_func_isnanl_works" >&6; }
19588 case "$gl_cv_func_isnanl_works" in
19590 *) gl_func_isnanl_no_libm
=no
;;
19593 if test $gl_func_isnanl_no_libm = yes; then
19595 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
19599 if test $gl_func_isnanl_no_libm != yes; then
19608 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
19614 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
19615 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
19616 $as_echo_n "(cached) " >&6
19619 if test "$cross_compiling" = yes; then :
19621 gl_cv_cc_long_double_expbit0
="unknown"
19624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19628 #include <stddef.h>
19630 #include <string.h>
19632 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19633 typedef union { long double value; unsigned int word[NWORDS]; }
19634 memory_long_double;
19635 static unsigned int ored_words[NWORDS];
19636 static unsigned int anded_words[NWORDS];
19637 static void add_to_ored_words (long double x)
19639 memory_long_double m;
19641 /* Clear it first, in case
19642 sizeof (long double) < sizeof (memory_long_double). */
19643 memset (&m, 0, sizeof (memory_long_double));
19645 for (i = 0; i < NWORDS; i++)
19647 ored_words[i] |= m.word[i];
19648 anded_words[i] &= m.word[i];
19654 FILE *fp = fopen ("conftest.out", "w");
19657 for (j = 0; j < NWORDS; j++)
19658 anded_words[j] = ~ (unsigned int) 0;
19659 add_to_ored_words (0.25L);
19660 add_to_ored_words (0.5L);
19661 add_to_ored_words (1.0L);
19662 add_to_ored_words (2.0L);
19663 add_to_ored_words (4.0L);
19664 /* Remove bits that are common (e.g. if representation of the first mantissa
19665 bit is explicit). */
19666 for (j = 0; j < NWORDS; j++)
19667 ored_words[j] &= ~anded_words[j];
19668 /* Now find the nonzero word. */
19669 for (j = 0; j < NWORDS; j++)
19670 if (ored_words[j] != 0)
19675 for (i = j + 1; i < NWORDS; i++)
19676 if (ored_words[i] != 0)
19678 fprintf (fp, "unknown");
19679 return (fclose (fp) != 0);
19682 if ((ored_words[j] >> i) & 1)
19684 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19685 return (fclose (fp) != 0);
19688 fprintf (fp, "unknown");
19689 return (fclose (fp) != 0);
19693 if ac_fn_c_try_run
"$LINENO"; then :
19694 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
19696 gl_cv_cc_long_double_expbit0
="unknown"
19698 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19699 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
19706 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
19707 case "$gl_cv_cc_long_double_expbit0" in
19709 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19710 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
19712 cat >>confdefs.h
<<_ACEOF
19713 #define LDBL_EXPBIT0_WORD $word
19717 cat >>confdefs.h
<<_ACEOF
19718 #define LDBL_EXPBIT0_BIT $bit
19743 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
19754 if test $ac_cv_func_lstat = yes; then
19756 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19765 if test $REPLACE_LSTAT = 1; then
19774 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19789 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19796 if test $gl_cv_func_malloc_posix = yes; then
19798 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19804 if test $REPLACE_MALLOC = 1; then
19813 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
19821 GNULIB_MALLOC_POSIX
=1
19827 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19852 if test $gl_cv_have_include_next = yes; then
19853 gl_cv_next_math_h
='<'math.h
'>'
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
19856 $as_echo_n "checking absolute name of <math.h>... " >&6; }
19857 if ${gl_cv_next_math_h+:} false
; then :
19858 $as_echo_n "(cached) " >&6
19861 if test $ac_cv_header_math_h = yes; then
19866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19871 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19872 *) gl_absname_cpp
="$ac_cpp" ;;
19877 gl_dirsep_regex
='[/\\]'
19880 gl_dirsep_regex
='\/'
19883 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19884 gl_header_literal_regex
=`echo 'math.h' \
19885 | sed -e "$gl_make_literal_regex_sed"`
19886 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19887 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19893 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19894 sed -n "$gl_absolute_header_sed"`
19896 gl_header
=$gl_cv_absolute_math_h
19897 gl_cv_next_math_h
='"'$gl_header'"'
19899 gl_cv_next_math_h
='<'math.h
'>'
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
19905 $as_echo "$gl_cv_next_math_h" >&6; }
19907 NEXT_MATH_H
=$gl_cv_next_math_h
19909 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19910 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19911 gl_next_as_first_directive
='<'math.h
'>'
19913 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19914 gl_next_as_first_directive
=$gl_cv_next_math_h
19916 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
19923 $as_echo_n "checking whether NAN macro works... " >&6; }
19924 if ${gl_cv_header_math_nan_works+:} false
; then :
19925 $as_echo_n "(cached) " >&6
19927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19933 /* Solaris 10 has a broken definition of NAN. Other platforms
19934 fail to provide NAN, or provide it only in C99 mode; this
19935 test only needs to fail when NAN is provided but wrong. */
19945 if ac_fn_c_try_compile
"$LINENO"; then :
19946 gl_cv_header_math_nan_works
=yes
19948 gl_cv_header_math_nan_works
=no
19950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
19953 $as_echo "$gl_cv_header_math_nan_works" >&6; }
19954 if test $gl_cv_header_math_nan_works = no
; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
19958 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
19959 if ${gl_cv_header_math_huge_val_works+:} false
; then :
19960 $as_echo_n "(cached) " >&6
19962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19968 /* Solaris 10 has a broken definition of HUGE_VAL. */
19969 double d = HUGE_VAL;
19975 if ac_fn_c_try_compile
"$LINENO"; then :
19976 gl_cv_header_math_huge_val_works
=yes
19978 gl_cv_header_math_huge_val_works
=no
19980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19983 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19984 if test $gl_cv_header_math_huge_val_works = no
; then
19989 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
19990 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19992 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19993 if eval \
${$as_gl_Symbol+:} false
; then :
19994 $as_echo_n "(cached) " >&6
19996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
20008 if ac_fn_c_try_compile
"$LINENO"; then :
20009 eval "$as_gl_Symbol=yes"
20011 eval "$as_gl_Symbol=no"
20013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20015 eval ac_res
=\$
$as_gl_Symbol
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20017 $as_echo "$ac_res" >&6; }
20018 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
20019 cat >>confdefs.h
<<_ACEOF
20020 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20023 eval ac_cv_have_decl_
$gl_func=yes
20050 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20055 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20056 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20057 $as_echo_n "(cached) " >&6
20061 # Guess no on AIX and OSF/1.
20062 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20063 # Guess yes otherwise.
20064 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20066 if test $LOCALE_JA != none
; then
20067 if test "$cross_compiling" = yes; then :
20070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20071 /* end confdefs.h. */
20073 #include <locale.h>
20074 #include <string.h>
20075 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20077 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20078 included before <wchar.h>. */
20079 #include <stddef.h>
20085 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20087 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20091 memset (&state, '\0', sizeof (mbstate_t));
20092 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20093 if (mbsinit (&state))
20099 if ac_fn_c_try_run
"$LINENO"; then :
20100 gl_cv_func_mbrtowc_incomplete_state
=yes
20102 gl_cv_func_mbrtowc_incomplete_state
=no
20104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20112 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20118 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20119 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20120 $as_echo_n "(cached) " >&6
20124 # Guess no on Solaris 8.
20125 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20126 # Guess yes otherwise.
20127 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20129 if test $LOCALE_ZH_CN != none
; then
20130 if test "$cross_compiling" = yes; then :
20133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20136 #include <locale.h>
20137 #include <stdlib.h>
20138 #include <string.h>
20139 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20141 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20142 included before <wchar.h>. */
20143 #include <stddef.h>
20149 /* This fails on Solaris 8:
20150 mbrtowc returns 2, and sets wc to 0x00F0.
20151 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20152 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20154 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20158 memset (&state, '\0', sizeof (mbstate_t));
20159 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20160 && mbtowc (&wc, input + 3, 6) == 4)
20166 if ac_fn_c_try_run
"$LINENO"; then :
20167 gl_cv_func_mbrtowc_sanitycheck
=yes
20169 gl_cv_func_mbrtowc_sanitycheck
=no
20171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20172 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20179 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20181 REPLACE_MBSTATE_T
=0
20182 case "$gl_cv_func_mbrtowc_incomplete_state" in
20184 *) REPLACE_MBSTATE_T
=1 ;;
20186 case "$gl_cv_func_mbrtowc_sanitycheck" in
20188 *) REPLACE_MBSTATE_T
=1 ;;
20191 REPLACE_MBSTATE_T
=1
20202 if test $ac_cv_func_mbrtowc = no
; then
20204 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20205 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20207 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20208 included before <wchar.h>. */
20209 #include <stddef.h>
20215 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
20221 cat >>confdefs.h
<<_ACEOF
20222 #define HAVE_DECL_MBRTOWC $ac_have_decl
20225 if test $ac_cv_have_decl_mbrtowc = yes; then
20229 if test $REPLACE_MBSTATE_T = 1; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20236 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20237 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
20238 $as_echo_n "(cached) " >&6
20242 # Guess no on Solaris.
20243 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
20244 # Guess yes otherwise.
20245 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
20247 if test $LOCALE_FR_UTF8 != none
; then
20248 if test "$cross_compiling" = yes; then :
20251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20254 #include <locale.h>
20255 #include <stdlib.h>
20256 #include <string.h>
20257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20260 included before <wchar.h>. */
20261 #include <stddef.h>
20269 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20271 char input[] = "\303\237er";
20276 memset (&state, '\0', sizeof (mbstate_t));
20277 wc = (wchar_t) 0xBADFACE;
20278 ret = mbrtowc (&wc, input, 5, &state);
20281 if (!mbsinit (&state))
20284 memset (&state, '\0', sizeof (mbstate_t));
20285 ret = mbrtowc (NULL, input, 5, &state);
20286 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
20288 if (!mbsinit (&state))
20294 if ac_fn_c_try_run
"$LINENO"; then :
20295 gl_cv_func_mbrtowc_null_arg1
=yes
20297 gl_cv_func_mbrtowc_null_arg1
=no
20299 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20300 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20307 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20313 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20314 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
20315 $as_echo_n "(cached) " >&6
20319 # Guess no on OSF/1.
20320 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
20321 # Guess yes otherwise.
20322 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
20324 if test $LOCALE_FR_UTF8 != none
; then
20325 if test "$cross_compiling" = yes; then :
20328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h. */
20331 #include <locale.h>
20332 #include <string.h>
20333 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20335 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20336 included before <wchar.h>. */
20337 #include <stddef.h>
20343 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20349 memset (&state, '\0', sizeof (mbstate_t));
20350 wc = (wchar_t) 0xBADFACE;
20351 mbrtowc (&wc, NULL, 5, &state);
20352 /* Check that wc was not modified. */
20353 if (wc != (wchar_t) 0xBADFACE)
20359 if ac_fn_c_try_run
"$LINENO"; then :
20360 gl_cv_func_mbrtowc_null_arg2
=yes
20362 gl_cv_func_mbrtowc_null_arg2
=no
20364 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20365 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20372 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20380 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20381 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
20382 $as_echo_n "(cached) " >&6
20386 # Guess no on HP-UX, Solaris, native Windows.
20387 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
20388 # Guess yes otherwise.
20389 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
20391 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
20392 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
20393 if test "$cross_compiling" = yes; then :
20396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20399 #include <locale.h>
20400 #include <string.h>
20401 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20403 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20404 included before <wchar.h>. */
20405 #include <stddef.h>
20412 int found_some_locale = 0;
20413 /* This fails on Solaris. */
20414 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20416 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20420 memset (&state, '\0', sizeof (mbstate_t));
20421 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20424 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20427 found_some_locale = 1;
20429 /* This fails on HP-UX 11.11. */
20430 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20432 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20436 memset (&state, '\0', sizeof (mbstate_t));
20437 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20440 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20443 found_some_locale = 1;
20445 /* This fails on native Windows. */
20446 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20448 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20452 memset (&state, '\0', sizeof (mbstate_t));
20453 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20456 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20459 found_some_locale = 1;
20461 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20463 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20467 memset (&state, '\0', sizeof (mbstate_t));
20468 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20471 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20474 found_some_locale = 1;
20476 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20478 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20482 memset (&state, '\0', sizeof (mbstate_t));
20483 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20486 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20489 found_some_locale = 1;
20491 return (found_some_locale ? result : 77);
20494 if ac_fn_c_try_run
"$LINENO"; then :
20495 gl_cv_func_mbrtowc_retval
=yes
20497 if test $?
!= 77; then
20498 gl_cv_func_mbrtowc_retval
=no
20502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20510 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20516 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20517 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
20518 $as_echo_n "(cached) " >&6
20522 # Guess no on Solaris 8 and 9.
20523 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
20524 # Guess yes otherwise.
20525 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
20527 if test $LOCALE_ZH_CN != none
; then
20528 if test "$cross_compiling" = yes; then :
20531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h. */
20534 #include <locale.h>
20535 #include <string.h>
20536 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20538 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20539 included before <wchar.h>. */
20540 #include <stddef.h>
20546 /* This fails on Solaris 8 and 9. */
20547 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20552 memset (&state, '\0', sizeof (mbstate_t));
20553 if (mbrtowc (&wc, "", 1, &state) != 0)
20559 if ac_fn_c_try_run
"$LINENO"; then :
20560 gl_cv_func_mbrtowc_nul_retval
=yes
20562 gl_cv_func_mbrtowc_nul_retval
=no
20564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20565 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20572 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
20577 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
20578 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
20579 $as_echo_n "(cached) " >&6
20583 # Guess no on AIX and glibc systems.
20585 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
20586 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
20588 if test "$cross_compiling" = yes; then :
20591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20596 static mbstate_t mbs;
20600 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
20603 if ac_fn_c_try_run
"$LINENO"; then :
20604 gl_cv_func_mbrtowc_empty_input
=yes
20606 gl_cv_func_mbrtowc_empty_input
=no
20608 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20609 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
20615 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
20619 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
20620 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
20621 $as_echo_n "(cached) " >&6
20624 gl_cv_C_locale_sans_EILSEQ
="guessing no"
20626 if test "$cross_compiling" = yes; then :
20629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h. */
20631 #include <limits.h>
20632 #include <locale.h>
20640 char *locale = setlocale (LC_ALL, "C");
20643 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
20647 mbstate_t mbs = { 0, };
20648 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
20658 if ac_fn_c_try_run
"$LINENO"; then :
20659 gl_cv_C_locale_sans_EILSEQ
=yes
20661 gl_cv_C_locale_sans_EILSEQ
=no
20663 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20664 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
20669 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
20671 case "$gl_cv_func_mbrtowc_null_arg1" in
20674 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20679 case "$gl_cv_func_mbrtowc_null_arg2" in
20682 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20687 case "$gl_cv_func_mbrtowc_retval" in
20690 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20695 case "$gl_cv_func_mbrtowc_nul_retval" in
20698 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20703 case "$gl_cv_func_mbrtowc_empty_input" in
20706 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
20711 case $gl_cv_C_locale_sans_EILSEQ in
20714 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
20722 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
20731 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
20748 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20775 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20780 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20781 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20782 $as_echo_n "(cached) " >&6
20786 # Guess no on AIX and OSF/1.
20787 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20788 # Guess yes otherwise.
20789 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20791 if test $LOCALE_JA != none
; then
20792 if test "$cross_compiling" = yes; then :
20795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20796 /* end confdefs.h. */
20798 #include <locale.h>
20799 #include <string.h>
20800 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20802 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20803 included before <wchar.h>. */
20804 #include <stddef.h>
20810 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20812 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20816 memset (&state, '\0', sizeof (mbstate_t));
20817 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20818 if (mbsinit (&state))
20824 if ac_fn_c_try_run
"$LINENO"; then :
20825 gl_cv_func_mbrtowc_incomplete_state
=yes
20827 gl_cv_func_mbrtowc_incomplete_state
=no
20829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20837 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20843 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20844 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20845 $as_echo_n "(cached) " >&6
20849 # Guess no on Solaris 8.
20850 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20851 # Guess yes otherwise.
20852 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20854 if test $LOCALE_ZH_CN != none
; then
20855 if test "$cross_compiling" = yes; then :
20858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20861 #include <locale.h>
20862 #include <stdlib.h>
20863 #include <string.h>
20864 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20866 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20867 included before <wchar.h>. */
20868 #include <stddef.h>
20874 /* This fails on Solaris 8:
20875 mbrtowc returns 2, and sets wc to 0x00F0.
20876 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20877 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20879 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20883 memset (&state, '\0', sizeof (mbstate_t));
20884 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20885 && mbtowc (&wc, input + 3, 6) == 4)
20891 if ac_fn_c_try_run
"$LINENO"; then :
20892 gl_cv_func_mbrtowc_sanitycheck
=yes
20894 gl_cv_func_mbrtowc_sanitycheck
=no
20896 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20897 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20904 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20906 REPLACE_MBSTATE_T
=0
20907 case "$gl_cv_func_mbrtowc_incomplete_state" in
20909 *) REPLACE_MBSTATE_T
=1 ;;
20911 case "$gl_cv_func_mbrtowc_sanitycheck" in
20913 *) REPLACE_MBSTATE_T
=1 ;;
20916 REPLACE_MBSTATE_T
=1
20927 if test $ac_cv_func_mbsinit = no
; then
20929 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20932 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20933 included before <wchar.h>. */
20934 #include <stddef.h>
20940 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
20946 cat >>confdefs.h
<<_ACEOF
20947 #define HAVE_DECL_MBSINIT $ac_have_decl
20950 if test $ac_cv_have_decl_mbsinit = yes; then
20954 if test $REPLACE_MBSTATE_T = 1; then
20958 mingw
*) REPLACE_MBSINIT
=1 ;;
20963 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
20972 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
20989 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
21015 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21020 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21021 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21022 $as_echo_n "(cached) " >&6
21026 # Guess no on AIX and OSF/1.
21027 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21028 # Guess yes otherwise.
21029 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21031 if test $LOCALE_JA != none
; then
21032 if test "$cross_compiling" = yes; then :
21035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21038 #include <locale.h>
21039 #include <string.h>
21040 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21042 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21043 included before <wchar.h>. */
21044 #include <stddef.h>
21050 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21052 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21056 memset (&state, '\0', sizeof (mbstate_t));
21057 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21058 if (mbsinit (&state))
21064 if ac_fn_c_try_run
"$LINENO"; then :
21065 gl_cv_func_mbrtowc_incomplete_state
=yes
21067 gl_cv_func_mbrtowc_incomplete_state
=no
21069 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21070 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21077 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21083 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21084 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21085 $as_echo_n "(cached) " >&6
21089 # Guess no on Solaris 8.
21090 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21091 # Guess yes otherwise.
21092 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21094 if test $LOCALE_ZH_CN != none
; then
21095 if test "$cross_compiling" = yes; then :
21098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21101 #include <locale.h>
21102 #include <stdlib.h>
21103 #include <string.h>
21104 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21106 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21107 included before <wchar.h>. */
21108 #include <stddef.h>
21114 /* This fails on Solaris 8:
21115 mbrtowc returns 2, and sets wc to 0x00F0.
21116 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21117 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21119 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21123 memset (&state, '\0', sizeof (mbstate_t));
21124 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21125 && mbtowc (&wc, input + 3, 6) == 4)
21131 if ac_fn_c_try_run
"$LINENO"; then :
21132 gl_cv_func_mbrtowc_sanitycheck
=yes
21134 gl_cv_func_mbrtowc_sanitycheck
=no
21136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21144 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21146 REPLACE_MBSTATE_T
=0
21147 case "$gl_cv_func_mbrtowc_incomplete_state" in
21149 *) REPLACE_MBSTATE_T
=1 ;;
21151 case "$gl_cv_func_mbrtowc_sanitycheck" in
21153 *) REPLACE_MBSTATE_T
=1 ;;
21156 REPLACE_MBSTATE_T
=1
21167 if test $ac_cv_func_mbsrtowcs = no
; then
21169 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
21170 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21172 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21173 included before <wchar.h>. */
21174 #include <stddef.h>
21180 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
21186 cat >>confdefs.h
<<_ACEOF
21187 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
21190 if test $ac_cv_have_decl_mbsrtowcs = yes; then
21191 REPLACE_MBSRTOWCS
=1
21194 if test $REPLACE_MBSTATE_T = 1; then
21195 REPLACE_MBSRTOWCS
=1
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
21204 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
21205 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
21206 $as_echo_n "(cached) " >&6
21210 # Guess no on HP-UX, Solaris, mingw.
21211 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
21212 # Guess yes otherwise.
21213 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
21215 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
21216 if test "$cross_compiling" = yes; then :
21219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21220 /* end confdefs.h. */
21222 #include <locale.h>
21223 #include <string.h>
21224 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21226 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21227 included before <wchar.h>. */
21228 #include <stddef.h>
21235 /* Test whether the function supports a NULL destination argument.
21236 This fails on native Windows. */
21237 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21239 const char input[] = "\337er";
21240 const char *src = input;
21243 memset (&state, '\0', sizeof (mbstate_t));
21244 if (mbsrtowcs (NULL, &src, 1, &state) != 3
21248 /* Test whether the function works when started with a conversion state
21249 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
21250 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21252 const char input[] = "B\303\274\303\237er";
21255 memset (&state, '\0', sizeof (mbstate_t));
21256 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21257 if (!mbsinit (&state))
21259 const char *src = input + 2;
21260 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21264 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21266 const char input[] = "<\306\374\313\334\270\354>";
21269 memset (&state, '\0', sizeof (mbstate_t));
21270 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
21271 if (!mbsinit (&state))
21273 const char *src = input + 4;
21274 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
21278 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21280 const char input[] = "B\250\271\201\060\211\070er";
21283 memset (&state, '\0', sizeof (mbstate_t));
21284 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21285 if (!mbsinit (&state))
21287 const char *src = input + 2;
21288 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21295 if ac_fn_c_try_run
"$LINENO"; then :
21296 gl_cv_func_mbsrtowcs_works
=yes
21298 gl_cv_func_mbsrtowcs_works
=no
21300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
21308 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
21310 case "$gl_cv_func_mbsrtowcs_works" in
21312 *) REPLACE_MBSRTOWCS
=1 ;;
21317 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
21326 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
21336 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
21353 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
21358 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
21367 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
21370 for ac_header
in bp-sym.h
21372 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21373 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
21374 cat >>confdefs.h
<<_ACEOF
21375 #define HAVE_BP_SYM_H 1
21395 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21401 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
21403 $as_echo_n "checking whether memmem works in linear time... " >&6; }
21404 if ${gl_cv_func_memmem_works_fast+:} false
; then :
21405 $as_echo_n "(cached) " >&6
21407 if test "$cross_compiling" = yes; then :
21408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21411 #include <features.h>
21412 #ifdef __GNU_LIBRARY__
21413 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
21414 && !defined __UCLIBC__
21419 #include <cygwin/version.h>
21420 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
21426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21427 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21428 gl_cv_func_memmem_works_fast
="guessing yes"
21430 gl_cv_func_memmem_works_fast
="guessing no"
21436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21439 #include <signal.h> /* for signal */
21440 #include <string.h> /* for memmem */
21441 #include <stdlib.h> /* for malloc */
21442 #include <unistd.h> /* for alarm */
21443 static void quit (int sig) { _exit (sig + 128); }
21450 size_t m = 1000000;
21451 char *haystack = (char *) malloc (2 * m + 1);
21452 char *needle = (char *) malloc (m + 1);
21453 /* Failure to compile this test due to missing alarm is okay,
21454 since all such platforms (mingw) also lack memmem. */
21455 signal (SIGALRM, quit);
21457 /* Check for quadratic performance. */
21458 if (haystack && needle)
21460 memset (haystack, 'A', 2 * m);
21461 haystack[2 * m] = 'B';
21462 memset (needle, 'A', m);
21464 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
21473 if ac_fn_c_try_run
"$LINENO"; then :
21474 gl_cv_func_memmem_works_fast
=yes
21476 gl_cv_func_memmem_works_fast
=no
21478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21479 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
21485 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
21486 case "$gl_cv_func_memmem_works_fast" in
21494 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21503 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21510 for ac_func
in memmem
21512 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
21513 if test "x$ac_cv_func_memmem" = xyes
; then :
21514 cat >>confdefs.h
<<_ACEOF
21515 #define HAVE_MEMMEM 1
21521 if test $ac_cv_func_memmem = yes; then
21533 if test $ac_cv_have_decl_memmem = no
; then
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21537 $as_echo_n "checking whether memmem works... " >&6; }
21538 if ${gl_cv_func_memmem_works_always+:} false
; then :
21539 $as_echo_n "(cached) " >&6
21541 if test "$cross_compiling" = yes; then :
21542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21545 #ifdef __GNU_LIBRARY__
21546 #include <features.h>
21547 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21548 || __GLIBC_MINOR__ > 12)) \
21549 || (__GLIBC__ > 2)) \
21550 || defined __UCLIBC__
21553 #elif defined __CYGWIN__
21554 #include <cygwin/version.h>
21555 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21564 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21565 gl_cv_func_memmem_works_always
="guessing yes"
21567 gl_cv_func_memmem_works_always
="guessing no"
21573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21576 #include <string.h> /* for memmem */
21577 #define P "_EF_BF_BD"
21578 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21579 #define NEEDLE P P P P P
21586 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21588 /* Check for empty needle behavior. */
21590 const char *haystack = "AAA";
21591 if (memmem (haystack, 3, NULL, 0) != haystack)
21600 if ac_fn_c_try_run
"$LINENO"; then :
21601 gl_cv_func_memmem_works_always
=yes
21603 gl_cv_func_memmem_works_always
=no
21605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21612 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21613 case "$gl_cv_func_memmem_works_always" in
21622 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21631 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21645 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21655 for ac_func
in mempcpy
21657 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
21658 if test "x$ac_cv_func_mempcpy" = xyes
; then :
21659 cat >>confdefs.h
<<_ACEOF
21660 #define HAVE_MEMPCPY 1
21666 if test $ac_cv_func_mempcpy = no
; then
21670 if test $HAVE_MEMPCPY = 0; then
21679 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
21696 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
21711 if test $ac_cv_have_decl_memrchr = no
; then
21712 HAVE_DECL_MEMRCHR
=0
21715 for ac_func
in memrchr
21717 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
21718 if test "x$ac_cv_func_memrchr" = xyes
; then :
21719 cat >>confdefs.h
<<_ACEOF
21720 #define HAVE_MEMRCHR 1
21727 if test $ac_cv_func_memrchr = no
; then
21736 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
21751 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
21764 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
21765 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
21766 $as_echo_n "(cached) " >&6
21768 rm -rf conftest.dir
21769 if test "$cross_compiling" = yes; then :
21771 # Guess yes on glibc systems.
21772 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
21773 # If we don't know, assume the worst.
21774 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
21778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h. */
21781 # include <sys/types.h>
21782 # include <sys/stat.h>
21787 return mkdir ("conftest.dir/", 0700);
21792 if ac_fn_c_try_run
"$LINENO"; then :
21793 gl_cv_func_mkdir_trailing_slash_works
=yes
21795 gl_cv_func_mkdir_trailing_slash_works
=no
21797 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21798 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21801 rm -rf conftest.dir
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
21806 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
21807 case "$gl_cv_func_mkdir_trailing_slash_works" in
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
21815 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
21816 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
21817 $as_echo_n "(cached) " >&6
21819 rm -rf conftest.dir
21820 if test "$cross_compiling" = yes; then :
21822 # Guess yes on glibc systems.
21823 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
21824 # If we don't know, assume the worst.
21825 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
21829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21832 # include <sys/types.h>
21833 # include <sys/stat.h>
21838 return !mkdir ("conftest.dir/./", 0700);
21843 if ac_fn_c_try_run
"$LINENO"; then :
21844 gl_cv_func_mkdir_trailing_dot_works
=yes
21846 gl_cv_func_mkdir_trailing_dot_works
=no
21848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21852 rm -rf conftest.dir
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
21857 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
21858 case "$gl_cv_func_mkdir_trailing_dot_works" in
21863 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
21868 if test $REPLACE_MKDIR = 1; then
21877 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
21890 if test $ac_cv_func_mkstemp = yes; then
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
21892 $as_echo_n "checking for working mkstemp... " >&6; }
21893 if ${gl_cv_func_working_mkstemp+:} false
; then :
21894 $as_echo_n "(cached) " >&6
21897 mkdir conftest.mkstemp
21898 if test "$cross_compiling" = yes; then :
21900 # Guess yes on glibc systems.
21901 *-gnu*) gl_cv_func_working_mkstemp
="guessing yes" ;;
21902 # If we don't know, assume the worst.
21903 *) gl_cv_func_working_mkstemp
="guessing no" ;;
21907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 $ac_includes_default
21915 off_t large = (off_t) 4294967295u;
21917 large = 2147483647;
21919 for (i = 0; i < 70; i++)
21921 char templ[] = "conftest.mkstemp/coXXXXXX";
21922 int (*mkstemp_function) (char *) = mkstemp;
21923 int fd = mkstemp_function (templ);
21929 if (lseek (fd, large, SEEK_SET) != large)
21931 if (fstat (fd, &st) < 0)
21933 else if (st.st_mode & 0077)
21944 if ac_fn_c_try_run
"$LINENO"; then :
21945 gl_cv_func_working_mkstemp
=yes
21947 gl_cv_func_working_mkstemp
=no
21949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21953 rm -rf conftest.mkstemp
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
21957 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
21958 case "$gl_cv_func_working_mkstemp" in
21968 if test $HAVE_MKSTEMP = 0 ||
test $REPLACE_MKSTEMP = 1; then
21977 gl_LIBOBJS
="$gl_LIBOBJS mkstemp.$ac_objext"
21993 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
21998 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22007 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
22011 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22020 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22026 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22027 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
22028 $as_echo_n "(cached) " >&6
22031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033 #include <netinet/in.h>
22042 if ac_fn_c_try_compile
"$LINENO"; then :
22043 gl_cv_header_netinet_in_h_selfcontained
=yes
22045 gl_cv_header_netinet_in_h_selfcontained
=no
22047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22051 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22052 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22055 NETINET_IN_H
='netinet/in.h'
22056 for ac_header
in netinet
/in.h
22058 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22059 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
22060 cat >>confdefs.h
<<_ACEOF
22061 #define HAVE_NETINET_IN_H 1
22083 if test $gl_cv_have_include_next = yes; then
22084 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22087 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22088 if ${gl_cv_next_netinet_in_h+:} false
; then :
22089 $as_echo_n "(cached) " >&6
22092 if test $ac_cv_header_netinet_in_h = yes; then
22097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099 #include <netinet/in.h>
22102 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22103 *) gl_absname_cpp
="$ac_cpp" ;;
22108 gl_dirsep_regex
='[/\\]'
22111 gl_dirsep_regex
='\/'
22114 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22115 gl_header_literal_regex
=`echo 'netinet/in.h' \
22116 | sed -e "$gl_make_literal_regex_sed"`
22117 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22118 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22124 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22125 sed -n "$gl_absolute_header_sed"`
22127 gl_header
=$gl_cv_absolute_netinet_in_h
22128 gl_cv_next_netinet_in_h
='"'$gl_header'"'
22130 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22136 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22138 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
22140 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22142 gl_next_as_first_directive
='<'netinet
/in.h
'>'
22144 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22145 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
22147 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
22152 if test $ac_cv_header_netinet_in_h = yes; then
22153 HAVE_NETINET_IN_H
=1
22155 HAVE_NETINET_IN_H
=0
22160 if test -n "$NETINET_IN_H"; then
22161 GL_GENERATE_NETINET_IN_H_TRUE
=
22162 GL_GENERATE_NETINET_IN_H_FALSE
='#'
22164 GL_GENERATE_NETINET_IN_H_TRUE
='#'
22165 GL_GENERATE_NETINET_IN_H_FALSE
=
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
22185 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
22186 if ${gl_cv_func_open_slash+:} false
; then :
22187 $as_echo_n "(cached) " >&6
22189 # Assume that if we have lstat, we can also check symlinks.
22190 if test $ac_cv_func_lstat = yes; then
22192 ln -s conftest.tmp conftest.lnk
22194 if test "$cross_compiling" = yes; then :
22197 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
22198 gl_cv_func_open_slash
="guessing no" ;;
22200 gl_cv_func_open_slash
="guessing yes" ;;
22204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22205 /* end confdefs.h. */
22209 # include <unistd.h>
22215 if (open ("conftest.lnk/", O_RDONLY) != -1)
22218 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
22223 if ac_fn_c_try_run
"$LINENO"; then :
22224 gl_cv_func_open_slash
=yes
22226 gl_cv_func_open_slash
=no
22228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22232 rm -f conftest.sl conftest.tmp conftest.lnk
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
22236 $as_echo "$gl_cv_func_open_slash" >&6; }
22237 case "$gl_cv_func_open_slash" in
22240 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
22248 if test $REPLACE_OPEN = 0; then
22258 if test $ac_cv_func_fchdir = no
; then
22262 if test $HAVE_FCHDIR = 0; then
22269 if test $REPLACE_OPEN = 1; then
22278 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
22296 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
22311 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
22315 # Solaris 9 has *at functions, but uniformly mishandles trailing
22316 # slash in all of them.
22324 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
22333 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
22342 cat >>confdefs.h
<<_ACEOF
22343 #define GNULIB_OPENAT 1
22357 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
22364 for ac_func
in opendir
22366 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
22367 if test "x$ac_cv_func_opendir" = xyes
; then :
22368 cat >>confdefs.h
<<_ACEOF
22369 #define HAVE_OPENDIR 1
22375 if test $ac_cv_func_opendir = no
; then
22388 if test $ac_cv_func_fchdir = no
; then
22392 if test $HAVE_FCHDIR = 0; then
22393 if test $HAVE_OPENDIR = 1; then
22398 case $host_os,$HAVE_OPENDIR in
22400 REPLACE_OPENDIR
=1;;
22403 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
22412 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
22426 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
22443 for ac_func
in rawmemchr
22445 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
22446 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
22447 cat >>confdefs.h
<<_ACEOF
22448 #define HAVE_RAWMEMCHR 1
22454 if test $ac_cv_func_rawmemchr = no
; then
22458 if test $HAVE_RAWMEMCHR = 0; then
22467 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
22482 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
22489 for ac_func
in readdir
22491 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
22492 if test "x$ac_cv_func_readdir" = xyes
; then :
22493 cat >>confdefs.h
<<_ACEOF
22494 #define HAVE_READDIR 1
22500 if test $ac_cv_func_readdir = no
; then
22504 if test $HAVE_READDIR = 0; then
22513 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
22527 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
22540 if test $ac_cv_func_readlink = no
; then
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22544 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22545 if ${gl_cv_decl_readlink_works+:} false
; then :
22546 $as_echo_n "(cached) " >&6
22548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22550 #include <unistd.h>
22551 /* Cause compilation failure if original declaration has wrong type. */
22552 ssize_t readlink (const char *, char *, size_t);
22561 if ac_fn_c_try_compile
"$LINENO"; then :
22562 gl_cv_decl_readlink_works
=yes
22564 gl_cv_decl_readlink_works
=no
22566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22569 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22571 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22572 if ${gl_cv_func_readlink_works+:} false
; then :
22573 $as_echo_n "(cached) " >&6
22575 # We have readlink, so assume ln -s works.
22576 ln -s conftest.no-such conftest.link
22577 ln -s conftest.link conftest.lnk2
22578 if test "$cross_compiling" = yes; then :
22580 # Guess yes on glibc systems.
22581 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22582 # If we don't know, assume the worst.
22583 *) gl_cv_func_readlink_works
="guessing no" ;;
22587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 #include <unistd.h>
22595 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22600 if ac_fn_c_try_run
"$LINENO"; then :
22601 gl_cv_func_readlink_works
=yes
22603 gl_cv_func_readlink_works
=no
22605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22609 rm -f conftest.link conftest.lnk2
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22612 $as_echo "$gl_cv_func_readlink_works" >&6; }
22613 case "$gl_cv_func_readlink_works" in
22615 if test "$gl_cv_decl_readlink_works" != yes; then
22621 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22628 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22637 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22654 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
22661 if test $gl_cv_func_malloc_posix = yes; then
22663 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22669 if test $REPLACE_REALLOC = 1; then
22678 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
22686 GNULIB_REALLOC_POSIX
=1
22692 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
22708 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
22709 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
22710 $as_echo_n "(cached) " >&6
22712 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22713 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22714 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22715 # Assume that if we have lstat, we can also check symlinks.
22716 if test $ac_cv_func_lstat = yes; then
22717 ln -s conftest.f conftest.lnk
22719 if test "$cross_compiling" = yes; then :
22721 # Guess yes on glibc systems.
22722 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
22723 # If we don't know, assume the worst.
22724 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
22728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22731 # include <stdio.h>
22732 # include <stdlib.h>
22738 if (rename ("conftest.f1", "conftest.f2/") == 0)
22740 if (rename ("conftest.d1", "conftest.d2/") != 0)
22743 if (rename ("conftest.f", "conftest.lnk/") == 0)
22752 if ac_fn_c_try_run
"$LINENO"; then :
22753 gl_cv_func_rename_slash_dst_works
=yes
22755 gl_cv_func_rename_slash_dst_works
=no
22757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22761 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
22765 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
22766 case "$gl_cv_func_rename_slash_dst_works" in
22771 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
22777 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
22778 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
22779 $as_echo_n "(cached) " >&6
22781 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22782 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22783 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22784 # Assume that if we have lstat, we can also check symlinks.
22785 if test $ac_cv_func_lstat = yes; then
22786 ln -s conftest.f conftest.lnk
22788 if test "$cross_compiling" = yes; then :
22790 # Guess yes on glibc systems.
22791 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
22792 # If we don't know, assume the worst.
22793 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
22797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22798 /* end confdefs.h. */
22800 # include <stdio.h>
22801 # include <stdlib.h>
22807 if (rename ("conftest.f1/", "conftest.d3") == 0)
22809 if (rename ("conftest.d1/", "conftest.d2") != 0)
22812 if (rename ("conftest.lnk/", "conftest.f") == 0)
22821 if ac_fn_c_try_run
"$LINENO"; then :
22822 gl_cv_func_rename_slash_src_works
=yes
22824 gl_cv_func_rename_slash_src_works
=no
22826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22830 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
22834 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
22835 case "$gl_cv_func_rename_slash_src_works" in
22840 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
22853 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
22854 if ${gl_cv_func_rename_link_works+:} false
; then :
22855 $as_echo_n "(cached) " >&6
22857 if test $ac_cv_func_link = yes; then
22858 rm -rf conftest.f conftest.f1
22859 if touch conftest.f
&& ln conftest.f conftest.f1
&&
22860 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
22861 if test "$cross_compiling" = yes; then :
22863 # Guess yes on glibc systems.
22864 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
22865 # If we don't know, assume the worst.
22866 *) gl_cv_func_rename_link_works
="guessing no" ;;
22870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22873 # include <stdio.h>
22874 # include <stdlib.h>
22875 # include <unistd.h>
22881 if (rename ("conftest.f", "conftest.f1"))
22883 if (unlink ("conftest.f1"))
22885 if (rename ("conftest.f", "conftest.f"))
22887 if (rename ("conftest.f1", "conftest.f1") == 0)
22895 if ac_fn_c_try_run
"$LINENO"; then :
22896 gl_cv_func_rename_link_works
=yes
22898 gl_cv_func_rename_link_works
=no
22900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22905 gl_cv_func_rename_link_works
="guessing no"
22907 rm -rf conftest.f conftest.f1
22909 gl_cv_func_rename_link_works
=yes
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
22914 $as_echo "$gl_cv_func_rename_link_works" >&6; }
22915 case "$gl_cv_func_rename_link_works" in
22920 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
22926 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
22927 if ${gl_cv_func_rename_dest_works+:} false
; then :
22928 $as_echo_n "(cached) " >&6
22930 rm -rf conftest.f conftest.d1 conftest.d2
22931 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
22932 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22933 if test "$cross_compiling" = yes; then :
22935 # Guess yes on glibc systems.
22936 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
22937 # If we don't know, assume the worst.
22938 *) gl_cv_func_rename_dest_works
="guessing no" ;;
22942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22943 /* end confdefs.h. */
22945 # include <stdio.h>
22946 # include <stdlib.h>
22952 if (rename ("conftest.d1", "conftest.d2") != 0)
22954 if (rename ("conftest.d2", "conftest.f") == 0)
22962 if ac_fn_c_try_run
"$LINENO"; then :
22963 gl_cv_func_rename_dest_works
=yes
22965 gl_cv_func_rename_dest_works
=no
22967 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22968 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22971 rm -rf conftest.f conftest.d1 conftest.d2
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
22975 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
22976 case "$gl_cv_func_rename_dest_works" in
22981 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
22986 if test $REPLACE_RENAME = 1; then
22995 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
23009 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
23016 for ac_func
in rewinddir
23018 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
23019 if test "x$ac_cv_func_rewinddir" = xyes
; then :
23020 cat >>confdefs.h
<<_ACEOF
23021 #define HAVE_REWINDDIR 1
23027 if test $ac_cv_func_rewinddir = no
; then
23031 if test $HAVE_REWINDDIR = 0; then
23040 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
23054 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23068 $as_echo_n "checking whether rmdir works... " >&6; }
23069 if ${gl_cv_func_rmdir_works+:} false
; then :
23070 $as_echo_n "(cached) " >&6
23073 touch conftest.
file
23074 if test "$cross_compiling" = yes; then :
23076 # Guess yes on glibc systems.
23077 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
23078 # If we don't know, assume the worst.
23079 *) gl_cv_func_rmdir_works
="guessing no" ;;
23083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23088 # include <unistd.h>
23089 #else /* on Windows with MSVC */
23090 # include <direct.h>
23097 if (!rmdir ("conftest.file/"))
23099 else if (errno != ENOTDIR)
23101 if (!rmdir ("conftest.dir/./"))
23109 if ac_fn_c_try_run
"$LINENO"; then :
23110 gl_cv_func_rmdir_works
=yes
23112 gl_cv_func_rmdir_works
=no
23114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23115 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23118 rm -rf conftest.dir conftest.
file
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
23121 $as_echo "$gl_cv_func_rmdir_works" >&6; }
23122 case "$gl_cv_func_rmdir_works" in
23129 if test $REPLACE_RMDIR = 1; then
23138 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
23152 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
23176 if test $ac_cv_func_secure_getenv = no
; then
23177 HAVE_SECURE_GETENV
=0
23180 if test $HAVE_SECURE_GETENV = 0; then
23189 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
23192 for ac_func
in __secure_getenv
23194 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23195 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
23196 cat >>confdefs.h
<<_ACEOF
23197 #define HAVE___SECURE_GETENV 1
23203 if test $ac_cv_func___secure_getenv = no
; then
23204 for ac_func
in issetugid
23206 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
23207 if test "x$ac_cv_func_issetugid" = xyes
; then :
23208 cat >>confdefs.h
<<_ACEOF
23209 #define HAVE_ISSETUGID 1
23239 GNULIB_SECURE_GETENV
=1
23245 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23251 if test $ac_cv_func_setenv = no
; then
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23255 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23256 if ${gl_cv_func_setenv_works+:} false
; then :
23257 $as_echo_n "(cached) " >&6
23259 if test "$cross_compiling" = yes; then :
23261 # Guess yes on glibc systems.
23262 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
23263 # If we don't know, assume the worst.
23264 *) gl_cv_func_setenv_works
="guessing no" ;;
23268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23269 /* end confdefs.h. */
23271 #include <stdlib.h>
23273 #include <string.h>
23281 if (setenv ("", "", 0) != -1)
23283 else if (errno != EINVAL)
23287 if (setenv ("a", "=", 1) != 0)
23289 else if (strcmp (getenv ("a"), "=") != 0)
23298 if ac_fn_c_try_run
"$LINENO"; then :
23299 gl_cv_func_setenv_works
=yes
23301 gl_cv_func_setenv_works
=no
23303 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23304 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23309 $as_echo "$gl_cv_func_setenv_works" >&6; }
23310 case "$gl_cv_func_setenv_works" in
23318 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
23327 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
23341 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23356 if test $gl_cv_have_include_next = yes; then
23357 gl_cv_next_signal_h
='<'signal.h
'>'
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23360 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23361 if ${gl_cv_next_signal_h+:} false
; then :
23362 $as_echo_n "(cached) " >&6
23367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23368 /* end confdefs.h. */
23369 #include <signal.h>
23372 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23373 *) gl_absname_cpp
="$ac_cpp" ;;
23378 gl_dirsep_regex
='[/\\]'
23381 gl_dirsep_regex
='\/'
23384 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23385 gl_header_literal_regex
=`echo 'signal.h' \
23386 | sed -e "$gl_make_literal_regex_sed"`
23387 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23388 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23394 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23395 sed -n "$gl_absolute_header_sed"`
23397 gl_header
=$gl_cv_absolute_signal_h
23398 gl_cv_next_signal_h
='"'$gl_header'"'
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23403 $as_echo "$gl_cv_next_signal_h" >&6; }
23405 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23407 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23409 gl_next_as_first_directive
='<'signal.h
'>'
23411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23412 gl_next_as_first_directive
=$gl_cv_next_signal_h
23414 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23420 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23421 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23422 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23423 #include <signal.h>
23426 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
23429 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23438 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23439 #include <signal.h>
23442 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
23445 HAVE_SIGHANDLER_T
=0
23450 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
23451 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23453 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23454 if eval \
${$as_gl_Symbol+:} false
; then :
23455 $as_echo_n "(cached) " >&6
23457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23458 /* end confdefs.h. */
23459 #include <signal.h>
23470 if ac_fn_c_try_compile
"$LINENO"; then :
23471 eval "$as_gl_Symbol=yes"
23473 eval "$as_gl_Symbol=no"
23475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23477 eval ac_res
=\$
$as_gl_Symbol
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23479 $as_echo "$ac_res" >&6; }
23480 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23481 cat >>confdefs.h
<<_ACEOF
23482 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23485 eval ac_cv_have_decl_
$gl_func=yes
23490 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23491 /* <sys/types.h> is not needed according to POSIX, but the
23492 <sys/socket.h> in i386-unknown-freebsd4.10 and
23493 powerpc-apple-darwin5.5 required it. */
23494 #include <sys/types.h>
23495 #if HAVE_SYS_SOCKET_H
23496 # include <sys/socket.h>
23497 #elif HAVE_WS2TCPIP_H
23498 # include <ws2tcpip.h>
23502 if test "x$ac_cv_type_socklen_t" = xyes
; then :
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23506 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23507 if ${gl_cv_socklen_t_equiv+:} false
; then :
23508 $as_echo_n "(cached) " >&6
23510 # Systems have either "struct sockaddr *" or
23511 # "void *" as the second argument to getpeername
23512 gl_cv_socklen_t_equiv
=
23513 for arg2
in "struct sockaddr" void
; do
23514 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23516 /* end confdefs.h. */
23517 #include <sys/types.h>
23518 #include <sys/socket.h>
23520 int getpeername (int, $arg2 *, $t *);
23525 getpeername (0, 0, &len);
23530 if ac_fn_c_try_compile
"$LINENO"; then :
23531 gl_cv_socklen_t_equiv
="$t"
23533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23534 test "$gl_cv_socklen_t_equiv" != "" && break
23536 test "$gl_cv_socklen_t_equiv" != "" && break
23541 if test "$gl_cv_socklen_t_equiv" = ""; then
23542 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23545 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23547 cat >>confdefs.h
<<_ACEOF
23548 #define socklen_t $gl_cv_socklen_t_equiv
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23555 $as_echo_n "checking for ssize_t... " >&6; }
23556 if ${gt_cv_ssize_t+:} false
; then :
23557 $as_echo_n "(cached) " >&6
23559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561 #include <sys/types.h>
23565 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23571 if ac_fn_c_try_compile
"$LINENO"; then :
23576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23579 $as_echo "$gt_cv_ssize_t" >&6; }
23580 if test $gt_cv_ssize_t = no
; then
23582 $as_echo "#define ssize_t int" >>confdefs.h
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23596 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23597 if ${gl_cv_func_stat_dir_slash+:} false
; then :
23598 $as_echo_n "(cached) " >&6
23600 if test "$cross_compiling" = yes; then :
23602 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23603 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23607 /* end confdefs.h. */
23608 #include <sys/stat.h>
23613 struct stat st; return stat (".", &st) != stat ("./", &st);
23618 if ac_fn_c_try_run
"$LINENO"; then :
23619 gl_cv_func_stat_dir_slash
=yes
23621 gl_cv_func_stat_dir_slash
=no
23623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23629 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23631 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23632 if ${gl_cv_func_stat_file_slash+:} false
; then :
23633 $as_echo_n "(cached) " >&6
23636 # Assume that if we have lstat, we can also check symlinks.
23637 if test $ac_cv_func_lstat = yes; then
23638 ln -s conftest.tmp conftest.lnk
23640 if test "$cross_compiling" = yes; then :
23642 # Guess yes on glibc systems.
23643 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23644 # If we don't know, assume the worst.
23645 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23651 #include <sys/stat.h>
23658 if (!stat ("conftest.tmp/", &st))
23661 if (!stat ("conftest.lnk/", &st))
23670 if ac_fn_c_try_run
"$LINENO"; then :
23671 gl_cv_func_stat_file_slash
=yes
23673 gl_cv_func_stat_file_slash
=no
23675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23679 rm -f conftest.tmp conftest.lnk
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23682 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23683 case $gl_cv_func_stat_dir_slash in
23684 *no
) REPLACE_STAT
=1
23686 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23689 case $gl_cv_func_stat_file_slash in
23690 *no
) REPLACE_STAT
=1
23692 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23696 if test $REPLACE_STAT = 1; then
23705 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23720 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23726 $as_echo_n "checking for working stdalign.h... " >&6; }
23727 if ${gl_cv_header_working_stdalign_h+:} false
; then :
23728 $as_echo_n "(cached) " >&6
23730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23731 /* end confdefs.h. */
23732 #include <stdalign.h>
23733 #include <stddef.h>
23735 /* Test that alignof yields a result consistent with offsetof.
23736 This catches GCC bug 52023
23737 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23739 template <class t> struct alignof_helper { char a; t b; };
23740 # define ao(type) offsetof (alignof_helper<type>, b)
23742 # define ao(type) offsetof (struct { char a; type b; }, b)
23744 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23745 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23746 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23748 /* Test _Alignas only on platforms where gnulib can help. */
23750 ((defined __cplusplus && 201103 <= __cplusplus) \
23751 || (defined __APPLE__ && defined __MACH__ \
23752 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23754 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23755 || __ICC || 0x5110 <= __SUNPRO_C \
23756 || 1300 <= _MSC_VER)
23757 struct alignas_test { char c; char alignas (8) alignas_8; };
23758 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23770 if ac_fn_c_try_compile
"$LINENO"; then :
23771 gl_cv_header_working_stdalign_h
=yes
23773 gl_cv_header_working_stdalign_h
=no
23775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23778 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23780 if test $gl_cv_header_working_stdalign_h = yes; then
23783 STDALIGN_H
='stdalign.h'
23787 if test -n "$STDALIGN_H"; then
23788 GL_GENERATE_STDALIGN_H_TRUE
=
23789 GL_GENERATE_STDALIGN_H_FALSE
='#'
23791 GL_GENERATE_STDALIGN_H_TRUE
='#'
23792 GL_GENERATE_STDALIGN_H_FALSE
=
23799 # Define two additional variables used in the Makefile substitution.
23801 if test "$ac_cv_header_stdbool_h" = yes; then
23804 STDBOOL_H
='stdbool.h'
23807 if test -n "$STDBOOL_H"; then
23808 GL_GENERATE_STDBOOL_H_TRUE
=
23809 GL_GENERATE_STDBOOL_H_FALSE
='#'
23811 GL_GENERATE_STDBOOL_H_TRUE
='#'
23812 GL_GENERATE_STDBOOL_H_FALSE
=
23816 if test "$ac_cv_type__Bool" = yes; then
23827 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23830 if test "x$ac_cv_type_max_align_t" = xyes
; then :
23833 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
23836 if test $gt_cv_c_wchar_t = no
; then
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23841 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23842 if ${gl_cv_decl_null_works+:} false
; then :
23843 $as_echo_n "(cached) " >&6
23845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h. */
23847 #include <stddef.h>
23848 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23858 if ac_fn_c_try_compile
"$LINENO"; then :
23859 gl_cv_decl_null_works
=yes
23861 gl_cv_decl_null_works
=no
23863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23866 $as_echo "$gl_cv_decl_null_works" >&6; }
23867 if test $gl_cv_decl_null_works = no
; then
23872 if test -n "$STDDEF_H"; then
23873 GL_GENERATE_STDDEF_H_TRUE
=
23874 GL_GENERATE_STDDEF_H_FALSE
='#'
23876 GL_GENERATE_STDDEF_H_TRUE
='#'
23877 GL_GENERATE_STDDEF_H_FALSE
=
23880 if test -n "$STDDEF_H"; then
23889 if test $gl_cv_have_include_next = yes; then
23890 gl_cv_next_stddef_h
='<'stddef.h
'>'
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23893 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23894 if ${gl_cv_next_stddef_h+:} false
; then :
23895 $as_echo_n "(cached) " >&6
23900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23901 /* end confdefs.h. */
23902 #include <stddef.h>
23905 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23906 *) gl_absname_cpp
="$ac_cpp" ;;
23911 gl_dirsep_regex
='[/\\]'
23914 gl_dirsep_regex
='\/'
23917 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23918 gl_header_literal_regex
=`echo 'stddef.h' \
23919 | sed -e "$gl_make_literal_regex_sed"`
23920 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23921 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23927 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23928 sed -n "$gl_absolute_header_sed"`
23930 gl_header
=$gl_cv_absolute_stddef_h
23931 gl_cv_next_stddef_h
='"'$gl_header'"'
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23936 $as_echo "$gl_cv_next_stddef_h" >&6; }
23938 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23940 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23942 gl_next_as_first_directive
='<'stddef.h
'>'
23944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23945 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23947 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23957 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23968 if test $gl_cv_have_include_next = yes; then
23969 gl_cv_next_stdio_h
='<'stdio.h
'>'
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23972 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23973 if ${gl_cv_next_stdio_h+:} false
; then :
23974 $as_echo_n "(cached) " >&6
23979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23980 /* end confdefs.h. */
23984 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23985 *) gl_absname_cpp
="$ac_cpp" ;;
23990 gl_dirsep_regex
='[/\\]'
23993 gl_dirsep_regex
='\/'
23996 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23997 gl_header_literal_regex
=`echo 'stdio.h' \
23998 | sed -e "$gl_make_literal_regex_sed"`
23999 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24000 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24006 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24007 sed -n "$gl_absolute_header_sed"`
24009 gl_header
=$gl_cv_absolute_stdio_h
24010 gl_cv_next_stdio_h
='"'$gl_header'"'
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24015 $as_echo "$gl_cv_next_stdio_h" >&6; }
24017 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24019 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24021 gl_next_as_first_directive
='<'stdio.h
'>'
24023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24024 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24026 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24033 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24034 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
24035 $as_echo_n "(cached) " >&6
24037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h. */
24040 #define __STDC_FORMAT_MACROS 1
24042 #include <inttypes.h>
24043 /* For non-mingw systems, compilation will trivially succeed.
24044 For mingw, compilation will succeed for older mingw (system
24045 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24046 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
24047 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24048 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24059 if ac_fn_c_try_compile
"$LINENO"; then :
24060 gl_cv_func_printf_attribute_flavor
=system
24062 gl_cv_func_printf_attribute_flavor
=gnu
24064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24067 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24068 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
24070 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24077 cat >>confdefs.h
<<_ACEOF
24078 #define GNULIB_FSCANF 1
24085 cat >>confdefs.h
<<_ACEOF
24086 #define GNULIB_SCANF 1
24111 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
24112 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24114 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24115 if eval \
${$as_gl_Symbol+:} false
; then :
24116 $as_echo_n "(cached) " >&6
24118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24119 /* end confdefs.h. */
24131 if ac_fn_c_try_compile
"$LINENO"; then :
24132 eval "$as_gl_Symbol=yes"
24134 eval "$as_gl_Symbol=no"
24136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24138 eval ac_res
=\$
$as_gl_Symbol
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24140 $as_echo "$ac_res" >&6; }
24141 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24142 cat >>confdefs.h
<<_ACEOF
24143 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24146 eval ac_cv_have_decl_
$gl_func=yes
24161 if test $gl_cv_have_include_next = yes; then
24162 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24165 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24166 if ${gl_cv_next_stdlib_h+:} false
; then :
24167 $as_echo_n "(cached) " >&6
24172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24173 /* end confdefs.h. */
24174 #include <stdlib.h>
24177 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24178 *) gl_absname_cpp
="$ac_cpp" ;;
24183 gl_dirsep_regex
='[/\\]'
24186 gl_dirsep_regex
='\/'
24189 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24190 gl_header_literal_regex
=`echo 'stdlib.h' \
24191 | sed -e "$gl_make_literal_regex_sed"`
24192 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24193 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24199 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24200 sed -n "$gl_absolute_header_sed"`
24202 gl_header
=$gl_cv_absolute_stdlib_h
24203 gl_cv_next_stdlib_h
='"'$gl_header'"'
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24208 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24210 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24212 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24214 gl_next_as_first_directive
='<'stdlib.h
'>'
24216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24217 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24219 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24226 for gl_func
in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv
; do
24227 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24229 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24230 if eval \
${$as_gl_Symbol+:} false
; then :
24231 $as_echo_n "(cached) " >&6
24233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24234 /* end confdefs.h. */
24235 #include <stdlib.h>
24236 #if HAVE_SYS_LOADAVG_H
24237 # include <sys/loadavg.h>
24240 # include <random.h>
24252 if ac_fn_c_try_compile
"$LINENO"; then :
24253 eval "$as_gl_Symbol=yes"
24255 eval "$as_gl_Symbol=no"
24257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24259 eval ac_res
=\$
$as_gl_Symbol
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24262 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24263 cat >>confdefs.h
<<_ACEOF
24264 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24267 eval ac_cv_have_decl_
$gl_func=yes
24276 for ac_func
in strchrnul
24278 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
24279 if test "x$ac_cv_func_strchrnul" = xyes
; then :
24280 cat >>confdefs.h
<<_ACEOF
24281 #define HAVE_STRCHRNUL 1
24287 if test $ac_cv_func_strchrnul = no
; then
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
24291 $as_echo_n "checking whether strchrnul works... " >&6; }
24292 if ${gl_cv_func_strchrnul_works+:} false
; then :
24293 $as_echo_n "(cached) " >&6
24295 if test "$cross_compiling" = yes; then :
24296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24297 /* end confdefs.h. */
24299 #if defined __CYGWIN__
24300 #include <cygwin/version.h>
24301 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
24309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24310 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24311 gl_cv_func_strchrnul_works
="guessing yes"
24313 gl_cv_func_strchrnul_works
="guessing no"
24319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h. */
24322 #include <string.h> /* for strchrnul */
24327 const char *buf = "a";
24328 return strchrnul (buf, 'b') != buf + 1;
24334 if ac_fn_c_try_run
"$LINENO"; then :
24335 gl_cv_func_strchrnul_works
=yes
24337 gl_cv_func_strchrnul_works
=no
24339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
24346 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
24347 case "$gl_cv_func_strchrnul_works" in
24349 *) REPLACE_STRCHRNUL
=1 ;;
24353 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
24362 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
24377 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
24391 if test $ac_cv_func_strdup = yes; then
24392 if test $gl_cv_func_malloc_posix != yes; then
24403 if test $ac_cv_have_decl_strdup = no
; then
24407 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
24416 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
24431 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
24440 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24442 $as_echo_n "checking for working strerror function... " >&6; }
24443 if ${gl_cv_func_working_strerror+:} false
; then :
24444 $as_echo_n "(cached) " >&6
24446 if test "$cross_compiling" = yes; then :
24448 # Guess yes on glibc systems.
24449 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
24450 # If we don't know, assume the worst.
24451 *) gl_cv_func_working_strerror
="guessing no" ;;
24455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24456 /* end confdefs.h. */
24457 #include <string.h>
24462 if (!*strerror (-2)) return 1;
24467 if ac_fn_c_try_run
"$LINENO"; then :
24468 gl_cv_func_working_strerror
=yes
24470 gl_cv_func_working_strerror
=no
24472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24473 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24479 $as_echo "$gl_cv_func_working_strerror" >&6; }
24480 case "$gl_cv_func_working_strerror" in
24491 if test $REPLACE_STRERROR = 1; then
24500 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
24505 cat >>confdefs.h
<<_ACEOF
24506 #define GNULIB_STRERROR 1
24521 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24527 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
24536 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
24548 if test $ac_cv_header_sys_socket_h != yes; then
24549 for ac_header
in winsock2.h
24551 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24552 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
24553 cat >>confdefs.h
<<_ACEOF
24554 #define HAVE_WINSOCK2_H 1
24562 if test "$ac_cv_header_winsock2_h" = yes; then
24564 UNISTD_H_HAVE_WINSOCK2_H
=1
24565 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24577 if test $REPLACE_STRSTR = 0; then
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
24579 $as_echo_n "checking whether strstr works in linear time... " >&6; }
24580 if ${gl_cv_func_strstr_linear+:} false
; then :
24581 $as_echo_n "(cached) " >&6
24583 if test "$cross_compiling" = yes; then :
24584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 #include <features.h>
24588 #ifdef __GNU_LIBRARY__
24589 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24590 && !(defined __i386__ || defined __x86_64__) \
24591 && !defined __UCLIBC__
24596 #include <cygwin/version.h>
24597 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24604 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24605 gl_cv_func_strstr_linear
="guessing yes"
24607 gl_cv_func_strstr_linear
="guessing no"
24613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h. */
24617 /* z/OS does not deliver signals while strstr() is running (thanks to
24618 restrictions on its LE runtime), which prevents us from limiting the
24619 running time of this test. */
24620 # error "This test does not work properly on z/OS"
24622 #include <signal.h> /* for signal */
24623 #include <string.h> /* for strstr */
24624 #include <stdlib.h> /* for malloc */
24625 #include <unistd.h> /* for alarm */
24626 static void quit (int sig) { _exit (sig + 128); }
24633 size_t m = 1000000;
24634 char *haystack = (char *) malloc (2 * m + 2);
24635 char *needle = (char *) malloc (m + 2);
24636 /* Failure to compile this test due to missing alarm is okay,
24637 since all such platforms (mingw) also have quadratic strstr. */
24638 signal (SIGALRM, quit);
24640 /* Check for quadratic performance. */
24641 if (haystack && needle)
24643 memset (haystack, 'A', 2 * m);
24644 haystack[2 * m] = 'B';
24645 haystack[2 * m + 1] = 0;
24646 memset (needle, 'A', m);
24649 if (!strstr (haystack, needle))
24658 if ac_fn_c_try_run
"$LINENO"; then :
24659 gl_cv_func_strstr_linear
=yes
24661 gl_cv_func_strstr_linear
=no
24663 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24664 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
24670 $as_echo "$gl_cv_func_strstr_linear" >&6; }
24671 case "$gl_cv_func_strstr_linear" in
24679 if test $REPLACE_STRSTR = 1; then
24688 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
24694 if test "$gl_cv_func_memchr_works" != yes; then
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
24698 $as_echo_n "checking whether strstr works... " >&6; }
24699 if ${gl_cv_func_strstr_works_always+:} false
; then :
24700 $as_echo_n "(cached) " >&6
24702 if test "$cross_compiling" = yes; then :
24703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h. */
24706 #ifdef __GNU_LIBRARY__
24707 #include <features.h>
24708 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24709 || defined __UCLIBC__
24712 #elif defined __CYGWIN__
24713 #include <cygwin/version.h>
24714 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24723 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24724 gl_cv_func_strstr_works_always
="guessing yes"
24726 gl_cv_func_strstr_works_always
="guessing no"
24732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24733 /* end confdefs.h. */
24735 #include <string.h> /* for strstr */
24736 #define P "_EF_BF_BD"
24737 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24738 #define NEEDLE P P P P P
24743 return !!strstr (HAYSTACK, NEEDLE);
24749 if ac_fn_c_try_run
"$LINENO"; then :
24750 gl_cv_func_strstr_works_always
=yes
24752 gl_cv_func_strstr_works_always
=no
24754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
24761 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
24762 case "$gl_cv_func_strstr_works_always" in
24770 if test $REPLACE_STRSTR = 1; then
24779 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
24793 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
24801 for ac_func
in strtok_r
24803 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24804 if test "x$ac_cv_func_strtok_r" = xyes
; then :
24805 cat >>confdefs.h
<<_ACEOF
24806 #define HAVE_STRTOK_R 1
24812 if test $ac_cv_func_strtok_r = yes; then
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24815 $as_echo_n "checking whether strtok_r works... " >&6; }
24816 if ${gl_cv_func_strtok_r_works+:} false
; then :
24817 $as_echo_n "(cached) " >&6
24819 if test "$cross_compiling" = yes; then :
24822 # Guess no on glibc systems.
24823 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
24824 *) gl_cv_func_strtok_r_works
="guessing yes";;
24828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24829 /* end confdefs.h. */
24831 #ifndef __OPTIMIZE__
24832 # define __OPTIMIZE__ 1
24834 #undef __OPTIMIZE_SIZE__
24835 #undef __NO_INLINE__
24836 #include <stdlib.h>
24837 #include <string.h>
24842 static const char dummy[] = "\177\01a";
24843 char delimiters[] = "xxxxxxxx";
24844 char *save_ptr = (char *) dummy;
24845 strtok_r (delimiters, "x", &save_ptr);
24846 strtok_r (NULL, "x", &save_ptr);
24854 if ac_fn_c_try_run
"$LINENO"; then :
24855 gl_cv_func_strtok_r_works
=yes
24857 gl_cv_func_strtok_r_works
=no
24859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24866 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24867 case "$gl_cv_func_strtok_r_works" in
24869 UNDEFINE_STRTOK_R
=1
24882 if test $ac_cv_have_decl_strtok_r = no
; then
24883 HAVE_DECL_STRTOK_R
=0
24886 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
24895 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
24912 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24938 if test $gl_cv_have_include_next = yes; then
24939 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24942 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24943 if ${gl_cv_next_sys_stat_h+:} false
; then :
24944 $as_echo_n "(cached) " >&6
24947 if test $ac_cv_header_sys_stat_h = yes; then
24952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24953 /* end confdefs.h. */
24954 #include <sys/stat.h>
24957 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24958 *) gl_absname_cpp
="$ac_cpp" ;;
24963 gl_dirsep_regex
='[/\\]'
24966 gl_dirsep_regex
='\/'
24969 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24970 gl_header_literal_regex
=`echo 'sys/stat.h' \
24971 | sed -e "$gl_make_literal_regex_sed"`
24972 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24979 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24980 sed -n "$gl_absolute_header_sed"`
24982 gl_header
=$gl_cv_absolute_sys_stat_h
24983 gl_cv_next_sys_stat_h
='"'$gl_header'"'
24985 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24991 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24993 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24995 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24997 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25000 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
25002 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
25014 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25016 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25020 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25021 #include <sys/stat.h>
25023 if test "x$ac_cv_type_nlink_t" = xyes
; then :
25027 $as_echo "#define nlink_t int" >>confdefs.h
25033 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
25034 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25036 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25037 if eval \
${$as_gl_Symbol+:} false
; then :
25038 $as_echo_n "(cached) " >&6
25040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25041 /* end confdefs.h. */
25042 #include <sys/stat.h>
25053 if ac_fn_c_try_compile
"$LINENO"; then :
25054 eval "$as_gl_Symbol=yes"
25056 eval "$as_gl_Symbol=no"
25058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25060 eval ac_res
=\$
$as_gl_Symbol
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25062 $as_echo "$ac_res" >&6; }
25063 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25064 cat >>confdefs.h
<<_ACEOF
25065 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25068 eval ac_cv_have_decl_
$gl_func=yes
25097 if test $gl_cv_have_include_next = yes; then
25098 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25101 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25102 if ${gl_cv_next_sys_uio_h+:} false
; then :
25103 $as_echo_n "(cached) " >&6
25106 if test $ac_cv_header_sys_uio_h = yes; then
25111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25112 /* end confdefs.h. */
25113 #include <sys/uio.h>
25116 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25117 *) gl_absname_cpp
="$ac_cpp" ;;
25122 gl_dirsep_regex
='[/\\]'
25125 gl_dirsep_regex
='\/'
25128 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25129 gl_header_literal_regex
=`echo 'sys/uio.h' \
25130 | sed -e "$gl_make_literal_regex_sed"`
25131 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25132 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25138 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25139 sed -n "$gl_absolute_header_sed"`
25141 gl_header
=$gl_cv_absolute_sys_uio_h
25142 gl_cv_next_sys_uio_h
='"'$gl_header'"'
25144 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25150 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25152 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
25154 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25155 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25156 gl_next_as_first_directive
='<'sys
/uio.h
'>'
25158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25159 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
25161 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
25166 if test $ac_cv_header_sys_uio_h = yes; then
25200 if test $gl_cv_have_include_next = yes; then
25201 gl_cv_next_unistd_h
='<'unistd.h
'>'
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25204 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25205 if ${gl_cv_next_unistd_h+:} false
; then :
25206 $as_echo_n "(cached) " >&6
25209 if test $ac_cv_header_unistd_h = yes; then
25214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25215 /* end confdefs.h. */
25216 #include <unistd.h>
25219 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25220 *) gl_absname_cpp
="$ac_cpp" ;;
25225 gl_dirsep_regex
='[/\\]'
25228 gl_dirsep_regex
='\/'
25231 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25232 gl_header_literal_regex
=`echo 'unistd.h' \
25233 | sed -e "$gl_make_literal_regex_sed"`
25234 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25235 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25241 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25242 sed -n "$gl_absolute_header_sed"`
25244 gl_header
=$gl_cv_absolute_unistd_h
25245 gl_cv_next_unistd_h
='"'$gl_header'"'
25247 gl_cv_next_unistd_h
='<'unistd.h
'>'
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25253 $as_echo "$gl_cv_next_unistd_h" >&6; }
25255 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25257 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25259 gl_next_as_first_directive
='<'unistd.h
'>'
25261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25262 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25264 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25269 if test $ac_cv_header_unistd_h = yes; then
25281 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
25282 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25284 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25285 if eval \
${$as_gl_Symbol+:} false
; then :
25286 $as_echo_n "(cached) " >&6
25288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25292 # include <unistd.h>
25294 /* Some systems declare various items in the wrong headers. */
25295 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25296 # include <fcntl.h>
25297 # include <stdio.h>
25298 # include <stdlib.h>
25299 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25313 if ac_fn_c_try_compile
"$LINENO"; then :
25314 eval "$as_gl_Symbol=yes"
25316 eval "$as_gl_Symbol=no"
25318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25320 eval ac_res
=\$
$as_gl_Symbol
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25322 $as_echo "$ac_res" >&6; }
25323 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25324 cat >>confdefs.h
<<_ACEOF
25325 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25328 eval ac_cv_have_decl_
$gl_func=yes
25351 if test $ac_cv_have_decl_unsetenv = no
; then
25352 HAVE_DECL_UNSETENV
=0
25354 for ac_func
in unsetenv
25356 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25357 if test "x$ac_cv_func_unsetenv" = xyes
; then :
25358 cat >>confdefs.h
<<_ACEOF
25359 #define HAVE_UNSETENV 1
25365 if test $ac_cv_func_unsetenv = no
; then
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25370 $as_echo_n "checking for unsetenv() return type... " >&6; }
25371 if ${gt_cv_func_unsetenv_ret+:} false
; then :
25372 $as_echo_n "(cached) " >&6
25374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h. */
25378 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25379 #include <stdlib.h>
25384 int unsetenv (const char *name);
25394 if ac_fn_c_try_compile
"$LINENO"; then :
25395 gt_cv_func_unsetenv_ret
='int'
25397 gt_cv_func_unsetenv_ret
='void'
25399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25402 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25403 if test $gt_cv_func_unsetenv_ret = 'void'; then
25405 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25411 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25412 if ${gl_cv_func_unsetenv_works+:} false
; then :
25413 $as_echo_n "(cached) " >&6
25415 if test "$cross_compiling" = yes; then :
25417 # Guess yes on glibc systems.
25418 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25419 # If we don't know, assume the worst.
25420 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h. */
25427 #include <stdlib.h>
25429 extern char **environ;
25435 char entry1[] = "a=1";
25436 char entry2[] = "b=2";
25437 char *env[] = { entry1, entry2, NULL };
25438 if (putenv ((char *) "a=1")) return 1;
25439 if (putenv (entry2)) return 2;
25442 if (getenv ("a")) return 3;
25443 if (!unsetenv ("") || errno != EINVAL) return 4;
25446 if (!getenv ("a")) return 5;
25449 if (getenv ("a")) return 6;
25455 if ac_fn_c_try_run
"$LINENO"; then :
25456 gl_cv_func_unsetenv_works
=yes
25458 gl_cv_func_unsetenv_works
=no
25460 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25461 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25466 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25467 case "$gl_cv_func_unsetenv_works" in
25475 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25484 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25508 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25530 if test $gl_cv_have_include_next = yes; then
25531 gl_cv_next_wchar_h
='<'wchar.h
'>'
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25534 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25535 if ${gl_cv_next_wchar_h+:} false
; then :
25536 $as_echo_n "(cached) " >&6
25539 if test $ac_cv_header_wchar_h = yes; then
25544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25549 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25550 *) gl_absname_cpp
="$ac_cpp" ;;
25555 gl_dirsep_regex
='[/\\]'
25558 gl_dirsep_regex
='\/'
25561 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25562 gl_header_literal_regex
=`echo 'wchar.h' \
25563 | sed -e "$gl_make_literal_regex_sed"`
25564 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25565 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25571 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25572 sed -n "$gl_absolute_header_sed"`
25574 gl_header
=$gl_cv_absolute_wchar_h
25575 gl_cv_next_wchar_h
='"'$gl_header'"'
25577 gl_cv_next_wchar_h
='<'wchar.h
'>'
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25583 $as_echo "$gl_cv_next_wchar_h" >&6; }
25585 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
25587 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25589 gl_next_as_first_directive
='<'wchar.h
'>'
25591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25592 gl_next_as_first_directive
=$gl_cv_next_wchar_h
25594 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
25599 if test $ac_cv_header_wchar_h = yes; then
25609 if test $gt_cv_c_wint_t = yes; then
25617 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
25618 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25620 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25621 if eval \
${$as_gl_Symbol+:} false
; then :
25622 $as_echo_n "(cached) " >&6
25624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h. */
25627 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25629 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25630 included before <wchar.h>. */
25631 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25632 # include <stddef.h>
25633 # include <stdio.h>
25647 if ac_fn_c_try_compile
"$LINENO"; then :
25648 eval "$as_gl_Symbol=yes"
25650 eval "$as_gl_Symbol=no"
25652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25654 eval ac_res
=\$
$as_gl_Symbol
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25656 $as_echo "$ac_res" >&6; }
25657 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25658 cat >>confdefs.h
<<_ACEOF
25659 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25662 eval ac_cv_have_decl_
$gl_func=yes
25678 if test $ac_cv_func_iswcntrl = yes; then
25686 if test $gt_cv_c_wint_t = yes; then
25708 if test $gl_cv_have_include_next = yes; then
25709 gl_cv_next_wctype_h
='<'wctype.h
'>'
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
25712 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
25713 if ${gl_cv_next_wctype_h+:} false
; then :
25714 $as_echo_n "(cached) " >&6
25717 if test $ac_cv_header_wctype_h = yes; then
25722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25723 /* end confdefs.h. */
25724 #include <wctype.h>
25727 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25728 *) gl_absname_cpp
="$ac_cpp" ;;
25733 gl_dirsep_regex
='[/\\]'
25736 gl_dirsep_regex
='\/'
25739 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25740 gl_header_literal_regex
=`echo 'wctype.h' \
25741 | sed -e "$gl_make_literal_regex_sed"`
25742 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25743 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25749 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25750 sed -n "$gl_absolute_header_sed"`
25752 gl_header
=$gl_cv_absolute_wctype_h
25753 gl_cv_next_wctype_h
='"'$gl_header'"'
25755 gl_cv_next_wctype_h
='<'wctype.h
'>'
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
25761 $as_echo "$gl_cv_next_wctype_h" >&6; }
25763 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
25765 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25767 gl_next_as_first_directive
='<'wctype.h
'>'
25769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25770 gl_next_as_first_directive
=$gl_cv_next_wctype_h
25772 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
25777 if test $ac_cv_header_wctype_h = yes; then
25778 if test $ac_cv_func_iswcntrl = yes; then
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
25780 $as_echo_n "checking whether iswcntrl works... " >&6; }
25781 if ${gl_cv_func_iswcntrl_works+:} false
; then :
25782 $as_echo_n "(cached) " >&6
25785 if test "$cross_compiling" = yes; then :
25786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25787 /* end confdefs.h. */
25788 #include <stdlib.h>
25789 #if __GNU_LIBRARY__ == 1
25790 Linux libc5 i18n is broken.
25800 if ac_fn_c_try_compile
"$LINENO"; then :
25801 gl_cv_func_iswcntrl_works
="guessing yes"
25803 gl_cv_func_iswcntrl_works
="guessing no"
25805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25809 /* end confdefs.h. */
25811 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25812 included before <wchar.h>.
25813 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25814 must be included before <wchar.h>. */
25815 #include <stddef.h>
25819 #include <wctype.h>
25820 int main () { return iswprint ('x') == 0; }
25823 if ac_fn_c_try_run
"$LINENO"; then :
25824 gl_cv_func_iswcntrl_works
=yes
25826 gl_cv_func_iswcntrl_works
=no
25828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
25835 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
25843 case "$gl_cv_func_iswcntrl_works" in
25844 *yes) REPLACE_ISWCNTRL
=0 ;;
25845 *) REPLACE_ISWCNTRL
=1 ;;
25849 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
25853 if test $REPLACE_ISWCNTRL = 1; then
25856 for ac_func
in towlower
25858 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
25859 if test "x$ac_cv_func_towlower" = xyes
; then :
25860 cat >>confdefs.h
<<_ACEOF
25861 #define HAVE_TOWLOWER 1
25867 if test $ac_cv_func_towlower = yes; then
25870 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25871 included before <wchar.h>.
25872 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25873 must be included before <wchar.h>. */
25874 #include <stddef.h>
25879 # include <wctype.h>
25883 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
25889 cat >>confdefs.h
<<_ACEOF
25890 #define HAVE_DECL_TOWLOWER $ac_have_decl
25893 if test $ac_cv_have_decl_towlower = yes; then
25902 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
25907 $as_echo_n "checking for wctype_t... " >&6; }
25908 if ${gl_cv_type_wctype_t+:} false
; then :
25909 $as_echo_n "(cached) " >&6
25911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h. */
25913 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25914 included before <wchar.h>.
25915 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25916 must be included before <wchar.h>. */
25917 #include <stddef.h>
25922 # include <wctype.h>
25934 if ac_fn_c_try_compile
"$LINENO"; then :
25935 gl_cv_type_wctype_t
=yes
25937 gl_cv_type_wctype_t
=no
25939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
25943 $as_echo "$gl_cv_type_wctype_t" >&6; }
25944 if test $gl_cv_type_wctype_t = no
; then
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
25949 $as_echo_n "checking for wctrans_t... " >&6; }
25950 if ${gl_cv_type_wctrans_t+:} false
; then :
25951 $as_echo_n "(cached) " >&6
25953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25955 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25956 included before <wchar.h>.
25957 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25958 must be included before <wchar.h>. */
25959 #include <stddef.h>
25963 #include <wctype.h>
25974 if ac_fn_c_try_compile
"$LINENO"; then :
25975 gl_cv_type_wctrans_t
=yes
25977 gl_cv_type_wctrans_t
=no
25979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
25983 $as_echo "$gl_cv_type_wctrans_t" >&6; }
25984 if test $gl_cv_type_wctrans_t = no
; then
25989 for gl_func
in wctype iswctype wctrans towctrans
; do
25990 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25992 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25993 if eval \
${$as_gl_Symbol+:} false
; then :
25994 $as_echo_n "(cached) " >&6
25996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h. */
25999 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26001 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26002 included before <wchar.h>. */
26003 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26004 # include <stddef.h>
26005 # include <stdio.h>
26007 # include <wchar.h>
26009 #include <wctype.h>
26020 if ac_fn_c_try_compile
"$LINENO"; then :
26021 eval "$as_gl_Symbol=yes"
26023 eval "$as_gl_Symbol=no"
26025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26027 eval ac_res
=\$
$as_gl_Symbol
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26029 $as_echo "$ac_res" >&6; }
26030 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26031 cat >>confdefs.h
<<_ACEOF
26032 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26035 eval ac_cv_have_decl_
$gl_func=yes
26040 # End of code from modules
26061 gl_source_base
='tests'
26062 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
26064 gl_module_indicator_condition
=$gltests_WITNESS
26074 LIBGNU_LIBDEPS
="$gl_libdeps"
26076 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26080 # We don't use automake, but gnulib does. This line lets us generate
26082 am__api_version
='1.15'
26084 # Find a good install program. We prefer a C program (faster),
26085 # so one script is as good as another. But avoid the broken or
26086 # incompatible versions:
26087 # SysV /etc/install, /usr/sbin/install
26088 # SunOS /usr/etc/install
26089 # IRIX /sbin/install
26091 # AmigaOS /C/install, which installs bootblocks on floppy discs
26092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
26094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26095 # OS/2's system install, which has a completely different semantic
26096 # ./install, which can be erroneously created by make from ./install.sh.
26097 # Reject install programs that cannot install multiple files.
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26099 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26100 if test -z "$INSTALL"; then
26101 if ${ac_cv_path_install+:} false
; then :
26102 $as_echo_n "(cached) " >&6
26104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26105 for as_dir
in $PATH
26108 test -z "$as_dir" && as_dir
=.
26109 # Account for people who put trailing slashes in PATH elements.
26110 case $as_dir/ in #((
26111 .
/ | .
// |
/[cC
]/* | \
26112 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
26113 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
26116 # OSF1 and SCO ODT 3.0 have their own names for install.
26117 # Don't use installbsd from OSF since it installs stuff as root
26119 for ac_prog
in ginstall scoinst
install; do
26120 for ac_exec_ext
in '' $ac_executable_extensions; do
26121 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
26122 if test $ac_prog = install &&
26123 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26124 # AIX install. It has an incompatible calling convention.
26126 elif test $ac_prog = install &&
26127 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26128 # program-specific install script used by HP pwplus--don't use.
26131 rm -rf conftest.one conftest.two conftest.dir
26132 echo one
> conftest.one
26133 echo two
> conftest.two
26135 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
26136 test -s conftest.one
&& test -s conftest.two
&&
26137 test -s conftest.dir
/conftest.one
&&
26138 test -s conftest.dir
/conftest.two
26140 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
26153 rm -rf conftest.one conftest.two conftest.dir
26156 if test "${ac_cv_path_install+set}" = set; then
26157 INSTALL
=$ac_cv_path_install
26159 # As a last resort, use the slow shell script. Don't cache a
26160 # value for INSTALL within a source directory, because that will
26161 # break other packages using the cache if that directory is
26162 # removed, or if the value is a relative name.
26163 INSTALL
=$ac_install_sh
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26167 $as_echo "$INSTALL" >&6; }
26169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26170 # It thinks the first close brace ends the variable substitution.
26171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
26173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
26175 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26178 $as_echo_n "checking whether build environment is sane... " >&6; }
26179 # Reject unsafe characters in $srcdir or the absolute working directory
26180 # name. Accept space and tab only in the latter.
26184 *[\\\"\
#\$\&\'\`$am_lf]*)
26185 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
26188 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
26189 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26192 # Do 'set' in a subshell so we don't clobber the current shell's
26193 # arguments. Must try -L first in case configure is actually a
26194 # symlink; some systems play weird games with the mod time of symlinks
26195 # (eg FreeBSD returns the mod time of the symlink's containing
26199 for am_try
in 1 2; do
26200 echo "timestamp, slept: $am_has_slept" > conftest.
file
26201 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26202 if test "$*" = "X"; then
26204 set X
`ls -t "$srcdir/configure" conftest.file`
26206 if test "$*" != "X $srcdir/configure conftest.file" \
26207 && test "$*" != "X conftest.file $srcdir/configure"; then
26209 # If neither matched, then we have a broken ls. This can happen
26210 # if, for instance, CONFIG_SHELL is bash and it inherits a
26211 # broken ls alias from the environment. This has actually
26212 # happened. Such a system could not be considered "sane".
26213 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
26214 alias in your environment" "$LINENO" 5
26216 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
26223 test "$2" = conftest.
file
26229 as_fn_error $?
"newly created file is older than distributed files!
26230 Check your system clock" "$LINENO" 5
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26233 $as_echo "yes" >&6; }
26234 # If we didn't sleep, we still need to ensure time stamps of config.status and
26235 # generated files are strictly newer.
26237 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
26242 rm -f conftest.
file
26244 test "$program_prefix" != NONE
&&
26245 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
26246 # Use a double $ so make ignores it.
26247 test "$program_suffix" != NONE
&&
26248 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
26249 # Double any \ or $.
26250 # By default was `s,x,x', remove it if useless.
26251 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
26252 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
26254 if test x
"${MISSING+set}" != xset
; then
26255 case $am_aux_dir in
26257 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
26259 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
26262 # Use eval to expand $SHELL
26263 if eval "$MISSING --is-lightweight"; then
26264 am_missing_run
="$MISSING "
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26268 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26271 if test x
"${install_sh+set}" != xset
; then
26272 case $am_aux_dir in
26274 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
26276 install_sh
="\${SHELL} $am_aux_dir/install-sh"
26280 # Installed binaries are usually stripped using 'strip' when the user
26281 # run "make install-strip". However 'strip' might not be the right
26282 # tool to use in cross-compilation environments, therefore Automake
26283 # will honor the 'STRIP' environment variable to overrule this program.
26284 if test "$cross_compiling" != no
; then
26285 if test -n "$ac_tool_prefix"; then
26286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26287 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26289 $as_echo_n "checking for $ac_word... " >&6; }
26290 if ${ac_cv_prog_STRIP+:} false
; then :
26291 $as_echo_n "(cached) " >&6
26293 if test -n "$STRIP"; then
26294 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
26296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26297 for as_dir
in $PATH
26300 test -z "$as_dir" && as_dir
=.
26301 for ac_exec_ext
in '' $ac_executable_extensions; do
26302 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26303 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
26304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26313 STRIP
=$ac_cv_prog_STRIP
26314 if test -n "$STRIP"; then
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26316 $as_echo "$STRIP" >&6; }
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26319 $as_echo "no" >&6; }
26324 if test -z "$ac_cv_prog_STRIP"; then
26326 # Extract the first word of "strip", so it can be a program name with args.
26327 set dummy strip
; ac_word
=$2
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26329 $as_echo_n "checking for $ac_word... " >&6; }
26330 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
26331 $as_echo_n "(cached) " >&6
26333 if test -n "$ac_ct_STRIP"; then
26334 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
26336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26337 for as_dir
in $PATH
26340 test -z "$as_dir" && as_dir
=.
26341 for ac_exec_ext
in '' $ac_executable_extensions; do
26342 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26343 ac_cv_prog_ac_ct_STRIP
="strip"
26344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26353 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
26354 if test -n "$ac_ct_STRIP"; then
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26356 $as_echo "$ac_ct_STRIP" >&6; }
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26359 $as_echo "no" >&6; }
26362 if test "x$ac_ct_STRIP" = x
; then
26365 case $cross_compiling:$ac_tool_warned in
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26369 ac_tool_warned
=yes ;;
26374 STRIP
="$ac_cv_prog_STRIP"
26378 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
26380 for ac_prog
in gawk mawk nawk
awk
26382 # Extract the first word of "$ac_prog", so it can be a program name with args.
26383 set dummy
$ac_prog; ac_word
=$2
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26385 $as_echo_n "checking for $ac_word... " >&6; }
26386 if ${ac_cv_prog_AWK+:} false
; then :
26387 $as_echo_n "(cached) " >&6
26389 if test -n "$AWK"; then
26390 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
26392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26393 for as_dir
in $PATH
26396 test -z "$as_dir" && as_dir
=.
26397 for ac_exec_ext
in '' $ac_executable_extensions; do
26398 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26399 ac_cv_prog_AWK
="$ac_prog"
26400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26409 AWK
=$ac_cv_prog_AWK
26410 if test -n "$AWK"; then
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
26412 $as_echo "$AWK" >&6; }
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26415 $as_echo "no" >&6; }
26419 test -n "$AWK" && break
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26423 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26425 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26426 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
26427 $as_echo_n "(cached) " >&6
26429 cat >conftest.
make <<\_ACEOF
26432 @
echo '@@@%%%=$(MAKE)=@@@%%%'
26434 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26435 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26436 *@@@
%%%=?
*=@@@
%%%*)
26437 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
26439 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
26441 rm -f conftest.
make
26443 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26445 $as_echo "yes" >&6; }
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26449 $as_echo "no" >&6; }
26450 SET_MAKE
="MAKE=${MAKE-make}"
26453 rm -rf .tst
2>/dev
/null
26454 mkdir .tst
2>/dev
/null
26455 if test -d .tst
; then
26460 rmdir .tst
2>/dev
/null
26462 DEPDIR
="${am__leading_dot}deps"
26464 ac_config_commands
="$ac_config_commands depfiles"
26467 am_make
=${MAKE-make}
26468 cat > confinc
<< 'END'
26470 @
echo this is the am__doit target
26473 # If we don't find an include directive, just comment out the code.
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26475 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26479 # First try GNU make style include.
26480 echo "include confinc" > confmf
26481 # Ignore all kinds of additional output from 'make'.
26482 case `$am_make -s -f confmf 2> /dev/null` in #(
26483 *the\ am__doit\ target
*)
26484 am__include
=include
26489 # Now try BSD make style include.
26490 if test "$am__include" = "#"; then
26491 echo '.include "confinc"' > confmf
26492 case `$am_make -s -f confmf 2> /dev/null` in #(
26493 *the\ am__doit\ target
*)
26494 am__include
=.include
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26503 $as_echo "$_am_result" >&6; }
26504 rm -f confinc confmf
26506 # Check whether --enable-dependency-tracking was given.
26507 if test "${enable_dependency_tracking+set}" = set; then :
26508 enableval
=$enable_dependency_tracking;
26511 if test "x$enable_dependency_tracking" != xno
; then
26512 am_depcomp
="$ac_aux_dir/depcomp"
26516 if test "x$enable_dependency_tracking" != xno; then
26525 # Check whether --enable-silent-rules was given.
26526 if test "${enable_silent_rules+set}" = set; then :
26527 enableval
=$enable_silent_rules;
26530 case $enable_silent_rules in # (((
26531 yes) AM_DEFAULT_VERBOSITY
=0;;
26532 no
) AM_DEFAULT_VERBOSITY
=1;;
26533 *) AM_DEFAULT_VERBOSITY
=1;;
26535 am_make
=${MAKE-make}
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26537 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26538 if ${am_cv_make_support_nested_variables+:} false
; then :
26539 $as_echo_n "(cached) " >&6
26541 if $as_echo 'TRUE=$(BAR$(V))
26547 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26548 am_cv_make_support_nested_variables
=yes
26550 am_cv_make_support_nested_variables
=no
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26554 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26555 if test $am_cv_make_support_nested_variables = yes; then
26557 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26559 AM_V
=$AM_DEFAULT_VERBOSITY
26560 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26564 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26565 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26566 # is not polluted with repeated "-I."
26567 am__isrc
=' -I$(srcdir)'
26568 # test to see if srcdir already configured
26569 if test -f $srcdir/config.status
; then
26570 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26574 # test whether we have cygpath
26575 if test -z "$CYGPATH_W"; then
26576 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
26577 CYGPATH_W
='cygpath -w'
26584 # Define the identity of the package.
26586 VERSION
='UNUSED-VERSION'
26589 # Some tools Automake needs.
26591 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26594 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
26597 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26600 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
26603 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
26605 # For better backward compatibility. To be removed once Automake 1.9.x
26606 # dies out for good. For more background, see:
26607 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26608 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26609 mkdir_p
='$(MKDIR_P)'
26611 # We need awk for the "check" target (and possibly the TAP driver). The
26612 # system "awk" is bad on some platforms.
26613 # Always define AMTAR for backward compatibility. Yes, it's still used
26614 # in the wild :-( We should find a proper way to deprecate it ...
26615 AMTAR
='$${TAR-tar}'
26618 # We'll loop over all known methods to create a tar archive until one works.
26619 _am_tools
='gnutar pax cpio none'
26621 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
26627 depcc
="$CC" am_compiler_list
=
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26630 $as_echo_n "checking dependency style of $depcc... " >&6; }
26631 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
26632 $as_echo_n "(cached) " >&6
26634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26635 # We make a subdir and do the tests there. Otherwise we can end up
26636 # making bogus files that we don't know about and never remove. For
26637 # instance it was reported that on HP-UX the gcc test will end up
26638 # making a dummy file named 'D' -- because '-MD' means "put the output
26640 rm -rf conftest.dir
26642 # Copy depcomp to subdir because otherwise we won't find it if we're
26643 # using a relative directory.
26644 cp "$am_depcomp" conftest.dir
26646 # We will build objects and dependencies in a subdirectory because
26647 # it helps to detect inapplicable dependency modes. For instance
26648 # both Tru64's cc and ICC support -MD to output dependencies as a
26649 # side effect of compilation, but ICC will put the dependencies in
26650 # the current directory while Tru64 will put them in the object
26654 am_cv_CC_dependencies_compiler_type
=none
26655 if test "$am_compiler_list" = ""; then
26656 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26658 am__universal
=false
26659 case " $depcc " in #(
26660 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
26663 for depmode
in $am_compiler_list; do
26664 # Setup a source with many dependencies, because some compilers
26665 # like to wrap large dependency lists on column 80 (with \), and
26666 # we should not choose a depcomp mode which is confused by this.
26668 # We need to recreate these files for each test, as the compiler may
26669 # overwrite some of them when testing with obscure command lines.
26670 # This happens at least with the AIX C compiler.
26672 for i
in 1 2 3 4 5 6; do
26673 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
26674 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26675 # Solaris 10 /bin/sh.
26676 echo '/* dummy */' > sub
/conftst
$i.h
26678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26680 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26681 # mode. It turns out that the SunPro C++ compiler does not properly
26682 # handle '-M -o', and we need to detect this. Also, some Intel
26683 # versions had trouble with output in subdirs.
26684 am__obj
=sub
/conftest.
${OBJEXT-o}
26685 am__minus_obj
="-o $am__obj"
26688 # This depmode causes a compiler race in universal mode.
26689 test "$am__universal" = false ||
continue
26692 # After this tag, mechanisms are not by side-effect, so they'll
26693 # only be used when explicitly requested.
26694 if test "x$enable_dependency_tracking" = xyes
; then
26700 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
26701 # This compiler won't grok '-c -o', but also, the minuso test has
26702 # not run yet. These depmodes are late enough in the game, and
26703 # so weak that their functioning should not be impacted.
26704 am__obj
=conftest.
${OBJEXT-o}
26709 if depmode
=$depmode \
26710 source=sub
/conftest.c object
=$am__obj \
26711 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
26712 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
26713 >/dev
/null
2>conftest.err
&&
26714 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
26715 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
26716 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
26717 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
26718 # icc doesn't choke on unknown options, it will just issue warnings
26719 # or remarks (even with -Werror). So we grep stderr for any message
26720 # that says an option was ignored or not supported.
26721 # When given -MP, icc 7.0 and 7.1 complain thusly:
26722 # icc: Command line warning: ignoring option '-M'; no argument required
26723 # The diagnosis changed in icc 8.0:
26724 # icc: Command line remark: option '-MP' not supported
26725 if (grep 'ignoring option' conftest.err ||
26726 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
26727 am_cv_CC_dependencies_compiler_type
=$depmode
26734 rm -rf conftest.dir
26736 am_cv_CC_dependencies_compiler_type
=none
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
26741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
26742 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
26745 test "x$enable_dependency_tracking" != xno \
26746 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
26747 am__fastdepCC_TRUE
=
26748 am__fastdepCC_FALSE
='#'
26750 am__fastdepCC_TRUE
='#'
26751 am__fastdepCC_FALSE
=
26756 # POSIX will say in a future version that running "rm -f" with no argument
26757 # is OK; and we want to be able to make that assumption in our Makefile
26758 # recipes. So use an aggressive probe to check that the usage we want is
26759 # actually supported "in the wild" to an acceptable degree.
26760 # See automake bug#10828.
26761 # To make any issue more visible, cause the running configure to be aborted
26762 # by default if the 'rm' program in use doesn't match our expectations; the
26763 # user can still override this though.
26764 if rm -f && rm -fr && rm -rf; then : OK
; else
26768 Your 'rm' program seems unable to run without file operands specified
26769 on the command line, even when the '-f' option is present. This is contrary
26770 to the behaviour of most rm programs out there, and not conforming with
26771 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
26773 Please tell bug-automake@gnu.org about your system, including the value
26774 of your $PATH and any error possibly output before this message. This
26775 can help us improve future automake versions.
26778 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
26779 echo 'Configuration will proceed anyway, since you have set the' >&2
26780 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
26784 Aborting the configuration process, to ensure you take notice of the issue.
26786 You can download and install GNU coreutils to get an 'rm' implementation
26787 that behaves properly: <http://www.gnu.org/software/coreutils/>.
26789 If you want to complete the configuration process using your problematic
26790 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
26791 to "yes", and re-run configure.
26794 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
26799 # Check whether --enable-silent-rules was given.
26800 if test "${enable_silent_rules+set}" = set; then :
26801 enableval
=$enable_silent_rules;
26804 case $enable_silent_rules in # (((
26805 yes) AM_DEFAULT_VERBOSITY
=0;;
26806 no
) AM_DEFAULT_VERBOSITY
=1;;
26807 *) AM_DEFAULT_VERBOSITY
=0;;
26809 am_make
=${MAKE-make}
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26811 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26812 if ${am_cv_make_support_nested_variables+:} false
; then :
26813 $as_echo_n "(cached) " >&6
26815 if $as_echo 'TRUE=$(BAR$(V))
26821 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26822 am_cv_make_support_nested_variables
=yes
26824 am_cv_make_support_nested_variables
=no
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26828 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26829 if test $am_cv_make_support_nested_variables = yes; then
26831 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26833 AM_V
=$AM_DEFAULT_VERBOSITY
26834 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26839 # --------------------- #
26840 # Checks for programs. #
26841 # --------------------- #
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
26845 $as_echo_n "checking whether ln -s works... " >&6; }
26847 if test "$LN_S" = "ln -s"; then
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26849 $as_echo "yes" >&6; }
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
26852 $as_echo "no, using $LN_S" >&6; }
26855 if test -n "$ac_tool_prefix"; then
26856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
26857 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26859 $as_echo_n "checking for $ac_word... " >&6; }
26860 if ${ac_cv_prog_RANLIB+:} false; then :
26861 $as_echo_n "(cached) " >&6
26863 if test -n "$RANLIB"; then
26864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
26866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26867 for as_dir in $PATH
26870 test -z "$as_dir" && as_dir=.
26871 for ac_exec_ext in '' $ac_executable_extensions; do
26872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
26874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26883 RANLIB=$ac_cv_prog_RANLIB
26884 if test -n "$RANLIB"; then
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
26886 $as_echo "$RANLIB" >&6; }
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26889 $as_echo "no" >&6; }
26894 if test -z "$ac_cv_prog_RANLIB"; then
26895 ac_ct_RANLIB=$RANLIB
26896 # Extract the first word of "ranlib", so it can be a program name with args.
26897 set dummy ranlib; ac_word=$2
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26899 $as_echo_n "checking for $ac_word... " >&6; }
26900 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
26901 $as_echo_n "(cached) " >&6
26903 if test -n "$ac_ct_RANLIB"; then
26904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
26906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26910 test -z "$as_dir" && as_dir=.
26911 for ac_exec_ext in '' $ac_executable_extensions; do
26912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26913 ac_cv_prog_ac_ct_RANLIB="ranlib"
26914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
26924 if test -n "$ac_ct_RANLIB"; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
26926 $as_echo "$ac_ct_RANLIB" >&6; }
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26929 $as_echo "no" >&6; }
26932 if test "x$ac_ct_RANLIB" = x; then
26935 case $cross_compiling:$ac_tool_warned in
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26939 ac_tool_warned=yes ;;
26941 RANLIB=$ac_ct_RANLIB
26944 RANLIB="$ac_cv_prog_RANLIB"
26948 if test -n "$ac_tool_prefix"; then
26949 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
26950 set dummy ${ac_tool_prefix}ar; ac_word=$2
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26952 $as_echo_n "checking for $ac_word... " >&6; }
26953 if ${ac_cv_prog_AR+:} false; then :
26954 $as_echo_n "(cached) " >&6
26956 if test -n "$AR"; then
26957 ac_cv_prog_AR="$AR" # Let the user override the test.
26959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26960 for as_dir in $PATH
26963 test -z "$as_dir" && as_dir=.
26964 for ac_exec_ext in '' $ac_executable_extensions; do
26965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26966 ac_cv_prog_AR="${ac_tool_prefix}ar"
26967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26977 if test -n "$AR"; then
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
26979 $as_echo "$AR" >&6; }
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26982 $as_echo "no" >&6; }
26987 if test -z "$ac_cv_prog_AR"; then
26989 # Extract the first word of "ar", so it can be a program name with args.
26990 set dummy ar; ac_word=$2
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26992 $as_echo_n "checking for $ac_word... " >&6; }
26993 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26994 $as_echo_n "(cached) " >&6
26996 if test -n "$ac_ct_AR"; then
26997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27000 for as_dir in $PATH
27003 test -z "$as_dir" && as_dir=.
27004 for ac_exec_ext in '' $ac_executable_extensions; do
27005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27006 ac_cv_prog_ac_ct_AR="ar"
27007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27016 ac_ct_AR=$ac_cv_prog_ac_ct_AR
27017 if test -n "$ac_ct_AR"; then
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
27019 $as_echo "$ac_ct_AR" >&6; }
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27022 $as_echo "no" >&6; }
27025 if test "x$ac_ct_AR" = x; then
27028 case $cross_compiling:$ac_tool_warned in
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27032 ac_tool_warned=yes ;;
27037 AR="$ac_cv_prog_AR"
27041 # ---------------------- #
27042 # Checks for libraries. #
27043 # ---------------------- #
27045 ac_config_files="$ac_config_files Makefile import/Makefile"
27047 ac_config_commands="$ac_config_commands default"
27049 cat >confcache <<\_ACEOF
27050 # This file is a shell script that caches the results of configure
27051 # tests run on this system so they can be shared between configure
27052 # scripts and configure runs, see configure's option
--config-cache.
27053 # It is not useful on other systems. If it contains results you don't
27054 # want to keep, you may remove or edit it.
27056 # config.status only pays attention to the cache file if you give it
27057 # the --recheck option to rerun configure.
27059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27061 # following values.
27065 # The following way of writing the cache mishandles newlines in values,
27066 # but we know of no workaround that is simple, portable, and efficient.
27067 # So, we kill variables containing newlines.
27068 # Ultrix sh set writes to stderr and can't be redirected directly,
27069 # and sets the high bit in the cache file unless we assign to the vars.
27071 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27072 eval ac_val
=\$
$ac_var
27076 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27080 _ | IFS | as_nl
) ;; #(
27081 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27082 *) { eval $ac_var=; unset $ac_var;} ;;
27088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27089 *${as_nl}ac_space
=\
*)
27090 # `set' does not quote correctly, so add quotes: double-quote
27091 # substitution turns \\\\ into \\, and sed turns \\ into \.
27094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27097 # `set' quotes correctly as required by POSIX, so do not add quotes.
27098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27111 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27112 if test -w "$cache_file"; then
27113 if test "x$cache_file" != "x/dev/null"; then
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27115 $as_echo "$as_me: updating cache $cache_file" >&6;}
27116 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
27117 cat confcache
>"$cache_file"
27119 case $cache_file in #(
27121 mv -f confcache
"$cache_file"$$
&&
27122 mv -f "$cache_file"$$
"$cache_file" ;; #(
27124 mv -f confcache
"$cache_file" ;;
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27130 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27135 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27136 # Let make expand exec_prefix.
27137 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27139 DEFS
=-DHAVE_CONFIG_H
27143 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27144 # 1. Remove the extension, and $U if already installed.
27145 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27146 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27148 # will be set to the directory where LIBOBJS objects are built.
27149 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27150 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27152 LIBOBJS
=$ac_libobjs
27154 LTLIBOBJS
=$ac_ltlibobjs
27157 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27158 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
27159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27161 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27162 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
27163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27165 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27166 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27169 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27170 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27173 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27174 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27177 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
27178 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
27179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27181 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
27182 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
27183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27185 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27186 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27189 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27190 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27193 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27194 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
27195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27199 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
27200 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
27201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27203 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27204 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27207 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27208 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27211 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27212 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27218 if test -n "$gl_LIBOBJS"; then
27219 # Remove the extension.
27220 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27221 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27222 gl_libobjs
="$gl_libobjs $i.$ac_objext"
27223 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
27226 gl_LIBOBJS
=$gl_libobjs
27228 gl_LTLIBOBJS
=$gl_ltlibobjs
27234 if test -n "$gltests_LIBOBJS"; then
27235 # Remove the extension.
27236 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27237 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27238 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
27239 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
27242 gltests_LIBOBJS
=$gltests_libobjs
27244 gltests_LTLIBOBJS
=$gltests_ltlibobjs
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27248 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27249 if test -n "$am_sleep_pid"; then
27250 # Hide warnings about reused PIDs.
27251 wait $am_sleep_pid 2>/dev
/null
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27254 $as_echo "done" >&6; }
27255 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27256 as_fn_error $?
"conditional \"AMDEP\" was never defined.
27257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27260 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
27261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27263 if test -n "$EXEEXT"; then
27265 am__EXEEXT_FALSE
='#'
27267 am__EXEEXT_TRUE
='#'
27272 : "${CONFIG_STATUS=./config.status}"
27274 ac_clean_files_save
=$ac_clean_files
27275 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27277 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27279 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27281 # Generated by $as_me.
27282 # Run this file to recreate the current configuration.
27283 # Compiler output produced by configure, useful for debugging
27284 # configure, is in config.log if it exists.
27287 ac_cs_recheck=false
27290 SHELL=\${CONFIG_SHELL-$SHELL}
27293 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27294 ## -------------------- ##
27295 ## M4sh Initialization. ##
27296 ## -------------------- ##
27298 # Be more Bourne compatible
27299 DUALCASE
=1; export DUALCASE
# for MKS sh
27300 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27303 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27304 # is contrary to our usage. Disable this feature.
27305 alias -g '${1+"$@"}'='"$@"'
27306 setopt NO_GLOB_SUBST
27308 case `(set -o) 2>/dev/null` in #(
27320 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27321 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27324 # Prefer a ksh shell builtin over an external printf program on Solaris,
27325 # but without wasting forks for bash or zsh.
27326 if test -z "$BASH_VERSION$ZSH_VERSION" \
27327 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27328 as_echo='print
-r --'
27329 as_echo_n='print
-rn --'
27330 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27331 as_echo='printf %s
\n'
27332 as_echo_n='printf %s
'
27334 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27335 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27336 as_echo_n='/usr
/ucb
/echo -n'
27338 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27339 as_echo_n_body='eval
27343 expr "X$arg" : "X\\(.*\\)$as_nl";
27344 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27346 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27348 export as_echo_n_body
27349 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27351 export as_echo_body
27352 as_echo='sh
-c $as_echo_body as_echo
'
27355 # The user is always right.
27356 if test "${PATH_SEPARATOR+set}" != set; then
27358 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27359 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27366 # We need space, tab and new line, in precisely that order. Quoting is
27367 # there to prevent editors from complaining about space-tab.
27368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27369 # splitting by setting IFS to empty value.)
27372 # Find who we are. Look in the path if we contain no directory separator.
27375 *[\\/]* ) as_myself=$0 ;;
27376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377 for as_dir in $PATH
27380 test -z "$as_dir" && as_dir=.
27381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27387 # We did not find ourselves, most probably we were run as `sh COMMAND'
27388 # in which case we are not to be found in the path.
27389 if test "x$as_myself" = x
; then
27392 if test ! -f "$as_myself"; then
27393 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27397 # Unset variables that we do not need and which cause bugs (e.g. in
27398 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27399 # suppresses any "Segmentation fault" message there. '((' could
27400 # trigger a bug in pdksh 5.2.14.
27401 for as_var
in BASH_ENV ENV MAIL MAILPATH
27402 do eval test x\
${$as_var+set} = xset \
27403 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27416 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27419 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27420 # ----------------------------------------
27421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27423 # script with STATUS, using 1 if that was 0.
27426 as_status
=$1; test $as_status -eq 0 && as_status
=1
27428 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27429 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27431 $as_echo "$as_me: error: $2" >&2
27432 as_fn_exit
$as_status
27436 # as_fn_set_status STATUS
27437 # -----------------------
27438 # Set $? to STATUS, without forking.
27439 as_fn_set_status
()
27442 } # as_fn_set_status
27444 # as_fn_exit STATUS
27445 # -----------------
27446 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27450 as_fn_set_status
$1
27456 # Portably unset VAR.
27459 { eval $1=; unset $1;}
27461 as_unset
=as_fn_unset
27462 # as_fn_append VAR VALUE
27463 # ----------------------
27464 # Append the text in VALUE to the end of the definition contained in VAR. Take
27465 # advantage of any shell optimizations that allow amortized linear growth over
27466 # repeated appends, instead of the typical quadratic growth present in naive
27468 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27469 eval 'as_fn_append ()
27480 # as_fn_arith ARG...
27481 # ------------------
27482 # Perform arithmetic evaluation on the ARGs, and store the result in the
27483 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27484 # must be portable across $(()) and expr.
27485 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27486 eval 'as_fn_arith ()
27493 as_val
=`expr "$@" || test $? -eq 1`
27498 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27499 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27505 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27506 as_basename
=basename
27511 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27517 as_me
=`$as_basename -- "$0" ||
27518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27519 X"$0" : 'X\(//\)$' \| \
27520 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27522 sed '/^.*\/\([^/][^/]*\)\/*$/{
27536 # Avoid depending upon Character Ranges.
27537 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27538 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27539 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27540 as_cr_digits
='0123456789'
27541 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27543 ECHO_C
= ECHO_N
= ECHO_T
=
27544 case `echo -n x` in #(((((
27546 case `echo 'xy\c'` in
27547 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27549 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27556 rm -f conf$$ conf$$.exe conf$$.
file
27557 if test -d conf$$.dir
; then
27558 rm -f conf$$.dir
/conf$$.
file
27561 mkdir conf$$.dir
2>/dev
/null
27563 if (echo >conf$$.
file) 2>/dev
/null
; then
27564 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27566 # ... but there are two gotchas:
27567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27569 # In both cases, we have to default to `cp -pR'.
27570 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27572 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27580 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27581 rmdir conf$$.dir
2>/dev
/null
27586 # Create "$as_dir" as a directory, including parents if necessary.
27591 -*) as_dir
=.
/$as_dir;;
27593 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27597 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27598 *) as_qdir
=$as_dir;;
27600 as_dirs
="'$as_qdir' $as_dirs"
27601 as_dir
=`$as_dirname -- "$as_dir" ||
27602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27603 X"$as_dir" : 'X\(//\)[^/]' \| \
27604 X"$as_dir" : 'X\(//\)$' \| \
27605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27606 $as_echo X"$as_dir" |
27607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27611 /^X\(\/\/\)[^/].*/{
27624 test -d "$as_dir" && break
27626 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27627 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
27631 if mkdir
-p .
2>/dev
/null
; then
27632 as_mkdir_p
='mkdir -p "$as_dir"'
27634 test -d .
/-p && rmdir .
/-p
27639 # as_fn_executable_p FILE
27640 # -----------------------
27641 # Test if FILE is an executable regular file.
27642 as_fn_executable_p
()
27644 test -f "$1" && test -x "$1"
27645 } # as_fn_executable_p
27646 as_test_x
='test -x'
27647 as_executable_p
=as_fn_executable_p
27649 # Sed expression to map a string onto a valid CPP name.
27650 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27652 # Sed expression to map a string onto a valid variable name.
27653 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27657 ## ----------------------------------- ##
27658 ## Main body of $CONFIG_STATUS script. ##
27659 ## ----------------------------------- ##
27661 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27664 # Save the log message, to keep $0 and so on meaningful, and to
27665 # report actual input values of CONFIG_FILES etc. instead of their
27666 # values after options handling.
27668 This file was extended by libgnu $as_me UNUSED-VERSION, which was
27669 generated by GNU Autoconf 2.69. Invocation command line was
27671 CONFIG_FILES = $CONFIG_FILES
27672 CONFIG_HEADERS = $CONFIG_HEADERS
27673 CONFIG_LINKS = $CONFIG_LINKS
27674 CONFIG_COMMANDS = $CONFIG_COMMANDS
27677 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27682 case $ac_config_files in *"
27683 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27686 case $ac_config_headers in *"
27687 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27692 # Files that config.status was made for.
27693 config_files="$ac_config_files"
27694 config_headers="$ac_config_headers"
27695 config_commands="$ac_config_commands"
27699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27701 \`$as_me' instantiates files and other configuration actions
27702 from templates according to the current configuration. Unless the files
27703 and actions are specified as TAGs, all are instantiated by default.
27705 Usage: $0 [OPTION]... [TAG]...
27707 -h, --help print this help, then exit
27708 -V, --version print version number and configuration settings, then exit
27709 --config print configuration, then exit
27710 -q, --quiet, --silent
27711 do not print progress messages
27712 -d, --debug don't remove temporary files
27713 --recheck update $as_me by reconfiguring in the same conditions
27714 --file=FILE[:TEMPLATE]
27715 instantiate the configuration file FILE
27716 --header=FILE[:TEMPLATE]
27717 instantiate the configuration header FILE
27719 Configuration files:
27722 Configuration headers:
27725 Configuration commands:
27728 Report bugs to the package provider."
27731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27732 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27734 libgnu config.status UNUSED-VERSION
27735 configured by $0, generated by GNU Autoconf 2.69,
27736 with options \\"\$ac_cs_config\\"
27738 Copyright (C) 2012 Free Software Foundation, Inc.
27739 This config.status script is free software; the Free Software Foundation
27740 gives unlimited permission to copy, distribute and modify it."
27747 test -n "\$AWK" || AWK=awk
27750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27751 # The default lists apply if the user does not specify any file.
27757 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27758 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27762 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27774 # Handling of the options.
27775 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27777 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27778 $as_echo "$ac_cs_version"; exit ;;
27779 --config |
--confi |
--conf |
--con |
--co |
--c )
27780 $as_echo "$ac_cs_config"; exit ;;
27781 --debug |
--debu |
--deb |
--de |
--d |
-d )
27783 --file |
--fil |
--fi |
--f )
27786 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27787 '') as_fn_error $?
"missing file argument" ;;
27789 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27790 ac_need_defaults
=false
;;
27791 --header |
--heade |
--head |
--hea )
27794 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27796 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27797 ac_need_defaults
=false
;;
27799 # Conflict between --help and --header
27800 as_fn_error $?
"ambiguous option: \`$1'
27801 Try \`$0 --help' for more information.";;
27802 --help |
--hel |
-h )
27803 $as_echo "$ac_cs_usage"; exit ;;
27804 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27805 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27808 # This is an error.
27809 -*) as_fn_error $?
"unrecognized option: \`$1'
27810 Try \`$0 --help' for more information." ;;
27812 *) as_fn_append ac_config_targets
" $1"
27813 ac_need_defaults
=false
;;
27819 ac_configure_extra_args
=
27821 if $ac_cs_silent; then
27823 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27828 if \$ac_cs_recheck; then
27829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27832 CONFIG_SHELL='$SHELL'
27833 export CONFIG_SHELL
27838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27843 ## Running $as_me. ##
27849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27853 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27859 # Handling of arguments.
27860 for ac_config_target
in $ac_config_targets
27862 case $ac_config_target in
27863 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
27864 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27865 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27866 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
27867 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27869 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27874 # If the user did not use the arguments to specify the items to instantiate,
27875 # then the envvar interface is used. Set only those that are not.
27876 # We use the long form for the default assignment because of an extremely
27877 # bizarre bug on SunOS 4.1.3.
27878 if $ac_need_defaults; then
27879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27881 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27884 # Have a temporary directory for convenience. Make it in the build tree
27885 # simply because there is no reason against having it here, and in addition,
27886 # creating and moving files from /tmp can sometimes cause problems.
27887 # Hook for its removal unless debugging.
27888 # Note that there is a small window in which the directory will not be cleaned:
27889 # after its creation but before its name has been assigned to `$tmp'.
27893 trap 'exit_status=$?
27894 : "${ac_tmp:=$tmp}"
27895 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27897 trap 'as_fn_exit 1' 1 2 13 15
27899 # Create a (secure) tmp directory for tmp files.
27902 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27906 tmp
=.
/conf$$
-$RANDOM
27907 (umask 077 && mkdir
"$tmp")
27908 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
27911 # Set up the scripts for CONFIG_FILES section.
27912 # No need to generate them if there are no CONFIG_FILES.
27913 # This happens for instance with `./config.status config.h'.
27914 if test -n "$CONFIG_FILES"; then
27917 ac_cr
=`echo X | tr X '\015'`
27918 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27919 # But we know of no other shell where ac_cr would be empty at this
27920 # point, so we can use a bashism as a fallback.
27921 if test "x$ac_cr" = x
; then
27922 eval ac_cr
=\$
\'\\r
\'
27924 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27925 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27928 ac_cs_awk_cr
=$ac_cr
27931 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27936 echo "cat >conf$$subs.awk <<_ACEOF" &&
27937 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27939 } >conf$$subs.sh ||
27940 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27943 for ac_last_try in false false false false false :; do
27944 . ./conf$$subs.sh ||
27945 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27947 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27948 if test $ac_delim_n = $ac_delim_num; then
27950 elif $ac_last_try; then
27951 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27953 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27956 rm -f conf$$subs.sh
27958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27959 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
27963 s/^/S["/; s
/!.
*/"]=/
27973 s/\(.\{148\}\)..*/\1/
27975 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27980 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27987 s/\(.\{148\}\)..*/\1/
27989 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27993 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27998 ' <conf$$subs.awk | sed '
28003 ' >>$CONFIG_STATUS || ac_write_fail=1
28004 rm -f conf$$subs.awk
28005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28007 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
28008 for (key in S) S_is_set[key] = 1
28014 nfields = split(line, field, "@
")
28016 len = length(field[1])
28017 for (i = 2; i < nfields; i++) {
28019 keylen = length(key)
28020 if (S_is_set[key]) {
28022 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28023 len += length(value) + length(field[++i])
28034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28035 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28036 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28039 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
28040 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
28043 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28044 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
28045 # trailing colons and then remove the whole line if VPATH becomes empty
28046 # (actually we leave an empty line to preserve line numbers).
28047 if test "x
$srcdir" = x.; then
28048 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28067 fi # test -n "$CONFIG_FILES"
28069 # Set up the scripts for CONFIG_HEADERS section.
28070 # No need to generate them if there are no CONFIG_HEADERS.
28071 # This happens for instance with `./config.status Makefile'.
28072 if test -n "$CONFIG_HEADERS"; then
28073 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
28077 # Transform confdefs.h into an awk script `defines.awk', embedded as
28078 # here-document in config.status, that substitutes the proper values into
28079 # config.h.in to produce config.h.
28081 # Create a delimiter string that does not exist in confdefs.h, to ease
28082 # handling of long lines.
28084 for ac_last_try in false false :; do
28085 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
28086 if test -z "$ac_tt"; then
28088 elif $ac_last_try; then
28089 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
28091 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28095 # For the awk script, D is an array of macro values keyed by name,
28096 # likewise P contains macro parameters if any. Preserve backslash
28097 # newline sequences.
28099 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28101 s/.\{148\}/&'"$ac_delim"'/g
28104 s/^[ ]*#[ ]*define[ ][ ]*/ /
28111 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28113 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28118 D["\
1"]=" \
3\\\\\\n
"\\/p
28120 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28125 s/.\{148\}/&'"$ac_delim"'/g
28130 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28133 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28135 ' <confdefs.h | sed '
28136 s/'"$ac_delim"'/"\\\
28137 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28140 for (key in D) D_is_set[key] = 1
28143 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28145 split(line, arg, " ")
28146 if (arg[1] == "#") {
28150 defundef
= substr
(arg
[1], 2)
28153 split(mac1
, mac2
, "(") #)
28155 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28156 if (D_is_set
[macro
]) {
28157 # Preserve the white space surrounding the "#".
28158 print prefix
"define", macro P
[macro
] D
[macro
]
28161 # Replace #undef with comments. This is necessary, for example,
28162 # in the case of _POSIX_SOURCE, which is predefined and required
28163 # on some systems where configure will not decide to define it.
28164 if (defundef
== "undef") {
28165 print
"/*", prefix defundef
, macro
, "*/"
28173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28174 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
28175 fi # test -n "$CONFIG_HEADERS"
28178 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28183 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28185 case $ac_mode$ac_tag in
28187 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28188 :[FH
]-) ac_tag
=-:-;;
28189 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28206 -) ac_f
="$ac_tmp/stdin";;
28207 *) # Look for the file first in the build tree, then in the source tree
28208 # (if the path is not absolute). The absolute path cannot be DOS-style,
28209 # because $ac_f cannot contain `:'.
28213 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28215 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28217 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28218 as_fn_append ac_file_inputs
" '$ac_f'"
28221 # Let's still pretend it is `configure' which instantiates (i.e., don't
28222 # use $as_me), people would be surprised to read:
28223 # /* config.h. Generated by config.status. */
28224 configure_input
='Generated from '`
28225 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28227 if test x
"$ac_file" != x-
; then
28228 configure_input
="$ac_file. $configure_input"
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28230 $as_echo "$as_me: creating $ac_file" >&6;}
28232 # Neutralize special characters interpreted by sed in replacement strings.
28233 case $configure_input in #(
28234 *\
&* |
*\|
* |
*\\* )
28235 ac_sed_conf_input
=`$as_echo "$configure_input" |
28236 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28237 *) ac_sed_conf_input
=$configure_input;;
28241 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
28242 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
28247 ac_dir
=`$as_dirname -- "$ac_file" ||
28248 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28249 X"$ac_file" : 'X\(//\)[^/]' \| \
28250 X"$ac_file" : 'X\(//\)$' \| \
28251 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28252 $as_echo X"$ac_file" |
28253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28257 /^X\(\/\/\)[^/].*/{
28270 as_dir
="$ac_dir"; as_fn_mkdir_p
28274 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28276 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28277 # A ".." for each directory in $ac_dir_suffix.
28278 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28279 case $ac_top_builddir_sub in
28280 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28281 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28284 ac_abs_top_builddir
=$ac_pwd
28285 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28286 # for backward compatibility:
28287 ac_top_builddir
=$ac_top_build_prefix
28290 .
) # We are building in place.
28292 ac_top_srcdir
=$ac_top_builddir_sub
28293 ac_abs_top_srcdir
=$ac_pwd ;;
28294 [\\/]* | ?
:[\\/]* ) # Absolute name.
28295 ac_srcdir
=$srcdir$ac_dir_suffix;
28296 ac_top_srcdir
=$srcdir
28297 ac_abs_top_srcdir
=$srcdir ;;
28298 *) # Relative name.
28299 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28300 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28301 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28303 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28313 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28314 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28316 ac_MKDIR_P
=$MKDIR_P
28318 [\\/$
]* | ?
:[\\/]* ) ;;
28319 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28324 # If the template does not know about datarootdir, expand it.
28325 # FIXME: This hack should be removed a few years after 2.60.
28326 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28337 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28338 *datarootdir
*) ac_datarootdir_seen
=yes;;
28339 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28341 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28344 ac_datarootdir_hack='
28345 s&@datadir@&$datadir&g
28346 s&@docdir@&$docdir&g
28347 s&@infodir@&$infodir&g
28348 s&@localedir@&$localedir&g
28349 s&@mandir@&$mandir&g
28350 s&\\\${datarootdir}&$datarootdir&g' ;;
28354 # Neutralize VPATH when `$srcdir' = `.'.
28355 # Shell code in configure.ac might set extrasub.
28356 # FIXME: do we really want to maintain this feature?
28357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28358 ac_sed_extra="$ac_vpsub
28361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28363 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28364 s|@configure_input@|
$ac_sed_conf_input|
;t t
28365 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28366 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28367 s
&@srcdir@
&$ac_srcdir&;t t
28368 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28369 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28370 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28371 s
&@builddir@
&$ac_builddir&;t t
28372 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28373 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28374 s
&@INSTALL@
&$ac_INSTALL&;t t
28375 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28376 $ac_datarootdir_hack
28378 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
28379 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
28381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28382 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
28383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28384 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28386 which seems to be undefined. Please make sure it is defined" >&5
28387 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28388 which seems to be undefined. Please make sure it is defined" >&2;}
28390 rm -f "$ac_tmp/stdin"
28392 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28393 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28401 if test x"$ac_file" != x-; then
28403 $as_echo "/* $configure_input */" \
28404 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28405 } >"$ac_tmp/config.h" \
28406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28407 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28409 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28412 mv "$ac_tmp/config.h" "$ac_file" \
28413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28416 $as_echo "/* $configure_input */" \
28417 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28418 || as_fn_error $? "could not create -" "$LINENO" 5
28420 # Compute "$ac_file"'s index
in $config_headers.
28423 for _am_header
in $config_headers :; do
28424 case $_am_header in
28425 $_am_arg |
$_am_arg:* )
28428 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28431 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28432 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433 X"$_am_arg" : 'X\(//\)[^/]' \| \
28434 X"$_am_arg" : 'X\(//\)$' \| \
28435 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28436 $as_echo X"$_am_arg" |
28437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28441 /^X\(\/\/\)[^/].*/{
28453 s/.*/./; q'`/stamp-h
$_am_stamp_count
28456 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28457 $as_echo "$as_me: executing $ac_file commands" >&6;}
28462 case $ac_file$ac_mode in
28463 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28464 # Older Autoconf quotes --file arguments for eval, but not when files
28465 # are listed without --file. Let's play safe and only enable the eval
28466 # if we detect the quoting.
28467 case $CONFIG_FILES in
28468 *\'*) eval set x
"$CONFIG_FILES" ;;
28469 *) set x
$CONFIG_FILES ;;
28474 # Strip MF so we end up with the name of the file.
28475 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28476 # Check whether this is an Automake generated Makefile or not.
28477 # We used to match only the files named 'Makefile.in', but
28478 # some people rename them; so instead we look at the file content.
28479 # Grep'ing the first line is not enough: some people post-process
28480 # each Makefile.in and add a new line on top of each file to say so.
28481 # Grep'ing the whole file is not good either: AIX grep has a line
28482 # limit of 2048, but all sed's we know have understand at least 4000.
28483 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28484 dirpart
=`$as_dirname -- "$mf" ||
28485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28486 X"$mf" : 'X\(//\)[^/]' \| \
28487 X"$mf" : 'X\(//\)$' \| \
28488 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28494 /^X\(\/\/\)[^/].*/{
28510 # Extract the definition of DEPDIR, am__include, and am__quote
28511 # from the Makefile without running 'make'.
28512 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28513 test -z "$DEPDIR" && continue
28514 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28515 test -z "$am__include" && continue
28516 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28517 # Find all dependency output files, they are included files with
28518 # $(DEPDIR) in their names. We invoke sed twice because it is the
28519 # simplest approach to changing $(DEPDIR) to its actual value in the
28521 for file in `sed -n "
28522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28524 # Make sure the directory exists.
28525 test -f "$dirpart/$file" && continue
28526 fdir
=`$as_dirname -- "$file" ||
28527 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28528 X"$file" : 'X\(//\)[^/]' \| \
28529 X"$file" : 'X\(//\)$' \| \
28530 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28531 $as_echo X"$file" |
28532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28536 /^X\(\/\/\)[^/].*/{
28549 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28550 # echo "creating $dirpart/$file"
28551 echo '# dummy' > "$dirpart/$file"
28557 case x
$CONFIG_HEADERS in
28558 xconfig.h
:config.
in)
28569 ac_clean_files
=$ac_clean_files_save
28571 test $ac_write_fail = 0 ||
28572 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28575 # configure is writing to config.log, and then calls config.status.
28576 # config.status does its own redirection, appending to config.log.
28577 # Unfortunately, on DOS this fails, as config.log is still kept open
28578 # by configure, so config.status won't be able to write to it; its
28579 # output is simply discarded. So we exec the FD to /dev/null,
28580 # effectively closing config.log, so it can be properly (re)opened and
28581 # appended to by config.status. When coming back to configure, we
28582 # need to make the FD available again.
28583 if test "$no_create" != yes; then
28585 ac_config_status_args
=
28586 test "$silent" = yes &&
28587 ac_config_status_args
="$ac_config_status_args --quiet"
28589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28592 # would make configure fail if this is the last instruction.
28593 $ac_cs_success || as_fn_exit
1
28595 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28597 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}