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 mkostemp"
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 mkostemp:
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 :
17699 # Cross-compilation guesses:
17701 aix
*) # On AIX, it has the AIX bug.
17702 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
17703 gnu
*) # On Hurd, it is 'yes'.
17704 gl_cv_func_getcwd_path_max
=yes ;;
17705 linux
* | kfreebsd
*)
17706 # On older Linux+glibc it's 'no, but it is partly working',
17707 # on newer Linux+glibc it's 'yes'.
17708 # On Linux+musl libc, it's 'no, but it is partly working'.
17709 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
17710 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
17711 *) # If we don't know, assume the worst.
17712 gl_cv_func_getcwd_path_max
=no
;;
17716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17720 #include <stdlib.h>
17722 # include <unistd.h>
17724 # include <direct.h>
17726 #include <string.h>
17727 #include <limits.h>
17728 #include <sys/stat.h>
17729 #include <sys/types.h>
17733 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17735 # include <unistd.h>
17737 #include <limits.h>
17738 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17739 # include <sys/param.h>
17741 #if !defined PATH_MAX && defined MAXPATHLEN
17742 # define PATH_MAX MAXPATHLEN
17746 # define PATH_MAX 1024
17748 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17750 # define PATH_MAX 260
17755 # define AT_FDCWD 0
17757 #ifdef ENAMETOOLONG
17758 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
17760 # define is_ENAMETOOLONG(x) 0
17763 /* Use the getcwd function, not any macro. */
17766 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17770 # define S_IRWXU 0700
17773 /* The length of this name must be 8. */
17774 #define DIR_NAME "confdir3"
17775 #define DIR_NAME_LEN 8
17776 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
17778 /* The length of "../". */
17779 #define DOTDOTSLASH_LEN 3
17781 /* Leftover bytes in the buffer, to work around library or OS bugs. */
17782 #define BUF_SLOP 20
17788 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17789 at least not on a local file system. And if we were to start worrying
17790 about remote file systems, we'd have to enable the wrapper function
17791 all of the time, just to be safe. That's not worth the cost. */
17793 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17794 - DIR_NAME_SIZE - BUF_SLOP) \
17796 /* FIXME: Assuming there's a system for which this is true,
17797 this should be done in a compile test. */
17800 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17801 + DIR_NAME_SIZE + BUF_SLOP];
17802 char *cwd = getcwd (buf, PATH_MAX);
17803 size_t initial_cwd_len;
17806 size_t n_chdirs = 0;
17811 cwd_len = initial_cwd_len = strlen (cwd);
17815 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17818 cwd_len += DIR_NAME_SIZE;
17819 /* If mkdir or chdir fails, it could be that this system cannot create
17820 any file with an absolute name longer than PATH_MAX, such as cygwin.
17821 If so, leave fail as 0, because the current working directory can't
17822 be too long for getcwd if it can't even be created. For other
17823 errors, be pessimistic and consider that as a failure, too. */
17824 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17826 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17831 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17835 c = getcwd (buf, PATH_MAX);
17836 if (!c && errno == ENOENT)
17846 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17852 /* Our replacement needs to be able to stat() long ../../paths,
17853 so generate a path larger than PATH_MAX to check,
17854 avoiding the replacement if we can't stat(). */
17855 c = getcwd (buf, cwd_len + 1);
17856 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17863 if (dotdot_max <= cwd_len - initial_cwd_len)
17865 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17867 c = getcwd (buf, cwd_len + 1);
17870 if (! (errno == ERANGE || errno == ENOENT
17871 || is_ENAMETOOLONG (errno)))
17876 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17884 if (c && strlen (c) != cwd_len)
17892 /* Leaving behind such a deep directory is not polite.
17893 So clean up here, right away, even though the driving
17894 shell script would also clean up. */
17898 /* Try rmdir first, in case the chdir failed. */
17900 for (i = 0; i <= n_chdirs; i++)
17902 if (chdir ("..") < 0)
17904 if (rmdir (DIR_NAME) != 0)
17914 if ac_fn_c_try_run
"$LINENO"; then :
17915 gl_cv_func_getcwd_path_max
=yes
17918 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
17919 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17920 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
17921 *) gl_cv_func_getcwd_path_max
=no
;;
17924 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17925 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17931 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17933 case "$gl_cv_func_getcwd_null" in
17951 for ac_func
in getpagesize
17953 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17954 if test "x$ac_cv_func_getpagesize" = xyes
; then :
17955 cat >>confdefs.h
<<_ACEOF
17956 #define HAVE_GETPAGESIZE 1
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17963 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17964 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
17965 $as_echo_n "(cached) " >&6
17967 # Remove any remnants of a previous test.
17968 rm -rf confdir-14B---
17969 # Arrange for deletion of the temporary directory this test creates.
17970 ac_clean_files
="$ac_clean_files confdir-14B---"
17971 if test "$cross_compiling" = yes; then :
17972 gl_cv_func_getcwd_abort_bug
=yes
17974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17978 #include <stdlib.h>
17980 # include <unistd.h>
17981 #else /* on Windows with MSVC */
17982 # include <direct.h>
17984 #include <string.h>
17985 #include <sys/stat.h>
17988 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17990 # include <unistd.h>
17992 #include <limits.h>
17993 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17994 # include <sys/param.h>
17996 #if !defined PATH_MAX && defined MAXPATHLEN
17997 # define PATH_MAX MAXPATHLEN
18001 # define PATH_MAX 1024
18003 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18005 # define PATH_MAX 260
18009 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18013 # define S_IRWXU 0700
18016 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18017 #if ! HAVE_GETPAGESIZE
18018 # define getpagesize() 0
18021 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18022 the 16kB pagesize on ia64 linux. Those conditions make the code below
18023 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18024 #define TARGET_LEN (5 * 1024)
18030 size_t initial_cwd_len;
18033 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18034 this relatively expensive and invasive test if that's not true. */
18036 int bug_possible = PATH_MAX < getpagesize ();
18038 int bug_possible = 0;
18040 if (! bug_possible)
18043 cwd = getcwd (NULL, 0);
18047 initial_cwd_len = strlen (cwd);
18052 static char const dir_name[] = "confdir-14B---";
18053 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18054 / sizeof dir_name);
18056 for (d = 0; d < desired_depth; d++)
18058 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18060 if (! (errno == ERANGE || errno == ENAMETOOLONG
18061 || errno == ENOENT))
18062 fail = 3; /* Unable to construct deep hierarchy. */
18067 /* If libc has the bug in question, this invocation of getcwd
18068 results in a failed assertion. */
18069 cwd = getcwd (NULL, 0);
18071 fail = 4; /* getcwd didn't assert, but it failed for a long name
18072 where the answer could have been learned. */
18075 /* Call rmdir first, in case the above chdir failed. */
18079 if (chdir ("..") < 0)
18092 if ac_fn_c_try_run
"$LINENO"; then :
18093 gl_cv_func_getcwd_abort_bug
=no
18096 if test $ret -ge 128 ||
test $ret = 4; then
18097 gl_cv_func_getcwd_abort_bug
=yes
18099 gl_cv_func_getcwd_abort_bug
=no
18102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18109 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18110 if test $gl_cv_func_getcwd_abort_bug = yes; then :
18118 case "$gl_cv_func_getcwd_path_max" in
18119 "no"|
"no, it has the AIX bug") ;;
18122 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18126 case "$gl_cv_func_getcwd_path_max" in
18127 "no, but it is partly working")
18129 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18132 "yes, but with shorter paths")
18134 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18139 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
18140 ||
test $gl_cv_func_getcwd_posix_signature != yes \
18141 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
18142 ||
test $gl_abort_bug = yes; then
18146 if test $REPLACE_GETCWD = 1; then
18155 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
18165 cat >>confdefs.h
<<_ACEOF
18166 #define GNULIB_GETCWD 1
18181 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18190 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18197 if test $REPLACE_GETCWD = 1; then
18206 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18220 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18241 if test $ac_cv_func_getdtablesize = yes &&
18242 test $ac_cv_have_decl_getdtablesize = yes; then
18243 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
18244 # up to an unchangeable hard limit; all other platforms correctly
18245 # require setrlimit before getdtablesize() can report a larger value.
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18247 $as_echo_n "checking whether getdtablesize works... " >&6; }
18248 if ${gl_cv_func_getdtablesize_works+:} false
; then :
18249 $as_echo_n "(cached) " >&6
18251 if test "$cross_compiling" = yes; then :
18253 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
18254 gl_cv_func_getdtablesize_works
="guessing no" ;;
18255 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
18258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18261 #include <unistd.h>
18265 int size = getdtablesize();
18266 if (dup2 (0, getdtablesize()) != -1)
18268 if (size != getdtablesize())
18275 if ac_fn_c_try_run
"$LINENO"; then :
18276 gl_cv_func_getdtablesize_works
=yes
18278 gl_cv_func_getdtablesize_works
=no
18280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18287 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18288 case "$gl_cv_func_getdtablesize_works" in
18290 *) REPLACE_GETDTABLESIZE
=1 ;;
18293 HAVE_GETDTABLESIZE
=0
18296 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
18305 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
18314 GNULIB_GETDTABLESIZE
=1
18320 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18336 if test $ac_cv_have_decl_getlogin_r = no
; then
18337 HAVE_DECL_GETLOGIN_R
=0
18347 if test $ac_cv_func_getlogin_r = no
; then
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18353 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18354 if ${gl_cv_func_getlogin_r_works+:} false
; then :
18355 $as_echo_n "(cached) " >&6
18359 # Guess no on OSF/1.
18360 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
18361 # Guess yes otherwise.
18362 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
18364 if test "$cross_compiling" = yes; then :
18367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 #include <stddef.h>
18371 #include <unistd.h>
18372 #if !HAVE_DECL_GETLOGIN_R
18374 # ifdef __cplusplus
18377 int getlogin_r (char *, size_t);
18385 if (getlogin_r (buf, 0) == 0)
18387 if (getlogin_r (buf, 1) == 0)
18392 if ac_fn_c_try_run
"$LINENO"; then :
18393 gl_cv_func_getlogin_r_works
=yes
18396 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
18400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
18407 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
18408 case "$gl_cv_func_getlogin_r_works" in
18410 *) REPLACE_GETLOGIN_R
=1 ;;
18414 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
18423 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
18440 GNULIB_GETLOGIN_R
=1
18446 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
18463 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18465 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
18471 cat >>confdefs.h
<<_ACEOF
18472 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18474 if test $ac_have_decl = 1; then :
18478 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18480 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
18486 cat >>confdefs.h
<<_ACEOF
18487 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
18489 if test $ac_have_decl = 1; then :
18493 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18495 if test "x$ac_cv_have_decl___argv" = xyes
; then :
18501 cat >>confdefs.h
<<_ACEOF
18502 #define HAVE_DECL___ARGV $ac_have_decl
18504 if test $ac_have_decl = 1; then :
18509 # Incur the cost of this test only if none of the above worked.
18510 if test $ac_found = 0; then
18511 # On OpenBSD 5.1, using the global __progname variable appears to be
18512 # the only way to implement getprogname.
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18514 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
18515 if ${gl_cv_var___progname+:} false
; then :
18516 $as_echo_n "(cached) " >&6
18519 gl_cv_var___progname
=
18520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 extern char *__progname;
18526 return *__progname;
18532 if ac_fn_c_try_link
"$LINENO"; then :
18533 gl_cv_var___progname
=yes
18536 rm -f core conftest.err conftest.
$ac_objext \
18537 conftest
$ac_exeext conftest.
$ac_ext
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18542 $as_echo "$gl_cv_var___progname" >&6; }
18543 if test "$gl_cv_var___progname" = yes; then
18545 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18564 gl_gettimeofday_timezone
=void
18565 if test $ac_cv_func_gettimeofday != yes; then
18566 HAVE_GETTIMEOFDAY
=0
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18572 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18573 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
18574 $as_echo_n "(cached) " >&6
18576 if test "$cross_compiling" = yes; then :
18577 # When cross-compiling:
18579 # Guess all is fine on glibc systems.
18580 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
18581 # If we don't know, assume the worst.
18582 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
18586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18588 #include <string.h>
18589 #include <sys/time.h>
18591 #include <stdlib.h>
18599 struct tm saved_lt;
18601 lt = localtime (&t);
18603 gettimeofday (&tv, NULL);
18604 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18610 if ac_fn_c_try_run
"$LINENO"; then :
18611 gl_cv_func_gettimeofday_clobber
=no
18613 gl_cv_func_gettimeofday_clobber
=yes
18615 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18616 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18621 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18623 case "$gl_cv_func_gettimeofday_clobber" in
18625 REPLACE_GETTIMEOFDAY
=1
18628 REPLACE_LOCALTIME
=1
18631 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18637 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18638 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
18639 $as_echo_n "(cached) " >&6
18641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 #include <sys/time.h>
18645 int gettimeofday (struct timeval *restrict, void *restrict);
18650 /* glibc uses struct timezone * rather than the POSIX void *
18651 if _GNU_SOURCE is defined. However, since the only portable
18652 use of gettimeofday uses NULL as the second parameter, and
18653 since the glibc definition is actually more typesafe, it is
18654 not worth wrapping this to get a compliant signature. */
18655 int (*f) (struct timeval *restrict, void *restrict)
18658 return !(x | c.tv_sec | c.tv_usec);
18664 if ac_fn_c_try_compile
"$LINENO"; then :
18665 gl_cv_func_gettimeofday_posix_signature
=yes
18667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669 #include <sys/time.h>
18670 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18680 if ac_fn_c_try_compile
"$LINENO"; then :
18681 gl_cv_func_gettimeofday_posix_signature
=almost
18683 gl_cv_func_gettimeofday_posix_signature
=no
18685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18690 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18691 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
18692 gl_gettimeofday_timezone
='struct timezone'
18693 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18694 REPLACE_GETTIMEOFDAY
=1
18696 if test $REPLACE_STRUCT_TIMEVAL = 1; then
18697 REPLACE_GETTIMEOFDAY
=1
18702 cat >>confdefs.h
<<_ACEOF
18703 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18707 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
18716 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
18719 for ac_header
in sys
/timeb.h
18721 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
18722 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
18723 cat >>confdefs.h
<<_ACEOF
18724 #define HAVE_SYS_TIMEB_H 1
18731 for ac_func
in _ftime
18733 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
18734 if test "x$ac_cv_func__ftime" = xyes
; then :
18735 cat >>confdefs.h
<<_ACEOF
18736 #define HAVE__FTIME 1
18749 GNULIB_GETTIMEOFDAY
=1
18755 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18760 for ac_header
in glob.h
18762 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
18763 if test "x$ac_cv_header_glob_h" = xyes
; then :
18764 cat >>confdefs.h
<<_ACEOF
18765 #define HAVE_GLOB_H 1
18775 if test -z "$GLOB_H"; then
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
18777 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
18778 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
18779 $as_echo_n "(cached) " >&6
18781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18783 #include <gnu-versions.h>
18784 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
18786 if ac_fn_c_try_compile
"$LINENO"; then :
18787 gl_cv_gnu_glob_interface_version_1
=yes
18789 gl_cv_gnu_glob_interface_version_1
=no
18791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18794 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18796 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18801 if test -z "$GLOB_H"; then
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18803 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18804 if ${gl_cv_glob_lists_symlinks+:} false
; then :
18805 $as_echo_n "(cached) " >&6
18807 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
18808 gl_cv_glob_lists_symlinks
=maybe
18810 # If we can't make a symlink, then we cannot test this issue. Be
18811 # pessimistic about this.
18812 gl_cv_glob_lists_symlinks
=no
18815 if test $gl_cv_glob_lists_symlinks = maybe
; then
18816 if test "$cross_compiling" = yes; then :
18817 gl_cv_glob_lists_symlinks
=no
18819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18822 #include <stddef.h>
18828 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18833 if ac_fn_c_try_run
"$LINENO"; then :
18834 gl_cv_glob_lists_symlinks
=yes
18836 gl_cv_glob_lists_symlinks
=no
18838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18845 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18847 if test $gl_cv_glob_lists_symlinks = no
; then
18852 rm -f conf$$
-globtest
18855 if test -n "$GLOB_H"; then
18856 GL_GENERATE_GLOB_H_TRUE
=
18857 GL_GENERATE_GLOB_H_FALSE
='#'
18859 GL_GENERATE_GLOB_H_TRUE
='#'
18860 GL_GENERATE_GLOB_H_FALSE
=
18864 if test -n "$GLOB_H"; then
18873 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
18885 if test $ac_cv_header_sys_cdefs_h = yes; then
18927 if test $ac_cv_header_sys_socket_h != yes; then
18928 for ac_header
in winsock2.h
18930 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18931 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
18932 cat >>confdefs.h
<<_ACEOF
18933 #define HAVE_WINSOCK2_H 1
18941 if test "$ac_cv_header_winsock2_h" = yes; then
18943 UNISTD_H_HAVE_WINSOCK2_H
=1
18944 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18950 if test $HAVE_WINSOCK2_H = 1; then
18951 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
18953 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
18959 cat >>confdefs.h
<<_ACEOF
18960 #define HAVE_DECL_INET_NTOP $ac_have_decl
18963 if test $ac_cv_have_decl_inet_ntop = yes; then
18964 REPLACE_INET_NTOP
=1
18965 INET_NTOP_LIB
="-lws2_32"
18967 HAVE_DECL_INET_NTOP
=0
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18973 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18974 if ${ac_cv_search_inet_ntop+:} false
; then :
18975 $as_echo_n "(cached) " >&6
18977 ac_func_search_save_LIBS
=$LIBS
18978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18991 return inet_ntop ();
18996 for ac_lib
in '' nsl resolv
; do
18997 if test -z "$ac_lib"; then
18998 ac_res
="none required"
19001 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19003 if ac_fn_c_try_link
"$LINENO"; then :
19004 ac_cv_search_inet_ntop
=$ac_res
19006 rm -f core conftest.err conftest.
$ac_objext \
19008 if ${ac_cv_search_inet_ntop+:} false
; then :
19012 if ${ac_cv_search_inet_ntop+:} false
; then :
19015 ac_cv_search_inet_ntop
=no
19017 rm conftest.
$ac_ext
19018 LIBS
=$ac_func_search_save_LIBS
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19021 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19022 ac_res
=$ac_cv_search_inet_ntop
19023 if test "$ac_res" != no
; then :
19024 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19027 for ac_func
in inet_ntop
19029 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19030 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
19031 cat >>confdefs.h
<<_ACEOF
19032 #define HAVE_INET_NTOP 1
19038 if test $ac_cv_func_inet_ntop = no
; then
19046 if test "$ac_cv_search_inet_ntop" != "no" \
19047 && test "$ac_cv_search_inet_ntop" != "none required"; then
19048 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
19058 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19060 # include <netdb.h>
19064 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19070 cat >>confdefs.h
<<_ACEOF
19071 #define HAVE_DECL_INET_NTOP $ac_have_decl
19074 if test $ac_cv_have_decl_inet_ntop = no
; then
19075 HAVE_DECL_INET_NTOP
=0
19080 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
19089 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
19111 if test -n "$STDINT_H"; then
19112 PRIPTR_PREFIX
='"l"'
19114 for glpfx
in '' l ll I64
; do
19116 '') gltype1
='int';;
19117 l
) gltype1
='long int';;
19118 ll
) gltype1
='long long int';;
19119 I64
) gltype1
='__int64';;
19121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <stdint.h>
19124 extern intptr_t foo;
19125 extern $gltype1 foo;
19134 if ac_fn_c_try_compile
"$LINENO"; then :
19135 PRIPTR_PREFIX
='"'$glpfx'"'
19137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19138 test -n "$PRIPTR_PREFIX" && break
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19145 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19146 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
19147 $as_echo_n "(cached) " >&6
19149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h. */
19151 /* Work also in C++ mode. */
19152 #define __STDC_LIMIT_MACROS 1
19154 /* Work if build is not clean. */
19155 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19157 #include <limits.h>
19159 #include <stdint.h>
19162 #if defined INT32_MAX && defined INTMAX_MAX
19163 #define CONDITION (INT32_MAX < INTMAX_MAX)
19164 #elif HAVE_LONG_LONG_INT
19165 #define CONDITION (sizeof (int) < sizeof (long long int))
19167 #define CONDITION 0
19169 int test[CONDITION ? 1 : -1];
19178 if ac_fn_c_try_compile
"$LINENO"; then :
19179 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
19181 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
19183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19186 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19187 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19188 INT32_MAX_LT_INTMAX_MAX
=1;
19190 INT32_MAX_LT_INTMAX_MAX
=0;
19194 if test $APPLE_UNIVERSAL_BUILD = 0; then
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19197 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19198 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
19199 $as_echo_n "(cached) " >&6
19201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19203 /* Work also in C++ mode. */
19204 #define __STDC_LIMIT_MACROS 1
19206 /* Work if build is not clean. */
19207 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19209 #include <limits.h>
19211 #include <stdint.h>
19214 #if defined INT64_MAX
19215 #define CONDITION (INT64_MAX == LONG_MAX)
19216 #elif HAVE_LONG_LONG_INT
19217 #define CONDITION (sizeof (long long int) == sizeof (long int))
19219 #define CONDITION 0
19221 int test[CONDITION ? 1 : -1];
19230 if ac_fn_c_try_compile
"$LINENO"; then :
19231 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
19233 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
19235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19238 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19239 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19240 INT64_MAX_EQ_LONG_MAX
=1;
19242 INT64_MAX_EQ_LONG_MAX
=0;
19247 INT64_MAX_EQ_LONG_MAX
=-1
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19251 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19252 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
19253 $as_echo_n "(cached) " >&6
19255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19257 /* Work also in C++ mode. */
19258 #define __STDC_LIMIT_MACROS 1
19260 /* Work if build is not clean. */
19261 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19263 #include <limits.h>
19265 #include <stdint.h>
19268 #if defined UINT32_MAX && defined UINTMAX_MAX
19269 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19270 #elif HAVE_LONG_LONG_INT
19271 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19273 #define CONDITION 0
19275 int test[CONDITION ? 1 : -1];
19284 if ac_fn_c_try_compile
"$LINENO"; then :
19285 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
19287 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
19289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19292 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19293 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19294 UINT32_MAX_LT_UINTMAX_MAX
=1;
19296 UINT32_MAX_LT_UINTMAX_MAX
=0;
19300 if test $APPLE_UNIVERSAL_BUILD = 0; then
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19303 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19304 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
19305 $as_echo_n "(cached) " >&6
19307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19309 /* Work also in C++ mode. */
19310 #define __STDC_LIMIT_MACROS 1
19312 /* Work if build is not clean. */
19313 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19315 #include <limits.h>
19317 #include <stdint.h>
19320 #if defined UINT64_MAX
19321 #define CONDITION (UINT64_MAX == ULONG_MAX)
19322 #elif HAVE_LONG_LONG_INT
19323 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19325 #define CONDITION 0
19327 int test[CONDITION ? 1 : -1];
19336 if ac_fn_c_try_compile
"$LINENO"; then :
19337 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
19339 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
19341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19344 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19345 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19346 UINT64_MAX_EQ_ULONG_MAX
=1;
19348 UINT64_MAX_EQ_ULONG_MAX
=0;
19353 UINT64_MAX_EQ_ULONG_MAX
=-1
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19361 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19362 if ${gl_cv_func_isnand_no_libm+:} false
; then :
19363 $as_echo_n "(cached) " >&6
19366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19371 # define isnand(x) __builtin_isnan ((double)(x))
19374 # define isnand(x) isnan ((double)(x))
19385 if ac_fn_c_try_link
"$LINENO"; then :
19386 gl_cv_func_isnand_no_libm
=yes
19388 gl_cv_func_isnand_no_libm
=no
19390 rm -f core conftest.err conftest.
$ac_objext \
19391 conftest
$ac_exeext conftest.
$ac_ext
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19395 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19397 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
19398 if test $gl_cv_func_isnand_no_libm = yes; then
19400 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19404 if test $gl_func_isnand_no_libm != yes; then
19413 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
19422 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
19423 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
19424 $as_echo_n "(cached) " >&6
19427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19432 # define isnanl(x) __builtin_isnanl ((long double)(x))
19433 #elif defined isnan
19435 # define isnanl(x) isnan ((long double)(x))
19446 if ac_fn_c_try_link
"$LINENO"; then :
19447 gl_cv_func_isnanl_no_libm
=yes
19449 gl_cv_func_isnanl_no_libm
=no
19451 rm -f core conftest.err conftest.
$ac_objext \
19452 conftest
$ac_exeext conftest.
$ac_ext
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
19456 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
19458 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
19459 if test $gl_func_isnanl_no_libm = yes; then
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
19465 $as_echo_n "checking whether isnanl works... " >&6; }
19466 if ${gl_cv_func_isnanl_works+:} false
; then :
19467 $as_echo_n "(cached) " >&6
19470 if test "$cross_compiling" = yes; then :
19471 gl_cv_func_isnanl_works
="guessing yes"
19473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19477 #include <limits.h>
19481 # define isnanl(x) __builtin_isnanl ((long double)(x))
19482 #elif defined isnan
19484 # define isnanl(x) isnan ((long double)(x))
19487 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19488 typedef union { unsigned int word[NWORDS]; long double value; }
19489 memory_long_double;
19490 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
19491 runtime type conversion. */
19493 static long double NaNl ()
19496 return zero / zero;
19499 # define NaNl() (0.0L / 0.0L)
19505 if (!isnanl (NaNl ()))
19509 memory_long_double m;
19512 /* The isnanl function should be immune against changes in the sign bit and
19513 in the mantissa bits. The xor operation twiddles a bit that can only be
19514 a sign bit or a mantissa bit (since the exponent never extends to
19517 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
19518 for (i = 0; i < NWORDS; i++)
19520 if (!isnanl (m.value))
19524 #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
19525 /* Representation of an 80-bit 'long double' as an initializer for a sequence
19526 of 'unsigned int' words. */
19527 # ifdef WORDS_BIGENDIAN
19528 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19529 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
19530 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
19531 (unsigned int) (mantlo) << 16 \
19534 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19535 { mantlo, manthi, exponent }
19538 static memory_long_double x =
19539 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
19540 if (!isnanl (x.value))
19544 /* Signalling NaN. */
19545 static memory_long_double x =
19546 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
19547 if (!isnanl (x.value))
19550 /* isnanl should return something even for noncanonical values. */
19551 { /* Pseudo-NaN. */
19552 static memory_long_double x =
19553 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
19554 if (isnanl (x.value) && !isnanl (x.value))
19557 { /* Pseudo-Infinity. */
19558 static memory_long_double x =
19559 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
19560 if (isnanl (x.value) && !isnanl (x.value))
19563 { /* Pseudo-Zero. */
19564 static memory_long_double x =
19565 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
19566 if (isnanl (x.value) && !isnanl (x.value))
19569 { /* Unnormalized number. */
19570 static memory_long_double x =
19571 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
19572 if (isnanl (x.value) && !isnanl (x.value))
19575 { /* Pseudo-Denormal. */
19576 static memory_long_double x =
19577 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
19578 if (isnanl (x.value) && !isnanl (x.value))
19586 if ac_fn_c_try_run
"$LINENO"; then :
19587 gl_cv_func_isnanl_works
=yes
19589 gl_cv_func_isnanl_works
=no
19591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
19598 $as_echo "$gl_cv_func_isnanl_works" >&6; }
19600 case "$gl_cv_func_isnanl_works" in
19602 *) gl_func_isnanl_no_libm
=no
;;
19605 if test $gl_func_isnanl_no_libm = yes; then
19607 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
19611 if test $gl_func_isnanl_no_libm != yes; then
19620 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
19626 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
19627 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
19628 $as_echo_n "(cached) " >&6
19631 if test "$cross_compiling" = yes; then :
19633 gl_cv_cc_long_double_expbit0
="unknown"
19636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19640 #include <stddef.h>
19642 #include <string.h>
19644 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19645 typedef union { long double value; unsigned int word[NWORDS]; }
19646 memory_long_double;
19647 static unsigned int ored_words[NWORDS];
19648 static unsigned int anded_words[NWORDS];
19649 static void add_to_ored_words (long double x)
19651 memory_long_double m;
19653 /* Clear it first, in case
19654 sizeof (long double) < sizeof (memory_long_double). */
19655 memset (&m, 0, sizeof (memory_long_double));
19657 for (i = 0; i < NWORDS; i++)
19659 ored_words[i] |= m.word[i];
19660 anded_words[i] &= m.word[i];
19666 FILE *fp = fopen ("conftest.out", "w");
19669 for (j = 0; j < NWORDS; j++)
19670 anded_words[j] = ~ (unsigned int) 0;
19671 add_to_ored_words (0.25L);
19672 add_to_ored_words (0.5L);
19673 add_to_ored_words (1.0L);
19674 add_to_ored_words (2.0L);
19675 add_to_ored_words (4.0L);
19676 /* Remove bits that are common (e.g. if representation of the first mantissa
19677 bit is explicit). */
19678 for (j = 0; j < NWORDS; j++)
19679 ored_words[j] &= ~anded_words[j];
19680 /* Now find the nonzero word. */
19681 for (j = 0; j < NWORDS; j++)
19682 if (ored_words[j] != 0)
19687 for (i = j + 1; i < NWORDS; i++)
19688 if (ored_words[i] != 0)
19690 fprintf (fp, "unknown");
19691 return (fclose (fp) != 0);
19694 if ((ored_words[j] >> i) & 1)
19696 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19697 return (fclose (fp) != 0);
19700 fprintf (fp, "unknown");
19701 return (fclose (fp) != 0);
19705 if ac_fn_c_try_run
"$LINENO"; then :
19706 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
19708 gl_cv_cc_long_double_expbit0
="unknown"
19710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
19718 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
19719 case "$gl_cv_cc_long_double_expbit0" in
19721 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19722 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
19724 cat >>confdefs.h
<<_ACEOF
19725 #define LDBL_EXPBIT0_WORD $word
19729 cat >>confdefs.h
<<_ACEOF
19730 #define LDBL_EXPBIT0_BIT $bit
19755 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
19766 if test $ac_cv_func_lstat = yes; then
19768 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19777 if test $REPLACE_LSTAT = 1; then
19786 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19801 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19808 if test $gl_cv_func_malloc_posix = yes; then
19810 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19816 if test $REPLACE_MALLOC = 1; then
19825 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
19833 GNULIB_MALLOC_POSIX
=1
19839 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19864 if test $gl_cv_have_include_next = yes; then
19865 gl_cv_next_math_h
='<'math.h
'>'
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
19868 $as_echo_n "checking absolute name of <math.h>... " >&6; }
19869 if ${gl_cv_next_math_h+:} false
; then :
19870 $as_echo_n "(cached) " >&6
19873 if test $ac_cv_header_math_h = yes; then
19878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19883 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19884 *) gl_absname_cpp
="$ac_cpp" ;;
19889 gl_dirsep_regex
='[/\\]'
19892 gl_dirsep_regex
='\/'
19895 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19896 gl_header_literal_regex
=`echo 'math.h' \
19897 | sed -e "$gl_make_literal_regex_sed"`
19898 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19905 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19906 sed -n "$gl_absolute_header_sed"`
19908 gl_header
=$gl_cv_absolute_math_h
19909 gl_cv_next_math_h
='"'$gl_header'"'
19911 gl_cv_next_math_h
='<'math.h
'>'
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
19917 $as_echo "$gl_cv_next_math_h" >&6; }
19919 NEXT_MATH_H
=$gl_cv_next_math_h
19921 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19923 gl_next_as_first_directive
='<'math.h
'>'
19925 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19926 gl_next_as_first_directive
=$gl_cv_next_math_h
19928 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
19935 $as_echo_n "checking whether NAN macro works... " >&6; }
19936 if ${gl_cv_header_math_nan_works+:} false
; then :
19937 $as_echo_n "(cached) " >&6
19939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h. */
19945 /* Solaris 10 has a broken definition of NAN. Other platforms
19946 fail to provide NAN, or provide it only in C99 mode; this
19947 test only needs to fail when NAN is provided but wrong. */
19957 if ac_fn_c_try_compile
"$LINENO"; then :
19958 gl_cv_header_math_nan_works
=yes
19960 gl_cv_header_math_nan_works
=no
19962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
19965 $as_echo "$gl_cv_header_math_nan_works" >&6; }
19966 if test $gl_cv_header_math_nan_works = no
; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
19970 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
19971 if ${gl_cv_header_math_huge_val_works+:} false
; then :
19972 $as_echo_n "(cached) " >&6
19974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19980 /* Solaris 10 has a broken definition of HUGE_VAL. */
19981 double d = HUGE_VAL;
19987 if ac_fn_c_try_compile
"$LINENO"; then :
19988 gl_cv_header_math_huge_val_works
=yes
19990 gl_cv_header_math_huge_val_works
=no
19992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19995 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19996 if test $gl_cv_header_math_huge_val_works = no
; then
20001 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
20002 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20004 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20005 if eval \
${$as_gl_Symbol+:} false
; then :
20006 $as_echo_n "(cached) " >&6
20008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20009 /* end confdefs.h. */
20020 if ac_fn_c_try_compile
"$LINENO"; then :
20021 eval "$as_gl_Symbol=yes"
20023 eval "$as_gl_Symbol=no"
20025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20027 eval ac_res
=\$
$as_gl_Symbol
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20029 $as_echo "$ac_res" >&6; }
20030 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
20031 cat >>confdefs.h
<<_ACEOF
20032 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20035 eval ac_cv_have_decl_
$gl_func=yes
20062 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20067 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20068 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20069 $as_echo_n "(cached) " >&6
20073 # Guess no on AIX and OSF/1.
20074 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20075 # Guess yes otherwise.
20076 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20078 if test $LOCALE_JA != none
; then
20079 if test "$cross_compiling" = yes; then :
20082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20085 #include <locale.h>
20086 #include <string.h>
20087 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20089 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20090 included before <wchar.h>. */
20091 #include <stddef.h>
20097 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20099 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20103 memset (&state, '\0', sizeof (mbstate_t));
20104 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20105 if (mbsinit (&state))
20111 if ac_fn_c_try_run
"$LINENO"; then :
20112 gl_cv_func_mbrtowc_incomplete_state
=yes
20114 gl_cv_func_mbrtowc_incomplete_state
=no
20116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20124 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20130 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20131 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20132 $as_echo_n "(cached) " >&6
20136 # Guess no on Solaris 8.
20137 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20138 # Guess yes otherwise.
20139 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20141 if test $LOCALE_ZH_CN != none
; then
20142 if test "$cross_compiling" = yes; then :
20145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20148 #include <locale.h>
20149 #include <stdlib.h>
20150 #include <string.h>
20151 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20153 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20154 included before <wchar.h>. */
20155 #include <stddef.h>
20161 /* This fails on Solaris 8:
20162 mbrtowc returns 2, and sets wc to 0x00F0.
20163 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20164 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20166 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20170 memset (&state, '\0', sizeof (mbstate_t));
20171 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20172 && mbtowc (&wc, input + 3, 6) == 4)
20178 if ac_fn_c_try_run
"$LINENO"; then :
20179 gl_cv_func_mbrtowc_sanitycheck
=yes
20181 gl_cv_func_mbrtowc_sanitycheck
=no
20183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20191 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20193 REPLACE_MBSTATE_T
=0
20194 case "$gl_cv_func_mbrtowc_incomplete_state" in
20196 *) REPLACE_MBSTATE_T
=1 ;;
20198 case "$gl_cv_func_mbrtowc_sanitycheck" in
20200 *) REPLACE_MBSTATE_T
=1 ;;
20203 REPLACE_MBSTATE_T
=1
20214 if test $ac_cv_func_mbrtowc = no
; then
20216 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20217 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20219 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20220 included before <wchar.h>. */
20221 #include <stddef.h>
20227 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
20233 cat >>confdefs.h
<<_ACEOF
20234 #define HAVE_DECL_MBRTOWC $ac_have_decl
20237 if test $ac_cv_have_decl_mbrtowc = yes; then
20241 if test $REPLACE_MBSTATE_T = 1; then
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20248 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20249 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
20250 $as_echo_n "(cached) " >&6
20254 # Guess no on Solaris.
20255 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
20256 # Guess yes otherwise.
20257 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
20259 if test $LOCALE_FR_UTF8 != none
; then
20260 if test "$cross_compiling" = yes; then :
20263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20266 #include <locale.h>
20267 #include <stdlib.h>
20268 #include <string.h>
20269 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20271 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20272 included before <wchar.h>. */
20273 #include <stddef.h>
20281 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20283 char input[] = "\303\237er";
20288 memset (&state, '\0', sizeof (mbstate_t));
20289 wc = (wchar_t) 0xBADFACE;
20290 ret = mbrtowc (&wc, input, 5, &state);
20293 if (!mbsinit (&state))
20296 memset (&state, '\0', sizeof (mbstate_t));
20297 ret = mbrtowc (NULL, input, 5, &state);
20298 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
20300 if (!mbsinit (&state))
20306 if ac_fn_c_try_run
"$LINENO"; then :
20307 gl_cv_func_mbrtowc_null_arg1
=yes
20309 gl_cv_func_mbrtowc_null_arg1
=no
20311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20319 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20325 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20326 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
20327 $as_echo_n "(cached) " >&6
20331 # Guess no on OSF/1.
20332 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
20333 # Guess yes otherwise.
20334 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
20336 if test $LOCALE_FR_UTF8 != none
; then
20337 if test "$cross_compiling" = yes; then :
20340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h. */
20343 #include <locale.h>
20344 #include <string.h>
20345 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20347 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20348 included before <wchar.h>. */
20349 #include <stddef.h>
20355 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20361 memset (&state, '\0', sizeof (mbstate_t));
20362 wc = (wchar_t) 0xBADFACE;
20363 mbrtowc (&wc, NULL, 5, &state);
20364 /* Check that wc was not modified. */
20365 if (wc != (wchar_t) 0xBADFACE)
20371 if ac_fn_c_try_run
"$LINENO"; then :
20372 gl_cv_func_mbrtowc_null_arg2
=yes
20374 gl_cv_func_mbrtowc_null_arg2
=no
20376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20384 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20392 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20393 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
20394 $as_echo_n "(cached) " >&6
20398 # Guess no on HP-UX, Solaris, native Windows.
20399 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
20400 # Guess yes otherwise.
20401 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
20403 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
20404 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
20405 if test "$cross_compiling" = yes; then :
20408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20411 #include <locale.h>
20412 #include <string.h>
20413 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20415 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20416 included before <wchar.h>. */
20417 #include <stddef.h>
20424 int found_some_locale = 0;
20425 /* This fails on Solaris. */
20426 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20428 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20432 memset (&state, '\0', sizeof (mbstate_t));
20433 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20436 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20439 found_some_locale = 1;
20441 /* This fails on HP-UX 11.11. */
20442 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20444 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20448 memset (&state, '\0', sizeof (mbstate_t));
20449 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20452 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20455 found_some_locale = 1;
20457 /* This fails on native Windows. */
20458 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20460 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20464 memset (&state, '\0', sizeof (mbstate_t));
20465 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20468 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20471 found_some_locale = 1;
20473 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20475 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20479 memset (&state, '\0', sizeof (mbstate_t));
20480 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20483 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20486 found_some_locale = 1;
20488 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20490 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20494 memset (&state, '\0', sizeof (mbstate_t));
20495 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20498 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20501 found_some_locale = 1;
20503 return (found_some_locale ? result : 77);
20506 if ac_fn_c_try_run
"$LINENO"; then :
20507 gl_cv_func_mbrtowc_retval
=yes
20509 if test $?
!= 77; then
20510 gl_cv_func_mbrtowc_retval
=no
20514 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20515 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20522 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20528 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20529 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
20530 $as_echo_n "(cached) " >&6
20534 # Guess no on Solaris 8 and 9.
20535 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
20536 # Guess yes otherwise.
20537 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
20539 if test $LOCALE_ZH_CN != none
; then
20540 if test "$cross_compiling" = yes; then :
20543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20546 #include <locale.h>
20547 #include <string.h>
20548 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20550 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20551 included before <wchar.h>. */
20552 #include <stddef.h>
20558 /* This fails on Solaris 8 and 9. */
20559 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20564 memset (&state, '\0', sizeof (mbstate_t));
20565 if (mbrtowc (&wc, "", 1, &state) != 0)
20571 if ac_fn_c_try_run
"$LINENO"; then :
20572 gl_cv_func_mbrtowc_nul_retval
=yes
20574 gl_cv_func_mbrtowc_nul_retval
=no
20576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20584 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
20589 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
20590 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
20591 $as_echo_n "(cached) " >&6
20595 # Guess no on AIX and glibc systems.
20597 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
20598 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
20600 if test "$cross_compiling" = yes; then :
20603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20608 static mbstate_t mbs;
20612 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
20615 if ac_fn_c_try_run
"$LINENO"; then :
20616 gl_cv_func_mbrtowc_empty_input
=yes
20618 gl_cv_func_mbrtowc_empty_input
=no
20620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
20627 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
20631 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
20632 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
20633 $as_echo_n "(cached) " >&6
20636 gl_cv_C_locale_sans_EILSEQ
="guessing no"
20638 if test "$cross_compiling" = yes; then :
20641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20642 /* end confdefs.h. */
20643 #include <limits.h>
20644 #include <locale.h>
20652 char *locale = setlocale (LC_ALL, "C");
20655 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
20659 mbstate_t mbs = { 0, };
20660 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
20670 if ac_fn_c_try_run
"$LINENO"; then :
20671 gl_cv_C_locale_sans_EILSEQ
=yes
20673 gl_cv_C_locale_sans_EILSEQ
=no
20675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
20681 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
20683 case "$gl_cv_func_mbrtowc_null_arg1" in
20686 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20691 case "$gl_cv_func_mbrtowc_null_arg2" in
20694 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20699 case "$gl_cv_func_mbrtowc_retval" in
20702 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20707 case "$gl_cv_func_mbrtowc_nul_retval" in
20710 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20715 case "$gl_cv_func_mbrtowc_empty_input" in
20718 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
20723 case $gl_cv_C_locale_sans_EILSEQ in
20726 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
20734 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
20743 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
20760 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20787 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20792 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20793 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20794 $as_echo_n "(cached) " >&6
20798 # Guess no on AIX and OSF/1.
20799 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20800 # Guess yes otherwise.
20801 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20803 if test $LOCALE_JA != none
; then
20804 if test "$cross_compiling" = yes; then :
20807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20808 /* end confdefs.h. */
20810 #include <locale.h>
20811 #include <string.h>
20812 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20814 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20815 included before <wchar.h>. */
20816 #include <stddef.h>
20822 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20824 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20828 memset (&state, '\0', sizeof (mbstate_t));
20829 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20830 if (mbsinit (&state))
20836 if ac_fn_c_try_run
"$LINENO"; then :
20837 gl_cv_func_mbrtowc_incomplete_state
=yes
20839 gl_cv_func_mbrtowc_incomplete_state
=no
20841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20849 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20855 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20856 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20857 $as_echo_n "(cached) " >&6
20861 # Guess no on Solaris 8.
20862 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20863 # Guess yes otherwise.
20864 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20866 if test $LOCALE_ZH_CN != none
; then
20867 if test "$cross_compiling" = yes; then :
20870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20873 #include <locale.h>
20874 #include <stdlib.h>
20875 #include <string.h>
20876 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20878 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20879 included before <wchar.h>. */
20880 #include <stddef.h>
20886 /* This fails on Solaris 8:
20887 mbrtowc returns 2, and sets wc to 0x00F0.
20888 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20889 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20891 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20895 memset (&state, '\0', sizeof (mbstate_t));
20896 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20897 && mbtowc (&wc, input + 3, 6) == 4)
20903 if ac_fn_c_try_run
"$LINENO"; then :
20904 gl_cv_func_mbrtowc_sanitycheck
=yes
20906 gl_cv_func_mbrtowc_sanitycheck
=no
20908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20916 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20918 REPLACE_MBSTATE_T
=0
20919 case "$gl_cv_func_mbrtowc_incomplete_state" in
20921 *) REPLACE_MBSTATE_T
=1 ;;
20923 case "$gl_cv_func_mbrtowc_sanitycheck" in
20925 *) REPLACE_MBSTATE_T
=1 ;;
20928 REPLACE_MBSTATE_T
=1
20939 if test $ac_cv_func_mbsinit = no
; then
20941 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20942 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20944 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20945 included before <wchar.h>. */
20946 #include <stddef.h>
20952 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
20958 cat >>confdefs.h
<<_ACEOF
20959 #define HAVE_DECL_MBSINIT $ac_have_decl
20962 if test $ac_cv_have_decl_mbsinit = yes; then
20966 if test $REPLACE_MBSTATE_T = 1; then
20970 mingw
*) REPLACE_MBSINIT
=1 ;;
20975 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
20984 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
21001 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
21027 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21032 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21033 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21034 $as_echo_n "(cached) " >&6
21038 # Guess no on AIX and OSF/1.
21039 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21040 # Guess yes otherwise.
21041 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21043 if test $LOCALE_JA != none
; then
21044 if test "$cross_compiling" = yes; then :
21047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21050 #include <locale.h>
21051 #include <string.h>
21052 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21054 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21055 included before <wchar.h>. */
21056 #include <stddef.h>
21062 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21064 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21068 memset (&state, '\0', sizeof (mbstate_t));
21069 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21070 if (mbsinit (&state))
21076 if ac_fn_c_try_run
"$LINENO"; then :
21077 gl_cv_func_mbrtowc_incomplete_state
=yes
21079 gl_cv_func_mbrtowc_incomplete_state
=no
21081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21089 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21095 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21096 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21097 $as_echo_n "(cached) " >&6
21101 # Guess no on Solaris 8.
21102 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21103 # Guess yes otherwise.
21104 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21106 if test $LOCALE_ZH_CN != none
; then
21107 if test "$cross_compiling" = yes; then :
21110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21113 #include <locale.h>
21114 #include <stdlib.h>
21115 #include <string.h>
21116 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21118 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21119 included before <wchar.h>. */
21120 #include <stddef.h>
21126 /* This fails on Solaris 8:
21127 mbrtowc returns 2, and sets wc to 0x00F0.
21128 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21129 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21131 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21135 memset (&state, '\0', sizeof (mbstate_t));
21136 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21137 && mbtowc (&wc, input + 3, 6) == 4)
21143 if ac_fn_c_try_run
"$LINENO"; then :
21144 gl_cv_func_mbrtowc_sanitycheck
=yes
21146 gl_cv_func_mbrtowc_sanitycheck
=no
21148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21149 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21156 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21158 REPLACE_MBSTATE_T
=0
21159 case "$gl_cv_func_mbrtowc_incomplete_state" in
21161 *) REPLACE_MBSTATE_T
=1 ;;
21163 case "$gl_cv_func_mbrtowc_sanitycheck" in
21165 *) REPLACE_MBSTATE_T
=1 ;;
21168 REPLACE_MBSTATE_T
=1
21179 if test $ac_cv_func_mbsrtowcs = no
; then
21181 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
21182 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21184 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21185 included before <wchar.h>. */
21186 #include <stddef.h>
21192 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
21198 cat >>confdefs.h
<<_ACEOF
21199 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
21202 if test $ac_cv_have_decl_mbsrtowcs = yes; then
21203 REPLACE_MBSRTOWCS
=1
21206 if test $REPLACE_MBSTATE_T = 1; then
21207 REPLACE_MBSRTOWCS
=1
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
21216 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
21217 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
21218 $as_echo_n "(cached) " >&6
21222 # Guess no on HP-UX, Solaris, mingw.
21223 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
21224 # Guess yes otherwise.
21225 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
21227 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
21228 if test "$cross_compiling" = yes; then :
21231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h. */
21234 #include <locale.h>
21235 #include <string.h>
21236 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21238 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21239 included before <wchar.h>. */
21240 #include <stddef.h>
21247 /* Test whether the function supports a NULL destination argument.
21248 This fails on native Windows. */
21249 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21251 const char input[] = "\337er";
21252 const char *src = input;
21255 memset (&state, '\0', sizeof (mbstate_t));
21256 if (mbsrtowcs (NULL, &src, 1, &state) != 3
21260 /* Test whether the function works when started with a conversion state
21261 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
21262 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21264 const char input[] = "B\303\274\303\237er";
21267 memset (&state, '\0', sizeof (mbstate_t));
21268 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21269 if (!mbsinit (&state))
21271 const char *src = input + 2;
21272 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21276 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21278 const char input[] = "<\306\374\313\334\270\354>";
21281 memset (&state, '\0', sizeof (mbstate_t));
21282 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
21283 if (!mbsinit (&state))
21285 const char *src = input + 4;
21286 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
21290 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21292 const char input[] = "B\250\271\201\060\211\070er";
21295 memset (&state, '\0', sizeof (mbstate_t));
21296 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21297 if (!mbsinit (&state))
21299 const char *src = input + 2;
21300 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21307 if ac_fn_c_try_run
"$LINENO"; then :
21308 gl_cv_func_mbsrtowcs_works
=yes
21310 gl_cv_func_mbsrtowcs_works
=no
21312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
21320 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
21322 case "$gl_cv_func_mbsrtowcs_works" in
21324 *) REPLACE_MBSRTOWCS
=1 ;;
21329 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
21338 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
21348 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
21365 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
21370 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
21379 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
21382 for ac_header
in bp-sym.h
21384 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21385 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
21386 cat >>confdefs.h
<<_ACEOF
21387 #define HAVE_BP_SYM_H 1
21407 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21413 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
21415 $as_echo_n "checking whether memmem works in linear time... " >&6; }
21416 if ${gl_cv_func_memmem_works_fast+:} false
; then :
21417 $as_echo_n "(cached) " >&6
21419 if test "$cross_compiling" = yes; then :
21420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21421 /* end confdefs.h. */
21423 #include <features.h>
21424 #ifdef __GNU_LIBRARY__
21425 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
21426 && !defined __UCLIBC__
21431 #include <cygwin/version.h>
21432 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
21438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21439 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21440 gl_cv_func_memmem_works_fast
="guessing yes"
21442 gl_cv_func_memmem_works_fast
="guessing no"
21448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21449 /* end confdefs.h. */
21451 #include <signal.h> /* for signal */
21452 #include <string.h> /* for memmem */
21453 #include <stdlib.h> /* for malloc */
21454 #include <unistd.h> /* for alarm */
21455 static void quit (int sig) { _exit (sig + 128); }
21462 size_t m = 1000000;
21463 char *haystack = (char *) malloc (2 * m + 1);
21464 char *needle = (char *) malloc (m + 1);
21465 /* Failure to compile this test due to missing alarm is okay,
21466 since all such platforms (mingw) also lack memmem. */
21467 signal (SIGALRM, quit);
21469 /* Check for quadratic performance. */
21470 if (haystack && needle)
21472 memset (haystack, 'A', 2 * m);
21473 haystack[2 * m] = 'B';
21474 memset (needle, 'A', m);
21476 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
21485 if ac_fn_c_try_run
"$LINENO"; then :
21486 gl_cv_func_memmem_works_fast
=yes
21488 gl_cv_func_memmem_works_fast
=no
21490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
21497 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
21498 case "$gl_cv_func_memmem_works_fast" in
21506 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21515 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21522 for ac_func
in memmem
21524 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
21525 if test "x$ac_cv_func_memmem" = xyes
; then :
21526 cat >>confdefs.h
<<_ACEOF
21527 #define HAVE_MEMMEM 1
21533 if test $ac_cv_func_memmem = yes; then
21545 if test $ac_cv_have_decl_memmem = no
; then
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21549 $as_echo_n "checking whether memmem works... " >&6; }
21550 if ${gl_cv_func_memmem_works_always+:} false
; then :
21551 $as_echo_n "(cached) " >&6
21553 if test "$cross_compiling" = yes; then :
21554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21555 /* end confdefs.h. */
21557 #ifdef __GNU_LIBRARY__
21558 #include <features.h>
21559 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21560 || __GLIBC_MINOR__ > 12)) \
21561 || (__GLIBC__ > 2)) \
21562 || defined __UCLIBC__
21565 #elif defined __CYGWIN__
21566 #include <cygwin/version.h>
21567 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21576 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21577 gl_cv_func_memmem_works_always
="guessing yes"
21579 gl_cv_func_memmem_works_always
="guessing no"
21585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21588 #include <string.h> /* for memmem */
21589 #define P "_EF_BF_BD"
21590 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21591 #define NEEDLE P P P P P
21598 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21600 /* Check for empty needle behavior. */
21602 const char *haystack = "AAA";
21603 if (memmem (haystack, 3, NULL, 0) != haystack)
21612 if ac_fn_c_try_run
"$LINENO"; then :
21613 gl_cv_func_memmem_works_always
=yes
21615 gl_cv_func_memmem_works_always
=no
21617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21624 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21625 case "$gl_cv_func_memmem_works_always" in
21634 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21643 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21657 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21667 for ac_func
in mempcpy
21669 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
21670 if test "x$ac_cv_func_mempcpy" = xyes
; then :
21671 cat >>confdefs.h
<<_ACEOF
21672 #define HAVE_MEMPCPY 1
21678 if test $ac_cv_func_mempcpy = no
; then
21682 if test $HAVE_MEMPCPY = 0; then
21691 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
21708 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
21723 if test $ac_cv_have_decl_memrchr = no
; then
21724 HAVE_DECL_MEMRCHR
=0
21727 for ac_func
in memrchr
21729 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
21730 if test "x$ac_cv_func_memrchr" = xyes
; then :
21731 cat >>confdefs.h
<<_ACEOF
21732 #define HAVE_MEMRCHR 1
21739 if test $ac_cv_func_memrchr = no
; then
21748 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
21763 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
21776 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
21777 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
21778 $as_echo_n "(cached) " >&6
21780 rm -rf conftest.dir
21781 if test "$cross_compiling" = yes; then :
21783 # Guess yes on glibc systems.
21784 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
21785 # If we don't know, assume the worst.
21786 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
21790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21791 /* end confdefs.h. */
21793 # include <sys/types.h>
21794 # include <sys/stat.h>
21799 return mkdir ("conftest.dir/", 0700);
21804 if ac_fn_c_try_run
"$LINENO"; then :
21805 gl_cv_func_mkdir_trailing_slash_works
=yes
21807 gl_cv_func_mkdir_trailing_slash_works
=no
21809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21813 rm -rf conftest.dir
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
21818 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
21819 case "$gl_cv_func_mkdir_trailing_slash_works" in
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
21827 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
21828 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
21829 $as_echo_n "(cached) " >&6
21831 rm -rf conftest.dir
21832 if test "$cross_compiling" = yes; then :
21834 # Guess yes on glibc systems.
21835 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
21836 # If we don't know, assume the worst.
21837 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
21841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h. */
21844 # include <sys/types.h>
21845 # include <sys/stat.h>
21850 return !mkdir ("conftest.dir/./", 0700);
21855 if ac_fn_c_try_run
"$LINENO"; then :
21856 gl_cv_func_mkdir_trailing_dot_works
=yes
21858 gl_cv_func_mkdir_trailing_dot_works
=no
21860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21864 rm -rf conftest.dir
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
21869 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
21870 case "$gl_cv_func_mkdir_trailing_dot_works" in
21875 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
21880 if test $REPLACE_MKDIR = 1; then
21889 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
21904 if test $ac_cv_func_mkostemp != yes; then
21908 if test $HAVE_MKOSTEMP = 0; then
21917 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
21924 cat >>confdefs.h
<<_ACEOF
21925 #define GNULIB_MKOSTEMP 1
21940 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
21945 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21954 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
21958 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21967 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
21973 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
21974 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
21975 $as_echo_n "(cached) " >&6
21978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21979 /* end confdefs.h. */
21980 #include <netinet/in.h>
21989 if ac_fn_c_try_compile
"$LINENO"; then :
21990 gl_cv_header_netinet_in_h_selfcontained
=yes
21992 gl_cv_header_netinet_in_h_selfcontained
=no
21994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
21998 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
21999 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22002 NETINET_IN_H
='netinet/in.h'
22003 for ac_header
in netinet
/in.h
22005 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22006 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
22007 cat >>confdefs.h
<<_ACEOF
22008 #define HAVE_NETINET_IN_H 1
22030 if test $gl_cv_have_include_next = yes; then
22031 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22034 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22035 if ${gl_cv_next_netinet_in_h+:} false
; then :
22036 $as_echo_n "(cached) " >&6
22039 if test $ac_cv_header_netinet_in_h = yes; then
22044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22045 /* end confdefs.h. */
22046 #include <netinet/in.h>
22049 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22050 *) gl_absname_cpp
="$ac_cpp" ;;
22055 gl_dirsep_regex
='[/\\]'
22058 gl_dirsep_regex
='\/'
22061 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22062 gl_header_literal_regex
=`echo 'netinet/in.h' \
22063 | sed -e "$gl_make_literal_regex_sed"`
22064 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22065 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22071 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22072 sed -n "$gl_absolute_header_sed"`
22074 gl_header
=$gl_cv_absolute_netinet_in_h
22075 gl_cv_next_netinet_in_h
='"'$gl_header'"'
22077 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22083 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22085 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
22087 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22089 gl_next_as_first_directive
='<'netinet
/in.h
'>'
22091 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22092 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
22094 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
22099 if test $ac_cv_header_netinet_in_h = yes; then
22100 HAVE_NETINET_IN_H
=1
22102 HAVE_NETINET_IN_H
=0
22107 if test -n "$NETINET_IN_H"; then
22108 GL_GENERATE_NETINET_IN_H_TRUE
=
22109 GL_GENERATE_NETINET_IN_H_FALSE
='#'
22111 GL_GENERATE_NETINET_IN_H_TRUE
='#'
22112 GL_GENERATE_NETINET_IN_H_FALSE
=
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
22132 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
22133 if ${gl_cv_func_open_slash+:} false
; then :
22134 $as_echo_n "(cached) " >&6
22136 # Assume that if we have lstat, we can also check symlinks.
22137 if test $ac_cv_func_lstat = yes; then
22139 ln -s conftest.tmp conftest.lnk
22141 if test "$cross_compiling" = yes; then :
22144 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
22145 gl_cv_func_open_slash
="guessing no" ;;
22147 gl_cv_func_open_slash
="guessing yes" ;;
22151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22156 # include <unistd.h>
22162 if (open ("conftest.lnk/", O_RDONLY) != -1)
22165 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
22170 if ac_fn_c_try_run
"$LINENO"; then :
22171 gl_cv_func_open_slash
=yes
22173 gl_cv_func_open_slash
=no
22175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22179 rm -f conftest.sl conftest.tmp conftest.lnk
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
22183 $as_echo "$gl_cv_func_open_slash" >&6; }
22184 case "$gl_cv_func_open_slash" in
22187 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
22195 if test $REPLACE_OPEN = 0; then
22205 if test $ac_cv_func_fchdir = no
; then
22209 if test $HAVE_FCHDIR = 0; then
22216 if test $REPLACE_OPEN = 1; then
22225 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
22243 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
22258 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
22262 # Solaris 9 has *at functions, but uniformly mishandles trailing
22263 # slash in all of them.
22271 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
22280 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
22289 cat >>confdefs.h
<<_ACEOF
22290 #define GNULIB_OPENAT 1
22304 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
22311 for ac_func
in opendir
22313 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
22314 if test "x$ac_cv_func_opendir" = xyes
; then :
22315 cat >>confdefs.h
<<_ACEOF
22316 #define HAVE_OPENDIR 1
22322 if test $ac_cv_func_opendir = no
; then
22335 if test $ac_cv_func_fchdir = no
; then
22339 if test $HAVE_FCHDIR = 0; then
22340 if test $HAVE_OPENDIR = 1; then
22345 case $host_os,$HAVE_OPENDIR in
22347 REPLACE_OPENDIR
=1;;
22350 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
22359 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
22373 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
22390 for ac_func
in rawmemchr
22392 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
22393 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
22394 cat >>confdefs.h
<<_ACEOF
22395 #define HAVE_RAWMEMCHR 1
22401 if test $ac_cv_func_rawmemchr = no
; then
22405 if test $HAVE_RAWMEMCHR = 0; then
22414 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
22429 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
22436 for ac_func
in readdir
22438 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
22439 if test "x$ac_cv_func_readdir" = xyes
; then :
22440 cat >>confdefs.h
<<_ACEOF
22441 #define HAVE_READDIR 1
22447 if test $ac_cv_func_readdir = no
; then
22451 if test $HAVE_READDIR = 0; then
22460 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
22474 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
22487 if test $ac_cv_func_readlink = no
; then
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22491 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22492 if ${gl_cv_decl_readlink_works+:} false
; then :
22493 $as_echo_n "(cached) " >&6
22495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22496 /* end confdefs.h. */
22497 #include <unistd.h>
22498 /* Cause compilation failure if original declaration has wrong type. */
22499 ssize_t readlink (const char *, char *, size_t);
22508 if ac_fn_c_try_compile
"$LINENO"; then :
22509 gl_cv_decl_readlink_works
=yes
22511 gl_cv_decl_readlink_works
=no
22513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22516 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22518 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22519 if ${gl_cv_func_readlink_works+:} false
; then :
22520 $as_echo_n "(cached) " >&6
22522 # We have readlink, so assume ln -s works.
22523 ln -s conftest.no-such conftest.link
22524 ln -s conftest.link conftest.lnk2
22525 if test "$cross_compiling" = yes; then :
22527 # Guess yes on glibc systems.
22528 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22529 # If we don't know, assume the worst.
22530 *) gl_cv_func_readlink_works
="guessing no" ;;
22534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22536 #include <unistd.h>
22542 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22547 if ac_fn_c_try_run
"$LINENO"; then :
22548 gl_cv_func_readlink_works
=yes
22550 gl_cv_func_readlink_works
=no
22552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22556 rm -f conftest.link conftest.lnk2
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22559 $as_echo "$gl_cv_func_readlink_works" >&6; }
22560 case "$gl_cv_func_readlink_works" in
22562 if test "$gl_cv_decl_readlink_works" != yes; then
22568 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22575 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22584 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22601 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
22608 if test $gl_cv_func_malloc_posix = yes; then
22610 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22616 if test $REPLACE_REALLOC = 1; then
22625 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
22633 GNULIB_REALLOC_POSIX
=1
22639 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
22655 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
22656 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
22657 $as_echo_n "(cached) " >&6
22659 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22660 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22661 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22662 # Assume that if we have lstat, we can also check symlinks.
22663 if test $ac_cv_func_lstat = yes; then
22664 ln -s conftest.f conftest.lnk
22666 if test "$cross_compiling" = yes; then :
22668 # Guess yes on glibc systems.
22669 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
22670 # If we don't know, assume the worst.
22671 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
22675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22678 # include <stdio.h>
22679 # include <stdlib.h>
22685 if (rename ("conftest.f1", "conftest.f2/") == 0)
22687 if (rename ("conftest.d1", "conftest.d2/") != 0)
22690 if (rename ("conftest.f", "conftest.lnk/") == 0)
22699 if ac_fn_c_try_run
"$LINENO"; then :
22700 gl_cv_func_rename_slash_dst_works
=yes
22702 gl_cv_func_rename_slash_dst_works
=no
22704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22708 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
22712 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
22713 case "$gl_cv_func_rename_slash_dst_works" in
22718 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
22724 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
22725 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
22726 $as_echo_n "(cached) " >&6
22728 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22729 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22730 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22731 # Assume that if we have lstat, we can also check symlinks.
22732 if test $ac_cv_func_lstat = yes; then
22733 ln -s conftest.f conftest.lnk
22735 if test "$cross_compiling" = yes; then :
22737 # Guess yes on glibc systems.
22738 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
22739 # If we don't know, assume the worst.
22740 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
22744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22745 /* end confdefs.h. */
22747 # include <stdio.h>
22748 # include <stdlib.h>
22754 if (rename ("conftest.f1/", "conftest.d3") == 0)
22756 if (rename ("conftest.d1/", "conftest.d2") != 0)
22759 if (rename ("conftest.lnk/", "conftest.f") == 0)
22768 if ac_fn_c_try_run
"$LINENO"; then :
22769 gl_cv_func_rename_slash_src_works
=yes
22771 gl_cv_func_rename_slash_src_works
=no
22773 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22774 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22777 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
22781 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
22782 case "$gl_cv_func_rename_slash_src_works" in
22787 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
22800 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
22801 if ${gl_cv_func_rename_link_works+:} false
; then :
22802 $as_echo_n "(cached) " >&6
22804 if test $ac_cv_func_link = yes; then
22805 rm -rf conftest.f conftest.f1
22806 if touch conftest.f
&& ln conftest.f conftest.f1
&&
22807 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
22808 if test "$cross_compiling" = yes; then :
22810 # Guess yes on glibc systems.
22811 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
22812 # If we don't know, assume the worst.
22813 *) gl_cv_func_rename_link_works
="guessing no" ;;
22817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h. */
22820 # include <stdio.h>
22821 # include <stdlib.h>
22822 # include <unistd.h>
22828 if (rename ("conftest.f", "conftest.f1"))
22830 if (unlink ("conftest.f1"))
22832 if (rename ("conftest.f", "conftest.f"))
22834 if (rename ("conftest.f1", "conftest.f1") == 0)
22842 if ac_fn_c_try_run
"$LINENO"; then :
22843 gl_cv_func_rename_link_works
=yes
22845 gl_cv_func_rename_link_works
=no
22847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22848 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22852 gl_cv_func_rename_link_works
="guessing no"
22854 rm -rf conftest.f conftest.f1
22856 gl_cv_func_rename_link_works
=yes
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
22861 $as_echo "$gl_cv_func_rename_link_works" >&6; }
22862 case "$gl_cv_func_rename_link_works" in
22867 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
22873 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
22874 if ${gl_cv_func_rename_dest_works+:} false
; then :
22875 $as_echo_n "(cached) " >&6
22877 rm -rf conftest.f conftest.d1 conftest.d2
22878 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
22879 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22880 if test "$cross_compiling" = yes; then :
22882 # Guess yes on glibc systems.
22883 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
22884 # If we don't know, assume the worst.
22885 *) gl_cv_func_rename_dest_works
="guessing no" ;;
22889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h. */
22892 # include <stdio.h>
22893 # include <stdlib.h>
22899 if (rename ("conftest.d1", "conftest.d2") != 0)
22901 if (rename ("conftest.d2", "conftest.f") == 0)
22909 if ac_fn_c_try_run
"$LINENO"; then :
22910 gl_cv_func_rename_dest_works
=yes
22912 gl_cv_func_rename_dest_works
=no
22914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22918 rm -rf conftest.f conftest.d1 conftest.d2
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
22922 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
22923 case "$gl_cv_func_rename_dest_works" in
22928 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
22933 if test $REPLACE_RENAME = 1; then
22942 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
22956 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
22963 for ac_func
in rewinddir
22965 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
22966 if test "x$ac_cv_func_rewinddir" = xyes
; then :
22967 cat >>confdefs.h
<<_ACEOF
22968 #define HAVE_REWINDDIR 1
22974 if test $ac_cv_func_rewinddir = no
; then
22978 if test $HAVE_REWINDDIR = 0; then
22987 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
23001 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23015 $as_echo_n "checking whether rmdir works... " >&6; }
23016 if ${gl_cv_func_rmdir_works+:} false
; then :
23017 $as_echo_n "(cached) " >&6
23020 touch conftest.
file
23021 if test "$cross_compiling" = yes; then :
23023 # Guess yes on glibc systems.
23024 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
23025 # If we don't know, assume the worst.
23026 *) gl_cv_func_rmdir_works
="guessing no" ;;
23030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h. */
23035 # include <unistd.h>
23036 #else /* on Windows with MSVC */
23037 # include <direct.h>
23044 if (!rmdir ("conftest.file/"))
23046 else if (errno != ENOTDIR)
23048 if (!rmdir ("conftest.dir/./"))
23056 if ac_fn_c_try_run
"$LINENO"; then :
23057 gl_cv_func_rmdir_works
=yes
23059 gl_cv_func_rmdir_works
=no
23061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23065 rm -rf conftest.dir conftest.
file
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
23068 $as_echo "$gl_cv_func_rmdir_works" >&6; }
23069 case "$gl_cv_func_rmdir_works" in
23076 if test $REPLACE_RMDIR = 1; then
23085 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
23099 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
23123 if test $ac_cv_func_secure_getenv = no
; then
23124 HAVE_SECURE_GETENV
=0
23127 if test $HAVE_SECURE_GETENV = 0; then
23136 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
23139 for ac_func
in __secure_getenv
23141 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23142 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
23143 cat >>confdefs.h
<<_ACEOF
23144 #define HAVE___SECURE_GETENV 1
23150 if test $ac_cv_func___secure_getenv = no
; then
23151 for ac_func
in issetugid
23153 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
23154 if test "x$ac_cv_func_issetugid" = xyes
; then :
23155 cat >>confdefs.h
<<_ACEOF
23156 #define HAVE_ISSETUGID 1
23186 GNULIB_SECURE_GETENV
=1
23192 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23198 if test $ac_cv_func_setenv = no
; then
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23202 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23203 if ${gl_cv_func_setenv_works+:} false
; then :
23204 $as_echo_n "(cached) " >&6
23206 if test "$cross_compiling" = yes; then :
23208 # Guess yes on glibc systems.
23209 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
23210 # If we don't know, assume the worst.
23211 *) gl_cv_func_setenv_works
="guessing no" ;;
23215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23218 #include <stdlib.h>
23220 #include <string.h>
23228 if (setenv ("", "", 0) != -1)
23230 else if (errno != EINVAL)
23234 if (setenv ("a", "=", 1) != 0)
23236 else if (strcmp (getenv ("a"), "=") != 0)
23245 if ac_fn_c_try_run
"$LINENO"; then :
23246 gl_cv_func_setenv_works
=yes
23248 gl_cv_func_setenv_works
=no
23250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23256 $as_echo "$gl_cv_func_setenv_works" >&6; }
23257 case "$gl_cv_func_setenv_works" in
23265 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
23274 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
23288 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23303 if test $gl_cv_have_include_next = yes; then
23304 gl_cv_next_signal_h
='<'signal.h
'>'
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23307 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23308 if ${gl_cv_next_signal_h+:} false
; then :
23309 $as_echo_n "(cached) " >&6
23314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23315 /* end confdefs.h. */
23316 #include <signal.h>
23319 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23320 *) gl_absname_cpp
="$ac_cpp" ;;
23325 gl_dirsep_regex
='[/\\]'
23328 gl_dirsep_regex
='\/'
23331 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23332 gl_header_literal_regex
=`echo 'signal.h' \
23333 | sed -e "$gl_make_literal_regex_sed"`
23334 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23335 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23341 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23342 sed -n "$gl_absolute_header_sed"`
23344 gl_header
=$gl_cv_absolute_signal_h
23345 gl_cv_next_signal_h
='"'$gl_header'"'
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23350 $as_echo "$gl_cv_next_signal_h" >&6; }
23352 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23354 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23356 gl_next_as_first_directive
='<'signal.h
'>'
23358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23359 gl_next_as_first_directive
=$gl_cv_next_signal_h
23361 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23367 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23368 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23369 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23370 #include <signal.h>
23373 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
23376 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23385 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23386 #include <signal.h>
23389 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
23392 HAVE_SIGHANDLER_T
=0
23397 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
23398 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23400 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23401 if eval \
${$as_gl_Symbol+:} false
; then :
23402 $as_echo_n "(cached) " >&6
23404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23405 /* end confdefs.h. */
23406 #include <signal.h>
23417 if ac_fn_c_try_compile
"$LINENO"; then :
23418 eval "$as_gl_Symbol=yes"
23420 eval "$as_gl_Symbol=no"
23422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23424 eval ac_res
=\$
$as_gl_Symbol
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23426 $as_echo "$ac_res" >&6; }
23427 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23428 cat >>confdefs.h
<<_ACEOF
23429 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23432 eval ac_cv_have_decl_
$gl_func=yes
23437 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23438 /* <sys/types.h> is not needed according to POSIX, but the
23439 <sys/socket.h> in i386-unknown-freebsd4.10 and
23440 powerpc-apple-darwin5.5 required it. */
23441 #include <sys/types.h>
23442 #if HAVE_SYS_SOCKET_H
23443 # include <sys/socket.h>
23444 #elif HAVE_WS2TCPIP_H
23445 # include <ws2tcpip.h>
23449 if test "x$ac_cv_type_socklen_t" = xyes
; then :
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23453 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23454 if ${gl_cv_socklen_t_equiv+:} false
; then :
23455 $as_echo_n "(cached) " >&6
23457 # Systems have either "struct sockaddr *" or
23458 # "void *" as the second argument to getpeername
23459 gl_cv_socklen_t_equiv
=
23460 for arg2
in "struct sockaddr" void
; do
23461 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23464 #include <sys/types.h>
23465 #include <sys/socket.h>
23467 int getpeername (int, $arg2 *, $t *);
23472 getpeername (0, 0, &len);
23477 if ac_fn_c_try_compile
"$LINENO"; then :
23478 gl_cv_socklen_t_equiv
="$t"
23480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23481 test "$gl_cv_socklen_t_equiv" != "" && break
23483 test "$gl_cv_socklen_t_equiv" != "" && break
23488 if test "$gl_cv_socklen_t_equiv" = ""; then
23489 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23492 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23494 cat >>confdefs.h
<<_ACEOF
23495 #define socklen_t $gl_cv_socklen_t_equiv
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23502 $as_echo_n "checking for ssize_t... " >&6; }
23503 if ${gt_cv_ssize_t+:} false
; then :
23504 $as_echo_n "(cached) " >&6
23506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h. */
23508 #include <sys/types.h>
23512 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23518 if ac_fn_c_try_compile
"$LINENO"; then :
23523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23526 $as_echo "$gt_cv_ssize_t" >&6; }
23527 if test $gt_cv_ssize_t = no
; then
23529 $as_echo "#define ssize_t int" >>confdefs.h
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23543 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23544 if ${gl_cv_func_stat_dir_slash+:} false
; then :
23545 $as_echo_n "(cached) " >&6
23547 if test "$cross_compiling" = yes; then :
23549 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23550 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h. */
23555 #include <sys/stat.h>
23560 struct stat st; return stat (".", &st) != stat ("./", &st);
23565 if ac_fn_c_try_run
"$LINENO"; then :
23566 gl_cv_func_stat_dir_slash
=yes
23568 gl_cv_func_stat_dir_slash
=no
23570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23576 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23578 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23579 if ${gl_cv_func_stat_file_slash+:} false
; then :
23580 $as_echo_n "(cached) " >&6
23583 # Assume that if we have lstat, we can also check symlinks.
23584 if test $ac_cv_func_lstat = yes; then
23585 ln -s conftest.tmp conftest.lnk
23587 if test "$cross_compiling" = yes; then :
23589 # Guess yes on glibc systems.
23590 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23591 # If we don't know, assume the worst.
23592 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23597 /* end confdefs.h. */
23598 #include <sys/stat.h>
23605 if (!stat ("conftest.tmp/", &st))
23608 if (!stat ("conftest.lnk/", &st))
23617 if ac_fn_c_try_run
"$LINENO"; then :
23618 gl_cv_func_stat_file_slash
=yes
23620 gl_cv_func_stat_file_slash
=no
23622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23626 rm -f conftest.tmp conftest.lnk
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23629 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23630 case $gl_cv_func_stat_dir_slash in
23631 *no
) REPLACE_STAT
=1
23633 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23636 case $gl_cv_func_stat_file_slash in
23637 *no
) REPLACE_STAT
=1
23639 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23643 if test $REPLACE_STAT = 1; then
23652 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23667 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23673 $as_echo_n "checking for working stdalign.h... " >&6; }
23674 if ${gl_cv_header_working_stdalign_h+:} false
; then :
23675 $as_echo_n "(cached) " >&6
23677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23678 /* end confdefs.h. */
23679 #include <stdalign.h>
23680 #include <stddef.h>
23682 /* Test that alignof yields a result consistent with offsetof.
23683 This catches GCC bug 52023
23684 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23686 template <class t> struct alignof_helper { char a; t b; };
23687 # define ao(type) offsetof (alignof_helper<type>, b)
23689 # define ao(type) offsetof (struct { char a; type b; }, b)
23691 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23692 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23693 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23695 /* Test _Alignas only on platforms where gnulib can help. */
23697 ((defined __cplusplus && 201103 <= __cplusplus) \
23698 || (defined __APPLE__ && defined __MACH__ \
23699 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23701 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23702 || __ICC || 0x5110 <= __SUNPRO_C \
23703 || 1300 <= _MSC_VER)
23704 struct alignas_test { char c; char alignas (8) alignas_8; };
23705 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23717 if ac_fn_c_try_compile
"$LINENO"; then :
23718 gl_cv_header_working_stdalign_h
=yes
23720 gl_cv_header_working_stdalign_h
=no
23722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23725 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23727 if test $gl_cv_header_working_stdalign_h = yes; then
23730 STDALIGN_H
='stdalign.h'
23734 if test -n "$STDALIGN_H"; then
23735 GL_GENERATE_STDALIGN_H_TRUE
=
23736 GL_GENERATE_STDALIGN_H_FALSE
='#'
23738 GL_GENERATE_STDALIGN_H_TRUE
='#'
23739 GL_GENERATE_STDALIGN_H_FALSE
=
23746 # Define two additional variables used in the Makefile substitution.
23748 if test "$ac_cv_header_stdbool_h" = yes; then
23751 STDBOOL_H
='stdbool.h'
23754 if test -n "$STDBOOL_H"; then
23755 GL_GENERATE_STDBOOL_H_TRUE
=
23756 GL_GENERATE_STDBOOL_H_FALSE
='#'
23758 GL_GENERATE_STDBOOL_H_TRUE
='#'
23759 GL_GENERATE_STDBOOL_H_FALSE
=
23763 if test "$ac_cv_type__Bool" = yes; then
23774 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23777 if test "x$ac_cv_type_max_align_t" = xyes
; then :
23780 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
23783 if test $gt_cv_c_wchar_t = no
; then
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23788 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23789 if ${gl_cv_decl_null_works+:} false
; then :
23790 $as_echo_n "(cached) " >&6
23792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23793 /* end confdefs.h. */
23794 #include <stddef.h>
23795 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23805 if ac_fn_c_try_compile
"$LINENO"; then :
23806 gl_cv_decl_null_works
=yes
23808 gl_cv_decl_null_works
=no
23810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23813 $as_echo "$gl_cv_decl_null_works" >&6; }
23814 if test $gl_cv_decl_null_works = no
; then
23819 if test -n "$STDDEF_H"; then
23820 GL_GENERATE_STDDEF_H_TRUE
=
23821 GL_GENERATE_STDDEF_H_FALSE
='#'
23823 GL_GENERATE_STDDEF_H_TRUE
='#'
23824 GL_GENERATE_STDDEF_H_FALSE
=
23827 if test -n "$STDDEF_H"; then
23836 if test $gl_cv_have_include_next = yes; then
23837 gl_cv_next_stddef_h
='<'stddef.h
'>'
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23840 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23841 if ${gl_cv_next_stddef_h+:} false
; then :
23842 $as_echo_n "(cached) " >&6
23847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h. */
23849 #include <stddef.h>
23852 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23853 *) gl_absname_cpp
="$ac_cpp" ;;
23858 gl_dirsep_regex
='[/\\]'
23861 gl_dirsep_regex
='\/'
23864 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23865 gl_header_literal_regex
=`echo 'stddef.h' \
23866 | sed -e "$gl_make_literal_regex_sed"`
23867 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23868 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23874 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23875 sed -n "$gl_absolute_header_sed"`
23877 gl_header
=$gl_cv_absolute_stddef_h
23878 gl_cv_next_stddef_h
='"'$gl_header'"'
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23883 $as_echo "$gl_cv_next_stddef_h" >&6; }
23885 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23887 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23889 gl_next_as_first_directive
='<'stddef.h
'>'
23891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23892 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23894 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23904 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23915 if test $gl_cv_have_include_next = yes; then
23916 gl_cv_next_stdio_h
='<'stdio.h
'>'
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23919 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23920 if ${gl_cv_next_stdio_h+:} false
; then :
23921 $as_echo_n "(cached) " >&6
23926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23927 /* end confdefs.h. */
23931 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23932 *) gl_absname_cpp
="$ac_cpp" ;;
23937 gl_dirsep_regex
='[/\\]'
23940 gl_dirsep_regex
='\/'
23943 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23944 gl_header_literal_regex
=`echo 'stdio.h' \
23945 | sed -e "$gl_make_literal_regex_sed"`
23946 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23953 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23954 sed -n "$gl_absolute_header_sed"`
23956 gl_header
=$gl_cv_absolute_stdio_h
23957 gl_cv_next_stdio_h
='"'$gl_header'"'
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23962 $as_echo "$gl_cv_next_stdio_h" >&6; }
23964 NEXT_STDIO_H
=$gl_cv_next_stdio_h
23966 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23968 gl_next_as_first_directive
='<'stdio.h
'>'
23970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23971 gl_next_as_first_directive
=$gl_cv_next_stdio_h
23973 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
23980 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
23981 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
23982 $as_echo_n "(cached) " >&6
23984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23985 /* end confdefs.h. */
23987 #define __STDC_FORMAT_MACROS 1
23989 #include <inttypes.h>
23990 /* For non-mingw systems, compilation will trivially succeed.
23991 For mingw, compilation will succeed for older mingw (system
23992 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
23993 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
23994 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
23995 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24006 if ac_fn_c_try_compile
"$LINENO"; then :
24007 gl_cv_func_printf_attribute_flavor
=system
24009 gl_cv_func_printf_attribute_flavor
=gnu
24011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24014 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24015 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
24017 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24024 cat >>confdefs.h
<<_ACEOF
24025 #define GNULIB_FSCANF 1
24032 cat >>confdefs.h
<<_ACEOF
24033 #define GNULIB_SCANF 1
24058 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
24059 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24061 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24062 if eval \
${$as_gl_Symbol+:} false
; then :
24063 $as_echo_n "(cached) " >&6
24065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24066 /* end confdefs.h. */
24078 if ac_fn_c_try_compile
"$LINENO"; then :
24079 eval "$as_gl_Symbol=yes"
24081 eval "$as_gl_Symbol=no"
24083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24085 eval ac_res
=\$
$as_gl_Symbol
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24087 $as_echo "$ac_res" >&6; }
24088 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24089 cat >>confdefs.h
<<_ACEOF
24090 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24093 eval ac_cv_have_decl_
$gl_func=yes
24108 if test $gl_cv_have_include_next = yes; then
24109 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24112 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24113 if ${gl_cv_next_stdlib_h+:} false
; then :
24114 $as_echo_n "(cached) " >&6
24119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24120 /* end confdefs.h. */
24121 #include <stdlib.h>
24124 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24125 *) gl_absname_cpp
="$ac_cpp" ;;
24130 gl_dirsep_regex
='[/\\]'
24133 gl_dirsep_regex
='\/'
24136 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24137 gl_header_literal_regex
=`echo 'stdlib.h' \
24138 | sed -e "$gl_make_literal_regex_sed"`
24139 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24140 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24146 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24147 sed -n "$gl_absolute_header_sed"`
24149 gl_header
=$gl_cv_absolute_stdlib_h
24150 gl_cv_next_stdlib_h
='"'$gl_header'"'
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24155 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24157 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24159 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24161 gl_next_as_first_directive
='<'stdlib.h
'>'
24163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24164 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24166 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24173 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
24174 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24176 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24177 if eval \
${$as_gl_Symbol+:} false
; then :
24178 $as_echo_n "(cached) " >&6
24180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24181 /* end confdefs.h. */
24182 #include <stdlib.h>
24183 #if HAVE_SYS_LOADAVG_H
24184 # include <sys/loadavg.h>
24187 # include <random.h>
24199 if ac_fn_c_try_compile
"$LINENO"; then :
24200 eval "$as_gl_Symbol=yes"
24202 eval "$as_gl_Symbol=no"
24204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24206 eval ac_res
=\$
$as_gl_Symbol
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24208 $as_echo "$ac_res" >&6; }
24209 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24210 cat >>confdefs.h
<<_ACEOF
24211 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24214 eval ac_cv_have_decl_
$gl_func=yes
24223 for ac_func
in strchrnul
24225 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
24226 if test "x$ac_cv_func_strchrnul" = xyes
; then :
24227 cat >>confdefs.h
<<_ACEOF
24228 #define HAVE_STRCHRNUL 1
24234 if test $ac_cv_func_strchrnul = no
; then
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
24238 $as_echo_n "checking whether strchrnul works... " >&6; }
24239 if ${gl_cv_func_strchrnul_works+:} false
; then :
24240 $as_echo_n "(cached) " >&6
24242 if test "$cross_compiling" = yes; then :
24243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24244 /* end confdefs.h. */
24246 #if defined __CYGWIN__
24247 #include <cygwin/version.h>
24248 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
24256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24257 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24258 gl_cv_func_strchrnul_works
="guessing yes"
24260 gl_cv_func_strchrnul_works
="guessing no"
24266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24267 /* end confdefs.h. */
24269 #include <string.h> /* for strchrnul */
24274 const char *buf = "a";
24275 return strchrnul (buf, 'b') != buf + 1;
24281 if ac_fn_c_try_run
"$LINENO"; then :
24282 gl_cv_func_strchrnul_works
=yes
24284 gl_cv_func_strchrnul_works
=no
24286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
24293 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
24294 case "$gl_cv_func_strchrnul_works" in
24296 *) REPLACE_STRCHRNUL
=1 ;;
24300 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
24309 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
24324 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
24338 if test $ac_cv_func_strdup = yes; then
24339 if test $gl_cv_func_malloc_posix != yes; then
24350 if test $ac_cv_have_decl_strdup = no
; then
24354 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
24363 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
24378 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
24387 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24389 $as_echo_n "checking for working strerror function... " >&6; }
24390 if ${gl_cv_func_working_strerror+:} false
; then :
24391 $as_echo_n "(cached) " >&6
24393 if test "$cross_compiling" = yes; then :
24395 # Guess yes on glibc systems.
24396 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
24397 # If we don't know, assume the worst.
24398 *) gl_cv_func_working_strerror
="guessing no" ;;
24402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24403 /* end confdefs.h. */
24404 #include <string.h>
24409 if (!*strerror (-2)) return 1;
24414 if ac_fn_c_try_run
"$LINENO"; then :
24415 gl_cv_func_working_strerror
=yes
24417 gl_cv_func_working_strerror
=no
24419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24426 $as_echo "$gl_cv_func_working_strerror" >&6; }
24427 case "$gl_cv_func_working_strerror" in
24438 if test $REPLACE_STRERROR = 1; then
24447 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
24452 cat >>confdefs.h
<<_ACEOF
24453 #define GNULIB_STRERROR 1
24468 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24474 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
24483 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
24495 if test $ac_cv_header_sys_socket_h != yes; then
24496 for ac_header
in winsock2.h
24498 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24499 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
24500 cat >>confdefs.h
<<_ACEOF
24501 #define HAVE_WINSOCK2_H 1
24509 if test "$ac_cv_header_winsock2_h" = yes; then
24511 UNISTD_H_HAVE_WINSOCK2_H
=1
24512 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24524 if test $REPLACE_STRSTR = 0; then
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
24526 $as_echo_n "checking whether strstr works in linear time... " >&6; }
24527 if ${gl_cv_func_strstr_linear+:} false
; then :
24528 $as_echo_n "(cached) " >&6
24530 if test "$cross_compiling" = yes; then :
24531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24532 /* end confdefs.h. */
24534 #include <features.h>
24535 #ifdef __GNU_LIBRARY__
24536 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24537 && !(defined __i386__ || defined __x86_64__) \
24538 && !defined __UCLIBC__
24543 #include <cygwin/version.h>
24544 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24551 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24552 gl_cv_func_strstr_linear
="guessing yes"
24554 gl_cv_func_strstr_linear
="guessing no"
24560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24561 /* end confdefs.h. */
24564 /* z/OS does not deliver signals while strstr() is running (thanks to
24565 restrictions on its LE runtime), which prevents us from limiting the
24566 running time of this test. */
24567 # error "This test does not work properly on z/OS"
24569 #include <signal.h> /* for signal */
24570 #include <string.h> /* for strstr */
24571 #include <stdlib.h> /* for malloc */
24572 #include <unistd.h> /* for alarm */
24573 static void quit (int sig) { _exit (sig + 128); }
24580 size_t m = 1000000;
24581 char *haystack = (char *) malloc (2 * m + 2);
24582 char *needle = (char *) malloc (m + 2);
24583 /* Failure to compile this test due to missing alarm is okay,
24584 since all such platforms (mingw) also have quadratic strstr. */
24585 signal (SIGALRM, quit);
24587 /* Check for quadratic performance. */
24588 if (haystack && needle)
24590 memset (haystack, 'A', 2 * m);
24591 haystack[2 * m] = 'B';
24592 haystack[2 * m + 1] = 0;
24593 memset (needle, 'A', m);
24596 if (!strstr (haystack, needle))
24605 if ac_fn_c_try_run
"$LINENO"; then :
24606 gl_cv_func_strstr_linear
=yes
24608 gl_cv_func_strstr_linear
=no
24610 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24611 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
24617 $as_echo "$gl_cv_func_strstr_linear" >&6; }
24618 case "$gl_cv_func_strstr_linear" in
24626 if test $REPLACE_STRSTR = 1; then
24635 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
24641 if test "$gl_cv_func_memchr_works" != yes; then
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
24645 $as_echo_n "checking whether strstr works... " >&6; }
24646 if ${gl_cv_func_strstr_works_always+:} false
; then :
24647 $as_echo_n "(cached) " >&6
24649 if test "$cross_compiling" = yes; then :
24650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24651 /* end confdefs.h. */
24653 #ifdef __GNU_LIBRARY__
24654 #include <features.h>
24655 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24656 || defined __UCLIBC__
24659 #elif defined __CYGWIN__
24660 #include <cygwin/version.h>
24661 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24670 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24671 gl_cv_func_strstr_works_always
="guessing yes"
24673 gl_cv_func_strstr_works_always
="guessing no"
24679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24680 /* end confdefs.h. */
24682 #include <string.h> /* for strstr */
24683 #define P "_EF_BF_BD"
24684 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24685 #define NEEDLE P P P P P
24690 return !!strstr (HAYSTACK, NEEDLE);
24696 if ac_fn_c_try_run
"$LINENO"; then :
24697 gl_cv_func_strstr_works_always
=yes
24699 gl_cv_func_strstr_works_always
=no
24701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
24708 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
24709 case "$gl_cv_func_strstr_works_always" in
24717 if test $REPLACE_STRSTR = 1; then
24726 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
24740 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
24748 for ac_func
in strtok_r
24750 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24751 if test "x$ac_cv_func_strtok_r" = xyes
; then :
24752 cat >>confdefs.h
<<_ACEOF
24753 #define HAVE_STRTOK_R 1
24759 if test $ac_cv_func_strtok_r = yes; then
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24762 $as_echo_n "checking whether strtok_r works... " >&6; }
24763 if ${gl_cv_func_strtok_r_works+:} false
; then :
24764 $as_echo_n "(cached) " >&6
24766 if test "$cross_compiling" = yes; then :
24769 # Guess no on glibc systems.
24770 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
24771 *) gl_cv_func_strtok_r_works
="guessing yes";;
24775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24776 /* end confdefs.h. */
24778 #ifndef __OPTIMIZE__
24779 # define __OPTIMIZE__ 1
24781 #undef __OPTIMIZE_SIZE__
24782 #undef __NO_INLINE__
24783 #include <stdlib.h>
24784 #include <string.h>
24789 static const char dummy[] = "\177\01a";
24790 char delimiters[] = "xxxxxxxx";
24791 char *save_ptr = (char *) dummy;
24792 strtok_r (delimiters, "x", &save_ptr);
24793 strtok_r (NULL, "x", &save_ptr);
24801 if ac_fn_c_try_run
"$LINENO"; then :
24802 gl_cv_func_strtok_r_works
=yes
24804 gl_cv_func_strtok_r_works
=no
24806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24813 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24814 case "$gl_cv_func_strtok_r_works" in
24816 UNDEFINE_STRTOK_R
=1
24829 if test $ac_cv_have_decl_strtok_r = no
; then
24830 HAVE_DECL_STRTOK_R
=0
24833 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
24842 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
24859 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24885 if test $gl_cv_have_include_next = yes; then
24886 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24889 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24890 if ${gl_cv_next_sys_stat_h+:} false
; then :
24891 $as_echo_n "(cached) " >&6
24894 if test $ac_cv_header_sys_stat_h = yes; then
24899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h. */
24901 #include <sys/stat.h>
24904 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24905 *) gl_absname_cpp
="$ac_cpp" ;;
24910 gl_dirsep_regex
='[/\\]'
24913 gl_dirsep_regex
='\/'
24916 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24917 gl_header_literal_regex
=`echo 'sys/stat.h' \
24918 | sed -e "$gl_make_literal_regex_sed"`
24919 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24926 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24927 sed -n "$gl_absolute_header_sed"`
24929 gl_header
=$gl_cv_absolute_sys_stat_h
24930 gl_cv_next_sys_stat_h
='"'$gl_header'"'
24932 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24938 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24940 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24942 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24944 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24947 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24949 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
24961 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24963 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24967 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24968 #include <sys/stat.h>
24970 if test "x$ac_cv_type_nlink_t" = xyes
; then :
24974 $as_echo "#define nlink_t int" >>confdefs.h
24980 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
24981 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24983 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24984 if eval \
${$as_gl_Symbol+:} false
; then :
24985 $as_echo_n "(cached) " >&6
24987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24988 /* end confdefs.h. */
24989 #include <sys/stat.h>
25000 if ac_fn_c_try_compile
"$LINENO"; then :
25001 eval "$as_gl_Symbol=yes"
25003 eval "$as_gl_Symbol=no"
25005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25007 eval ac_res
=\$
$as_gl_Symbol
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25009 $as_echo "$ac_res" >&6; }
25010 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25011 cat >>confdefs.h
<<_ACEOF
25012 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25015 eval ac_cv_have_decl_
$gl_func=yes
25044 if test $gl_cv_have_include_next = yes; then
25045 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25048 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25049 if ${gl_cv_next_sys_uio_h+:} false
; then :
25050 $as_echo_n "(cached) " >&6
25053 if test $ac_cv_header_sys_uio_h = yes; then
25058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25060 #include <sys/uio.h>
25063 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25064 *) gl_absname_cpp
="$ac_cpp" ;;
25069 gl_dirsep_regex
='[/\\]'
25072 gl_dirsep_regex
='\/'
25075 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25076 gl_header_literal_regex
=`echo 'sys/uio.h' \
25077 | sed -e "$gl_make_literal_regex_sed"`
25078 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25079 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25085 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25086 sed -n "$gl_absolute_header_sed"`
25088 gl_header
=$gl_cv_absolute_sys_uio_h
25089 gl_cv_next_sys_uio_h
='"'$gl_header'"'
25091 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25097 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25099 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
25101 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25102 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25103 gl_next_as_first_directive
='<'sys
/uio.h
'>'
25105 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25106 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
25108 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
25113 if test $ac_cv_header_sys_uio_h = yes; then
25147 if test $gl_cv_have_include_next = yes; then
25148 gl_cv_next_unistd_h
='<'unistd.h
'>'
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25151 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25152 if ${gl_cv_next_unistd_h+:} false
; then :
25153 $as_echo_n "(cached) " >&6
25156 if test $ac_cv_header_unistd_h = yes; then
25161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h. */
25163 #include <unistd.h>
25166 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25167 *) gl_absname_cpp
="$ac_cpp" ;;
25172 gl_dirsep_regex
='[/\\]'
25175 gl_dirsep_regex
='\/'
25178 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25179 gl_header_literal_regex
=`echo 'unistd.h' \
25180 | sed -e "$gl_make_literal_regex_sed"`
25181 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25182 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25188 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25189 sed -n "$gl_absolute_header_sed"`
25191 gl_header
=$gl_cv_absolute_unistd_h
25192 gl_cv_next_unistd_h
='"'$gl_header'"'
25194 gl_cv_next_unistd_h
='<'unistd.h
'>'
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25200 $as_echo "$gl_cv_next_unistd_h" >&6; }
25202 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25204 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25206 gl_next_as_first_directive
='<'unistd.h
'>'
25208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25209 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25211 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25216 if test $ac_cv_header_unistd_h = yes; then
25228 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
25229 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25231 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25232 if eval \
${$as_gl_Symbol+:} false
; then :
25233 $as_echo_n "(cached) " >&6
25235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25239 # include <unistd.h>
25241 /* Some systems declare various items in the wrong headers. */
25242 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25243 # include <fcntl.h>
25244 # include <stdio.h>
25245 # include <stdlib.h>
25246 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25260 if ac_fn_c_try_compile
"$LINENO"; then :
25261 eval "$as_gl_Symbol=yes"
25263 eval "$as_gl_Symbol=no"
25265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25267 eval ac_res
=\$
$as_gl_Symbol
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25269 $as_echo "$ac_res" >&6; }
25270 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25271 cat >>confdefs.h
<<_ACEOF
25272 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25275 eval ac_cv_have_decl_
$gl_func=yes
25298 if test $ac_cv_have_decl_unsetenv = no
; then
25299 HAVE_DECL_UNSETENV
=0
25301 for ac_func
in unsetenv
25303 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25304 if test "x$ac_cv_func_unsetenv" = xyes
; then :
25305 cat >>confdefs.h
<<_ACEOF
25306 #define HAVE_UNSETENV 1
25312 if test $ac_cv_func_unsetenv = no
; then
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25317 $as_echo_n "checking for unsetenv() return type... " >&6; }
25318 if ${gt_cv_func_unsetenv_ret+:} false
; then :
25319 $as_echo_n "(cached) " >&6
25321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25322 /* end confdefs.h. */
25325 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25326 #include <stdlib.h>
25331 int unsetenv (const char *name);
25341 if ac_fn_c_try_compile
"$LINENO"; then :
25342 gt_cv_func_unsetenv_ret
='int'
25344 gt_cv_func_unsetenv_ret
='void'
25346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25349 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25350 if test $gt_cv_func_unsetenv_ret = 'void'; then
25352 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25358 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25359 if ${gl_cv_func_unsetenv_works+:} false
; then :
25360 $as_echo_n "(cached) " >&6
25362 if test "$cross_compiling" = yes; then :
25364 # Guess yes on glibc systems.
25365 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25366 # If we don't know, assume the worst.
25367 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h. */
25374 #include <stdlib.h>
25376 extern char **environ;
25382 char entry1[] = "a=1";
25383 char entry2[] = "b=2";
25384 char *env[] = { entry1, entry2, NULL };
25385 if (putenv ((char *) "a=1")) return 1;
25386 if (putenv (entry2)) return 2;
25389 if (getenv ("a")) return 3;
25390 if (!unsetenv ("") || errno != EINVAL) return 4;
25393 if (!getenv ("a")) return 5;
25396 if (getenv ("a")) return 6;
25402 if ac_fn_c_try_run
"$LINENO"; then :
25403 gl_cv_func_unsetenv_works
=yes
25405 gl_cv_func_unsetenv_works
=no
25407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25413 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25414 case "$gl_cv_func_unsetenv_works" in
25422 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25431 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25455 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25477 if test $gl_cv_have_include_next = yes; then
25478 gl_cv_next_wchar_h
='<'wchar.h
'>'
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25481 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25482 if ${gl_cv_next_wchar_h+:} false
; then :
25483 $as_echo_n "(cached) " >&6
25486 if test $ac_cv_header_wchar_h = yes; then
25491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25492 /* end confdefs.h. */
25496 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25497 *) gl_absname_cpp
="$ac_cpp" ;;
25502 gl_dirsep_regex
='[/\\]'
25505 gl_dirsep_regex
='\/'
25508 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25509 gl_header_literal_regex
=`echo 'wchar.h' \
25510 | sed -e "$gl_make_literal_regex_sed"`
25511 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25512 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25518 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25519 sed -n "$gl_absolute_header_sed"`
25521 gl_header
=$gl_cv_absolute_wchar_h
25522 gl_cv_next_wchar_h
='"'$gl_header'"'
25524 gl_cv_next_wchar_h
='<'wchar.h
'>'
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25530 $as_echo "$gl_cv_next_wchar_h" >&6; }
25532 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
25534 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25536 gl_next_as_first_directive
='<'wchar.h
'>'
25538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25539 gl_next_as_first_directive
=$gl_cv_next_wchar_h
25541 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
25546 if test $ac_cv_header_wchar_h = yes; then
25556 if test $gt_cv_c_wint_t = yes; then
25564 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
25565 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25567 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25568 if eval \
${$as_gl_Symbol+:} false
; then :
25569 $as_echo_n "(cached) " >&6
25571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25572 /* end confdefs.h. */
25574 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25576 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25577 included before <wchar.h>. */
25578 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25579 # include <stddef.h>
25580 # include <stdio.h>
25594 if ac_fn_c_try_compile
"$LINENO"; then :
25595 eval "$as_gl_Symbol=yes"
25597 eval "$as_gl_Symbol=no"
25599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25601 eval ac_res
=\$
$as_gl_Symbol
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25603 $as_echo "$ac_res" >&6; }
25604 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25605 cat >>confdefs.h
<<_ACEOF
25606 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25609 eval ac_cv_have_decl_
$gl_func=yes
25625 if test $ac_cv_func_iswcntrl = yes; then
25633 if test $gt_cv_c_wint_t = yes; then
25655 if test $gl_cv_have_include_next = yes; then
25656 gl_cv_next_wctype_h
='<'wctype.h
'>'
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
25659 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
25660 if ${gl_cv_next_wctype_h+:} false
; then :
25661 $as_echo_n "(cached) " >&6
25664 if test $ac_cv_header_wctype_h = yes; then
25669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25671 #include <wctype.h>
25674 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25675 *) gl_absname_cpp
="$ac_cpp" ;;
25680 gl_dirsep_regex
='[/\\]'
25683 gl_dirsep_regex
='\/'
25686 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25687 gl_header_literal_regex
=`echo 'wctype.h' \
25688 | sed -e "$gl_make_literal_regex_sed"`
25689 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25696 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25697 sed -n "$gl_absolute_header_sed"`
25699 gl_header
=$gl_cv_absolute_wctype_h
25700 gl_cv_next_wctype_h
='"'$gl_header'"'
25702 gl_cv_next_wctype_h
='<'wctype.h
'>'
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
25708 $as_echo "$gl_cv_next_wctype_h" >&6; }
25710 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
25712 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25714 gl_next_as_first_directive
='<'wctype.h
'>'
25716 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25717 gl_next_as_first_directive
=$gl_cv_next_wctype_h
25719 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
25724 if test $ac_cv_header_wctype_h = yes; then
25725 if test $ac_cv_func_iswcntrl = yes; then
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
25727 $as_echo_n "checking whether iswcntrl works... " >&6; }
25728 if ${gl_cv_func_iswcntrl_works+:} false
; then :
25729 $as_echo_n "(cached) " >&6
25732 if test "$cross_compiling" = yes; then :
25733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h. */
25735 #include <stdlib.h>
25736 #if __GNU_LIBRARY__ == 1
25737 Linux libc5 i18n is broken.
25747 if ac_fn_c_try_compile
"$LINENO"; then :
25748 gl_cv_func_iswcntrl_works
="guessing yes"
25750 gl_cv_func_iswcntrl_works
="guessing no"
25752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25756 /* end confdefs.h. */
25758 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25759 included before <wchar.h>.
25760 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25761 must be included before <wchar.h>. */
25762 #include <stddef.h>
25766 #include <wctype.h>
25767 int main () { return iswprint ('x') == 0; }
25770 if ac_fn_c_try_run
"$LINENO"; then :
25771 gl_cv_func_iswcntrl_works
=yes
25773 gl_cv_func_iswcntrl_works
=no
25775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
25782 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
25790 case "$gl_cv_func_iswcntrl_works" in
25791 *yes) REPLACE_ISWCNTRL
=0 ;;
25792 *) REPLACE_ISWCNTRL
=1 ;;
25796 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
25800 if test $REPLACE_ISWCNTRL = 1; then
25803 for ac_func
in towlower
25805 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
25806 if test "x$ac_cv_func_towlower" = xyes
; then :
25807 cat >>confdefs.h
<<_ACEOF
25808 #define HAVE_TOWLOWER 1
25814 if test $ac_cv_func_towlower = yes; then
25817 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25818 included before <wchar.h>.
25819 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25820 must be included before <wchar.h>. */
25821 #include <stddef.h>
25826 # include <wctype.h>
25830 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
25836 cat >>confdefs.h
<<_ACEOF
25837 #define HAVE_DECL_TOWLOWER $ac_have_decl
25840 if test $ac_cv_have_decl_towlower = yes; then
25849 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
25854 $as_echo_n "checking for wctype_t... " >&6; }
25855 if ${gl_cv_type_wctype_t+:} false
; then :
25856 $as_echo_n "(cached) " >&6
25858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25859 /* end confdefs.h. */
25860 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25861 included before <wchar.h>.
25862 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25863 must be included before <wchar.h>. */
25864 #include <stddef.h>
25869 # include <wctype.h>
25881 if ac_fn_c_try_compile
"$LINENO"; then :
25882 gl_cv_type_wctype_t
=yes
25884 gl_cv_type_wctype_t
=no
25886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
25890 $as_echo "$gl_cv_type_wctype_t" >&6; }
25891 if test $gl_cv_type_wctype_t = no
; then
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
25896 $as_echo_n "checking for wctrans_t... " >&6; }
25897 if ${gl_cv_type_wctrans_t+:} false
; then :
25898 $as_echo_n "(cached) " >&6
25900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25903 included before <wchar.h>.
25904 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25905 must be included before <wchar.h>. */
25906 #include <stddef.h>
25910 #include <wctype.h>
25921 if ac_fn_c_try_compile
"$LINENO"; then :
25922 gl_cv_type_wctrans_t
=yes
25924 gl_cv_type_wctrans_t
=no
25926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
25930 $as_echo "$gl_cv_type_wctrans_t" >&6; }
25931 if test $gl_cv_type_wctrans_t = no
; then
25936 for gl_func
in wctype iswctype wctrans towctrans
; do
25937 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25939 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25940 if eval \
${$as_gl_Symbol+:} false
; then :
25941 $as_echo_n "(cached) " >&6
25943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h. */
25946 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25948 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25949 included before <wchar.h>. */
25950 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25951 # include <stddef.h>
25952 # include <stdio.h>
25954 # include <wchar.h>
25956 #include <wctype.h>
25967 if ac_fn_c_try_compile
"$LINENO"; then :
25968 eval "$as_gl_Symbol=yes"
25970 eval "$as_gl_Symbol=no"
25972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25974 eval ac_res
=\$
$as_gl_Symbol
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25976 $as_echo "$ac_res" >&6; }
25977 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25978 cat >>confdefs.h
<<_ACEOF
25979 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25982 eval ac_cv_have_decl_
$gl_func=yes
25987 # End of code from modules
26008 gl_source_base
='tests'
26009 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
26011 gl_module_indicator_condition
=$gltests_WITNESS
26021 LIBGNU_LIBDEPS
="$gl_libdeps"
26023 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26027 # We don't use automake, but gnulib does. This line lets us generate
26029 am__api_version
='1.15'
26031 # Find a good install program. We prefer a C program (faster),
26032 # so one script is as good as another. But avoid the broken or
26033 # incompatible versions:
26034 # SysV /etc/install, /usr/sbin/install
26035 # SunOS /usr/etc/install
26036 # IRIX /sbin/install
26038 # AmigaOS /C/install, which installs bootblocks on floppy discs
26039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
26041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26042 # OS/2's system install, which has a completely different semantic
26043 # ./install, which can be erroneously created by make from ./install.sh.
26044 # Reject install programs that cannot install multiple files.
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26046 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26047 if test -z "$INSTALL"; then
26048 if ${ac_cv_path_install+:} false
; then :
26049 $as_echo_n "(cached) " >&6
26051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26052 for as_dir
in $PATH
26055 test -z "$as_dir" && as_dir
=.
26056 # Account for people who put trailing slashes in PATH elements.
26057 case $as_dir/ in #((
26058 .
/ | .
// |
/[cC
]/* | \
26059 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
26060 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
26063 # OSF1 and SCO ODT 3.0 have their own names for install.
26064 # Don't use installbsd from OSF since it installs stuff as root
26066 for ac_prog
in ginstall scoinst
install; do
26067 for ac_exec_ext
in '' $ac_executable_extensions; do
26068 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
26069 if test $ac_prog = install &&
26070 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26071 # AIX install. It has an incompatible calling convention.
26073 elif test $ac_prog = install &&
26074 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26075 # program-specific install script used by HP pwplus--don't use.
26078 rm -rf conftest.one conftest.two conftest.dir
26079 echo one
> conftest.one
26080 echo two
> conftest.two
26082 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
26083 test -s conftest.one
&& test -s conftest.two
&&
26084 test -s conftest.dir
/conftest.one
&&
26085 test -s conftest.dir
/conftest.two
26087 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
26100 rm -rf conftest.one conftest.two conftest.dir
26103 if test "${ac_cv_path_install+set}" = set; then
26104 INSTALL
=$ac_cv_path_install
26106 # As a last resort, use the slow shell script. Don't cache a
26107 # value for INSTALL within a source directory, because that will
26108 # break other packages using the cache if that directory is
26109 # removed, or if the value is a relative name.
26110 INSTALL
=$ac_install_sh
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26114 $as_echo "$INSTALL" >&6; }
26116 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26117 # It thinks the first close brace ends the variable substitution.
26118 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
26120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
26122 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26125 $as_echo_n "checking whether build environment is sane... " >&6; }
26126 # Reject unsafe characters in $srcdir or the absolute working directory
26127 # name. Accept space and tab only in the latter.
26131 *[\\\"\
#\$\&\'\`$am_lf]*)
26132 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
26135 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
26136 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26139 # Do 'set' in a subshell so we don't clobber the current shell's
26140 # arguments. Must try -L first in case configure is actually a
26141 # symlink; some systems play weird games with the mod time of symlinks
26142 # (eg FreeBSD returns the mod time of the symlink's containing
26146 for am_try
in 1 2; do
26147 echo "timestamp, slept: $am_has_slept" > conftest.
file
26148 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26149 if test "$*" = "X"; then
26151 set X
`ls -t "$srcdir/configure" conftest.file`
26153 if test "$*" != "X $srcdir/configure conftest.file" \
26154 && test "$*" != "X conftest.file $srcdir/configure"; then
26156 # If neither matched, then we have a broken ls. This can happen
26157 # if, for instance, CONFIG_SHELL is bash and it inherits a
26158 # broken ls alias from the environment. This has actually
26159 # happened. Such a system could not be considered "sane".
26160 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
26161 alias in your environment" "$LINENO" 5
26163 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
26170 test "$2" = conftest.
file
26176 as_fn_error $?
"newly created file is older than distributed files!
26177 Check your system clock" "$LINENO" 5
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26180 $as_echo "yes" >&6; }
26181 # If we didn't sleep, we still need to ensure time stamps of config.status and
26182 # generated files are strictly newer.
26184 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
26189 rm -f conftest.
file
26191 test "$program_prefix" != NONE
&&
26192 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
26193 # Use a double $ so make ignores it.
26194 test "$program_suffix" != NONE
&&
26195 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
26196 # Double any \ or $.
26197 # By default was `s,x,x', remove it if useless.
26198 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
26199 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
26201 if test x
"${MISSING+set}" != xset
; then
26202 case $am_aux_dir in
26204 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
26206 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
26209 # Use eval to expand $SHELL
26210 if eval "$MISSING --is-lightweight"; then
26211 am_missing_run
="$MISSING "
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26215 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26218 if test x
"${install_sh+set}" != xset
; then
26219 case $am_aux_dir in
26221 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
26223 install_sh
="\${SHELL} $am_aux_dir/install-sh"
26227 # Installed binaries are usually stripped using 'strip' when the user
26228 # run "make install-strip". However 'strip' might not be the right
26229 # tool to use in cross-compilation environments, therefore Automake
26230 # will honor the 'STRIP' environment variable to overrule this program.
26231 if test "$cross_compiling" != no
; then
26232 if test -n "$ac_tool_prefix"; then
26233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26234 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26236 $as_echo_n "checking for $ac_word... " >&6; }
26237 if ${ac_cv_prog_STRIP+:} false
; then :
26238 $as_echo_n "(cached) " >&6
26240 if test -n "$STRIP"; then
26241 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
26243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26244 for as_dir
in $PATH
26247 test -z "$as_dir" && as_dir
=.
26248 for ac_exec_ext
in '' $ac_executable_extensions; do
26249 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26250 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
26251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26260 STRIP
=$ac_cv_prog_STRIP
26261 if test -n "$STRIP"; then
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26263 $as_echo "$STRIP" >&6; }
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266 $as_echo "no" >&6; }
26271 if test -z "$ac_cv_prog_STRIP"; then
26273 # Extract the first word of "strip", so it can be a program name with args.
26274 set dummy strip
; ac_word
=$2
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26276 $as_echo_n "checking for $ac_word... " >&6; }
26277 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
26278 $as_echo_n "(cached) " >&6
26280 if test -n "$ac_ct_STRIP"; then
26281 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
26283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26284 for as_dir
in $PATH
26287 test -z "$as_dir" && as_dir
=.
26288 for ac_exec_ext
in '' $ac_executable_extensions; do
26289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26290 ac_cv_prog_ac_ct_STRIP
="strip"
26291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26300 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
26301 if test -n "$ac_ct_STRIP"; then
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26303 $as_echo "$ac_ct_STRIP" >&6; }
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26306 $as_echo "no" >&6; }
26309 if test "x$ac_ct_STRIP" = x
; then
26312 case $cross_compiling:$ac_tool_warned in
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26316 ac_tool_warned
=yes ;;
26321 STRIP
="$ac_cv_prog_STRIP"
26325 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
26327 for ac_prog
in gawk mawk nawk
awk
26329 # Extract the first word of "$ac_prog", so it can be a program name with args.
26330 set dummy
$ac_prog; ac_word
=$2
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26332 $as_echo_n "checking for $ac_word... " >&6; }
26333 if ${ac_cv_prog_AWK+:} false
; then :
26334 $as_echo_n "(cached) " >&6
26336 if test -n "$AWK"; then
26337 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
26339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26340 for as_dir
in $PATH
26343 test -z "$as_dir" && as_dir
=.
26344 for ac_exec_ext
in '' $ac_executable_extensions; do
26345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26346 ac_cv_prog_AWK
="$ac_prog"
26347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26356 AWK
=$ac_cv_prog_AWK
26357 if test -n "$AWK"; then
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
26359 $as_echo "$AWK" >&6; }
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26362 $as_echo "no" >&6; }
26366 test -n "$AWK" && break
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26370 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26372 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26373 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
26374 $as_echo_n "(cached) " >&6
26376 cat >conftest.
make <<\_ACEOF
26379 @
echo '@@@%%%=$(MAKE)=@@@%%%'
26381 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26382 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26383 *@@@
%%%=?
*=@@@
%%%*)
26384 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
26386 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
26388 rm -f conftest.
make
26390 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26392 $as_echo "yes" >&6; }
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26396 $as_echo "no" >&6; }
26397 SET_MAKE
="MAKE=${MAKE-make}"
26400 rm -rf .tst
2>/dev
/null
26401 mkdir .tst
2>/dev
/null
26402 if test -d .tst
; then
26407 rmdir .tst
2>/dev
/null
26409 DEPDIR
="${am__leading_dot}deps"
26411 ac_config_commands
="$ac_config_commands depfiles"
26414 am_make
=${MAKE-make}
26415 cat > confinc
<< 'END'
26417 @
echo this is the am__doit target
26420 # If we don't find an include directive, just comment out the code.
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26422 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26426 # First try GNU make style include.
26427 echo "include confinc" > confmf
26428 # Ignore all kinds of additional output from 'make'.
26429 case `$am_make -s -f confmf 2> /dev/null` in #(
26430 *the\ am__doit\ target
*)
26431 am__include
=include
26436 # Now try BSD make style include.
26437 if test "$am__include" = "#"; then
26438 echo '.include "confinc"' > confmf
26439 case `$am_make -s -f confmf 2> /dev/null` in #(
26440 *the\ am__doit\ target
*)
26441 am__include
=.include
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26450 $as_echo "$_am_result" >&6; }
26451 rm -f confinc confmf
26453 # Check whether --enable-dependency-tracking was given.
26454 if test "${enable_dependency_tracking+set}" = set; then :
26455 enableval
=$enable_dependency_tracking;
26458 if test "x$enable_dependency_tracking" != xno
; then
26459 am_depcomp
="$ac_aux_dir/depcomp"
26463 if test "x$enable_dependency_tracking" != xno; then
26472 # Check whether --enable-silent-rules was given.
26473 if test "${enable_silent_rules+set}" = set; then :
26474 enableval
=$enable_silent_rules;
26477 case $enable_silent_rules in # (((
26478 yes) AM_DEFAULT_VERBOSITY
=0;;
26479 no
) AM_DEFAULT_VERBOSITY
=1;;
26480 *) AM_DEFAULT_VERBOSITY
=1;;
26482 am_make
=${MAKE-make}
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26484 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26485 if ${am_cv_make_support_nested_variables+:} false
; then :
26486 $as_echo_n "(cached) " >&6
26488 if $as_echo 'TRUE=$(BAR$(V))
26494 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26495 am_cv_make_support_nested_variables
=yes
26497 am_cv_make_support_nested_variables
=no
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26501 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26502 if test $am_cv_make_support_nested_variables = yes; then
26504 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26506 AM_V
=$AM_DEFAULT_VERBOSITY
26507 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26511 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26513 # is not polluted with repeated "-I."
26514 am__isrc
=' -I$(srcdir)'
26515 # test to see if srcdir already configured
26516 if test -f $srcdir/config.status
; then
26517 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26521 # test whether we have cygpath
26522 if test -z "$CYGPATH_W"; then
26523 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
26524 CYGPATH_W
='cygpath -w'
26531 # Define the identity of the package.
26533 VERSION
='UNUSED-VERSION'
26536 # Some tools Automake needs.
26538 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26541 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
26544 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26547 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
26550 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
26552 # For better backward compatibility. To be removed once Automake 1.9.x
26553 # dies out for good. For more background, see:
26554 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26555 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26556 mkdir_p
='$(MKDIR_P)'
26558 # We need awk for the "check" target (and possibly the TAP driver). The
26559 # system "awk" is bad on some platforms.
26560 # Always define AMTAR for backward compatibility. Yes, it's still used
26561 # in the wild :-( We should find a proper way to deprecate it ...
26562 AMTAR
='$${TAR-tar}'
26565 # We'll loop over all known methods to create a tar archive until one works.
26566 _am_tools
='gnutar pax cpio none'
26568 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
26574 depcc
="$CC" am_compiler_list
=
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26577 $as_echo_n "checking dependency style of $depcc... " >&6; }
26578 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
26579 $as_echo_n "(cached) " >&6
26581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26582 # We make a subdir and do the tests there. Otherwise we can end up
26583 # making bogus files that we don't know about and never remove. For
26584 # instance it was reported that on HP-UX the gcc test will end up
26585 # making a dummy file named 'D' -- because '-MD' means "put the output
26587 rm -rf conftest.dir
26589 # Copy depcomp to subdir because otherwise we won't find it if we're
26590 # using a relative directory.
26591 cp "$am_depcomp" conftest.dir
26593 # We will build objects and dependencies in a subdirectory because
26594 # it helps to detect inapplicable dependency modes. For instance
26595 # both Tru64's cc and ICC support -MD to output dependencies as a
26596 # side effect of compilation, but ICC will put the dependencies in
26597 # the current directory while Tru64 will put them in the object
26601 am_cv_CC_dependencies_compiler_type
=none
26602 if test "$am_compiler_list" = ""; then
26603 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26605 am__universal
=false
26606 case " $depcc " in #(
26607 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
26610 for depmode
in $am_compiler_list; do
26611 # Setup a source with many dependencies, because some compilers
26612 # like to wrap large dependency lists on column 80 (with \), and
26613 # we should not choose a depcomp mode which is confused by this.
26615 # We need to recreate these files for each test, as the compiler may
26616 # overwrite some of them when testing with obscure command lines.
26617 # This happens at least with the AIX C compiler.
26619 for i
in 1 2 3 4 5 6; do
26620 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
26621 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26622 # Solaris 10 /bin/sh.
26623 echo '/* dummy */' > sub
/conftst
$i.h
26625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26627 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26628 # mode. It turns out that the SunPro C++ compiler does not properly
26629 # handle '-M -o', and we need to detect this. Also, some Intel
26630 # versions had trouble with output in subdirs.
26631 am__obj
=sub
/conftest.
${OBJEXT-o}
26632 am__minus_obj
="-o $am__obj"
26635 # This depmode causes a compiler race in universal mode.
26636 test "$am__universal" = false ||
continue
26639 # After this tag, mechanisms are not by side-effect, so they'll
26640 # only be used when explicitly requested.
26641 if test "x$enable_dependency_tracking" = xyes
; then
26647 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
26648 # This compiler won't grok '-c -o', but also, the minuso test has
26649 # not run yet. These depmodes are late enough in the game, and
26650 # so weak that their functioning should not be impacted.
26651 am__obj
=conftest.
${OBJEXT-o}
26656 if depmode
=$depmode \
26657 source=sub
/conftest.c object
=$am__obj \
26658 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
26659 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
26660 >/dev
/null
2>conftest.err
&&
26661 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
26662 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
26663 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
26664 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
26665 # icc doesn't choke on unknown options, it will just issue warnings
26666 # or remarks (even with -Werror). So we grep stderr for any message
26667 # that says an option was ignored or not supported.
26668 # When given -MP, icc 7.0 and 7.1 complain thusly:
26669 # icc: Command line warning: ignoring option '-M'; no argument required
26670 # The diagnosis changed in icc 8.0:
26671 # icc: Command line remark: option '-MP' not supported
26672 if (grep 'ignoring option' conftest.err ||
26673 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
26674 am_cv_CC_dependencies_compiler_type
=$depmode
26681 rm -rf conftest.dir
26683 am_cv_CC_dependencies_compiler_type
=none
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
26688 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
26689 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
26692 test "x$enable_dependency_tracking" != xno \
26693 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
26694 am__fastdepCC_TRUE
=
26695 am__fastdepCC_FALSE
='#'
26697 am__fastdepCC_TRUE
='#'
26698 am__fastdepCC_FALSE
=
26703 # POSIX will say in a future version that running "rm -f" with no argument
26704 # is OK; and we want to be able to make that assumption in our Makefile
26705 # recipes. So use an aggressive probe to check that the usage we want is
26706 # actually supported "in the wild" to an acceptable degree.
26707 # See automake bug#10828.
26708 # To make any issue more visible, cause the running configure to be aborted
26709 # by default if the 'rm' program in use doesn't match our expectations; the
26710 # user can still override this though.
26711 if rm -f && rm -fr && rm -rf; then : OK
; else
26715 Your 'rm' program seems unable to run without file operands specified
26716 on the command line, even when the '-f' option is present. This is contrary
26717 to the behaviour of most rm programs out there, and not conforming with
26718 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
26720 Please tell bug-automake@gnu.org about your system, including the value
26721 of your $PATH and any error possibly output before this message. This
26722 can help us improve future automake versions.
26725 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
26726 echo 'Configuration will proceed anyway, since you have set the' >&2
26727 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
26731 Aborting the configuration process, to ensure you take notice of the issue.
26733 You can download and install GNU coreutils to get an 'rm' implementation
26734 that behaves properly: <http://www.gnu.org/software/coreutils/>.
26736 If you want to complete the configuration process using your problematic
26737 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
26738 to "yes", and re-run configure.
26741 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
26746 # Check whether --enable-silent-rules was given.
26747 if test "${enable_silent_rules+set}" = set; then :
26748 enableval
=$enable_silent_rules;
26751 case $enable_silent_rules in # (((
26752 yes) AM_DEFAULT_VERBOSITY
=0;;
26753 no
) AM_DEFAULT_VERBOSITY
=1;;
26754 *) AM_DEFAULT_VERBOSITY
=0;;
26756 am_make
=${MAKE-make}
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26758 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26759 if ${am_cv_make_support_nested_variables+:} false
; then :
26760 $as_echo_n "(cached) " >&6
26762 if $as_echo 'TRUE=$(BAR$(V))
26768 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26769 am_cv_make_support_nested_variables
=yes
26771 am_cv_make_support_nested_variables
=no
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26775 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26776 if test $am_cv_make_support_nested_variables = yes; then
26778 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26780 AM_V
=$AM_DEFAULT_VERBOSITY
26781 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26786 # --------------------- #
26787 # Checks for programs. #
26788 # --------------------- #
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
26792 $as_echo_n "checking whether ln -s works... " >&6; }
26794 if test "$LN_S" = "ln -s"; then
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26796 $as_echo "yes" >&6; }
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
26799 $as_echo "no, using $LN_S" >&6; }
26802 if test -n "$ac_tool_prefix"; then
26803 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
26804 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26806 $as_echo_n "checking for $ac_word... " >&6; }
26807 if ${ac_cv_prog_RANLIB+:} false; then :
26808 $as_echo_n "(cached) " >&6
26810 if test -n "$RANLIB"; then
26811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
26813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26814 for as_dir in $PATH
26817 test -z "$as_dir" && as_dir=.
26818 for ac_exec_ext in '' $ac_executable_extensions; do
26819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26820 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
26821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26830 RANLIB=$ac_cv_prog_RANLIB
26831 if test -n "$RANLIB"; then
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
26833 $as_echo "$RANLIB" >&6; }
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26836 $as_echo "no" >&6; }
26841 if test -z "$ac_cv_prog_RANLIB"; then
26842 ac_ct_RANLIB=$RANLIB
26843 # Extract the first word of "ranlib", so it can be a program name with args.
26844 set dummy ranlib; ac_word=$2
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26846 $as_echo_n "checking for $ac_word... " >&6; }
26847 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
26848 $as_echo_n "(cached) " >&6
26850 if test -n "$ac_ct_RANLIB"; then
26851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
26853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26854 for as_dir in $PATH
26857 test -z "$as_dir" && as_dir=.
26858 for ac_exec_ext in '' $ac_executable_extensions; do
26859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26860 ac_cv_prog_ac_ct_RANLIB="ranlib"
26861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26870 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
26871 if test -n "$ac_ct_RANLIB"; then
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
26873 $as_echo "$ac_ct_RANLIB" >&6; }
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26876 $as_echo "no" >&6; }
26879 if test "x$ac_ct_RANLIB" = x; then
26882 case $cross_compiling:$ac_tool_warned in
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26886 ac_tool_warned=yes ;;
26888 RANLIB=$ac_ct_RANLIB
26891 RANLIB="$ac_cv_prog_RANLIB"
26895 if test -n "$ac_tool_prefix"; then
26896 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
26897 set dummy ${ac_tool_prefix}ar; 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_AR+:} false; then :
26901 $as_echo_n "(cached) " >&6
26903 if test -n "$AR"; then
26904 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
26914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26924 if test -n "$AR"; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
26926 $as_echo "$AR" >&6; }
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26929 $as_echo "no" >&6; }
26934 if test -z "$ac_cv_prog_AR"; then
26936 # Extract the first word of "ar", so it can be a program name with args.
26937 set dummy ar; ac_word=$2
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26939 $as_echo_n "checking for $ac_word... " >&6; }
26940 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26941 $as_echo_n "(cached) " >&6
26943 if test -n "$ac_ct_AR"; then
26944 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26947 for as_dir in $PATH
26950 test -z "$as_dir" && as_dir=.
26951 for ac_exec_ext in '' $ac_executable_extensions; do
26952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26953 ac_cv_prog_ac_ct_AR="ar"
26954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26963 ac_ct_AR=$ac_cv_prog_ac_ct_AR
26964 if test -n "$ac_ct_AR"; then
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
26966 $as_echo "$ac_ct_AR" >&6; }
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26969 $as_echo "no" >&6; }
26972 if test "x$ac_ct_AR" = x; then
26975 case $cross_compiling:$ac_tool_warned in
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26979 ac_tool_warned=yes ;;
26984 AR="$ac_cv_prog_AR"
26988 # ---------------------- #
26989 # Checks for libraries. #
26990 # ---------------------- #
26992 ac_config_files="$ac_config_files Makefile import/Makefile"
26994 ac_config_commands="$ac_config_commands default"
26996 cat >confcache <<\_ACEOF
26997 # This file is a shell script that caches the results of configure
26998 # tests run on this system so they can be shared between configure
26999 # scripts and configure runs, see configure's option
--config-cache.
27000 # It is not useful on other systems. If it contains results you don't
27001 # want to keep, you may remove or edit it.
27003 # config.status only pays attention to the cache file if you give it
27004 # the --recheck option to rerun configure.
27006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27008 # following values.
27012 # The following way of writing the cache mishandles newlines in values,
27013 # but we know of no workaround that is simple, portable, and efficient.
27014 # So, we kill variables containing newlines.
27015 # Ultrix sh set writes to stderr and can't be redirected directly,
27016 # and sets the high bit in the cache file unless we assign to the vars.
27018 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27019 eval ac_val
=\$
$ac_var
27023 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27027 _ | IFS | as_nl
) ;; #(
27028 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27029 *) { eval $ac_var=; unset $ac_var;} ;;
27035 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27036 *${as_nl}ac_space
=\
*)
27037 # `set' does not quote correctly, so add quotes: double-quote
27038 # substitution turns \\\\ into \\, and sed turns \\ into \.
27041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27044 # `set' quotes correctly as required by POSIX, so do not add quotes.
27045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27056 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27058 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27059 if test -w "$cache_file"; then
27060 if test "x$cache_file" != "x/dev/null"; then
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27062 $as_echo "$as_me: updating cache $cache_file" >&6;}
27063 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
27064 cat confcache
>"$cache_file"
27066 case $cache_file in #(
27068 mv -f confcache
"$cache_file"$$
&&
27069 mv -f "$cache_file"$$
"$cache_file" ;; #(
27071 mv -f confcache
"$cache_file" ;;
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27077 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27082 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27083 # Let make expand exec_prefix.
27084 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27086 DEFS
=-DHAVE_CONFIG_H
27090 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27091 # 1. Remove the extension, and $U if already installed.
27092 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27093 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27094 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27095 # will be set to the directory where LIBOBJS objects are built.
27096 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27097 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27099 LIBOBJS
=$ac_libobjs
27101 LTLIBOBJS
=$ac_ltlibobjs
27104 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27105 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
27106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27108 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27109 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
27110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27112 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27113 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27116 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27117 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27120 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27121 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27124 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
27125 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
27126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27128 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
27129 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
27130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27132 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27133 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27136 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27137 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27140 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27141 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
27142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27146 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
27147 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
27148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27150 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27151 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27154 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27155 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27158 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27159 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27165 if test -n "$gl_LIBOBJS"; then
27166 # Remove the extension.
27167 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27168 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27169 gl_libobjs
="$gl_libobjs $i.$ac_objext"
27170 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
27173 gl_LIBOBJS
=$gl_libobjs
27175 gl_LTLIBOBJS
=$gl_ltlibobjs
27181 if test -n "$gltests_LIBOBJS"; then
27182 # Remove the extension.
27183 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27184 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27185 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
27186 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
27189 gltests_LIBOBJS
=$gltests_libobjs
27191 gltests_LTLIBOBJS
=$gltests_ltlibobjs
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27195 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27196 if test -n "$am_sleep_pid"; then
27197 # Hide warnings about reused PIDs.
27198 wait $am_sleep_pid 2>/dev
/null
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27201 $as_echo "done" >&6; }
27202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27203 as_fn_error $?
"conditional \"AMDEP\" was never defined.
27204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27207 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
27208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27210 if test -n "$EXEEXT"; then
27212 am__EXEEXT_FALSE
='#'
27214 am__EXEEXT_TRUE
='#'
27219 : "${CONFIG_STATUS=./config.status}"
27221 ac_clean_files_save
=$ac_clean_files
27222 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27224 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27226 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27228 # Generated by $as_me.
27229 # Run this file to recreate the current configuration.
27230 # Compiler output produced by configure, useful for debugging
27231 # configure, is in config.log if it exists.
27234 ac_cs_recheck=false
27237 SHELL=\${CONFIG_SHELL-$SHELL}
27240 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27241 ## -------------------- ##
27242 ## M4sh Initialization. ##
27243 ## -------------------- ##
27245 # Be more Bourne compatible
27246 DUALCASE
=1; export DUALCASE
# for MKS sh
27247 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27251 # is contrary to our usage. Disable this feature.
27252 alias -g '${1+"$@"}'='"$@"'
27253 setopt NO_GLOB_SUBST
27255 case `(set -o) 2>/dev/null` in #(
27267 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27268 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27269 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27271 # Prefer a ksh shell builtin over an external printf program on Solaris,
27272 # but without wasting forks for bash or zsh.
27273 if test -z "$BASH_VERSION$ZSH_VERSION" \
27274 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27275 as_echo='print
-r --'
27276 as_echo_n='print
-rn --'
27277 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27278 as_echo='printf %s
\n'
27279 as_echo_n='printf %s
'
27281 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27282 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27283 as_echo_n='/usr
/ucb
/echo -n'
27285 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27286 as_echo_n_body='eval
27290 expr "X$arg" : "X\\(.*\\)$as_nl";
27291 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27293 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27295 export as_echo_n_body
27296 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27298 export as_echo_body
27299 as_echo='sh
-c $as_echo_body as_echo
'
27302 # The user is always right.
27303 if test "${PATH_SEPARATOR+set}" != set; then
27305 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27306 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27313 # We need space, tab and new line, in precisely that order. Quoting is
27314 # there to prevent editors from complaining about space-tab.
27315 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27316 # splitting by setting IFS to empty value.)
27319 # Find who we are. Look in the path if we contain no directory separator.
27322 *[\\/]* ) as_myself=$0 ;;
27323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27324 for as_dir in $PATH
27327 test -z "$as_dir" && as_dir=.
27328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27334 # We did not find ourselves, most probably we were run as `sh COMMAND'
27335 # in which case we are not to be found in the path.
27336 if test "x$as_myself" = x
; then
27339 if test ! -f "$as_myself"; then
27340 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27344 # Unset variables that we do not need and which cause bugs (e.g. in
27345 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27346 # suppresses any "Segmentation fault" message there. '((' could
27347 # trigger a bug in pdksh 5.2.14.
27348 for as_var
in BASH_ENV ENV MAIL MAILPATH
27349 do eval test x\
${$as_var+set} = xset \
27350 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27363 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27366 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27367 # ----------------------------------------
27368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27370 # script with STATUS, using 1 if that was 0.
27373 as_status
=$1; test $as_status -eq 0 && as_status
=1
27375 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27378 $as_echo "$as_me: error: $2" >&2
27379 as_fn_exit
$as_status
27383 # as_fn_set_status STATUS
27384 # -----------------------
27385 # Set $? to STATUS, without forking.
27386 as_fn_set_status
()
27389 } # as_fn_set_status
27391 # as_fn_exit STATUS
27392 # -----------------
27393 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27397 as_fn_set_status
$1
27403 # Portably unset VAR.
27406 { eval $1=; unset $1;}
27408 as_unset
=as_fn_unset
27409 # as_fn_append VAR VALUE
27410 # ----------------------
27411 # Append the text in VALUE to the end of the definition contained in VAR. Take
27412 # advantage of any shell optimizations that allow amortized linear growth over
27413 # repeated appends, instead of the typical quadratic growth present in naive
27415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27416 eval 'as_fn_append ()
27427 # as_fn_arith ARG...
27428 # ------------------
27429 # Perform arithmetic evaluation on the ARGs, and store the result in the
27430 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27431 # must be portable across $(()) and expr.
27432 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27433 eval 'as_fn_arith ()
27440 as_val
=`expr "$@" || test $? -eq 1`
27445 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27446 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27452 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27453 as_basename
=basename
27458 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27464 as_me
=`$as_basename -- "$0" ||
27465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27466 X"$0" : 'X\(//\)$' \| \
27467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27469 sed '/^.*\/\([^/][^/]*\)\/*$/{
27483 # Avoid depending upon Character Ranges.
27484 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27485 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27486 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27487 as_cr_digits
='0123456789'
27488 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27490 ECHO_C
= ECHO_N
= ECHO_T
=
27491 case `echo -n x` in #(((((
27493 case `echo 'xy\c'` in
27494 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27496 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27503 rm -f conf$$ conf$$.exe conf$$.
file
27504 if test -d conf$$.dir
; then
27505 rm -f conf$$.dir
/conf$$.
file
27508 mkdir conf$$.dir
2>/dev
/null
27510 if (echo >conf$$.
file) 2>/dev
/null
; then
27511 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27513 # ... but there are two gotchas:
27514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27516 # In both cases, we have to default to `cp -pR'.
27517 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27519 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27527 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27528 rmdir conf$$.dir
2>/dev
/null
27533 # Create "$as_dir" as a directory, including parents if necessary.
27538 -*) as_dir
=.
/$as_dir;;
27540 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27544 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27545 *) as_qdir
=$as_dir;;
27547 as_dirs
="'$as_qdir' $as_dirs"
27548 as_dir
=`$as_dirname -- "$as_dir" ||
27549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27550 X"$as_dir" : 'X\(//\)[^/]' \| \
27551 X"$as_dir" : 'X\(//\)$' \| \
27552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27553 $as_echo X"$as_dir" |
27554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27558 /^X\(\/\/\)[^/].*/{
27571 test -d "$as_dir" && break
27573 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27574 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
27578 if mkdir
-p .
2>/dev
/null
; then
27579 as_mkdir_p
='mkdir -p "$as_dir"'
27581 test -d .
/-p && rmdir .
/-p
27586 # as_fn_executable_p FILE
27587 # -----------------------
27588 # Test if FILE is an executable regular file.
27589 as_fn_executable_p
()
27591 test -f "$1" && test -x "$1"
27592 } # as_fn_executable_p
27593 as_test_x
='test -x'
27594 as_executable_p
=as_fn_executable_p
27596 # Sed expression to map a string onto a valid CPP name.
27597 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27599 # Sed expression to map a string onto a valid variable name.
27600 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27604 ## ----------------------------------- ##
27605 ## Main body of $CONFIG_STATUS script. ##
27606 ## ----------------------------------- ##
27608 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27611 # Save the log message, to keep $0 and so on meaningful, and to
27612 # report actual input values of CONFIG_FILES etc. instead of their
27613 # values after options handling.
27615 This file was extended by libgnu $as_me UNUSED-VERSION, which was
27616 generated by GNU Autoconf 2.69. Invocation command line was
27618 CONFIG_FILES = $CONFIG_FILES
27619 CONFIG_HEADERS = $CONFIG_HEADERS
27620 CONFIG_LINKS = $CONFIG_LINKS
27621 CONFIG_COMMANDS = $CONFIG_COMMANDS
27624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27629 case $ac_config_files in *"
27630 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27633 case $ac_config_headers in *"
27634 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27639 # Files that config.status was made for.
27640 config_files="$ac_config_files"
27641 config_headers="$ac_config_headers"
27642 config_commands="$ac_config_commands"
27646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27648 \`$as_me' instantiates files and other configuration actions
27649 from templates according to the current configuration. Unless the files
27650 and actions are specified as TAGs, all are instantiated by default.
27652 Usage: $0 [OPTION]... [TAG]...
27654 -h, --help print this help, then exit
27655 -V, --version print version number and configuration settings, then exit
27656 --config print configuration, then exit
27657 -q, --quiet, --silent
27658 do not print progress messages
27659 -d, --debug don't remove temporary files
27660 --recheck update $as_me by reconfiguring in the same conditions
27661 --file=FILE[:TEMPLATE]
27662 instantiate the configuration file FILE
27663 --header=FILE[:TEMPLATE]
27664 instantiate the configuration header FILE
27666 Configuration files:
27669 Configuration headers:
27672 Configuration commands:
27675 Report bugs to the package provider."
27678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27679 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27681 libgnu config.status UNUSED-VERSION
27682 configured by $0, generated by GNU Autoconf 2.69,
27683 with options \\"\$ac_cs_config\\"
27685 Copyright (C) 2012 Free Software Foundation, Inc.
27686 This config.status script is free software; the Free Software Foundation
27687 gives unlimited permission to copy, distribute and modify it."
27694 test -n "\$AWK" || AWK=awk
27697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27698 # The default lists apply if the user does not specify any file.
27704 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27705 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27709 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27721 # Handling of the options.
27722 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27724 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27725 $as_echo "$ac_cs_version"; exit ;;
27726 --config |
--confi |
--conf |
--con |
--co |
--c )
27727 $as_echo "$ac_cs_config"; exit ;;
27728 --debug |
--debu |
--deb |
--de |
--d |
-d )
27730 --file |
--fil |
--fi |
--f )
27733 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27734 '') as_fn_error $?
"missing file argument" ;;
27736 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27737 ac_need_defaults
=false
;;
27738 --header |
--heade |
--head |
--hea )
27741 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27743 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27744 ac_need_defaults
=false
;;
27746 # Conflict between --help and --header
27747 as_fn_error $?
"ambiguous option: \`$1'
27748 Try \`$0 --help' for more information.";;
27749 --help |
--hel |
-h )
27750 $as_echo "$ac_cs_usage"; exit ;;
27751 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27752 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27755 # This is an error.
27756 -*) as_fn_error $?
"unrecognized option: \`$1'
27757 Try \`$0 --help' for more information." ;;
27759 *) as_fn_append ac_config_targets
" $1"
27760 ac_need_defaults
=false
;;
27766 ac_configure_extra_args
=
27768 if $ac_cs_silent; then
27770 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27775 if \$ac_cs_recheck; then
27776 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27779 CONFIG_SHELL='$SHELL'
27780 export CONFIG_SHELL
27785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27790 ## Running $as_me. ##
27796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27806 # Handling of arguments.
27807 for ac_config_target
in $ac_config_targets
27809 case $ac_config_target in
27810 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
27811 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27812 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27813 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
27814 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27816 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27821 # If the user did not use the arguments to specify the items to instantiate,
27822 # then the envvar interface is used. Set only those that are not.
27823 # We use the long form for the default assignment because of an extremely
27824 # bizarre bug on SunOS 4.1.3.
27825 if $ac_need_defaults; then
27826 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27827 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27828 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27831 # Have a temporary directory for convenience. Make it in the build tree
27832 # simply because there is no reason against having it here, and in addition,
27833 # creating and moving files from /tmp can sometimes cause problems.
27834 # Hook for its removal unless debugging.
27835 # Note that there is a small window in which the directory will not be cleaned:
27836 # after its creation but before its name has been assigned to `$tmp'.
27840 trap 'exit_status=$?
27841 : "${ac_tmp:=$tmp}"
27842 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27844 trap 'as_fn_exit 1' 1 2 13 15
27846 # Create a (secure) tmp directory for tmp files.
27849 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27853 tmp
=.
/conf$$
-$RANDOM
27854 (umask 077 && mkdir
"$tmp")
27855 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
27858 # Set up the scripts for CONFIG_FILES section.
27859 # No need to generate them if there are no CONFIG_FILES.
27860 # This happens for instance with `./config.status config.h'.
27861 if test -n "$CONFIG_FILES"; then
27864 ac_cr
=`echo X | tr X '\015'`
27865 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27866 # But we know of no other shell where ac_cr would be empty at this
27867 # point, so we can use a bashism as a fallback.
27868 if test "x$ac_cr" = x
; then
27869 eval ac_cr
=\$
\'\\r
\'
27871 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27872 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27875 ac_cs_awk_cr
=$ac_cr
27878 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27883 echo "cat >conf$$subs.awk <<_ACEOF" &&
27884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27886 } >conf$$subs.sh ||
27887 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27890 for ac_last_try in false false false false false :; do
27891 . ./conf$$subs.sh ||
27892 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27894 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27895 if test $ac_delim_n = $ac_delim_num; then
27897 elif $ac_last_try; then
27898 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27900 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27903 rm -f conf$$subs.sh
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
27910 s/^/S["/; s
/!.
*/"]=/
27920 s/\(.\{148\}\)..*/\1/
27922 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27927 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27934 s/\(.\{148\}\)..*/\1/
27936 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27940 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27945 ' <conf$$subs.awk | sed '
27950 ' >>$CONFIG_STATUS || ac_write_fail=1
27951 rm -f conf$$subs.awk
27952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27954 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
27955 for (key in S) S_is_set[key] = 1
27961 nfields = split(line, field, "@
")
27963 len = length(field[1])
27964 for (i = 2; i < nfields; i++) {
27966 keylen = length(key)
27967 if (S_is_set[key]) {
27969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27970 len += length(value) + length(field[++i])
27981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27982 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27983 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27986 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
27987 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
27990 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27991 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
27992 # trailing colons and then remove the whole line if VPATH becomes empty
27993 # (actually we leave an empty line to preserve line numbers).
27994 if test "x
$srcdir" = x.; then
27995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28014 fi # test -n "$CONFIG_FILES"
28016 # Set up the scripts for CONFIG_HEADERS section.
28017 # No need to generate them if there are no CONFIG_HEADERS.
28018 # This happens for instance with `./config.status Makefile'.
28019 if test -n "$CONFIG_HEADERS"; then
28020 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
28024 # Transform confdefs.h into an awk script `defines.awk', embedded as
28025 # here-document in config.status, that substitutes the proper values into
28026 # config.h.in to produce config.h.
28028 # Create a delimiter string that does not exist in confdefs.h, to ease
28029 # handling of long lines.
28031 for ac_last_try in false false :; do
28032 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
28033 if test -z "$ac_tt"; then
28035 elif $ac_last_try; then
28036 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
28038 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28042 # For the awk script, D is an array of macro values keyed by name,
28043 # likewise P contains macro parameters if any. Preserve backslash
28044 # newline sequences.
28046 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28048 s/.\{148\}/&'"$ac_delim"'/g
28051 s/^[ ]*#[ ]*define[ ][ ]*/ /
28058 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28060 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28065 D["\
1"]=" \
3\\\\\\n
"\\/p
28067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28072 s/.\{148\}/&'"$ac_delim"'/g
28077 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28080 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28082 ' <confdefs.h | sed '
28083 s/'"$ac_delim"'/"\\\
28084 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28087 for (key in D) D_is_set[key] = 1
28090 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28092 split(line, arg, " ")
28093 if (arg[1] == "#") {
28097 defundef
= substr
(arg
[1], 2)
28100 split(mac1
, mac2
, "(") #)
28102 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28103 if (D_is_set
[macro
]) {
28104 # Preserve the white space surrounding the "#".
28105 print prefix
"define", macro P
[macro
] D
[macro
]
28108 # Replace #undef with comments. This is necessary, for example,
28109 # in the case of _POSIX_SOURCE, which is predefined and required
28110 # on some systems where configure will not decide to define it.
28111 if (defundef
== "undef") {
28112 print
"/*", prefix defundef
, macro
, "*/"
28120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28121 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
28122 fi # test -n "$CONFIG_HEADERS"
28125 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28130 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28132 case $ac_mode$ac_tag in
28134 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28135 :[FH
]-) ac_tag
=-:-;;
28136 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28153 -) ac_f
="$ac_tmp/stdin";;
28154 *) # Look for the file first in the build tree, then in the source tree
28155 # (if the path is not absolute). The absolute path cannot be DOS-style,
28156 # because $ac_f cannot contain `:'.
28160 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28162 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28164 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28165 as_fn_append ac_file_inputs
" '$ac_f'"
28168 # Let's still pretend it is `configure' which instantiates (i.e., don't
28169 # use $as_me), people would be surprised to read:
28170 # /* config.h. Generated by config.status. */
28171 configure_input
='Generated from '`
28172 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28174 if test x
"$ac_file" != x-
; then
28175 configure_input
="$ac_file. $configure_input"
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28177 $as_echo "$as_me: creating $ac_file" >&6;}
28179 # Neutralize special characters interpreted by sed in replacement strings.
28180 case $configure_input in #(
28181 *\
&* |
*\|
* |
*\\* )
28182 ac_sed_conf_input
=`$as_echo "$configure_input" |
28183 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28184 *) ac_sed_conf_input
=$configure_input;;
28188 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
28189 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
28194 ac_dir
=`$as_dirname -- "$ac_file" ||
28195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28196 X"$ac_file" : 'X\(//\)[^/]' \| \
28197 X"$ac_file" : 'X\(//\)$' \| \
28198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28199 $as_echo X"$ac_file" |
28200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28204 /^X\(\/\/\)[^/].*/{
28217 as_dir
="$ac_dir"; as_fn_mkdir_p
28221 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28223 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28224 # A ".." for each directory in $ac_dir_suffix.
28225 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28226 case $ac_top_builddir_sub in
28227 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28228 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28231 ac_abs_top_builddir
=$ac_pwd
28232 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28233 # for backward compatibility:
28234 ac_top_builddir
=$ac_top_build_prefix
28237 .
) # We are building in place.
28239 ac_top_srcdir
=$ac_top_builddir_sub
28240 ac_abs_top_srcdir
=$ac_pwd ;;
28241 [\\/]* | ?
:[\\/]* ) # Absolute name.
28242 ac_srcdir
=$srcdir$ac_dir_suffix;
28243 ac_top_srcdir
=$srcdir
28244 ac_abs_top_srcdir
=$srcdir ;;
28245 *) # Relative name.
28246 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28247 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28248 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28250 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28260 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28261 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28263 ac_MKDIR_P
=$MKDIR_P
28265 [\\/$
]* | ?
:[\\/]* ) ;;
28266 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28271 # If the template does not know about datarootdir, expand it.
28272 # FIXME: This hack should be removed a few years after 2.60.
28273 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28285 *datarootdir
*) ac_datarootdir_seen
=yes;;
28286 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28288 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28291 ac_datarootdir_hack='
28292 s&@datadir@&$datadir&g
28293 s&@docdir@&$docdir&g
28294 s&@infodir@&$infodir&g
28295 s&@localedir@&$localedir&g
28296 s&@mandir@&$mandir&g
28297 s&\\\${datarootdir}&$datarootdir&g' ;;
28301 # Neutralize VPATH when `$srcdir' = `.'.
28302 # Shell code in configure.ac might set extrasub.
28303 # FIXME: do we really want to maintain this feature?
28304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28305 ac_sed_extra="$ac_vpsub
28308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28310 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28311 s|@configure_input@|
$ac_sed_conf_input|
;t t
28312 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28313 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28314 s
&@srcdir@
&$ac_srcdir&;t t
28315 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28316 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28317 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28318 s
&@builddir@
&$ac_builddir&;t t
28319 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28320 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28321 s
&@INSTALL@
&$ac_INSTALL&;t t
28322 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28323 $ac_datarootdir_hack
28325 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
28326 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
28328 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28329 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
28330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28331 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28333 which seems to be undefined. Please make sure it is defined" >&5
28334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28335 which seems to be undefined. Please make sure it is defined" >&2;}
28337 rm -f "$ac_tmp/stdin"
28339 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28340 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28348 if test x"$ac_file" != x-; then
28350 $as_echo "/* $configure_input */" \
28351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28352 } >"$ac_tmp/config.h" \
28353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28354 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28356 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28359 mv "$ac_tmp/config.h" "$ac_file" \
28360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28363 $as_echo "/* $configure_input */" \
28364 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28365 || as_fn_error $? "could not create -" "$LINENO" 5
28367 # Compute "$ac_file"'s index
in $config_headers.
28370 for _am_header
in $config_headers :; do
28371 case $_am_header in
28372 $_am_arg |
$_am_arg:* )
28375 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28378 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28379 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28380 X"$_am_arg" : 'X\(//\)[^/]' \| \
28381 X"$_am_arg" : 'X\(//\)$' \| \
28382 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28383 $as_echo X"$_am_arg" |
28384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28388 /^X\(\/\/\)[^/].*/{
28400 s/.*/./; q'`/stamp-h
$_am_stamp_count
28403 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28404 $as_echo "$as_me: executing $ac_file commands" >&6;}
28409 case $ac_file$ac_mode in
28410 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28411 # Older Autoconf quotes --file arguments for eval, but not when files
28412 # are listed without --file. Let's play safe and only enable the eval
28413 # if we detect the quoting.
28414 case $CONFIG_FILES in
28415 *\'*) eval set x
"$CONFIG_FILES" ;;
28416 *) set x
$CONFIG_FILES ;;
28421 # Strip MF so we end up with the name of the file.
28422 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28423 # Check whether this is an Automake generated Makefile or not.
28424 # We used to match only the files named 'Makefile.in', but
28425 # some people rename them; so instead we look at the file content.
28426 # Grep'ing the first line is not enough: some people post-process
28427 # each Makefile.in and add a new line on top of each file to say so.
28428 # Grep'ing the whole file is not good either: AIX grep has a line
28429 # limit of 2048, but all sed's we know have understand at least 4000.
28430 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28431 dirpart
=`$as_dirname -- "$mf" ||
28432 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433 X"$mf" : 'X\(//\)[^/]' \| \
28434 X"$mf" : 'X\(//\)$' \| \
28435 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28441 /^X\(\/\/\)[^/].*/{
28457 # Extract the definition of DEPDIR, am__include, and am__quote
28458 # from the Makefile without running 'make'.
28459 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28460 test -z "$DEPDIR" && continue
28461 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28462 test -z "$am__include" && continue
28463 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28464 # Find all dependency output files, they are included files with
28465 # $(DEPDIR) in their names. We invoke sed twice because it is the
28466 # simplest approach to changing $(DEPDIR) to its actual value in the
28468 for file in `sed -n "
28469 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28470 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28471 # Make sure the directory exists.
28472 test -f "$dirpart/$file" && continue
28473 fdir
=`$as_dirname -- "$file" ||
28474 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28475 X"$file" : 'X\(//\)[^/]' \| \
28476 X"$file" : 'X\(//\)$' \| \
28477 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28478 $as_echo X"$file" |
28479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28483 /^X\(\/\/\)[^/].*/{
28496 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28497 # echo "creating $dirpart/$file"
28498 echo '# dummy' > "$dirpart/$file"
28504 case x
$CONFIG_HEADERS in
28505 xconfig.h
:config.
in)
28516 ac_clean_files
=$ac_clean_files_save
28518 test $ac_write_fail = 0 ||
28519 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28522 # configure is writing to config.log, and then calls config.status.
28523 # config.status does its own redirection, appending to config.log.
28524 # Unfortunately, on DOS this fails, as config.log is still kept open
28525 # by configure, so config.status won't be able to write to it; its
28526 # output is simply discarded. So we exec the FD to /dev/null,
28527 # effectively closing config.log, so it can be properly (re)opened and
28528 # appended to by config.status. When coming back to configure, we
28529 # need to make the FD available again.
28530 if test "$no_create" != yes; then
28532 ac_config_status_args
=
28533 test "$silent" = yes &&
28534 ac_config_status_args
="$ac_config_status_args --quiet"
28536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28539 # would make configure fail if this is the last instruction.
28540 $ac_cs_success || as_fn_exit
1
28542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28544 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}