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>
622 gl_use_threads_default
=
623 gl_use_winpthreads_default
=
626 gl_fnmatch_required
=POSIX
627 ac_subst_vars
='am__EXEEXT_FALSE
657 INSTALL_STRIP_PROGRAM
678 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
696 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
699 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
701 UNISTD_H_DEFINES_STRUCT_TIMESPEC
702 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
703 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
704 TIME_H_DEFINES_STRUCT_TIMESPEC
705 NEXT_AS_FIRST_DIRECTIVE_TIME_H
708 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
712 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
715 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
717 NEXT_AS_FIRST_DIRECTIVE_STRING_H
719 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
721 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
724 GL_GENERATE_STDBOOL_H_FALSE
725 GL_GENERATE_STDBOOL_H_TRUE
727 GL_GENERATE_STDALIGN_H_FALSE
728 GL_GENERATE_STDALIGN_H_TRUE
730 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
733 REPLACE_PTHREAD_SIGMASK
735 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
736 HAVE_STRUCT_SIGACTION_SA_SIGACTION
742 HAVE_POSIX_SIGNALBLOCKING
745 GNULIB_SIGNAL_H_SIGPIPE
747 GNULIB_PTHREAD_SIGMASK
755 REPLACE_STDIO_WRITE_FUNCS
756 REPLACE_STDIO_READ_FUNCS
765 REPLACE_OBSTACK_PRINTF
790 HAVE_DECL_OBSTACK_PRINTF
796 GNULIB_VSPRINTF_POSIX
800 GNULIB_VFPRINTF_POSIX
807 GNULIB_STDIO_H_SIGPIPE
808 GNULIB_STDIO_H_NONBLOCKING
823 GNULIB_OBSTACK_PRINTF_POSIX
824 GNULIB_OBSTACK_PRINTF
849 GL_GENERATE_NETINET_IN_H_FALSE
850 GL_GENERATE_NETINET_IN_H_TRUE
853 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
929 GNULIB_EXPLICIT_BZERO
936 NEXT_AS_FIRST_DIRECTIVE_MATH_H
943 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
946 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
948 GL_GENERATE_STDDEF_H_FALSE
949 GL_GENERATE_STDDEF_H_TRUE
965 GNULIB_SETLOCALE_NULL
968 LOCALCHARSET_TESTS_ENVIRONMENT
969 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
971 UINT64_MAX_EQ_ULONG_MAX
972 UINT32_MAX_LT_UINTMAX_MAX
975 INT64_MAX_EQ_LONG_MAX
976 INT32_MAX_LT_INTMAX_MAX
988 GL_GENERATE_STDINT_H_FALSE
989 GL_GENERATE_STDINT_H_TRUE
1001 HAVE_SIGNED_SIG_ATOMIC_T
1004 BITSIZEOF_SIG_ATOMIC_T
1007 APPLE_UNIVERSAL_BUILD
1009 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1014 GNULIB_OVERRIDES_WINT_T
1015 GL_GENERATE_LIMITS_H_FALSE
1016 GL_GENERATE_LIMITS_H_TRUE
1018 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1021 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1025 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1026 HAVE_STRUCT_SOCKADDR_STORAGE
1048 GL_GENERATE_GLOB_H_FALSE
1049 GL_GENERATE_GLOB_H_TRUE
1052 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1054 REPLACE_GLOB_PATTERN_P
1073 HAVE_DECL_LOCALTIME_R
1084 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1086 REPLACE_STRUCT_TIMEVAL
1087 REPLACE_GETTIMEOFDAY
1099 WINDOWS_64_BIT_ST_SIZE
1100 WINDOWS_STAT_TIMESPEC
1101 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1124 GNULIB_OVERRIDES_STRUCT_STAT
1139 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1150 REPLACE_SIGNBIT_USING_GCC
1230 HAVE_DECL_REMAINDERL
1411 GL_GENERATE_FNMATCH_H_FALSE
1412 GL_GENERATE_FNMATCH_H_TRUE
1415 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1421 GL_GENERATE_FLOAT_H_FALSE
1422 GL_GENERATE_FLOAT_H_TRUE
1424 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1426 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1445 GL_GENERATE_ERRNO_H_FALSE
1446 GL_GENERATE_ERRNO_H_TRUE
1448 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1451 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1453 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1479 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1480 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1481 UNISTD_H_HAVE_WINSOCK2_H
1482 UNISTD_H_HAVE_SYS_RANDOM_H
1507 REPLACE_GETDTABLESIZE
1508 REPLACE_GETDOMAINNAME
1522 HAVE_DECL_SETHOSTNAME
1523 HAVE_DECL_GETUSERSHELL
1524 HAVE_DECL_GETPAGESIZE
1525 HAVE_DECL_GETLOGIN_R
1527 HAVE_DECL_GETDOMAINNAME
1563 HAVE_COPY_FILE_RANGE
1569 GNULIB_UNISTD_H_SIGPIPE
1570 GNULIB_UNISTD_H_NONBLOCKING
1600 GNULIB_GETDTABLESIZE
1601 GNULIB_GETDOMAINNAME
1614 GNULIB_COPY_FILE_RANGE
1637 REPLACE_CANONICALIZE_FILE_NAME
1642 HAVE_STRUCT_RANDOM_DATA
1672 HAVE_DECL_GETLOADAVG
1673 HAVE_CANONICALIZE_FILE_NAME
1685 GNULIB_SECURE_GETENV
1688 GNULIB_REALLOC_POSIX
1707 GNULIB_CANONICALIZE_FILE_NAME
1812 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1815 PRAGMA_SYSTEM_HEADER
1816 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1826 GL_GENERATE_ALLOCA_H_FALSE
1827 GL_GENERATE_ALLOCA_H_TRUE
1830 GL_COND_LIBTOOL_FALSE
1831 GL_COND_LIBTOOL_TRUE
1859 MAINTAINER_MODE_FALSE
1860 MAINTAINER_MODE_TRUE
1888 program_transform_name
1901 enable_option_checking
1902 enable_maintainer_mode
1906 enable_cross_guesses
1907 enable_dependency_tracking
1910 ac_precious_vars
='build_alias
1921 # Initialize some variables set by options.
1923 ac_init_version
=false
1924 ac_unrecognized_opts
=
1925 ac_unrecognized_sep
=
1926 # The variables have the same names as the options, with
1927 # dashes changed to underlines.
1928 cache_file
=/dev
/null
1935 program_transform_name
=s
,x
,x
,
1943 # Installation directory options.
1944 # These are left unexpanded so users can "make install exec_prefix=/foo"
1945 # and all the variables that are supposed to be based on exec_prefix
1946 # by default will actually change.
1947 # Use braces instead of parens because sh, perl, etc. also accept them.
1948 # (The list follows the same order as the GNU Coding Standards.)
1949 bindir
='${exec_prefix}/bin'
1950 sbindir
='${exec_prefix}/sbin'
1951 libexecdir
='${exec_prefix}/libexec'
1952 datarootdir
='${prefix}/share'
1953 datadir
='${datarootdir}'
1954 sysconfdir
='${prefix}/etc'
1955 sharedstatedir
='${prefix}/com'
1956 localstatedir
='${prefix}/var'
1957 includedir
='${prefix}/include'
1958 oldincludedir
='/usr/include'
1959 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1960 infodir
='${datarootdir}/info'
1965 libdir
='${exec_prefix}/lib'
1966 localedir
='${datarootdir}/locale'
1967 mandir
='${datarootdir}/man'
1973 # If the previous option needs an argument, assign it.
1974 if test -n "$ac_prev"; then
1975 eval $ac_prev=\
$ac_option
1981 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1986 # Accept the important Cygnus configure options, so we can diagnose typos.
1988 case $ac_dashdash$ac_option in
1992 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1994 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1995 bindir
=$ac_optarg ;;
1997 -build |
--build |
--buil |
--bui |
--bu)
1998 ac_prev
=build_alias
;;
1999 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
2000 build_alias
=$ac_optarg ;;
2002 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
2003 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
2004 ac_prev
=cache_file
;;
2005 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
2006 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
2007 cache_file
=$ac_optarg ;;
2009 --config-cache |
-C)
2010 cache_file
=config.cache
;;
2012 -datadir |
--datadir |
--datadi |
--datad)
2014 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
2015 datadir
=$ac_optarg ;;
2017 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2018 |
--dataroo |
--dataro |
--datar)
2019 ac_prev
=datarootdir
;;
2020 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2021 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2022 datarootdir
=$ac_optarg ;;
2024 -disable-* |
--disable-*)
2025 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2026 # Reject names that are not valid shell variable names.
2027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2028 as_fn_error $?
"invalid feature name: $ac_useropt"
2029 ac_useropt_orig
=$ac_useropt
2030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2031 case $ac_user_opts in
2033 "enable_
$ac_useropt"
2035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2036 ac_unrecognized_sep
=', ';;
2038 eval enable_
$ac_useropt=no
;;
2040 -docdir |
--docdir |
--docdi |
--doc |
--do)
2042 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2043 docdir
=$ac_optarg ;;
2045 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2047 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2048 dvidir
=$ac_optarg ;;
2050 -enable-* |
--enable-*)
2051 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2052 # Reject names that are not valid shell variable names.
2053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2054 as_fn_error $?
"invalid feature name: $ac_useropt"
2055 ac_useropt_orig
=$ac_useropt
2056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2057 case $ac_user_opts in
2059 "enable_
$ac_useropt"
2061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2062 ac_unrecognized_sep
=', ';;
2064 eval enable_
$ac_useropt=\
$ac_optarg ;;
2066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2068 |
--exec |
--exe |
--ex)
2069 ac_prev
=exec_prefix
;;
2070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2072 |
--exec=* |
--exe=* |
--ex=*)
2073 exec_prefix
=$ac_optarg ;;
2075 -gas |
--gas |
--ga |
--g)
2076 # Obsolete; use --with-gas.
2079 -help |
--help |
--hel |
--he |
-h)
2080 ac_init_help
=long
;;
2081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2082 ac_init_help
=recursive
;;
2083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2084 ac_init_help
=short
;;
2086 -host |
--host |
--hos |
--ho)
2087 ac_prev
=host_alias
;;
2088 -host=* |
--host=* |
--hos=* |
--ho=*)
2089 host_alias
=$ac_optarg ;;
2091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2095 htmldir
=$ac_optarg ;;
2097 -includedir |
--includedir |
--includedi |
--included |
--include \
2098 |
--includ |
--inclu |
--incl |
--inc)
2099 ac_prev
=includedir
;;
2100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2102 includedir
=$ac_optarg ;;
2104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2107 infodir
=$ac_optarg ;;
2109 -libdir |
--libdir |
--libdi |
--libd)
2111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2112 libdir
=$ac_optarg ;;
2114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2115 |
--libexe |
--libex |
--libe)
2116 ac_prev
=libexecdir
;;
2117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2118 |
--libexe=* |
--libex=* |
--libe=*)
2119 libexecdir
=$ac_optarg ;;
2121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2122 ac_prev
=localedir
;;
2123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2124 localedir
=$ac_optarg ;;
2126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2128 ac_prev
=localstatedir
;;
2129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2131 localstatedir
=$ac_optarg ;;
2133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2136 mandir
=$ac_optarg ;;
2138 -nfp |
--nfp |
--nf)
2139 # Obsolete; use --without-fp.
2142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2143 |
--no-cr |
--no-c |
-n)
2146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2152 |
--oldin |
--oldi |
--old |
--ol |
--o)
2153 ac_prev
=oldincludedir
;;
2154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2157 oldincludedir
=$ac_optarg ;;
2159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2162 prefix
=$ac_optarg ;;
2164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2165 |
--program-pre |
--program-pr |
--program-p)
2166 ac_prev
=program_prefix
;;
2167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2169 program_prefix
=$ac_optarg ;;
2171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2172 |
--program-suf |
--program-su |
--program-s)
2173 ac_prev
=program_suffix
;;
2174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2176 program_suffix
=$ac_optarg ;;
2178 -program-transform-name |
--program-transform-name \
2179 |
--program-transform-nam |
--program-transform-na \
2180 |
--program-transform-n |
--program-transform- \
2181 |
--program-transform |
--program-transfor \
2182 |
--program-transfo |
--program-transf \
2183 |
--program-trans |
--program-tran \
2184 |
--progr-tra |
--program-tr |
--program-t)
2185 ac_prev
=program_transform_name
;;
2186 -program-transform-name=* |
--program-transform-name=* \
2187 |
--program-transform-nam=* |
--program-transform-na=* \
2188 |
--program-transform-n=* |
--program-transform-=* \
2189 |
--program-transform=* |
--program-transfor=* \
2190 |
--program-transfo=* |
--program-transf=* \
2191 |
--program-trans=* |
--program-tran=* \
2192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2193 program_transform_name
=$ac_optarg ;;
2195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2198 pdfdir
=$ac_optarg ;;
2200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2206 |
-silent |
--silent |
--silen |
--sile |
--sil)
2209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2213 sbindir
=$ac_optarg ;;
2215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2219 ac_prev
=sharedstatedir
;;
2220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2224 sharedstatedir
=$ac_optarg ;;
2226 -site |
--site |
--sit)
2228 -site=* |
--site=* |
--sit=*)
2231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2234 srcdir
=$ac_optarg ;;
2236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2238 ac_prev
=sysconfdir
;;
2239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2241 sysconfdir
=$ac_optarg ;;
2243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2244 ac_prev
=target_alias
;;
2245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2246 target_alias
=$ac_optarg ;;
2248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2251 -version |
--version |
--versio |
--versi |
--vers |
-V)
2252 ac_init_version
=: ;;
2255 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2256 # Reject names that are not valid shell variable names.
2257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2258 as_fn_error $?
"invalid package name: $ac_useropt"
2259 ac_useropt_orig
=$ac_useropt
2260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2261 case $ac_user_opts in
2265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2266 ac_unrecognized_sep
=', ';;
2268 eval with_
$ac_useropt=\
$ac_optarg ;;
2270 -without-* |
--without-*)
2271 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2272 # Reject names that are not valid shell variable names.
2273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2274 as_fn_error $?
"invalid package name: $ac_useropt"
2275 ac_useropt_orig
=$ac_useropt
2276 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2277 case $ac_user_opts in
2281 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2282 ac_unrecognized_sep
=', ';;
2284 eval with_
$ac_useropt=no
;;
2287 # Obsolete; use --with-x.
2290 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2291 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2292 ac_prev
=x_includes
;;
2293 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2294 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2295 x_includes
=$ac_optarg ;;
2297 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2298 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2299 ac_prev
=x_libraries
;;
2300 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2301 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2302 x_libraries
=$ac_optarg ;;
2304 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2305 Try \`$0 --help' for more information"
2309 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2310 # Reject names that are not valid shell variable names.
2311 case $ac_envvar in #(
2312 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2313 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2315 eval $ac_envvar=\
$ac_optarg
2316 export $ac_envvar ;;
2319 # FIXME: should be removed in autoconf 3.0.
2320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2329 if test -n "$ac_prev"; then
2330 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2331 as_fn_error $?
"missing argument to $ac_option"
2334 if test -n "$ac_unrecognized_opts"; then
2335 case $enable_option_checking in
2337 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2342 # Check all directory arguments for consistency.
2343 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2344 datadir sysconfdir sharedstatedir localstatedir includedir \
2345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2346 libdir localedir mandir
2348 eval ac_val
=\$
$ac_var
2349 # Remove trailing slashes.
2352 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2353 eval $ac_var=\
$ac_val;;
2355 # Be sure to have absolute directory names.
2357 [\\/$
]* | ?
:[\\/]* ) continue;;
2358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2360 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2363 # There might be people who depend on the old broken behavior: `$host'
2364 # used to hold the argument of --host etc.
2365 # FIXME: To remove some day.
2368 target
=$target_alias
2370 # FIXME: To remove some day.
2371 if test "x$host_alias" != x
; then
2372 if test "x$build_alias" = x
; then
2373 cross_compiling
=maybe
2374 elif test "x$build_alias" != "x$host_alias"; then
2380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2382 test "$silent" = yes && exec 6>/dev
/null
2385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2386 ac_ls_di
=`ls -di .` &&
2387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2388 as_fn_error $?
"working directory cannot be determined"
2389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2390 as_fn_error $?
"pwd does not report name of working directory"
2393 # Find the source files, if location was not specified.
2394 if test -z "$srcdir"; then
2395 ac_srcdir_defaulted
=yes
2396 # Try the directory containing this script, then the parent directory.
2397 ac_confdir
=`$as_dirname -- "$as_myself" ||
2398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2399 X"$as_myself" : 'X\(//\)[^/]' \| \
2400 X"$as_myself" : 'X\(//\)$' \| \
2401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2402 $as_echo X"$as_myself" |
2403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2421 if test ! -r "$srcdir/$ac_unique_file"; then
2425 ac_srcdir_defaulted
=no
2427 if test ! -r "$srcdir/$ac_unique_file"; then
2428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2435 # When building in place, set srcdir=.
2436 if test "$ac_abs_confdir" = "$ac_pwd"; then
2439 # Remove unnecessary trailing slashes from srcdir.
2440 # Double slashes in file names in object file debugging info
2441 # mess up M-x gdb in Emacs.
2443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2445 for ac_var
in $ac_precious_vars; do
2446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2453 # Report the --help message.
2455 if test "$ac_init_help" = "long"; then
2456 # Omit some internal or obsolete options to make the list less imposing.
2457 # This message is too long to be a string in the A/UX 3.1 sh.
2459 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2461 Usage: $0 [OPTION]... [VAR=VALUE]...
2463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2464 VAR=VALUE. See below for descriptions of some of the useful variables.
2466 Defaults for the options are specified in brackets.
2469 -h, --help display this help and exit
2470 --help=short display options specific to this package
2471 --help=recursive display the short help of all the included packages
2472 -V, --version display version information and exit
2473 -q, --quiet, --silent do not print \`checking ...' messages
2474 --cache-file=FILE cache test results in FILE [disabled]
2475 -C, --config-cache alias for \`--cache-file=config.cache'
2476 -n, --no-create do not create output files
2477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2479 Installation directories:
2480 --prefix=PREFIX install architecture-independent files in PREFIX
2481 [$ac_default_prefix]
2482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2485 By default, \`make install' will install all the files in
2486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2488 for instance \`--prefix=\$HOME'.
2490 For better control, use the options below.
2492 Fine tuning of the installation directories:
2493 --bindir=DIR user executables [EPREFIX/bin]
2494 --sbindir=DIR system admin executables [EPREFIX/sbin]
2495 --libexecdir=DIR program executables [EPREFIX/libexec]
2496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2499 --libdir=DIR object code libraries [EPREFIX/lib]
2500 --includedir=DIR C header files [PREFIX/include]
2501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2504 --infodir=DIR info documentation [DATAROOTDIR/info]
2505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2506 --mandir=DIR man documentation [DATAROOTDIR/man]
2507 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2508 --htmldir=DIR html documentation [DOCDIR]
2509 --dvidir=DIR dvi documentation [DOCDIR]
2510 --pdfdir=DIR pdf documentation [DOCDIR]
2511 --psdir=DIR ps documentation [DOCDIR]
2517 --program-prefix=PREFIX prepend PREFIX to installed program names
2518 --program-suffix=SUFFIX append SUFFIX to installed program names
2519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2522 --build=BUILD configure
for building on BUILD
[guessed
]
2523 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2524 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2528 if test -n "$ac_init_help"; then
2529 case $ac_init_help in
2530 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2535 --disable-option-checking ignore unrecognized
--enable/--with options
2536 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2537 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2538 --enable-maintainer-mode
2539 enable make rules and dependencies not useful
(and
2540 sometimes confusing
) to the casual installer
2541 --enable-plugins Enable support
for plugins
2542 --disable-largefile omit support
for large files
2543 --enable-threads={isoc|posix|isoc
+posix|windows
}
2544 specify multithreading API
2545 --disable-threads build without multithread safety
2546 --enable-cross-guesses={conservative|risky
}
2547 specify policy
for cross-compilation guesses
2548 --enable-dependency-tracking
2549 do not reject slow dependency extractors
2550 --disable-dependency-tracking
2551 speeds up one-time build
2552 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2553 --disable-silent-rules verbose build output
(undo
: "make V=0")
2555 Some influential environment variables
:
2556 CC C compiler
command
2557 CFLAGS C compiler flags
2558 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2559 nonstandard directory
<lib dir
>
2560 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2561 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2562 you have headers
in a nonstandard directory
<include dir
>
2565 Use these variables to override the choices made by
`configure' or to help
2566 it to find libraries and programs with nonstandard names/locations.
2568 Report bugs to the package provider.
2573 if test "$ac_init_help" = "recursive"; then
2574 # If there are subdirs, report their specific --help.
2575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2576 test -d "$ac_dir" ||
2577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2584 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2585 # A ".." for each directory in $ac_dir_suffix.
2586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2587 case $ac_top_builddir_sub in
2588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2592 ac_abs_top_builddir=$ac_pwd
2593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2594 # for backward compatibility:
2595 ac_top_builddir=$ac_top_build_prefix
2598 .) # We are building in place.
2600 ac_top_srcdir=$ac_top_builddir_sub
2601 ac_abs_top_srcdir=$ac_pwd ;;
2602 [\\/]* | ?:[\\/]* ) # Absolute name.
2603 ac_srcdir=$srcdir$ac_dir_suffix;
2604 ac_top_srcdir=$srcdir
2605 ac_abs_top_srcdir=$srcdir ;;
2607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2608 ac_top_srcdir=$ac_top_build_prefix$srcdir
2609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2613 cd "$ac_dir" || { ac_status=$?; continue; }
2614 # Check for guested configure.
2615 if test -f "$ac_srcdir/configure.gnu"; then
2617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2618 elif test -f "$ac_srcdir/configure"; then
2620 $SHELL "$ac_srcdir/configure" --help=recursive
2622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2624 cd "$ac_pwd" || { ac_status=$?; break; }
2628 test -n "$ac_init_help" && exit $ac_status
2629 if $ac_init_version; then
2631 libgnu configure UNUSED-VERSION
2632 generated by GNU Autoconf 2.69
2634 Copyright (C) 2012 Free Software Foundation, Inc.
2635 This configure script is free software; the Free Software Foundation
2636 gives unlimited permission to copy, distribute and modify it.
2641 ## ------------------------ ##
2642 ## Autoconf initialization. ##
2643 ## ------------------------ ##
2645 # ac_fn_c_try_compile LINENO
2646 # --------------------------
2647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2648 ac_fn_c_try_compile ()
2650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2651 rm -f conftest.$ac_objext
2652 if { { ac_try="$ac_compile"
2654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2655 *) ac_try_echo
=$ac_try;;
2657 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2658 $as_echo "$ac_try_echo"; } >&5
2659 (eval "$ac_compile") 2>conftest.err
2661 if test -s conftest.err
; then
2662 grep -v '^ *+' conftest.err
>conftest.er1
2663 cat conftest.er1
>&5
2664 mv -f conftest.er1 conftest.err
2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667 test $ac_status = 0; } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.
$ac_objext; then :
2673 $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.
$ac_ext >&5
2678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2679 as_fn_set_status
$ac_retval
2681 } # ac_fn_c_try_compile
2683 # ac_fn_c_try_cpp LINENO
2684 # ----------------------
2685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2688 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2689 if { { ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
2698 if test -s conftest.err; then
2699 grep -v '^ *+' conftest.err >conftest.er1
2700 cat conftest.er1 >&5
2701 mv -f conftest.er1 conftest.err
2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2704 test $ac_status = 0; } > conftest.i && {
2705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2710 $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716 as_fn_set_status $ac_retval
2720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2721 # -------------------------------------------------------
2722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2723 # the include files in INCLUDES and setting the cache variable VAR
2725 ac_fn_c_check_header_mongrel ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 if eval \${$3+:} false; then :
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2730 $as_echo_n "checking for $2... " >&6; }
2731 if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2736 $as_echo "$ac_res" >&6; }
2738 # Is the header compilable?
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2740 $as_echo_n "checking $2 usability... " >&6; }
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2746 if ac_fn_c_try_compile "$LINENO"; then :
2747 ac_header_compiler=yes
2749 ac_header_compiler=no
2751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2753 $as_echo "$ac_header_compiler" >&6; }
2755 # Is the header present?
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2757 $as_echo_n "checking $2 presence... " >&6; }
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2762 if ac_fn_c_try_cpp "$LINENO"; then :
2763 ac_header_preproc=yes
2765 ac_header_preproc=no
2767 rm -f conftest.err conftest.i conftest.$ac_ext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2769 $as_echo "$ac_header_preproc" >&6; }
2771 # So? What about this header?
2772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2793 $as_echo_n "checking for $2... " >&6; }
2794 if eval \${$3+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 eval "$3=\$ac_header_compiler"
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2801 $as_echo "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 } # ac_fn_c_check_header_mongrel
2807 # ac_fn_c_try_run LINENO
2808 # ----------------------
2809 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2810 # that executables *can* be run.
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 if { { ac_try="$ac_link"
2816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2817 *) ac_try_echo
=$ac_try;;
2819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link") 2>&5
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2825 { { case "(($ac_try" in
2826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831 (eval "$ac_try") 2>&5
2833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834 test $ac_status = 0; }; }; then :
2837 $as_echo "$as_me: program exited with status $ac_status" >&5
2838 $as_echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2841 ac_retval=$ac_status
2843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2845 as_fn_set_status $ac_retval
2849 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2850 # -------------------------------------------------------
2851 # Tests whether HEADER exists and can be compiled using the include files in
2852 # INCLUDES, setting the cache variable VAR accordingly.
2853 ac_fn_c_check_header_compile ()
2855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2857 $as_echo_n "checking for $2... " >&6; }
2858 if eval \${$3+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2866 if ac_fn_c_try_compile "$LINENO"; then :
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2875 $as_echo "$ac_res" >&6; }
2876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2878 } # ac_fn_c_check_header_compile
2880 # ac_fn_c_try_link LINENO
2881 # -----------------------
2882 # Try to link conftest.$ac_ext, and return whether this succeeded.
2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886 rm -f conftest.$ac_objext conftest$ac_exeext
2887 if { { ac_try="$ac_link"
2889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2890 *) ac_try_echo
=$ac_try;;
2892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_link") 2>conftest.err
2896 if test -s conftest.err
; then
2897 grep -v '^ *+' conftest.err
>conftest.er1
2898 cat conftest.er1
>&5
2899 mv -f conftest.er1 conftest.err
2901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest
$ac_exeext && {
2906 test "$cross_compiling" = yes ||
2907 test -x conftest
$ac_exeext
2911 $as_echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2918 # interfere with the next link command; also delete a directory that is
2919 # left behind by Apple's compiler. We do this before executing the actions.
2920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2922 as_fn_set_status
$ac_retval
2924 } # ac_fn_c_try_link
2926 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2927 # -------------------------------------------
2928 # Tests whether TYPE exists after having included INCLUDES, setting cache
2929 # variable VAR accordingly.
2930 ac_fn_c_check_type
()
2932 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2934 $as_echo_n "checking for $2... " >&6; }
2935 if eval \
${$3+:} false
; then :
2936 $as_echo_n "(cached) " >&6
2939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2951 if ac_fn_c_try_compile
"$LINENO"; then :
2952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h. */
2964 if ac_fn_c_try_compile
"$LINENO"; then :
2969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2975 $as_echo "$ac_res" >&6; }
2976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2978 } # ac_fn_c_check_type
2980 # ac_fn_c_check_func LINENO FUNC VAR
2981 # ----------------------------------
2982 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2983 ac_fn_c_check_func
()
2985 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2987 $as_echo_n "checking for $2... " >&6; }
2988 if eval \
${$3+:} false
; then :
2989 $as_echo_n "(cached) " >&6
2991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
2993 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2995 #define $2 innocuous_$2
2997 /* System header to define __stub macros and hopefully few prototypes,
2998 which can conflict with char $2 (); below.
2999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000 <limits.h> exists even on freestanding compilers. */
3003 # include <limits.h>
3005 # include <assert.h>
3010 /* Override any GCC internal prototype to avoid an error.
3011 Use char because int might match the return type of a GCC
3012 builtin and then its argument prototype would still apply. */
3017 /* The GNU C library defines this for functions which it implements
3018 to always fail with ENOSYS. Some functions are actually named
3019 something starting with __ and the normal name is an alias. */
3020 #if defined __stub_$2 || defined __stub___$2
3032 if ac_fn_c_try_link
"$LINENO"; then :
3037 rm -f core conftest.err conftest.
$ac_objext \
3038 conftest
$ac_exeext conftest.
$ac_ext
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3042 $as_echo "$ac_res" >&6; }
3043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3045 } # ac_fn_c_check_func
3047 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3048 # ---------------------------------------------
3049 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3051 ac_fn_c_check_decl
()
3053 ac_save_ac_compile
="$ac_compile"
3054 if test -n "$ac_compile_for_check_decl"; then
3055 ac_compile
="$ac_compile_for_check_decl"
3057 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3058 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3059 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3061 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3062 if eval \
${$3+:} false
; then :
3063 $as_echo_n "(cached) " >&6
3065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3071 #ifndef $as_decl_name
3073 (void) $as_decl_use;
3075 (void) $as_decl_name;
3083 if ac_fn_c_try_compile
"$LINENO"; then :
3088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3092 $as_echo "$ac_res" >&6; }
3093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3094 ac_compile
="$ac_save_ac_compile"
3096 } # ac_fn_c_check_decl
3098 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3099 # --------------------------------------------
3100 # Tries to find the compile-time value of EXPR in a program that includes
3101 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3103 ac_fn_c_compute_int
()
3105 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3106 if test "$cross_compiling" = yes; then
3107 # Depending upon the size, compute the lo and hi bounds.
3108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3114 static int test_array [1 - 2 * !(($2) >= 0)];
3116 return test_array [0];
3122 if ac_fn_c_try_compile
"$LINENO"; then :
3125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3131 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3133 return test_array [0];
3139 if ac_fn_c_try_compile
"$LINENO"; then :
3140 ac_hi
=$ac_mid; break
3142 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3143 if test $ac_lo -le $ac_mid; then
3147 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3158 static int test_array [1 - 2 * !(($2) < 0)];
3160 return test_array [0];
3166 if ac_fn_c_try_compile
"$LINENO"; then :
3169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3175 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3177 return test_array [0];
3183 if ac_fn_c_try_compile
"$LINENO"; then :
3184 ac_lo
=$ac_mid; break
3186 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3187 if test $ac_mid -le $ac_hi; then
3191 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3201 # Binary search between lo and hi bounds.
3202 while test "x$ac_lo" != "x$ac_hi"; do
3203 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3210 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3212 return test_array [0];
3218 if ac_fn_c_try_compile
"$LINENO"; then :
3221 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3226 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3233 static long int longval () { return $2; }
3234 static unsigned long int ulongval () { return $2; }
3241 FILE *f = fopen ("conftest.val", "w");
3246 long int i = longval ();
3249 fprintf (f, "%ld", i);
3253 unsigned long int i = ulongval ();
3256 fprintf (f, "%lu", i);
3258 /* Do not output a trailing newline, as this causes \r\n confusion
3259 on some platforms. */
3260 return ferror (f) || fclose (f) != 0;
3266 if ac_fn_c_try_run
"$LINENO"; then :
3267 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3277 as_fn_set_status
$ac_retval
3279 } # ac_fn_c_compute_int
3281 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3282 # ----------------------------------------------------
3283 # Tries to find if the field MEMBER exists in type AGGR, after including
3284 # INCLUDES, setting cache variable VAR accordingly.
3285 ac_fn_c_check_member
()
3287 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3289 $as_echo_n "checking for $2.$3... " >&6; }
3290 if eval \
${$4+:} false
; then :
3291 $as_echo_n "(cached) " >&6
3293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3306 if ac_fn_c_try_compile
"$LINENO"; then :
3309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3316 if (sizeof ac_aggr.$3)
3322 if ac_fn_c_try_compile
"$LINENO"; then :
3327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3333 $as_echo "$ac_res" >&6; }
3334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3336 } # ac_fn_c_check_member
3337 cat >config.log
<<_ACEOF
3338 This file contains any messages produced by compilers while
3339 running configure, to aid debugging if configure makes a mistake.
3341 It was created by libgnu $as_me UNUSED-VERSION, which was
3342 generated by GNU Autoconf 2.69. Invocation command line was
3354 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3355 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3356 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3357 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3358 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3360 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3361 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3363 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3364 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3365 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3366 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3367 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3368 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3369 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir
=.
3378 $as_echo "PATH: $as_dir"
3394 # Keep a trace of the command line.
3395 # Strip out --no-create and --no-recursion so they do not pile up.
3396 # Strip out --silent because we don't want to record it for future runs.
3397 # Also quote any args containing shell meta-characters.
3398 # Make two passes to allow for proper duplicate-argument suppression.
3402 ac_must_keep_next
=false
3408 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3409 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3410 |
-silent |
--silent |
--silen |
--sile |
--sil)
3413 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3416 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3418 as_fn_append ac_configure_args1
" '$ac_arg'"
3419 if test $ac_must_keep_next = true
; then
3420 ac_must_keep_next
=false
# Got value, back to normal.
3423 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3424 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3425 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3426 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3427 case "$ac_configure_args0 " in
3428 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3431 -* ) ac_must_keep_next
=true
;;
3434 as_fn_append ac_configure_args
" '$ac_arg'"
3439 { ac_configure_args0
=; unset ac_configure_args0
;}
3440 { ac_configure_args1
=; unset ac_configure_args1
;}
3442 # When interrupted or exit'd, cleanup temporary files, and complete
3443 # config.log. We remove comments because anyway the quotes in there
3444 # would cause problems or look ugly.
3445 # WARNING: Use '\'' to represent an apostrophe within the trap.
3446 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3447 trap 'exit_status=$?
3448 # Save into config.log some information that might help in debugging.
3452 $as_echo "## ---------------- ##
3453 ## Cache variables. ##
3454 ## ---------------- ##"
3456 # The following way of writing the cache mishandles newlines in values,
3458 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3459 eval ac_val=\$$ac_var
3463 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3464 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3467 _ | IFS | as_nl) ;; #(
3468 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3469 *) { eval $ac_var=; unset $ac_var;} ;;
3474 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3475 *${as_nl}ac_space=\ *)
3477 "s/'\''/'\''\\\\'\'''\''/g;
3478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3488 $as_echo "## ----------------- ##
3489 ## Output variables. ##
3490 ## ----------------- ##"
3492 for ac_var in $ac_subst_vars
3494 eval ac_val=\$$ac_var
3496 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3498 $as_echo "$ac_var='\''$ac_val'\''"
3502 if test -n "$ac_subst_files"; then
3503 $as_echo "## ------------------- ##
3504 ## File substitutions. ##
3505 ## ------------------- ##"
3507 for ac_var
in $ac_subst_files
3509 eval ac_val
=\$
$ac_var
3511 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3513 $as_echo "$ac_var='\''$ac_val'\''"
3518 if test -s confdefs.h; then
3519 $as_echo "## ----------- ##
3526 test "$ac_signal" != 0 &&
3527 $as_echo "$as_me: caught signal $ac_signal"
3528 $as_echo "$as_me: exit $exit_status"
3530 rm -f core *.core core.conftest.* &&
3531 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3534 for ac_signal
in 1 2 13 15; do
3535 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3539 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3540 rm -f -r conftest
* confdefs.h
3542 $as_echo "/* confdefs.h */" > confdefs.h
3544 # Predefined preprocessor variables.
3546 cat >>confdefs.h
<<_ACEOF
3547 #define PACKAGE_NAME "$PACKAGE_NAME"
3550 cat >>confdefs.h
<<_ACEOF
3551 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3554 cat >>confdefs.h
<<_ACEOF
3555 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3558 cat >>confdefs.h
<<_ACEOF
3559 #define PACKAGE_STRING "$PACKAGE_STRING"
3562 cat >>confdefs.h
<<_ACEOF
3563 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3566 cat >>confdefs.h
<<_ACEOF
3567 #define PACKAGE_URL "$PACKAGE_URL"
3571 # Let the site file select an alternate cache file if it wants to.
3572 # Prefer an explicitly selected file to automatically selected ones.
3575 if test -n "$CONFIG_SITE"; then
3576 # We do not want a PATH search for config.site.
3577 case $CONFIG_SITE in #((
3578 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3579 */*) ac_site_file1
=$CONFIG_SITE;;
3580 *) ac_site_file1
=.
/$CONFIG_SITE;;
3582 elif test "x$prefix" != xNONE
; then
3583 ac_site_file1
=$prefix/share
/config.site
3584 ac_site_file2
=$prefix/etc
/config.site
3586 ac_site_file1
=$ac_default_prefix/share
/config.site
3587 ac_site_file2
=$ac_default_prefix/etc
/config.site
3589 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3591 test "x$ac_site_file" = xNONE
&& continue
3592 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3594 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3595 sed 's/^/| /' "$ac_site_file" >&5
3597 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $?
"failed to load site script $ac_site_file
3600 See \`config.log' for more details" "$LINENO" 5; }
3604 if test -r "$cache_file"; then
3605 # Some versions of bash will fail to source /dev/null (special files
3606 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3607 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3609 $as_echo "$as_me: loading cache $cache_file" >&6;}
3611 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3612 *) .
"./$cache_file";;
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3617 $as_echo "$as_me: creating cache $cache_file" >&6;}
3621 as_fn_append ac_header_list
" arpa/inet.h"
3622 as_fn_append ac_header_list
" features.h"
3623 as_fn_append ac_header_list
" sys/socket.h"
3624 as_fn_append ac_func_list
" btowc"
3625 as_fn_append ac_func_list
" canonicalize_file_name"
3626 as_fn_append ac_func_list
" getcwd"
3627 as_fn_append ac_func_list
" readlink"
3628 as_fn_append ac_func_list
" realpath"
3629 as_fn_append ac_header_list
" sys/param.h"
3630 as_fn_append ac_header_list
" unistd.h"
3631 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3632 as_fn_append ac_func_list
" fchdir"
3633 as_fn_append ac_header_list
" dirent.h"
3634 as_fn_append ac_func_list
" fcntl"
3635 as_fn_append ac_func_list
" symlink"
3636 as_fn_append ac_func_list
" fdopendir"
3637 as_fn_append ac_func_list
" mempcpy"
3638 as_fn_append ac_header_list
" fnmatch.h"
3639 as_fn_append ac_func_list
" fnmatch"
3640 as_fn_append ac_func_list
" mbsrtowcs"
3641 gl_fnmatch_required
=GNU
3642 as_fn_append ac_header_list
" sys/stat.h"
3643 as_fn_append ac_func_list
" fstatat"
3644 as_fn_append ac_func_list
" getdtablesize"
3645 as_fn_append ac_func_list
" getlogin_r"
3646 as_fn_append ac_func_list
" getprogname"
3647 as_fn_append ac_func_list
" getexecname"
3648 as_fn_append ac_func_list
" getrandom"
3649 as_fn_append ac_header_list
" sys/time.h"
3650 as_fn_append ac_func_list
" gettimeofday"
3651 as_fn_append ac_header_list
" glob.h"
3652 as_fn_append ac_func_list
" glob"
3653 as_fn_append ac_func_list
" glob_pattern_p"
3654 as_fn_append ac_func_list
" getpwnam_r"
3655 as_fn_append ac_header_list
" threads.h"
3656 as_fn_append ac_header_list
" netdb.h"
3657 as_fn_append ac_header_list
" netinet/in.h"
3658 as_fn_append ac_header_list
" limits.h"
3659 as_fn_append ac_header_list
" wchar.h"
3660 as_fn_append ac_header_list
" stdint.h"
3661 as_fn_append ac_header_list
" inttypes.h"
3662 as_fn_append ac_func_list
" isblank"
3663 as_fn_append ac_header_list
" xlocale.h"
3664 as_fn_append ac_func_list
" lstat"
3665 as_fn_append ac_header_list
" math.h"
3666 as_fn_append ac_func_list
" mbsinit"
3667 as_fn_append ac_func_list
" mbrtowc"
3668 as_fn_append ac_header_list
" sys/mman.h"
3669 as_fn_append ac_func_list
" mprotect"
3670 as_fn_append ac_func_list
" mkostemp"
3671 as_fn_append ac_func_list
" openat"
3672 as_fn_append ac_func_list
" link"
3673 as_fn_append ac_func_list
" setenv"
3674 as_fn_append ac_func_list
" strdup"
3675 as_fn_append ac_func_list
" strerror_r"
3676 as_fn_append ac_func_list
" __xpg_strerror_r"
3677 as_fn_append ac_func_list
" catgets"
3678 as_fn_append ac_func_list
" snprintf"
3679 as_fn_append ac_header_list
" sys/random.h"
3680 as_fn_append ac_header_list
" sys/uio.h"
3681 as_fn_append ac_func_list
" localtime_r"
3682 as_fn_append ac_func_list
" pipe"
3683 as_fn_append ac_header_list
" crtdefs.h"
3684 as_fn_append ac_func_list
" iswcntrl"
3685 as_fn_append ac_header_list
" wctype.h"
3686 as_fn_append ac_func_list
" wmempcpy"
3687 # Check that the precious variables saved in the cache have kept the same
3689 ac_cache_corrupted
=false
3690 for ac_var
in $ac_precious_vars; do
3691 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3692 eval ac_new_set
=\
$ac_env_${ac_var}_set
3693 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3694 eval ac_new_val
=\
$ac_env_${ac_var}_value
3695 case $ac_old_set,$ac_new_set in
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3698 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3699 ac_cache_corrupted
=: ;;
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3702 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3703 ac_cache_corrupted
=: ;;
3706 if test "x$ac_old_val" != "x$ac_new_val"; then
3707 # differences in whitespace do not lead to failure.
3708 ac_old_val_w
=`echo x $ac_old_val`
3709 ac_new_val_w
=`echo x $ac_new_val`
3710 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3712 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3713 ac_cache_corrupted
=:
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3716 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3717 eval $ac_var=\
$ac_old_val
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3720 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3722 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3725 # Pass precious variables to config.status.
3726 if test "$ac_new_set" = set; then
3728 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3729 *) ac_arg
=$ac_var=$ac_new_val ;;
3731 case " $ac_configure_args " in
3732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3733 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3737 if $ac_cache_corrupted; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3741 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3742 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3744 ## -------------------- ##
3745 ## Main body of script. ##
3746 ## -------------------- ##
3749 ac_cpp
='$CPP $CPPFLAGS'
3750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3759 ac_config_headers
="$ac_config_headers config.h:config.in"
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3766 # Check whether --enable-maintainer-mode was given.
3767 if test "${enable_maintainer_mode+set}" = set; then :
3768 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3770 USE_MAINTAINER_MODE
=no
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3775 if test $USE_MAINTAINER_MODE = yes; then
3776 MAINTAINER_MODE_TRUE
=
3777 MAINTAINER_MODE_FALSE
='#'
3779 MAINTAINER_MODE_TRUE
='#'
3780 MAINTAINER_MODE_FALSE
=
3783 MAINT
=$MAINTAINER_MODE_TRUE
3788 ac_cpp
='$CPP $CPPFLAGS'
3789 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3794 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false
; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC
="$CC" # Let the user override the test.
3803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir
=.
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3831 if test -z "$ac_cv_prog_CC"; then
3833 # Extract the first word of "gcc", so it can be a program name with args.
3834 set dummy gcc
; ac_word
=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$ac_ct_CC"; then
3841 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir
=.
3848 for ac_exec_ext
in '' $ac_executable_extensions; do
3849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CC
="gcc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3863 $as_echo "$ac_ct_CC" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3869 if test "x$ac_ct_CC" = x
; then
3872 case $cross_compiling:$ac_tool_warned in
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3876 ac_tool_warned
=yes ;;
3884 if test -z "$CC"; then
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3887 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_CC+:} false
; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC
="$CC" # Let the user override the test.
3896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir
=.
3901 for ac_exec_ext
in '' $ac_executable_extensions; do
3902 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 if test -n "$CC"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916 $as_echo "$CC" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3925 if test -z "$CC"; then
3926 # Extract the first word of "cc", so it can be a program name with args.
3927 set dummy cc
; ac_word
=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_CC+:} false
; then :
3931 $as_echo_n "(cached) " >&6
3933 if test -n "$CC"; then
3934 ac_cv_prog_CC
="$CC" # Let the user override the test.
3937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir
=.
3942 for ac_exec_ext
in '' $ac_executable_extensions; do
3943 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3945 ac_prog_rejected
=yes
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 if test $ac_prog_rejected = yes; then
3957 # We found a bogon in the path, so make sure we never use it.
3958 set dummy
$ac_cv_prog_CC
3960 if test $# != 0; then
3961 # We chose a different compiler from the bogus one.
3962 # However, it has the same basename, so the bogon will be chosen
3963 # first if we set CC to just the basename; use the full file name.
3965 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3971 if test -n "$CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973 $as_echo "$CC" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 if test -z "$CC"; then
3982 if test -n "$ac_tool_prefix"; then
3983 for ac_prog
in cl.exe
3985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3986 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false
; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC
="$CC" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 for ac_exec_ext
in '' $ac_executable_extensions; do
4001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 if test -n "$CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4022 test -n "$CC" && break
4025 if test -z "$CC"; then
4027 for ac_prog
in cl.exe
4029 # Extract the first word of "$ac_prog", so it can be a program name with args.
4030 set dummy
$ac_prog; ac_word
=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4034 $as_echo_n "(cached) " >&6
4036 if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir
=.
4044 for ac_exec_ext
in '' $ac_executable_extensions; do
4045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_CC
="$ac_prog"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4057 if test -n "$ac_ct_CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4059 $as_echo "$ac_ct_CC" >&6; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4066 test -n "$ac_ct_CC" && break
4069 if test "x$ac_ct_CC" = x
; then
4072 case $cross_compiling:$ac_tool_warned in
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned
=yes ;;
4083 if test -z "$CC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4086 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_CC+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC
="$CC" # Let the user override the test.
4095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir
=.
4100 for ac_exec_ext
in '' $ac_executable_extensions; do
4101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 if test -n "$CC"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4123 if test -z "$ac_cv_prog_CC"; then
4125 # Extract the first word of "clang", so it can be a program name with args.
4126 set dummy clang
; ac_word
=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4130 $as_echo_n "(cached) " >&6
4132 if test -n "$ac_ct_CC"; then
4133 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir
=.
4140 for ac_exec_ext
in '' $ac_executable_extensions; do
4141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_CC
="clang"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4153 if test -n "$ac_ct_CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155 $as_echo "$ac_ct_CC" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4161 if test "x$ac_ct_CC" = x
; then
4164 case $cross_compiling:$ac_tool_warned in
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned
=yes ;;
4179 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181 as_fn_error $?
"no acceptable C compiler found in \$PATH
4182 See \`config.log' for more details" "$LINENO" 5; }
4184 # Provide some information about the compiler.
4185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4188 for ac_option
in --version -v -V -qversion -version; do
4189 { { ac_try
="$ac_compiler $ac_option >&5"
4191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4198 if test -s conftest.err; then
4200 ... rest of stderr output deleted ...
4201 10q' conftest.err >conftest.er1
4202 cat conftest.er1 >&5
4204 rm -f conftest.er1 conftest.err
4205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206 test $ac_status = 0; }
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4220 ac_clean_files_save=$ac_clean_files
4221 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4222 # Try to create an executable without -o first, disregard a.out.
4223 # It will help us diagnose broken compilers, and finding out an intuition
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4226 $as_echo_n "checking whether the C compiler works... " >&6; }
4227 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4229 # The possible output files:
4230 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4233 for ac_file in $ac_files
4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4242 if { { ac_try="$ac_link_default"
4244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4245 *) ac_try_echo
=$ac_try;;
4247 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248 $as_echo "$ac_try_echo"; } >&5
4249 (eval "$ac_link_default") 2>&5
4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252 test $ac_status = 0; }; then :
4253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4256 # so that the user can short-circuit this test for compilers unknown to
4258 for ac_file
in $ac_files ''
4260 test -f "$ac_file" ||
continue
4262 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4265 # We found the default executable, but exeext='' is most
4269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4271 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4273 # We set ac_cv_exeext here because the later test for it is not
4274 # safe: cross compilers may not add the suffix if given an `-o'
4275 # argument, so we may need to know it at that point already.
4276 # Even if this section looks crufty: it has the advantage of
4283 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4288 if test -z "$ac_file"; then :
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4291 $as_echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.
$ac_ext >&5
4294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error
77 "C compiler cannot create executables
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300 $as_echo "yes" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4303 $as_echo_n "checking for C compiler default output file name... " >&6; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4305 $as_echo "$ac_file" >&6; }
4306 ac_exeext
=$ac_cv_exeext
4308 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4309 ac_clean_files
=$ac_clean_files_save
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4311 $as_echo_n "checking for suffix of executables... " >&6; }
4312 if { { ac_try
="$ac_link"
4314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_link") 2>&5
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; then :
4323 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4324 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4325 # work properly (i.e., refer to `conftest.exe'), while it won't with
4327 for ac_file
in conftest.exe conftest conftest.
*; do
4328 test -f "$ac_file" ||
continue
4330 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4331 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4340 See \`config.log' for more details" "$LINENO" 5; }
4342 rm -f conftest conftest
$ac_cv_exeext
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4344 $as_echo "$ac_cv_exeext" >&6; }
4346 rm -f conftest.
$ac_ext
4347 EXEEXT
=$ac_cv_exeext
4349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4355 FILE *f = fopen ("conftest.out", "w");
4356 return ferror (f) || fclose (f) != 0;
4362 ac_clean_files
="$ac_clean_files conftest.out"
4363 # Check that the compiler produces executables we can run. If not, either
4364 # the compiler is broken, or we cross compile.
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4366 $as_echo_n "checking whether we are cross compiling... " >&6; }
4367 if test "$cross_compiling" != yes; then
4368 { { ac_try
="$ac_link"
4370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 $as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_link") 2>&5
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }
4379 if { ac_try='./conftest$ac_cv_exeext'
4380 { { case "(($ac_try" in
4381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4382 *) ac_try_echo
=$ac_try;;
4384 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_try") 2>&5
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }; }; then
4392 if test "$cross_compiling" = maybe
; then
4395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397 as_fn_error $?
"cannot run C compiled programs.
4398 If you meant to cross compile, use \`--host'.
4399 See \`config.log' for more details" "$LINENO" 5; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4404 $as_echo "$cross_compiling" >&6; }
4406 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4407 ac_clean_files
=$ac_clean_files_save
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4409 $as_echo_n "checking for suffix of object files... " >&6; }
4410 if ${ac_cv_objext+:} false
; then :
4411 $as_echo_n "(cached) " >&6
4413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4424 rm -f conftest.o conftest.obj
4425 if { { ac_try
="$ac_compile"
4427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431 $as_echo "$ac_try_echo"; } >&5
4432 (eval "$ac_compile") 2>&5
4434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }; then :
4436 for ac_file in conftest.o conftest.obj conftest.*; do
4437 test -f "$ac_file" || continue;
4439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4445 $as_echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4451 See \
`config.log' for more details" "$LINENO" 5; }
4453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4456 $as_echo "$ac_cv_objext" >&6; }
4457 OBJEXT=$ac_cv_objext
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4461 if ${ac_cv_c_compiler_gnu+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4478 if ac_fn_c_try_compile "$LINENO"; then :
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4489 if test $ac_compiler_gnu = yes; then
4494 ac_test_CFLAGS=${CFLAGS+set}
4495 ac_save_CFLAGS=$CFLAGS
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4498 if ${ac_cv_prog_cc_g+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 ac_save_c_werror_flag=$ac_c_werror_flag
4502 ac_c_werror_flag=yes
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4516 if ac_fn_c_try_compile "$LINENO"; then :
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4531 if ac_fn_c_try_compile "$LINENO"; then :
4534 ac_c_werror_flag=$ac_save_c_werror_flag
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4547 if ac_fn_c_try_compile "$LINENO"; then :
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_c_werror_flag=$ac_save_c_werror_flag
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4558 $as_echo "$ac_cv_prog_cc_g" >&6; }
4559 if test "$ac_test_CFLAGS" = set; then
4560 CFLAGS=$ac_save_CFLAGS
4561 elif test $ac_cv_prog_cc_g = yes; then
4562 if test "$GCC" = yes; then
4568 if test "$GCC" = yes; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4575 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4576 if ${ac_cv_prog_cc_c11+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 ac_cv_prog_cc_c11=no
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4584 #include <stdbool.h>
4590 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4591 #define debug(...) fprintf (stderr, __VA_ARGS__)
4592 #define showlist(...) puts (#__VA_ARGS__)
4593 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4595 test_varargs_macros (void)
4600 debug ("X = %d\n", x);
4601 showlist (The first, second, and third items.);
4602 report (x>y, "x is %d but y is %d", x, y);
4605 // Check long long types.
4606 #define BIG64 18446744073709551615ull
4607 #define BIG32 4294967295ul
4608 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4610 your preprocessor is broken;
4614 your preprocessor is broken;
4616 static long long int bignum = -9223372036854775807LL;
4617 static unsigned long long int ubignum = BIG64;
4619 struct incomplete_array
4627 const wchar_t *name;
4631 typedef const char *ccp;
4634 test_restrict (ccp restrict text)
4636 // See if C++-style comments work.
4637 // Iterate through items via the restricted pointer.
4638 // Also check for declarations in for loops.
4639 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4644 // Check varargs and va_copy.
4646 test_varargs (const char *format, ...)
4649 va_start (args, format);
4651 va_copy (args_copy, args);
4653 const char *str = "";
4662 str = va_arg (args_copy, const char *);
4665 number = va_arg (args_copy, int);
4668 fnumber = va_arg (args_copy, double);
4677 return *str && number && fnumber;
4680 char _Alignas (double) aligned_as_double;
4681 char _Alignas (0) no_special_alignment;
4682 extern char aligned_as_int;
4683 char _Alignas (0) _Alignas (int) aligned_as_int;
4688 int_alignment = _Alignof (int),
4689 int_array_alignment = _Alignof (int[100]),
4690 char_alignment = _Alignof (char)
4692 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4695 int _Noreturn does_not_return (void) { for (;;) continue; }
4697 // Check _Static_assert.
4698 struct test_static_assert
4701 _Static_assert (sizeof (int) <= sizeof (long int),
4702 "_Static_assert does not work in struct");
4706 // Check UTF-8 literals.
4707 #define u8 syntax error!
4708 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4710 // Check duplicate typedefs.
4711 typedef long *long_ptr;
4712 typedef long int *long_ptr;
4713 typedef long_ptr long_ptr;
4715 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4719 struct { int i; int j; };
4720 struct { int k; long int l; } w;
4730 _Bool success = false;
4733 if (test_restrict ("String literal") == 0)
4735 char *restrict newvar = "Another string";
4738 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4739 test_varargs_macros ();
4741 // Check flexible array members.
4742 struct incomplete_array *ia =
4743 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4745 for (int i = 0; i < ia->datasize; ++i)
4746 ia->data[i] = i * 1.234;
4748 // Check named initializers.
4749 struct named_init ni = {
4751 .name = L"Test wide string",
4752 .average = 543.34343,
4757 int dynamic_array[ni.number];
4758 dynamic_array[ni.number - 1] = 543;
4760 // work around unused variable warnings
4761 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4762 || dynamic_array[ni.number - 1] != 543);
4766 _Static_assert ((offsetof (struct anonymous, i)
4767 == offsetof (struct anonymous, w.k)),
4768 "Anonymous union alignment botch");
4774 for ac_arg in '' -std=gnu11
4776 CC="$ac_save_CC $ac_arg"
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_prog_cc_c11=$ac_arg
4780 rm -f core conftest.err conftest.$ac_objext
4781 test "x$ac_cv_prog_cc_c11" != "xno" && break
4783 rm -f conftest.$ac_ext
4788 ac_prog_cc_stdc_options=
4789 case "x$ac_cv_prog_cc_c11" in
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 $as_echo "none needed" >&6; } ;;
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 $as_echo "unsupported" >&6; } ;;
4797 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4798 CC=$CC$ac_prog_cc_stdc_options
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4800 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4802 if test "x$ac_cv_prog_cc_c11" != xno; then :
4804 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4807 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4808 if ${ac_cv_prog_cc_c99+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 ac_cv_prog_cc_c99=no
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4816 #include <stdbool.h>
4822 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4823 #define debug(...) fprintf (stderr, __VA_ARGS__)
4824 #define showlist(...) puts (#__VA_ARGS__)
4825 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4827 test_varargs_macros (void)
4832 debug ("X = %d\n", x);
4833 showlist (The first, second, and third items.);
4834 report (x>y, "x is %d but y is %d", x, y);
4837 // Check long long types.
4838 #define BIG64 18446744073709551615ull
4839 #define BIG32 4294967295ul
4840 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4842 your preprocessor is broken;
4846 your preprocessor is broken;
4848 static long long int bignum = -9223372036854775807LL;
4849 static unsigned long long int ubignum = BIG64;
4851 struct incomplete_array
4859 const wchar_t *name;
4863 typedef const char *ccp;
4866 test_restrict (ccp restrict text)
4868 // See if C++-style comments work.
4869 // Iterate through items via the restricted pointer.
4870 // Also check for declarations in for loops.
4871 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4876 // Check varargs and va_copy.
4878 test_varargs (const char *format, ...)
4881 va_start (args, format);
4883 va_copy (args_copy, args);
4885 const char *str = "";
4894 str = va_arg (args_copy, const char *);
4897 number = va_arg (args_copy, int);
4900 fnumber = va_arg (args_copy, double);
4909 return *str && number && fnumber;
4916 _Bool success = false;
4919 if (test_restrict ("String literal") == 0)
4921 char *restrict newvar = "Another string";
4924 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4925 test_varargs_macros ();
4927 // Check flexible array members.
4928 struct incomplete_array *ia =
4929 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4931 for (int i = 0; i < ia->datasize; ++i)
4932 ia->data[i] = i * 1.234;
4934 // Check named initializers.
4935 struct named_init ni = {
4937 .name = L"Test wide string",
4938 .average = 543.34343,
4943 int dynamic_array[ni.number];
4944 dynamic_array[ni.number - 1] = 543;
4946 // work around unused variable warnings
4947 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4948 || dynamic_array[ni.number - 1] != 543);
4954 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4956 CC="$ac_save_CC $ac_arg"
4957 if ac_fn_c_try_compile "$LINENO"; then :
4958 ac_cv_prog_cc_c99=$ac_arg
4960 rm -f core conftest.err conftest.$ac_objext
4961 test "x$ac_cv_prog_cc_c99" != "xno" && break
4963 rm -f conftest.$ac_ext
4968 ac_prog_cc_stdc_options=
4969 case "x$ac_cv_prog_cc_c99" in
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4972 $as_echo "none needed" >&6; } ;;
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4975 $as_echo "unsupported" >&6; } ;;
4977 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4978 CC=$CC$ac_prog_cc_stdc_options
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4980 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4982 if test "x$ac_cv_prog_cc_c99" != xno; then :
4984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4987 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4988 if ${ac_cv_prog_cc_c89+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 ac_cv_prog_cc_c89=no
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5012 s = g (p, va_arg (v,int));
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std. */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027 inside strings and character constants. */
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048 CC="$ac_save_CC $ac_arg"
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_prog_cc_c89=$ac_arg
5052 rm -f core conftest.err conftest.$ac_objext
5053 test "x$ac_cv_prog_cc_c89" != "xno" && break
5055 rm -f conftest.$ac_ext
5060 ac_prog_cc_stdc_options=
5061 case "x$ac_cv_prog_cc_c89" in
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5064 $as_echo "none needed" >&6; } ;;
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5067 $as_echo "unsupported" >&6; } ;;
5069 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5070 CC=$CC$ac_prog_cc_stdc_options
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5072 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5074 if test "x$ac_cv_prog_cc_c89" != xno; then :
5076 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5079 ac_cv_prog_cc_stdc=no
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5094 $as_echo_n "checking whether the compiler is clang... " >&6; }
5095 if ${gl_cv_compiler_clang+:} false; then :
5096 $as_echo_n "(cached) " >&6
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5114 if ac_fn_c_try_compile "$LINENO"; then :
5115 gl_cv_compiler_clang=no
5117 gl_cv_compiler_clang=yes
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5123 $as_echo "$gl_cv_compiler_clang" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5127 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5128 if ${gl_cv_compiler_check_decl_option+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 if test $gl_cv_compiler_clang = yes; then
5132 save_ac_compile="$ac_compile"
5133 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5148 gl_cv_compiler_check_decl_option=none
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 ac_compile="$save_ac_compile"
5153 gl_cv_compiler_check_decl_option=none
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5158 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5159 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5160 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5162 ac_compile_for_check_decl="$ac_compile"
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5173 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5174 # On Suns, sometimes $CPP names a directory.
5175 if test -n "$CPP" && test -d "$CPP"; then
5178 if test -z "$CPP"; then
5179 if ${ac_cv_prog_CPP+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 # Double quotes because CPP needs to be expanded
5183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5186 for ac_c_preproc_warn_flag in '' yes
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5197 # include <limits.h>
5199 # include <assert.h>
5203 if ac_fn_c_try_cpp "$LINENO"; then :
5206 # Broken: fails on valid input.
5209 rm -f conftest.err conftest.i conftest.$ac_ext
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5217 if ac_fn_c_try_cpp "$LINENO"; then :
5218 # Broken: success on invalid input.
5221 # Passes both tests.
5225 rm -f conftest.err conftest.i conftest.$ac_ext
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.i conftest.err conftest.
$ac_ext
5230 if $ac_preproc_ok; then :
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5243 $as_echo "$CPP" >&6; }
5245 for ac_c_preproc_warn_flag
in '' yes
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
5253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5256 # include <limits.h>
5258 # include <assert.h>
5262 if ac_fn_c_try_cpp
"$LINENO"; then :
5265 # Broken: fails on valid input.
5268 rm -f conftest.err conftest.i conftest.
$ac_ext
5270 # OK, works on sane cases. Now check whether nonexistent headers
5271 # can be detected and how.
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <ac_nonexistent.h>
5276 if ac_fn_c_try_cpp
"$LINENO"; then :
5277 # Broken: success on invalid input.
5280 # Passes both tests.
5284 rm -f conftest.err conftest.i conftest.
$ac_ext
5287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5288 rm -f conftest.i conftest.err conftest.
$ac_ext
5289 if $ac_preproc_ok; then :
5292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5294 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5295 See \`config.log' for more details" "$LINENO" 5; }
5299 ac_cpp
='$CPP $CPPFLAGS'
5300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5306 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5307 if ${ac_cv_path_GREP+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -z "$GREP"; then
5311 ac_path_GREP_found
=false
5312 # Loop through the user's path and test for each of PROGNAME-LIST
5313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5317 test -z "$as_dir" && as_dir
=.
5318 for ac_prog
in grep ggrep
; do
5319 for ac_exec_ext
in '' $ac_executable_extensions; do
5320 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5321 as_fn_executable_p
"$ac_path_GREP" ||
continue
5322 # Check for GNU ac_path_GREP and select it if it is found.
5323 # Check for GNU $ac_path_GREP
5324 case `"$ac_path_GREP" --version 2>&1` in
5326 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5329 $as_echo_n 0123456789 >"conftest.in"
5332 cat "conftest.in" "conftest.in" >"conftest.tmp"
5333 mv "conftest.tmp" "conftest.in"
5334 cp "conftest.in" "conftest.nl"
5335 $as_echo 'GREP' >> "conftest.nl"
5336 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5337 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5338 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5339 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5340 # Best one so far, save it but keep looking for a better one
5341 ac_cv_path_GREP
="$ac_path_GREP"
5342 ac_path_GREP_max
=$ac_count
5344 # 10*(2^10) chars as input seems more than enough
5345 test $ac_count -gt 10 && break
5347 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5350 $ac_path_GREP_found && break 3
5355 if test -z "$ac_cv_path_GREP"; then
5356 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5359 ac_cv_path_GREP
=$GREP
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5364 $as_echo "$ac_cv_path_GREP" >&6; }
5365 GREP
="$ac_cv_path_GREP"
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5369 $as_echo_n "checking for egrep... " >&6; }
5370 if ${ac_cv_path_EGREP+:} false
; then :
5371 $as_echo_n "(cached) " >&6
5373 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5374 then ac_cv_path_EGREP
="$GREP -E"
5376 if test -z "$EGREP"; then
5377 ac_path_EGREP_found
=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5380 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5383 test -z "$as_dir" && as_dir
=.
5384 for ac_prog
in egrep; do
5385 for ac_exec_ext
in '' $ac_executable_extensions; do
5386 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5387 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5388 # Check for GNU ac_path_EGREP and select it if it is found.
5389 # Check for GNU $ac_path_EGREP
5390 case `"$ac_path_EGREP" --version 2>&1` in
5392 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5395 $as_echo_n 0123456789 >"conftest.in"
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 $as_echo 'EGREP' >> "conftest.nl"
5402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5403 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5404 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_EGREP
="$ac_path_EGREP"
5408 ac_path_EGREP_max
=$ac_count
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5413 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5416 $ac_path_EGREP_found && break 3
5421 if test -z "$ac_cv_path_EGREP"; then
5422 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5425 ac_cv_path_EGREP
=$EGREP
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5431 $as_echo "$ac_cv_path_EGREP" >&6; }
5432 EGREP
="$ac_cv_path_EGREP"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5436 $as_echo_n "checking for ANSI C header files... " >&6; }
5437 if ${ac_cv_header_stdc+:} false
; then :
5438 $as_echo_n "(cached) " >&6
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5455 if ac_fn_c_try_compile
"$LINENO"; then :
5456 ac_cv_header_stdc
=yes
5458 ac_cv_header_stdc
=no
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 if test $ac_cv_header_stdc = yes; then
5463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "memchr" >/dev
/null
2>&1; then :
5473 ac_cv_header_stdc
=no
5479 if test $ac_cv_header_stdc = yes; then
5480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487 $EGREP "free" >/dev
/null
2>&1; then :
5490 ac_cv_header_stdc
=no
5496 if test $ac_cv_header_stdc = yes; then
5497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5498 if test "$cross_compiling" = yes; then :
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5505 #if ((' ' & 0x0FF) == 0x020)
5506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5509 # define ISLOWER(c) \
5510 (('a' <= (c) && (c) <= 'i') \
5511 || ('j' <= (c) && (c) <= 'r') \
5512 || ('s' <= (c) && (c) <= 'z'))
5513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521 for (i = 0; i < 256; i++)
5522 if (XOR (islower (i), ISLOWER (i))
5523 || toupper (i) != TOUPPER (i))
5528 if ac_fn_c_try_run
"$LINENO"; then :
5531 ac_cv_header_stdc
=no
5533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5540 $as_echo "$ac_cv_header_stdc" >&6; }
5541 if test $ac_cv_header_stdc = yes; then
5543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5548 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5549 inttypes.h stdint.h unistd.h
5551 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5552 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5554 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5555 cat >>confdefs.h
<<_ACEOF
5556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5566 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5573 if test "$MINIX" = yes; then
5575 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5578 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5581 $as_echo "#define _MINIX 1" >>confdefs.h
5584 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5590 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5591 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5592 $as_echo_n "(cached) " >&6
5594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5597 # define __EXTENSIONS__ 1
5598 $ac_includes_default
5607 if ac_fn_c_try_compile
"$LINENO"; then :
5608 ac_cv_safe_to_define___extensions__
=yes
5610 ac_cv_safe_to_define___extensions__
=no
5612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5615 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5616 test $ac_cv_safe_to_define___extensions__ = yes &&
5617 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5619 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5621 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5623 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5625 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5627 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5629 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5631 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5633 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5635 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5637 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5639 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5641 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5643 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5645 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5648 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5649 if ${ac_cv_should_define__xopen_source+:} false
; then :
5650 $as_echo_n "(cached) " >&6
5652 ac_cv_should_define__xopen_source
=no
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5666 if ac_fn_c_try_compile
"$LINENO"; then :
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5672 #define _XOPEN_SOURCE 500
5683 if ac_fn_c_try_compile
"$LINENO"; then :
5684 ac_cv_should_define__xopen_source
=yes
5686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5691 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5692 test $ac_cv_should_define__xopen_source = yes &&
5693 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5695 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5698 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5701 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5702 if test -f "$ac_dir/install-sh"; then
5704 ac_install_sh
="$ac_aux_dir/install-sh -c"
5706 elif test -f "$ac_dir/install.sh"; then
5708 ac_install_sh
="$ac_aux_dir/install.sh -c"
5710 elif test -f "$ac_dir/shtool"; then
5712 ac_install_sh
="$ac_aux_dir/shtool install -c"
5716 if test -z "$ac_aux_dir"; then
5717 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5720 # These three variables are undocumented and unsupported,
5721 # and are intended to be withdrawn in a future Autoconf release.
5722 # They can cause serious problems if a builder's source tree is in a directory
5723 # whose full name contains unusual characters.
5724 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5725 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5726 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5729 # Make sure we can run config.sub.
5730 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5731 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5734 $as_echo_n "checking build system type... " >&6; }
5735 if ${ac_cv_build+:} false
; then :
5736 $as_echo_n "(cached) " >&6
5738 ac_build_alias
=$build_alias
5739 test "x$ac_build_alias" = x
&&
5740 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5741 test "x$ac_build_alias" = x
&&
5742 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5743 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5744 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5748 $as_echo "$ac_cv_build" >&6; }
5749 case $ac_cv_build in
5751 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5754 ac_save_IFS
=$IFS; IFS
='-'
5760 # Remember, the first character of IFS is used to create $*,
5761 # except with old shells:
5764 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5768 $as_echo_n "checking host system type... " >&6; }
5769 if ${ac_cv_host+:} false
; then :
5770 $as_echo_n "(cached) " >&6
5772 if test "x$host_alias" = x
; then
5773 ac_cv_host
=$ac_cv_build
5775 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5776 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5781 $as_echo "$ac_cv_host" >&6; }
5784 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5787 ac_save_IFS
=$IFS; IFS
='-'
5793 # Remember, the first character of IFS is used to create $*,
5794 # except with old shells:
5797 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5801 $as_echo_n "checking target system type... " >&6; }
5802 if ${ac_cv_target+:} false
; then :
5803 $as_echo_n "(cached) " >&6
5805 if test "x$target_alias" = x
; then
5806 ac_cv_target
=$ac_cv_host
5808 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5809 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5814 $as_echo "$ac_cv_target" >&6; }
5815 case $ac_cv_target in
5817 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5819 target
=$ac_cv_target
5820 ac_save_IFS
=$IFS; IFS
='-'
5826 # Remember, the first character of IFS is used to create $*,
5827 # except with old shells:
5830 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5833 # The aliases save the names the user supplied, while $host etc.
5834 # will get canonicalized.
5835 test -n "$target_alias" &&
5836 test "$program_prefix$program_suffix$program_transform_name" = \
5838 program_prefix
=${target_alias}-
5840 # The tests for host and target for $enable_largefile require
5845 # As the $enable_largefile decision depends on --enable-plugins we must set it
5846 # even in directories otherwise not depending on the $plugins option.
5850 for ac_header
in dlfcn.h
5852 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5854 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5855 cat >>confdefs.h
<<_ACEOF
5856 #define HAVE_DLFCN_H 1
5863 for ac_header
in windows.h
5865 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5867 if test "x$ac_cv_header_windows_h" = xyes
; then :
5868 cat >>confdefs.h
<<_ACEOF
5869 #define HAVE_WINDOWS_H 1
5877 # Check whether --enable-plugins was given.
5878 if test "${enable_plugins+set}" = set; then :
5879 enableval
=$enable_plugins; case "${enableval}" in
5882 if test "$maybe_plugins" != "yes" ; then
5883 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5887 plugins
=$maybe_plugins
5891 if test "$plugins" = "yes"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5893 $as_echo_n "checking for library containing dlsym... " >&6; }
5894 if ${ac_cv_search_dlsym+:} false
; then :
5895 $as_echo_n "(cached) " >&6
5897 ac_func_search_save_LIBS
=$LIBS
5898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 for ac_lib
in '' dl
; do
5917 if test -z "$ac_lib"; then
5918 ac_res
="none required"
5921 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5923 if ac_fn_c_try_link
"$LINENO"; then :
5924 ac_cv_search_dlsym
=$ac_res
5926 rm -f core conftest.err conftest.
$ac_objext \
5928 if ${ac_cv_search_dlsym+:} false
; then :
5932 if ${ac_cv_search_dlsym+:} false
; then :
5935 ac_cv_search_dlsym
=no
5938 LIBS
=$ac_func_search_save_LIBS
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5941 $as_echo "$ac_cv_search_dlsym" >&6; }
5942 ac_res
=$ac_cv_search_dlsym
5943 if test "$ac_res" != no
; then :
5944 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5952 sparc-
*-solaris*|i?
86-*-solaris*)
5953 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5954 # were mutually exclusive until Solaris 11.3. Without procfs support,
5955 # the bfd/ elf module cannot provide certain routines such as
5956 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5957 # explicitly requested large-file support through the
5958 # --enable-largefile switch, disable large-file support in favor of
5961 # Check if <sys/procfs.h> is incompatible with large-file support.
5962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #define _FILE_OFFSET_BITS 64
5965 #define _STRUCTURED_PROC 1
5966 #include <sys/procfs.h>
5975 if ac_fn_c_try_compile
"$LINENO"; then :
5976 acx_cv_procfs_lfs
=yes
5978 acx_cv_procfs_lfs
=no
5980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5982 # Forcefully disable large-file support only if necessary, gdb is in
5984 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5985 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5986 : ${enable_largefile="no"}
5987 if test "$plugins" = yes; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5989 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5990 $as_echo "$as_me: WARNING:
5991 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5996 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5997 # benefit of g++ 9+ which predefines it on Solaris.
5998 if test "$enable_largefile" = no
; then
5999 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
6005 # Check whether --enable-largefile was given.
6006 if test "${enable_largefile+set}" = set; then :
6007 enableval
=$enable_largefile;
6010 if test "$enable_largefile" != no
; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6013 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6014 if ${ac_cv_sys_largefile_CC+:} false
; then :
6015 $as_echo_n "(cached) " >&6
6017 ac_cv_sys_largefile_CC
=no
6018 if test "$GCC" != yes; then
6021 # IRIX 6.2 and later do not support large files by default,
6022 # so use the C compiler's -n32 option if that helps.
6023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <sys/types.h>
6026 /* Check that off_t can represent 2**63 - 1 correctly.
6027 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6028 since some C++ compilers masquerading as C compilers
6029 incorrectly reject 9223372036854775807. */
6030 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6031 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6032 && LARGE_OFF_T % 2147483647 == 1)
6042 if ac_fn_c_try_compile
"$LINENO"; then :
6045 rm -f core conftest.err conftest.
$ac_objext
6047 if ac_fn_c_try_compile
"$LINENO"; then :
6048 ac_cv_sys_largefile_CC
=' -n32'; break
6050 rm -f core conftest.err conftest.
$ac_objext
6054 rm -f conftest.
$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6058 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6059 if test "$ac_cv_sys_largefile_CC" != no
; then
6060 CC
=$CC$ac_cv_sys_largefile_CC
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6064 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6065 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6066 $as_echo_n "(cached) " >&6
6069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <sys/types.h>
6072 /* Check that off_t can represent 2**63 - 1 correctly.
6073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6074 since some C++ compilers masquerading as C compilers
6075 incorrectly reject 9223372036854775807. */
6076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6078 && LARGE_OFF_T % 2147483647 == 1)
6088 if ac_fn_c_try_compile
"$LINENO"; then :
6089 ac_cv_sys_file_offset_bits
=no
; break
6091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #define _FILE_OFFSET_BITS 64
6095 #include <sys/types.h>
6096 /* Check that off_t can represent 2**63 - 1 correctly.
6097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6098 since some C++ compilers masquerading as C compilers
6099 incorrectly reject 9223372036854775807. */
6100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6102 && LARGE_OFF_T % 2147483647 == 1)
6112 if ac_fn_c_try_compile
"$LINENO"; then :
6113 ac_cv_sys_file_offset_bits
=64; break
6115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6116 ac_cv_sys_file_offset_bits
=unknown
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6121 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6122 case $ac_cv_sys_file_offset_bits in #(
6125 cat >>confdefs.h
<<_ACEOF
6126 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6131 if test $ac_cv_sys_file_offset_bits = unknown
; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6133 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6134 if ${ac_cv_sys_large_files+:} false
; then :
6135 $as_echo_n "(cached) " >&6
6138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <sys/types.h>
6141 /* Check that off_t can represent 2**63 - 1 correctly.
6142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6143 since some C++ compilers masquerading as C compilers
6144 incorrectly reject 9223372036854775807. */
6145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6147 && LARGE_OFF_T % 2147483647 == 1)
6157 if ac_fn_c_try_compile
"$LINENO"; then :
6158 ac_cv_sys_large_files
=no
; break
6160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #define _LARGE_FILES 1
6164 #include <sys/types.h>
6165 /* Check that off_t can represent 2**63 - 1 correctly.
6166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6167 since some C++ compilers masquerading as C compilers
6168 incorrectly reject 9223372036854775807. */
6169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6171 && LARGE_OFF_T % 2147483647 == 1)
6181 if ac_fn_c_try_compile
"$LINENO"; then :
6182 ac_cv_sys_large_files
=1; break
6184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6185 ac_cv_sys_large_files
=unknown
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6190 $as_echo "$ac_cv_sys_large_files" >&6; }
6191 case $ac_cv_sys_large_files in #(
6194 cat >>confdefs.h
<<_ACEOF
6195 #define _LARGE_FILES $ac_cv_sys_large_files
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6214 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6215 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6216 $as_echo_n "(cached) " >&6
6219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6229 gl_cv_c_amsterdam_compiler
=yes
6231 gl_cv_c_amsterdam_compiler
=no
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6238 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6240 if test $gl_cv_c_amsterdam_compiler = yes; then
6241 if test -z "$AR"; then
6244 if test -z "$ARFLAGS"; then
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6253 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_AR+:} false
; then :
6257 $as_echo_n "(cached) " >&6
6259 if test -n "$AR"; then
6260 ac_cv_prog_AR
="$AR" # Let the user override the test.
6262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir
=.
6267 for ac_exec_ext
in '' $ac_executable_extensions; do
6268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 if test -n "$AR"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6282 $as_echo "$AR" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6290 if test -z "$ac_cv_prog_AR"; then
6292 # Extract the first word of "ar", so it can be a program name with args.
6293 set dummy
ar; ac_word
=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6297 $as_echo_n "(cached) " >&6
6299 if test -n "$ac_ct_AR"; then
6300 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir
=.
6307 for ac_exec_ext
in '' $ac_executable_extensions; do
6308 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_ac_ct_AR
="ar"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6320 if test -n "$ac_ct_AR"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6322 $as_echo "$ac_ct_AR" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6328 if test "x$ac_ct_AR" = x
; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned
=yes ;;
6343 if test -z "$ARFLAGS"; then
6349 if test -z "$RANLIB"; then
6350 if test $gl_cv_c_amsterdam_compiler = yes; then
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_RANLIB+:} false
; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir
=.
6369 for ac_exec_ext
in '' $ac_executable_extensions; do
6370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 RANLIB
=$ac_cv_prog_RANLIB
6382 if test -n "$RANLIB"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6384 $as_echo "$RANLIB" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6392 if test -z "$ac_cv_prog_RANLIB"; then
6393 ac_ct_RANLIB
=$RANLIB
6394 # Extract the first word of "ranlib", so it can be a program name with args.
6395 set dummy ranlib
; ac_word
=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$ac_ct_RANLIB"; then
6402 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir
=.
6409 for ac_exec_ext
in '' $ac_executable_extensions; do
6410 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6411 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6422 if test -n "$ac_ct_RANLIB"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6424 $as_echo "$ac_ct_RANLIB" >&6; }
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6430 if test "x$ac_ct_RANLIB" = x
; then
6433 case $cross_compiling:$ac_tool_warned in
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned
=yes ;;
6439 RANLIB
=$ac_ct_RANLIB
6442 RANLIB
="$ac_cv_prog_RANLIB"
6453 # IEEE behaviour is the default on all CPUs except Alpha and SH
6454 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6455 # and the GCC 4.1.2 manual).
6458 # On Alpha systems, a compiler option provides the behaviour.
6459 # See the ieee(3) manual page, also available at
6460 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6461 if test -n "$GCC"; then
6462 # GCC has the option -mieee.
6463 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6464 CPPFLAGS
="$CPPFLAGS -mieee"
6466 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6467 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6468 CPPFLAGS
="$CPPFLAGS -ieee"
6472 if test -n "$GCC"; then
6473 # GCC has the option -mieee.
6474 CPPFLAGS
="$CPPFLAGS -mieee"
6485 # Check whether --enable-threads was given.
6486 if test "${enable_threads+set}" = set; then :
6487 enableval
=$enable_threads; gl_use_threads
=$enableval
6489 if test -n "$gl_use_threads_default"; then
6490 gl_use_threads
="$gl_use_threads_default"
6493 osf
*) gl_use_threads
=no
;;
6496 1.
[0-5].
*) gl_use_threads
=no
;;
6497 *) gl_use_threads
=yes ;;
6501 case "$gl_use_winpthreads_default" in
6502 yes) gl_use_threads
=posix
;;
6503 no
) gl_use_threads
=windows
;;
6504 *) gl_use_threads
=yes ;;
6507 *) gl_use_threads
=yes ;;
6513 if test "$gl_use_threads" = yes \
6514 ||
test "$gl_use_threads" = isoc \
6515 ||
test "$gl_use_threads" = posix \
6516 ||
test "$gl_use_threads" = isoc
+posix
; then
6517 # For using <threads.h> or <pthread.h>:
6520 if test -z "$gl_anythreadlib_early_done"; then
6523 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6524 # groks <pthread.h>. cc also understands the flag -pthread, but
6525 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6526 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6527 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6528 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6529 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6532 # Some systems optimize for single-threaded programs by default, and
6533 # need special flags to disable these optimizations. For example, the
6534 # definition of 'errno' in <errno.h>.
6536 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6537 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6539 gl_anythreadlib_early_done
=done
6546 # Pre-early section.
6551 # Code from module absolute-header:
6552 # Code from module alloca:
6553 # Code from module alloca-opt:
6554 # Code from module arpa_inet:
6555 # Code from module assure:
6556 # Code from module at-internal:
6557 # Code from module attribute:
6558 # Code from module btowc:
6559 # Code from module builtin-expect:
6560 # Code from module c99:
6561 # Code from module canonicalize-lgpl:
6562 # Code from module chdir:
6563 # Code from module chdir-long:
6564 # Code from module cloexec:
6565 # Code from module close:
6566 # Code from module closedir:
6567 # Code from module count-one-bits:
6568 # Code from module ctype:
6569 # Code from module d-ino:
6570 # Code from module d-type:
6571 # Code from module dirent:
6572 # Code from module dirfd:
6573 # Code from module dirname-lgpl:
6574 # Code from module double-slash-root:
6575 # Code from module dup:
6576 # Code from module dup2:
6577 # Code from module environ:
6578 # Code from module errno:
6579 # Code from module error:
6580 # Code from module exitfail:
6581 # Code from module extensions:
6582 # Code from module extern-inline:
6583 # Code from module fchdir:
6584 # Code from module fcntl:
6585 # Code from module fcntl-h:
6586 # Code from module fd-hook:
6587 # Code from module fd-safer-flag:
6588 # Code from module fdopendir:
6589 # Code from module filename:
6590 # Code from module filenamecat-lgpl:
6591 # Code from module flexmember:
6592 # Code from module float:
6593 # Code from module fnmatch:
6594 # Code from module fnmatch-gnu:
6595 # Code from module fnmatch-h:
6596 # Code from module fpieee:
6598 # Code from module fpucw:
6599 # Code from module frexp:
6600 # Code from module frexpl:
6601 # Code from module fstat:
6602 # Code from module fstatat:
6603 # Code from module getcwd:
6604 # Code from module getcwd-lgpl:
6605 # Code from module getdtablesize:
6606 # Code from module getlogin_r:
6607 # Code from module getprogname:
6608 # Code from module getrandom:
6609 # Code from module gettext-h:
6610 # Code from module gettimeofday:
6611 # Code from module glob:
6612 # Code from module glob-h:
6613 # Code from module hard-locale:
6614 # Code from module include_next:
6615 # Code from module inet_ntop:
6616 # Code from module intprops:
6617 # Code from module inttypes:
6618 # Code from module inttypes-incomplete:
6619 # Code from module isblank:
6620 # Code from module isnand-nolibm:
6621 # Code from module isnanl-nolibm:
6622 # Code from module largefile:
6624 # Code from module libc-config:
6625 # Code from module limits-h:
6626 # Code from module localcharset:
6627 # Code from module locale:
6628 # Code from module localtime-buffer:
6629 # Code from module lock:
6630 # Code from module lstat:
6631 # Code from module malloc-posix:
6632 # Code from module malloca:
6633 # Code from module math:
6634 # Code from module mbrtowc:
6635 # Code from module mbsinit:
6636 # Code from module mbsrtowcs:
6637 # Code from module mbtowc:
6638 # Code from module memchr:
6639 # Code from module memmem:
6640 # Code from module memmem-simple:
6641 # Code from module mempcpy:
6642 # Code from module memrchr:
6643 # Code from module minmax:
6644 # Code from module mkdir:
6645 # Code from module mkdtemp:
6646 # Code from module mkostemp:
6647 # Code from module msvc-inval:
6648 # Code from module msvc-nothrow:
6649 # Code from module multiarch:
6650 # Code from module netinet_in:
6651 # Code from module nocrash:
6652 # Code from module open:
6653 # Code from module openat:
6654 # Code from module openat-die:
6655 # Code from module openat-h:
6656 # Code from module opendir:
6657 # Code from module pathmax:
6658 # Code from module rawmemchr:
6659 # Code from module readdir:
6660 # Code from module readlink:
6661 # Code from module realloc-posix:
6662 # Code from module rename:
6663 # Code from module rewinddir:
6664 # Code from module rmdir:
6665 # Code from module same-inode:
6666 # Code from module save-cwd:
6667 # Code from module scratch_buffer:
6668 # Code from module setenv:
6669 # Code from module setlocale-null:
6670 # Code from module signal-h:
6671 # Code from module snippet/_Noreturn:
6672 # Code from module snippet/arg-nonnull:
6673 # Code from module snippet/c++defs:
6674 # Code from module snippet/warn-on-use:
6675 # Code from module socklen:
6676 # Code from module ssize_t:
6677 # Code from module stat:
6678 # Code from module stat-time:
6679 # Code from module std-gnu11:
6680 # Code from module stdalign:
6681 # Code from module stdbool:
6682 # Code from module stddef:
6683 # Code from module stdint:
6684 # Code from module stdio:
6685 # Code from module stdlib:
6686 # Code from module strchrnul:
6687 # Code from module strdup-posix:
6688 # Code from module streq:
6689 # Code from module strerror:
6690 # Code from module strerror-override:
6691 # Code from module strerror_r-posix:
6692 # Code from module string:
6693 # Code from module strnlen:
6694 # Code from module strnlen1:
6695 # Code from module strstr:
6696 # Code from module strstr-simple:
6697 # Code from module strtok_r:
6698 # Code from module sys_random:
6699 # Code from module sys_socket:
6700 # Code from module sys_stat:
6701 # Code from module sys_time:
6702 # Code from module sys_types:
6703 # Code from module sys_uio:
6704 # Code from module tempname:
6705 # Code from module threadlib:
6709 # Code from module time:
6710 # Code from module time_r:
6711 # Code from module unistd:
6712 # Code from module unistd-safer:
6713 # Code from module unsetenv:
6714 # Code from module update-copyright:
6715 # Code from module verify:
6716 # Code from module wchar:
6717 # Code from module wctype-h:
6718 # Code from module windows-mutex:
6719 # Code from module windows-once:
6720 # Code from module windows-recmutex:
6721 # Code from module windows-rwlock:
6722 # Code from module wmemchr:
6723 # Code from module wmempcpy:
6724 # Code from module xalloc-oversized:
6727 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6731 for ac_dir
in ..
"$srcdir"/..
; do
6732 if test -f "$ac_dir/install-sh"; then
6734 ac_install_sh
="$ac_aux_dir/install-sh -c"
6736 elif test -f "$ac_dir/install.sh"; then
6738 ac_install_sh
="$ac_aux_dir/install.sh -c"
6740 elif test -f "$ac_dir/shtool"; then
6742 ac_install_sh
="$ac_aux_dir/shtool install -c"
6746 if test -z "$ac_aux_dir"; then
6747 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6750 # These three variables are undocumented and unsupported,
6751 # and are intended to be withdrawn in a future Autoconf release.
6752 # They can cause serious problems if a builder's source tree is in a directory
6753 # whose full name contains unusual characters.
6754 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6755 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6756 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6768 # Check whether --enable-cross-guesses was given.
6769 if test "${enable_cross_guesses+set}" = set; then :
6770 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6772 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6773 enableval
=conservative
6775 gl_cross_guesses
="$enableval"
6777 gl_cross_guesses
=conservative
6780 if test $gl_cross_guesses = risky
; then
6781 gl_cross_guess_normal
="guessing yes"
6782 gl_cross_guess_inverted
="guessing no"
6784 gl_cross_guess_normal
="guessing no"
6785 gl_cross_guess_inverted
="guessing yes"
6787 LIBC_FATAL_STDERR_
=1
6788 export LIBC_FATAL_STDERR_
6791 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6792 if test "x$ac_cv_type_size_t" = xyes
; then :
6796 cat >>confdefs.h
<<_ACEOF
6797 #define size_t unsigned int
6802 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6803 # for constant arguments. Useless!
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6805 $as_echo_n "checking for working alloca.h... " >&6; }
6806 if ${ac_cv_working_alloca_h+:} false
; then :
6807 $as_echo_n "(cached) " >&6
6809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6815 char *p = (char *) alloca (2 * sizeof (int));
6821 if ac_fn_c_try_link
"$LINENO"; then :
6822 ac_cv_working_alloca_h
=yes
6824 ac_cv_working_alloca_h
=no
6826 rm -f core conftest.err conftest.
$ac_objext \
6827 conftest
$ac_exeext conftest.
$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6830 $as_echo "$ac_cv_working_alloca_h" >&6; }
6831 if test $ac_cv_working_alloca_h = yes; then
6833 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6838 $as_echo_n "checking for alloca... " >&6; }
6839 if ${ac_cv_func_alloca_works+:} false
; then :
6840 $as_echo_n "(cached) " >&6
6842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6845 # define alloca __builtin_alloca
6848 # include <malloc.h>
6849 # define alloca _alloca
6851 # ifdef HAVE_ALLOCA_H
6852 # include <alloca.h>
6857 # ifndef alloca /* predefined by HP cc +Olibcalls */
6858 void *alloca (size_t);
6868 char *p = (char *) alloca (1);
6874 if ac_fn_c_try_link
"$LINENO"; then :
6875 ac_cv_func_alloca_works
=yes
6877 ac_cv_func_alloca_works
=no
6879 rm -f core conftest.err conftest.
$ac_objext \
6880 conftest
$ac_exeext conftest.
$ac_ext
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6883 $as_echo "$ac_cv_func_alloca_works" >&6; }
6885 if test $ac_cv_func_alloca_works = yes; then
6887 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6890 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6891 # that cause trouble. Some versions do not even contain alloca or
6892 # contain a buggy version. If you still want to use their alloca,
6893 # use ar to extract alloca.o from them instead of compiling alloca.c.
6899 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6901 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6905 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6906 if ${ac_cv_os_cray+:} false
; then :
6907 $as_echo_n "(cached) " >&6
6909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #if defined CRAY && ! defined CRAY2
6918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6919 $EGREP "webecray" >/dev
/null
2>&1; then :
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6928 $as_echo "$ac_cv_os_cray" >&6; }
6929 if test $ac_cv_os_cray = yes; then
6930 for ac_func
in _getb67 GETB67 getb67
; do
6931 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6932 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6933 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6935 cat >>confdefs.h
<<_ACEOF
6936 #define CRAY_STACKSEG_END $ac_func
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6946 $as_echo_n "checking stack direction for C alloca... " >&6; }
6947 if ${ac_cv_c_stack_direction+:} false
; then :
6948 $as_echo_n "(cached) " >&6
6950 if test "$cross_compiling" = yes; then :
6951 ac_cv_c_stack_direction
=0
6953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 $ac_includes_default
6957 find_stack_direction (int *addr, int depth)
6962 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6963 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6968 main (int argc, char **argv)
6970 return find_stack_direction (0, argc + !argv + 20) < 0;
6973 if ac_fn_c_try_run
"$LINENO"; then :
6974 ac_cv_c_stack_direction
=1
6976 ac_cv_c_stack_direction
=-1
6978 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6979 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6984 $as_echo "$ac_cv_c_stack_direction" >&6; }
6985 cat >>confdefs.h
<<_ACEOF
6986 #define STACK_DIRECTION $ac_cv_c_stack_direction
6995 HAVE_DECL_INET_NTOP
=1;
6996 HAVE_DECL_INET_PTON
=1;
6997 REPLACE_INET_NTOP
=0;
6998 REPLACE_INET_PTON
=0;
7003 for ac_header
in $ac_header_list
7005 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7008 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7009 cat >>confdefs.h
<<_ACEOF
7010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7022 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7023 if ${gl_cv_have_include_next+:} false
; then :
7024 $as_echo_n "(cached) " >&6
7026 rm -rf conftestd1a conftestd1b conftestd2
7027 mkdir conftestd1a conftestd1b conftestd2
7028 cat <<EOF > conftestd1a/conftest.h
7029 #define DEFINED_IN_CONFTESTD1
7030 #include_next <conftest.h>
7031 #ifdef DEFINED_IN_CONFTESTD2
7034 #error "include_next doesn't work"
7037 cat <<EOF > conftestd1b/conftest.h
7038 #define DEFINED_IN_CONFTESTD1
7040 #include_next <conftest.h>
7041 #ifdef DEFINED_IN_CONFTESTD2
7044 #error "include_next doesn't work"
7047 cat <<EOF > conftestd2/conftest.h
7048 #ifndef DEFINED_IN_CONFTESTD1
7049 #error "include_next test doesn't work"
7051 #define DEFINED_IN_CONFTESTD2
7053 gl_save_CPPFLAGS
="$CPPFLAGS"
7054 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 #include <conftest.h>
7059 if ac_fn_c_try_compile
"$LINENO"; then :
7060 gl_cv_have_include_next
=yes
7062 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #include <conftest.h>
7067 if ac_fn_c_try_compile
"$LINENO"; then :
7068 gl_cv_have_include_next
=buggy
7070 gl_cv_have_include_next
=no
7072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7076 CPPFLAGS
="$gl_save_CPPFLAGS"
7077 rm -rf conftestd1a conftestd1b conftestd2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7081 $as_echo "$gl_cv_have_include_next" >&6; }
7082 PRAGMA_SYSTEM_HEADER
=
7083 if test $gl_cv_have_include_next = yes; then
7084 INCLUDE_NEXT
=include_next
7085 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7086 if test -n "$GCC"; then
7087 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7090 if test $gl_cv_have_include_next = buggy
; then
7091 INCLUDE_NEXT
=include
7092 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7094 INCLUDE_NEXT
=include
7095 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7102 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7103 if ${gl_cv_pragma_columns+:} false
; then :
7104 $as_echo_n "(cached) " >&6
7106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115 $EGREP "choke me" >/dev
/null
2>&1; then :
7116 gl_cv_pragma_columns
=yes
7118 gl_cv_pragma_columns
=no
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7125 $as_echo "$gl_cv_pragma_columns" >&6; }
7126 if test $gl_cv_pragma_columns = yes; then
7127 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7137 if test $ac_cv_header_features_h = yes; then
7147 if test $ac_cv_header_sys_socket_h = no
; then
7148 for ac_header
in ws2tcpip.h
7150 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7151 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7152 cat >>confdefs.h
<<_ACEOF
7153 #define HAVE_WS2TCPIP_H 1
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7163 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7164 if test -z "$MKDIR_P"; then
7165 if ${ac_cv_path_mkdir+:} false
; then :
7166 $as_echo_n "(cached) " >&6
7168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7169 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7172 test -z "$as_dir" && as_dir
=.
7173 for ac_prog
in mkdir gmkdir
; do
7174 for ac_exec_ext
in '' $ac_executable_extensions; do
7175 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7176 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7177 'mkdir (GNU coreutils) '* | \
7178 'mkdir (coreutils) '* | \
7179 'mkdir (fileutils) '4.1*)
7180 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7190 test -d .
/--version && rmdir .
/--version
7191 if test "${ac_cv_path_mkdir+set}" = set; then
7192 MKDIR_P
="$ac_cv_path_mkdir -p"
7194 # As a last resort, use the slow shell script. Don't cache a
7195 # value for MKDIR_P within a source directory, because that will
7196 # break other packages using the cache if that directory is
7197 # removed, or if the value is a relative name.
7198 MKDIR_P
="$ac_install_sh -d"
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7202 $as_echo "$MKDIR_P" >&6; }
7211 GNULIB_MBSNRTOWCS
=0;
7214 GNULIB_WCSNRTOMBS
=0;
7232 GNULIB_WCSCASECMP
=0;
7233 GNULIB_WCSNCASECMP
=0;
7286 HAVE_DECL_WCWIDTH
=1;
7287 REPLACE_MBSTATE_T
=0;
7293 REPLACE_MBSRTOWCS
=0;
7294 REPLACE_MBSNRTOWCS
=0;
7296 REPLACE_WCSRTOMBS
=0;
7297 REPLACE_WCSNRTOMBS
=0;
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7305 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7306 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
7307 $as_echo_n "(cached) " >&6
7309 gl_cv_header_wchar_h_correct_inline
=yes
7310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7313 #define wcstod renamed_wcstod
7314 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7316 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7317 included before <wchar.h>. */
7322 extern int zero (void);
7323 int main () { return zero(); }
7326 save_ac_compile
="$ac_compile"
7327 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
7328 if echo '#include "conftest.c"' >conftest1.c
&&
7329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7330 (eval $ac_compile) 2>&5
7332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; }; then
7334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7337 #define wcstod renamed_wcstod
7338 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7340 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7341 included before <wchar.h>. */
7346 int zero (void) { return 0; }
7349 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
7350 if echo '#include "conftest.c"' >conftest2.c
&&
7351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
7359 gl_cv_header_wchar_h_correct_inline
=no
7363 ac_compile
="$save_ac_compile"
7364 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7368 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7369 if test $gl_cv_header_wchar_h_correct_inline = no
; then
7370 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7371 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7372 C99 mode. You have four options:
7373 - Add the flag -fgnu89-inline to CC and reconfigure, or
7374 - Fix your include files, using parts of
7375 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7376 - Use a gcc version older than 4.3, or
7377 - Don't use the flags -std=c99 or -std=gnu99.
7378 Configuration aborted." "$LINENO" 5
7384 for ac_func
in $ac_func_list
7386 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7387 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7388 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7389 cat >>confdefs.h
<<_ACEOF
7390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7400 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7401 if ${am_cv_langinfo_codeset+:} false
; then :
7402 $as_echo_n "(cached) " >&6
7404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <langinfo.h>
7410 char* cs = nl_langinfo(CODESET); return !cs;
7415 if ac_fn_c_try_link
"$LINENO"; then :
7416 am_cv_langinfo_codeset
=yes
7418 am_cv_langinfo_codeset
=no
7420 rm -f core conftest.err conftest.
$ac_objext \
7421 conftest
$ac_exeext conftest.
$ac_ext
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7425 $as_echo "$am_cv_langinfo_codeset" >&6; }
7426 if test $am_cv_langinfo_codeset = yes; then
7428 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7436 $as_echo_n "checking for a traditional french locale... " >&6; }
7437 if ${gt_cv_locale_fr+:} false
; then :
7438 $as_echo_n "(cached) " >&6
7441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7446 #if HAVE_LANGINFO_CODESET
7447 # include <langinfo.h>
7454 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7455 imitates locale dependent behaviour by looking at the environment
7456 variables, and all locales use the UTF-8 encoding. */
7457 #if defined __BEOS__ || defined __HAIKU__
7460 /* Check whether the given locale name is recognized by the system. */
7461 # if defined _WIN32 && !defined __CYGWIN__
7462 /* On native Windows, setlocale(category, "") looks at the system settings,
7463 not at the environment variables. Also, when an encoding suffix such
7464 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7465 category of the locale to "C". */
7466 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7467 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7470 if (setlocale (LC_ALL, "") == NULL) return 1;
7472 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7473 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7474 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7475 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7476 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7477 some unit tests fail.
7478 On MirBSD 10, when an unsupported locale is specified, setlocale()
7479 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7480 # if HAVE_LANGINFO_CODESET
7482 const char *cs = nl_langinfo (CODESET);
7483 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7484 || strcmp (cs, "UTF-8") == 0)
7489 /* On Cygwin, avoid locale names without encoding suffix, because the
7490 locale_charset() function relies on the encoding suffix. Note that
7491 LC_ALL is set on the command line. */
7492 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7494 /* Check whether in the abbreviation of the second month, the second
7495 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7496 one byte long. This excludes the UTF-8 encoding. */
7497 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7498 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7499 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7500 /* Check whether the decimal separator is a comma.
7501 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7502 are nl_langinfo(RADIXCHAR) are both ".". */
7503 if (localeconv () ->decimal_point[0] != ',') return 1;
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7511 (eval $ac_link) 2>&5
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7516 # Handle native Windows specially, because there setlocale() interprets
7517 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7518 # "fr" or "fra" as "French" or "French_France.1252",
7519 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7520 # "ja" as "Japanese" or "Japanese_Japan.932",
7523 # Test for the native Windows locale name.
7524 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7525 gt_cv_locale_fr
=French_France
.1252
7528 gt_cv_locale_fr
=none
7532 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7533 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7534 # configure script would override the LC_ALL setting. Likewise for
7535 # LC_CTYPE, which is also set at the beginning of the configure script.
7536 # Test for the usual locale name.
7537 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7538 gt_cv_locale_fr
=fr_FR
7540 # Test for the locale name with explicit encoding suffix.
7541 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7542 gt_cv_locale_fr
=fr_FR.ISO-8859-1
7544 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7545 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7546 gt_cv_locale_fr
=fr_FR.ISO8859-1
7548 # Test for the HP-UX locale name.
7549 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7550 gt_cv_locale_fr
=fr_FR.iso88591
7552 # Test for the Solaris 7 locale name.
7553 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7557 gt_cv_locale_fr
=none
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7570 $as_echo "$gt_cv_locale_fr" >&6; }
7571 LOCALE_FR
=$gt_cv_locale_fr
7577 GNULIB_CALLOC_POSIX
=0;
7578 GNULIB_CANONICALIZE_FILE_NAME
=0;
7579 GNULIB_GETLOADAVG
=0;
7582 GNULIB_MALLOC_POSIX
=0;
7589 GNULIB_POSIX_OPENPT
=0;
7596 GNULIB_REALLOCARRAY
=0;
7597 GNULIB_REALLOC_POSIX
=0;
7600 GNULIB_SECURE_GETENV
=0;
7606 GNULIB_SYSTEM_POSIX
=0;
7612 HAVE_CANONICALIZE_FILE_NAME
=1;
7613 HAVE_DECL_GETLOADAVG
=1;
7617 HAVE_DECL_INITSTATE
=1;
7624 HAVE_POSIX_OPENPT
=1;
7631 HAVE_REALLOCARRAY
=1;
7634 HAVE_SECURE_GETENV
=1;
7638 HAVE_DECL_SETSTATE
=1;
7643 HAVE_STRUCT_RANDOM_DATA
=1;
7644 HAVE_SYS_LOADAVG_H
=0;
7646 HAVE_DECL_UNSETENV
=1;
7648 REPLACE_CANONICALIZE_FILE_NAME
=0;
7649 REPLACE_INITSTATE
=0;
7654 REPLACE_PTSNAME_R
=0;
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7677 $as_echo_n "checking whether // is distinct from /... " >&6; }
7678 if ${gl_cv_double_slash_root+:} false
; then :
7679 $as_echo_n "(cached) " >&6
7681 if test x
"$cross_compiling" = xyes
; then
7682 # When cross-compiling, there is no way to tell whether // is special
7683 # short of a list of hosts. However, the only known hosts to date
7684 # that have a distinct // are Apollo DomainOS (too old to port to),
7685 # Cygwin, and z/OS. If anyone knows of another system for which // has
7686 # special semantics and is distinct from /, please report it to
7687 # <bug-gnulib@gnu.org>.
7689 *-cygwin | i370-ibm-openedition
)
7690 gl_cv_double_slash_root
=yes ;;
7692 # Be optimistic and assume that / and // are the same when we
7694 gl_cv_double_slash_root
='unknown, assuming no' ;;
7697 set x
`ls -di / // 2>/dev/null`
7698 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7699 gl_cv_double_slash_root
=no
7701 gl_cv_double_slash_root
=yes
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7706 $as_echo "$gl_cv_double_slash_root" >&6; }
7707 if test "$gl_cv_double_slash_root" = yes; then
7709 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7718 $as_echo_n "checking whether realpath works... " >&6; }
7719 if ${gl_cv_func_realpath_works+:} false
; then :
7720 $as_echo_n "(cached) " >&6
7725 if test "$cross_compiling" = yes; then :
7727 # Guess yes on glibc systems.
7728 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7729 # Guess yes on musl systems.
7730 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7731 # Guess no on native Windows.
7732 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7733 # If we don't know, obey --enable-cross-guesses.
7734 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7744 #if defined __MACH__ && defined __APPLE__
7745 /* Avoid a crash on Mac OS X. */
7746 #include <mach/mach.h>
7747 #include <mach/mach_error.h>
7748 #include <mach/thread_status.h>
7749 #include <mach/exception.h>
7750 #include <mach/task.h>
7751 #include <pthread.h>
7752 /* The exception port on which our thread listens. */
7753 static mach_port_t our_exception_port;
7754 /* The main function of the thread listening for exceptions of type
7757 mach_exception_thread (void *arg)
7759 /* Buffer for a message to be received. */
7761 mach_msg_header_t head;
7762 mach_msg_body_t msgh_body;
7765 mach_msg_return_t retval;
7766 /* Wait for a message on the exception port. */
7767 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7768 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7769 if (retval != MACH_MSG_SUCCESS)
7776 mach_port_t self = mach_task_self ();
7777 /* Allocate a port on which the thread shall listen for exceptions. */
7778 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7780 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7781 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7782 MACH_MSG_TYPE_MAKE_SEND)
7784 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7786 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7787 /* Create the thread listening on the exception port. */
7788 pthread_attr_t attr;
7790 if (pthread_attr_init (&attr) == 0
7791 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7792 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7793 pthread_attr_destroy (&attr);
7794 /* Replace the exception port info for these exceptions with our own.
7795 Note that we replace the exception port for the entire task, not only
7796 for a particular thread. This has the effect that when our exception
7797 port gets the message, the thread specific exception port has already
7798 been asked, and we don't need to bother about it.
7799 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7800 task_set_exception_ports (self, mask, our_exception_port,
7801 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7806 #elif defined _WIN32 && ! defined __CYGWIN__
7807 /* Avoid a crash on native Windows. */
7808 #define WIN32_LEAN_AND_MEAN
7809 #include <windows.h>
7810 #include <winerror.h>
7812 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7814 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7816 case EXCEPTION_ACCESS_VIOLATION:
7817 case EXCEPTION_IN_PAGE_ERROR:
7818 case EXCEPTION_STACK_OVERFLOW:
7819 case EXCEPTION_GUARD_PAGE:
7820 case EXCEPTION_PRIV_INSTRUCTION:
7821 case EXCEPTION_ILLEGAL_INSTRUCTION:
7822 case EXCEPTION_DATATYPE_MISALIGNMENT:
7823 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7824 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7827 return EXCEPTION_CONTINUE_SEARCH;
7832 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7835 /* Avoid a crash on POSIX systems. */
7838 /* A POSIX signal handler. */
7840 exception_handler (int sig)
7848 signal (SIGSEGV, exception_handler);
7851 signal (SIGBUS, exception_handler);
7865 char *name = realpath ("conftest.a", NULL);
7866 if (!(name && *name == '/'))
7871 char *name = realpath ("conftest.b/../conftest.a", NULL);
7877 char *name = realpath ("conftest.a/", NULL);
7883 char *name1 = realpath (".", NULL);
7884 char *name2 = realpath ("conftest.d//./..", NULL);
7885 if (! name1 || ! name2 || strcmp (name1, name2))
7897 if ac_fn_c_try_run
"$LINENO"; then :
7898 gl_cv_func_realpath_works
=yes
7900 gl_cv_func_realpath_works
=no
7902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7906 rm -rf conftest.a conftest.d
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7910 $as_echo "$gl_cv_func_realpath_works" >&6; }
7911 case "$gl_cv_func_realpath_works" in
7914 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7933 GNULIB_COPY_FILE_RANGE
=0;
7938 GNULIB_EUIDACCESS
=0;
7946 GNULIB_GETDOMAINNAME
=0;
7947 GNULIB_GETDTABLESIZE
=0;
7948 GNULIB_GETENTROPY
=0;
7950 GNULIB_GETHOSTNAME
=0;
7952 GNULIB_GETLOGIN_R
=0;
7953 GNULIB_GETOPT_POSIX
=0;
7954 GNULIB_GETPAGESIZE
=0;
7956 GNULIB_GETUSERSHELL
=0;
7957 GNULIB_GROUP_MEMBER
=0;
7969 GNULIB_READLINKAT
=0;
7971 GNULIB_SETHOSTNAME
=0;
7977 GNULIB_UNISTD_H_NONBLOCKING
=0;
7978 GNULIB_UNISTD_H_SIGPIPE
=0;
7984 HAVE_COPY_FILE_RANGE
=1;
7994 HAVE_GETDTABLESIZE
=1;
8001 HAVE_GROUP_MEMBER
=1;
8017 HAVE_DECL_ENVIRON
=1;
8019 HAVE_DECL_FDATASYNC
=1;
8020 HAVE_DECL_GETDOMAINNAME
=1;
8021 HAVE_DECL_GETLOGIN
=1;
8022 HAVE_DECL_GETLOGIN_R
=1;
8023 HAVE_DECL_GETPAGESIZE
=1;
8024 HAVE_DECL_GETUSERSHELL
=1;
8025 HAVE_DECL_SETHOSTNAME
=1;
8026 HAVE_DECL_TRUNCATE
=1;
8027 HAVE_DECL_TTYNAME_R
=1;
8035 REPLACE_FACCESSAT
=0;
8037 REPLACE_FTRUNCATE
=0;
8039 REPLACE_GETDOMAINNAME
=0;
8040 REPLACE_GETDTABLESIZE
=0;
8041 REPLACE_GETLOGIN_R
=0;
8042 REPLACE_GETGROUPS
=0;
8043 REPLACE_GETPAGESIZE
=0;
8054 REPLACE_READLINKAT
=0;
8058 REPLACE_SYMLINKAT
=0;
8060 REPLACE_TTYNAME_R
=0;
8065 UNISTD_H_HAVE_SYS_RANDOM_H
=0;
8066 UNISTD_H_HAVE_WINSOCK2_H
=0;
8067 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8079 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8080 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
8082 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8085 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
8105 HAVE_DECL_FDOPENDIR
=1;
8112 REPLACE_FDOPENDIR
=0;
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8128 $as_echo_n "checking if environ is properly declared... " >&6; }
8129 if ${gt_cv_var_environ_declaration+:} false
; then :
8130 $as_echo_n "(cached) " >&6
8132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8137 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8140 extern struct { int foo; } environ;
8149 if ac_fn_c_try_compile
"$LINENO"; then :
8150 gt_cv_var_environ_declaration
=no
8152 gt_cv_var_environ_declaration
=yes
8154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8157 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8158 if test $gt_cv_var_environ_declaration = yes; then
8160 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8165 if test $gt_cv_var_environ_declaration != yes; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8172 $as_echo_n "checking for complete errno.h... " >&6; }
8173 if ${gl_cv_header_errno_h_complete+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8181 #if !defined ETXTBSY
8190 #if !defined ENOLINK
8196 #if !defined EMULTIHOP
8199 #if !defined EBADMSG
8202 #if !defined EOVERFLOW
8205 #if !defined ENOTSUP
8208 #if !defined ENETRESET
8211 #if !defined ECONNABORTED
8220 #if !defined ECANCELED
8223 #if !defined EOWNERDEAD
8226 #if !defined ENOTRECOVERABLE
8234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8235 $EGREP "booboo" >/dev
/null
2>&1; then :
8236 gl_cv_header_errno_h_complete
=no
8238 gl_cv_header_errno_h_complete
=yes
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8245 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8246 if test $gl_cv_header_errno_h_complete = yes; then
8257 if test $gl_cv_have_include_next = yes; then
8258 gl_cv_next_errno_h
='<'errno.h
'>'
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8261 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8262 if ${gl_cv_next_errno_h+:} false
; then :
8263 $as_echo_n "(cached) " >&6
8268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8273 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8274 *) gl_absname_cpp
="$ac_cpp" ;;
8279 gl_dirsep_regex
='[/\\]'
8282 gl_dirsep_regex
='\/'
8285 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8286 gl_header_literal_regex
=`echo 'errno.h' \
8287 | sed -e "$gl_make_literal_regex_sed"`
8288 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8289 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8295 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8296 sed -n "$gl_absolute_header_sed"`
8298 gl_header
=$gl_cv_absolute_errno_h
8299 gl_cv_next_errno_h
='"'$gl_header'"'
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8304 $as_echo "$gl_cv_next_errno_h" >&6; }
8306 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8308 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8309 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8310 gl_next_as_first_directive
='<'errno.h
'>'
8312 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8313 gl_next_as_first_directive
=$gl_cv_next_errno_h
8315 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8323 if test -n "$ERRNO_H"; then
8324 GL_GENERATE_ERRNO_H_TRUE
=
8325 GL_GENERATE_ERRNO_H_FALSE
='#'
8327 GL_GENERATE_ERRNO_H_TRUE
='#'
8328 GL_GENERATE_ERRNO_H_FALSE
=
8332 if test -n "$ERRNO_H"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8334 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8335 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8336 $as_echo_n "(cached) " >&6
8339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8349 $EGREP "yes" >/dev
/null
2>&1; then :
8350 gl_cv_header_errno_h_EMULTIHOP
=yes
8352 gl_cv_header_errno_h_EMULTIHOP
=no
8356 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8360 #define _XOPEN_SOURCE_EXTENDED 1
8367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8368 $EGREP "yes" >/dev
/null
2>&1; then :
8369 gl_cv_header_errno_h_EMULTIHOP
=hidden
8373 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8374 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8375 #define _XOPEN_SOURCE_EXTENDED 1
8377 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8389 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8390 case $gl_cv_header_errno_h_EMULTIHOP in
8392 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8395 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8403 if test -n "$ERRNO_H"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8405 $as_echo_n "checking for ENOLINK value... " >&6; }
8406 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8407 $as_echo_n "(cached) " >&6
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "yes" >/dev
/null
2>&1; then :
8421 gl_cv_header_errno_h_ENOLINK
=yes
8423 gl_cv_header_errno_h_ENOLINK
=no
8427 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8431 #define _XOPEN_SOURCE_EXTENDED 1
8438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8439 $EGREP "yes" >/dev
/null
2>&1; then :
8440 gl_cv_header_errno_h_ENOLINK
=hidden
8444 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8445 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8446 #define _XOPEN_SOURCE_EXTENDED 1
8448 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8460 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8461 case $gl_cv_header_errno_h_ENOLINK in
8463 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8466 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8474 if test -n "$ERRNO_H"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8476 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8477 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8478 $as_echo_n "(cached) " >&6
8481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8491 $EGREP "yes" >/dev
/null
2>&1; then :
8492 gl_cv_header_errno_h_EOVERFLOW
=yes
8494 gl_cv_header_errno_h_EOVERFLOW
=no
8498 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8502 #define _XOPEN_SOURCE_EXTENDED 1
8509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8510 $EGREP "yes" >/dev
/null
2>&1; then :
8511 gl_cv_header_errno_h_EOVERFLOW
=hidden
8515 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8516 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8517 #define _XOPEN_SOURCE_EXTENDED 1
8519 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8531 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8532 case $gl_cv_header_errno_h_EOVERFLOW in
8534 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8537 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8545 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8546 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8552 cat >>confdefs.h
<<_ACEOF
8553 #define HAVE_DECL_STRERROR_R $ac_have_decl
8556 for ac_func
in strerror_r
8558 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8559 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8560 cat >>confdefs.h
<<_ACEOF
8561 #define HAVE_STRERROR_R 1
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8568 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8569 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8570 $as_echo_n "(cached) " >&6
8573 ac_cv_func_strerror_r_char_p
=no
8574 if test $ac_cv_have_decl_strerror_r = yes; then
8575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 $ac_includes_default
8583 char x = *strerror_r (0, buf, sizeof buf);
8584 char *p = strerror_r (0, buf, sizeof buf);
8591 if ac_fn_c_try_compile
"$LINENO"; then :
8592 ac_cv_func_strerror_r_char_p
=yes
8594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 # strerror_r is not declared. Choose between
8597 # systems that have relatively inaccessible declarations for the
8598 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8599 # former has a strerror_r that returns char*, while the latter
8600 # has a strerror_r that returns `int'.
8601 # This test should segfault on the DEC system.
8602 if test "$cross_compiling" = yes; then :
8605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 extern char *strerror_r ();
8613 char x = *strerror_r (0, buf, sizeof buf);
8614 return ! isalpha (x);
8619 if ac_fn_c_try_run
"$LINENO"; then :
8620 ac_cv_func_strerror_r_char_p
=yes
8622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8630 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8631 if test $ac_cv_func_strerror_r_char_p = yes; then
8633 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8640 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8641 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8647 cat >>confdefs.h
<<_ACEOF
8648 #define HAVE_DECL_FCHDIR $ac_have_decl
8654 GNULIB_NONBLOCKING
=0;
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8674 $as_echo_n "checking for working fcntl.h... " >&6; }
8675 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8676 $as_echo_n "(cached) " >&6
8678 if test "$cross_compiling" = yes; then :
8680 # Guess 'no' on native Windows.
8681 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8682 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 #include <sys/types.h>
8689 #include <sys/stat.h>
8691 # include <unistd.h>
8692 #else /* on Windows with MSVC */
8694 # include <stdlib.h>
8695 # defined sleep(n) _sleep ((n) * 1000)
8702 #define O_NOFOLLOW 0
8704 static int const constants[] =
8706 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8707 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8714 int result = !constants;
8717 static char const sym[] = "conftest.sym";
8718 if (symlink ("/dev/null", sym) != 0)
8722 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8729 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8733 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8744 static char const file[] = "confdefs.h";
8745 int fd = open (file, O_RDONLY | O_NOATIME);
8751 if (fstat (fd, &st0) != 0)
8757 if (read (fd, &c, 1) != 1)
8761 if (close (fd) != 0)
8766 if (stat (file, &st1) != 0)
8769 if (st0.st_atime != st1.st_atime)
8781 if ac_fn_c_try_run
"$LINENO"; then :
8782 gl_cv_header_working_fcntl_h
=yes
8785 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8786 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8787 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8788 *) gl_cv_header_working_fcntl_h
='no';;
8791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8798 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8800 case $gl_cv_header_working_fcntl_h in #(
8801 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8805 cat >>confdefs.h
<<_ACEOF
8806 #define HAVE_WORKING_O_NOATIME $ac_val
8810 case $gl_cv_header_working_fcntl_h in #(
8811 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8815 cat >>confdefs.h
<<_ACEOF
8816 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8820 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8821 if test "x$ac_cv_type_pid_t" = xyes
; then :
8825 cat >>confdefs.h
<<_ACEOF
8831 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8832 if test "x$ac_cv_type_mode_t" = xyes
; then :
8836 cat >>confdefs.h
<<_ACEOF
8866 if test $gl_cv_have_include_next = yes; then
8867 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
8870 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
8871 if ${gl_cv_next_fnmatch_h+:} false
; then :
8872 $as_echo_n "(cached) " >&6
8875 if test $ac_cv_header_fnmatch_h = yes; then
8880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <fnmatch.h>
8885 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8886 *) gl_absname_cpp
="$ac_cpp" ;;
8891 gl_dirsep_regex
='[/\\]'
8894 gl_dirsep_regex
='\/'
8897 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8898 gl_header_literal_regex
=`echo 'fnmatch.h' \
8899 | sed -e "$gl_make_literal_regex_sed"`
8900 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8901 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8907 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8908 sed -n "$gl_absolute_header_sed"`
8910 gl_header
=$gl_cv_absolute_fnmatch_h
8911 gl_cv_next_fnmatch_h
='"'$gl_header'"'
8913 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
8919 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
8921 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
8923 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8925 gl_next_as_first_directive
='<'fnmatch.h
'>'
8927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8928 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
8930 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
8938 if test $ac_cv_header_fnmatch_h = yes; then
8949 if test $ac_cv_header_fnmatch_h != yes; then
8955 if test -n "$FNMATCH_H"; then
8956 GL_GENERATE_FNMATCH_H_TRUE
=
8957 GL_GENERATE_FNMATCH_H_FALSE
='#'
8959 GL_GENERATE_FNMATCH_H_TRUE
='#'
8960 GL_GENERATE_FNMATCH_H_FALSE
=
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8973 $as_echo_n "checking for mbstate_t... " >&6; }
8974 if ${ac_cv_type_mbstate_t+:} false
; then :
8975 $as_echo_n "(cached) " >&6
8977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 $ac_includes_default
8980 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8982 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8983 included before <wchar.h>. */
8991 mbstate_t x; return sizeof x;
8996 if ac_fn_c_try_compile
"$LINENO"; then :
8997 ac_cv_type_mbstate_t
=yes
8999 ac_cv_type_mbstate_t
=no
9001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
9004 $as_echo "$ac_cv_type_mbstate_t" >&6; }
9005 if test $ac_cv_type_mbstate_t = yes; then
9007 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
9011 $as_echo "#define mbstate_t int" >>confdefs.h
9093 GNULIB_REMAINDERF
=0;
9094 GNULIB_REMAINDERL
=0;
9180 HAVE_DECL_COPYSIGNF
=1;
9197 HAVE_DECL_REMAINDER
=1;
9198 HAVE_DECL_REMAINDERL
=1;
9270 REPLACE_REMAINDER
=0;
9271 REPLACE_REMAINDERF
=0;
9272 REPLACE_REMAINDERL
=0;
9278 REPLACE_SIGNBIT_USING_GCC
=0;
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9291 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9292 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9293 $as_echo_n "(cached) " >&6
9296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9303 int e; return frexp (x, &e) > 0;
9308 if ac_fn_c_try_link
"$LINENO"; then :
9309 gl_cv_func_frexp_no_libm
=yes
9311 gl_cv_func_frexp_no_libm
=no
9313 rm -f core conftest.err conftest.
$ac_objext \
9314 conftest
$ac_exeext conftest.
$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9318 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9320 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9321 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9327 cat >>confdefs.h
<<_ACEOF
9328 #define HAVE_DECL_ALARM $ac_have_decl
9335 if test $gl_cv_func_frexp_no_libm = no
; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9337 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9338 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9339 $as_echo_n "(cached) " >&6
9344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9351 int e; return frexp (x, &e) > 0;
9356 if ac_fn_c_try_link
"$LINENO"; then :
9357 gl_cv_func_frexp_in_libm
=yes
9359 gl_cv_func_frexp_in_libm
=no
9361 rm -f core conftest.err conftest.
$ac_objext \
9362 conftest
$ac_exeext conftest.
$ac_ext
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9367 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9368 if test $gl_cv_func_frexp_in_libm = yes; then
9372 if test $gl_cv_func_frexp_no_libm = yes \
9373 ||
test $gl_cv_func_frexp_in_libm = yes; then
9375 LIBS
="$LIBS $FREXP_LIBM"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9380 $as_echo_n "checking whether frexp works... " >&6; }
9381 if ${gl_cv_func_frexp_works+:} false
; then :
9382 $as_echo_n "(cached) " >&6
9385 if test "$cross_compiling" = yes; then :
9387 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9388 mingw
*) # Guess yes with MSVC, no with mingw.
9389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9398 $EGREP "Good" >/dev
/null
2>&1; then :
9399 gl_cv_func_frexp_works
="guessing yes"
9401 gl_cv_func_frexp_works
="guessing no"
9406 *) gl_cv_func_frexp_works
="guessing yes" ;;
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9417 # include <signal.h>
9418 # include <unistd.h>
9420 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9421 ICC 10.0 has a bug when optimizing the expression -zero.
9422 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9423 to PowerPC on Mac OS X 10.5. */
9424 #if defined __hpux || defined __sgi || defined __ICC
9426 compute_minus_zero (void)
9428 return -DBL_MIN * DBL_MIN;
9430 # define minus_zero compute_minus_zero ()
9432 double minus_zero = -0.0;
9441 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9442 number. Let the test fail in this case. */
9443 signal (SIGALRM, SIG_DFL);
9446 /* Test on denormalized numbers. */
9447 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9452 double y = frexp (x, &exp);
9453 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9454 On NetBSD: y = 0.75. Correct: y = 0.5. */
9458 /* Test on infinite numbers. */
9462 double y = frexp (x, &exp);
9466 /* Test on negative zero. */
9470 double y = frexp (x, &exp);
9471 if (memcmp (&y, &x, sizeof x))
9477 if ac_fn_c_try_run
"$LINENO"; then :
9478 gl_cv_func_frexp_works
=yes
9480 gl_cv_func_frexp_works
=no
9482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9489 $as_echo "$gl_cv_func_frexp_works" >&6; }
9492 case "$gl_cv_func_frexp_works" in
9493 *yes) gl_func_frexp
=yes ;;
9494 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9499 if test $gl_func_frexp = yes; then
9501 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9508 $as_echo_n "checking whether long double and double are the same... " >&6; }
9509 if ${gl_cv_long_double_equals_double+:} false
; then :
9510 $as_echo_n "(cached) " >&6
9512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9518 typedef int check[sizeof (long double) == sizeof (double)
9519 && LDBL_MANT_DIG == DBL_MANT_DIG
9520 && LDBL_MAX_EXP == DBL_MAX_EXP
9521 && LDBL_MIN_EXP == DBL_MIN_EXP
9528 if ac_fn_c_try_compile
"$LINENO"; then :
9529 gl_cv_long_double_equals_double
=yes
9531 gl_cv_long_double_equals_double
=no
9533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9537 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9538 if test $gl_cv_long_double_equals_double = yes; then
9540 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9542 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9544 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9554 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9556 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9564 if test $HAVE_DECL_FREXPL = 1; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9567 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9568 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9569 $as_echo_n "(cached) " >&6
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9579 int e; return frexpl (x, &e) > 0;
9584 if ac_fn_c_try_link
"$LINENO"; then :
9585 gl_cv_func_frexpl_no_libm
=yes
9587 gl_cv_func_frexpl_no_libm
=no
9589 rm -f core conftest.err conftest.
$ac_objext \
9590 conftest
$ac_exeext conftest.
$ac_ext
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9594 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9596 if test $gl_cv_func_frexpl_no_libm = no
; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9598 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9599 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9600 $as_echo_n "(cached) " >&6
9605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9612 int e; return frexpl (x, &e) > 0;
9617 if ac_fn_c_try_link
"$LINENO"; then :
9618 gl_cv_func_frexpl_in_libm
=yes
9620 gl_cv_func_frexpl_in_libm
=no
9622 rm -f core conftest.err conftest.
$ac_objext \
9623 conftest
$ac_exeext conftest.
$ac_ext
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9628 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9629 if test $gl_cv_func_frexpl_in_libm = yes; then
9633 if test $gl_cv_func_frexpl_no_libm = yes \
9634 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9636 LIBS
="$LIBS $FREXPL_LIBM"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9640 $as_echo_n "checking whether frexpl works... " >&6; }
9641 if ${gl_cv_func_frexpl_works+:} false
; then :
9642 $as_echo_n "(cached) " >&6
9645 if test "$cross_compiling" = yes; then :
9648 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9649 gl_cv_func_frexpl_works
="guessing no";;
9650 *) gl_cv_func_frexpl_works
="guessing yes";;
9654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9659 /* Override the values of <float.h>, like done in float.in.h. */
9660 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9661 # undef LDBL_MIN_EXP
9662 # define LDBL_MIN_EXP (-16381)
9664 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9665 # undef LDBL_MIN_EXP
9666 # define LDBL_MIN_EXP (-16381)
9668 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9669 # undef LDBL_MIN_EXP
9670 # define LDBL_MIN_EXP DBL_MIN_EXP
9672 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9673 # if defined __GNUC__
9674 # undef LDBL_MIN_EXP
9675 # define LDBL_MIN_EXP DBL_MIN_EXP
9682 long double frexpl (long double, int *);
9686 volatile long double x;
9687 /* Test on finite numbers that fails on AIX 5.1. */
9695 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9696 function returns an invalid (incorrectly normalized) value: it returns
9697 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9698 but the correct result is
9699 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9703 long double y = frexpl (x, &exp);
9704 if (!(exp == 1 && y == 0.505L))
9707 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9708 LDBL_MAX_EXP = 16384.
9709 In the loop end test, we test x against Infinity, rather than comparing
9710 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9713 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
9724 /* Test on denormalized numbers. */
9727 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
9732 long double y = frexpl (x, &exp);
9733 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
9734 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
9735 if (exp != LDBL_MIN_EXP - 1)
9739 /* Test on infinite numbers. */
9743 long double y = frexpl (x, &exp);
9750 if ac_fn_c_try_run
"$LINENO"; then :
9751 gl_cv_func_frexpl_works
=yes
9753 gl_cv_func_frexpl_works
=no
9755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
9762 $as_echo "$gl_cv_func_frexpl_works" >&6; }
9765 case "$gl_cv_func_frexpl_works" in
9766 *yes) gl_func_frexpl
=yes ;;
9767 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
9772 if test $gl_func_frexpl = yes; then
9774 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
9778 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
9779 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
9781 FREXPL_LIBM
="$FREXP_LIBM"
9802 GNULIB_OVERRIDES_STRUCT_STAT
=0;
9823 REPLACE_UTIMENSAT
=0;
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9826 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9827 if ${ac_cv_header_stat_broken+:} false
; then :
9828 $as_echo_n "(cached) " >&6
9830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #include <sys/types.h>
9833 #include <sys/stat.h>
9835 #if defined S_ISBLK && defined S_IFDIR
9836 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9839 #if defined S_ISBLK && defined S_IFCHR
9840 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9843 #if defined S_ISLNK && defined S_IFREG
9844 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9847 #if defined S_ISSOCK && defined S_IFREG
9848 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9852 if ac_fn_c_try_compile
"$LINENO"; then :
9853 ac_cv_header_stat_broken
=no
9855 ac_cv_header_stat_broken
=yes
9857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9860 $as_echo "$ac_cv_header_stat_broken" >&6; }
9861 if test $ac_cv_header_stat_broken = yes; then
9863 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9874 $as_echo_n "checking for 64-bit off_t... " >&6; }
9875 if ${gl_cv_type_off_t_64+:} false
; then :
9876 $as_echo_n "(cached) " >&6
9878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880 #include <sys/types.h>
9881 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9891 if ac_fn_c_try_compile
"$LINENO"; then :
9892 gl_cv_type_off_t_64
=yes
9894 gl_cv_type_off_t_64
=no
9896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9900 $as_echo "$gl_cv_type_off_t_64" >&6; }
9901 if test $gl_cv_type_off_t_64 = no
; then
9902 WINDOWS_64_BIT_OFF_T
=1
9904 WINDOWS_64_BIT_OFF_T
=0
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
9907 $as_echo_n "checking for 64-bit st_size... " >&6; }
9908 if ${gl_cv_member_st_size_64+:} false
; then :
9909 $as_echo_n "(cached) " >&6
9911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 #include <sys/types.h>
9915 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
9925 if ac_fn_c_try_compile
"$LINENO"; then :
9926 gl_cv_member_st_size_64
=yes
9928 gl_cv_member_st_size_64
=no
9930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
9934 $as_echo "$gl_cv_member_st_size_64" >&6; }
9935 if test $gl_cv_member_st_size_64 = no
; then
9936 WINDOWS_64_BIT_ST_SIZE
=1
9938 WINDOWS_64_BIT_ST_SIZE
=0
9942 WINDOWS_64_BIT_OFF_T
=0
9943 WINDOWS_64_BIT_ST_SIZE
=0
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9948 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9949 if ${ac_cv_c_restrict+:} false
; then :
9950 $as_echo_n "(cached) " >&6
9953 # The order here caters to the fact that C++ does not require restrict.
9954 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 typedef int *int_ptr;
9958 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9959 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9960 int bar (int ip[$ac_kw]) { return ip[0]; }
9968 return foo (t) + bar (t);
9974 if ac_fn_c_try_compile
"$LINENO"; then :
9975 ac_cv_c_restrict
=$ac_kw
9977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9978 test "$ac_cv_c_restrict" != no
&& break
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9983 $as_echo "$ac_cv_c_restrict" >&6; }
9985 case $ac_cv_c_restrict in
9987 no
) $as_echo "#define restrict /**/" >>confdefs.h
9989 *) cat >>confdefs.h
<<_ACEOF
9990 #define restrict $ac_cv_c_restrict
10009 if test $gl_cv_have_include_next = yes; then
10010 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10013 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10014 if ${gl_cv_next_sys_stat_h+:} false
; then :
10015 $as_echo_n "(cached) " >&6
10018 if test $ac_cv_header_sys_stat_h = yes; then
10023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 #include <sys/stat.h>
10028 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10029 *) gl_absname_cpp
="$ac_cpp" ;;
10034 gl_dirsep_regex
='[/\\]'
10037 gl_dirsep_regex
='\/'
10040 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10041 gl_header_literal_regex
=`echo 'sys/stat.h' \
10042 | sed -e "$gl_make_literal_regex_sed"`
10043 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10044 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10050 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10051 sed -n "$gl_absolute_header_sed"`
10053 gl_header
=$gl_cv_absolute_sys_stat_h
10054 gl_cv_next_sys_stat_h
='"'$gl_header'"'
10056 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10062 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10064 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
10066 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10067 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10068 gl_next_as_first_directive
='<'sys
/stat.h
'>'
10070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10071 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
10073 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
10082 WINDOWS_STAT_TIMESPEC
=0
10091 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10092 #include <sys/stat.h>
10094 if test "x$ac_cv_type_nlink_t" = xyes
; then :
10098 $as_echo "#define nlink_t int" >>confdefs.h
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10111 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10112 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
10113 $as_echo_n "(cached) " >&6
10115 rm -f conftest.sym conftest.
file
10116 echo >conftest.
file
10117 if test "$cross_compiling" = yes; then :
10120 # Guess yes on Linux systems.
10121 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
10123 # Guess yes on glibc systems.
10124 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
10126 # Guess no on native Windows.
10127 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
10129 # If we don't know, obey --enable-cross-guesses.
10130 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
10134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 $ac_includes_default
10141 if (symlink ("conftest.file", "conftest.sym") != 0)
10143 /* Linux will dereference the symlink and fail, as required by
10144 POSIX. That is better in the sense that it means we will not
10145 have to compile and use the lstat wrapper. */
10146 return lstat ("conftest.sym/", &sbuf) == 0;
10152 if ac_fn_c_try_run
"$LINENO"; then :
10153 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
10155 gl_cv_func_lstat_dereferences_slashed_symlink
=no
10157 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10158 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10161 rm -f conftest.sym conftest.
file
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
10165 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10166 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
10169 cat >>confdefs.h
<<_ACEOF
10170 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10181 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
10182 if ${gl_cv_func_getcwd_null+:} false
; then :
10183 $as_echo_n "(cached) " >&6
10185 if test "$cross_compiling" = yes; then :
10187 # Guess yes on glibc systems.
10188 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
10189 # Guess yes on musl systems.
10190 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
10191 # Guess yes on Cygwin.
10192 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
10193 # If we don't know, obey --enable-cross-guesses.
10194 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
10198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 # include <stdlib.h>
10203 # include <unistd.h>
10204 # else /* on Windows with MSVC */
10205 # include <direct.h>
10215 #if defined _WIN32 && ! defined __CYGWIN__
10216 /* mingw cwd does not start with '/', but getcwd does allocate.
10217 However, mingw fails to honor non-zero size. */
10219 if (chdir ("/") != 0)
10223 char *f = getcwd (NULL, 0);
10227 { free (f); return 3; }
10229 { free (f); return 4; }
10239 if ac_fn_c_try_run
"$LINENO"; then :
10240 gl_cv_func_getcwd_null
=yes
10242 gl_cv_func_getcwd_null
=no
10244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
10250 $as_echo "$gl_cv_func_getcwd_null" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
10254 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
10255 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
10256 $as_echo_n "(cached) " >&6
10258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 #include <unistd.h>
10268 char *getcwd (char *, size_t);
10275 if ac_fn_c_try_compile
"$LINENO"; then :
10276 gl_cv_func_getcwd_posix_signature
=yes
10278 gl_cv_func_getcwd_posix_signature
=no
10280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
10284 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
10286 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
10287 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
10293 cat >>confdefs.h
<<_ACEOF
10294 #define HAVE_DECL_GETCWD $ac_have_decl
10299 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
10300 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
10306 cat >>confdefs.h
<<_ACEOF
10307 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
10310 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
10311 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10317 cat >>confdefs.h
<<_ACEOF
10318 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10323 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10324 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10330 cat >>confdefs.h
<<_ACEOF
10331 #define HAVE_DECL_GETLOGIN $ac_have_decl
10338 LIB_GETLOGIN
='-ladvapi32' ;;
10349 GNULIB_GETRANDOM
=0;
10351 REPLACE_GETRANDOM
=0;
10356 GNULIB_GETTIMEOFDAY
=0;
10357 HAVE_GETTIMEOFDAY
=1;
10358 HAVE_STRUCT_TIMEVAL
=1;
10360 REPLACE_GETTIMEOFDAY
=0;
10361 REPLACE_STRUCT_TIMEVAL
=0;
10378 if test $gl_cv_have_include_next = yes; then
10379 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10382 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10383 if ${gl_cv_next_sys_time_h+:} false
; then :
10384 $as_echo_n "(cached) " >&6
10387 if test $ac_cv_header_sys_time_h = yes; then
10392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 #include <sys/time.h>
10397 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10398 *) gl_absname_cpp
="$ac_cpp" ;;
10403 gl_dirsep_regex
='[/\\]'
10406 gl_dirsep_regex
='\/'
10409 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10410 gl_header_literal_regex
=`echo 'sys/time.h' \
10411 | sed -e "$gl_make_literal_regex_sed"`
10412 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10413 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10419 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10420 sed -n "$gl_absolute_header_sed"`
10422 gl_header
=$gl_cv_absolute_sys_time_h
10423 gl_cv_next_sys_time_h
='"'$gl_header'"'
10425 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10431 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10433 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10435 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10437 gl_next_as_first_directive
='<'sys
/time.h
'>'
10439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10440 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10442 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10448 if test $ac_cv_header_sys_time_h != yes; then
10456 if test $ac_cv_header_sys_socket_h != yes; then
10457 for ac_header
in winsock2.h
10459 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10460 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10461 cat >>confdefs.h
<<_ACEOF
10462 #define HAVE_WINSOCK2_H 1
10470 if test "$ac_cv_header_winsock2_h" = yes; then
10472 UNISTD_H_HAVE_WINSOCK2_H
=1
10473 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10480 $as_echo_n "checking for struct timeval... " >&6; }
10481 if ${gl_cv_sys_struct_timeval+:} false
; then :
10482 $as_echo_n "(cached) " >&6
10484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486 #if HAVE_SYS_TIME_H
10487 #include <sys/time.h>
10490 #if HAVE_WINSOCK2_H
10491 # include <winsock2.h>
10497 static struct timeval x; x.tv_sec = x.tv_usec;
10502 if ac_fn_c_try_compile
"$LINENO"; then :
10503 gl_cv_sys_struct_timeval
=yes
10505 gl_cv_sys_struct_timeval
=no
10507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10511 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10512 if test $gl_cv_sys_struct_timeval != yes; then
10513 HAVE_STRUCT_TIMEVAL
=0
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10516 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10517 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10518 $as_echo_n "(cached) " >&6
10520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522 #if HAVE_SYS_TIME_H
10523 #include <sys/time.h>
10526 #if HAVE_WINSOCK2_H
10527 # include <winsock2.h>
10533 static struct timeval x;
10534 typedef int verify_tv_sec_type[
10535 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10542 if ac_fn_c_try_compile
"$LINENO"; then :
10543 gl_cv_sys_struct_timeval_tv_sec
=yes
10545 gl_cv_sys_struct_timeval_tv_sec
=no
10547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10551 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10552 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10553 REPLACE_STRUCT_TIMEVAL
=1
10567 NEED_LOCALTIME_BUFFER
=0
10572 GNULIB_LOCALTIME
=0;
10573 GNULIB_NANOSLEEP
=0;
10580 HAVE_DECL_LOCALTIME_R
=1;
10586 REPLACE_CTIME
=GNULIB_PORTCHECK
;
10587 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
10588 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
10589 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
10590 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
10591 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
10592 REPLACE_TZSET
=GNULIB_PORTCHECK
;
10594 : ${GNULIB_GETTIMEOFDAY=0};
10596 REPLACE_LOCALTIME
=0;
10601 HAVE_GLOB_PATTERN_P
=1;
10603 REPLACE_GLOB_PATTERN_P
=0;
10621 if test $gl_cv_have_include_next = yes; then
10622 gl_cv_next_glob_h
='<'glob.h
'>'
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10625 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10626 if ${gl_cv_next_glob_h+:} false
; then :
10627 $as_echo_n "(cached) " >&6
10630 if test $ac_cv_header_glob_h = yes; then
10635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10640 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10641 *) gl_absname_cpp
="$ac_cpp" ;;
10646 gl_dirsep_regex
='[/\\]'
10649 gl_dirsep_regex
='\/'
10652 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10653 gl_header_literal_regex
=`echo 'glob.h' \
10654 | sed -e "$gl_make_literal_regex_sed"`
10655 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10656 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10662 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10663 sed -n "$gl_absolute_header_sed"`
10665 gl_header
=$gl_cv_absolute_glob_h
10666 gl_cv_next_glob_h
='"'$gl_header'"'
10668 gl_cv_next_glob_h
='<'glob.h
'>'
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
10674 $as_echo "$gl_cv_next_glob_h" >&6; }
10676 NEXT_GLOB_H
=$gl_cv_next_glob_h
10678 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10680 gl_next_as_first_directive
='<'glob.h
'>'
10682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10683 gl_next_as_first_directive
=$gl_cv_next_glob_h
10685 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
10691 if test $ac_cv_header_glob_h = yes; then
10702 if test $ac_cv_header_glob_h != yes; then
10708 if test -n "$GLOB_H"; then
10709 GL_GENERATE_GLOB_H_TRUE
=
10710 GL_GENERATE_GLOB_H_FALSE
='#'
10712 GL_GENERATE_GLOB_H_TRUE
='#'
10713 GL_GENERATE_GLOB_H_FALSE
=
10731 if test -z "$gl_pthreadlib_body_done"; then
10735 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10736 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
10737 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10738 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10739 gl_have_pthread_h
=yes
10741 gl_have_pthread_h
=no
10745 if test "$gl_have_pthread_h" = yes; then
10746 # Other possible tests:
10747 # -lpthreads (FSU threads, PCthreads)
10749 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10750 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10751 # the second one only in libpthread, and lock.c needs it.
10753 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
10754 # needs -pthread for some reason. See:
10755 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
10757 for gl_pthread
in '' '-pthread'; do
10758 LIBS
="$LIBS $gl_pthread"
10759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 #include <pthread.h>
10763 pthread_mutexattr_t ma;
10768 pthread_mutex_lock (&m);
10769 pthread_mutexattr_init (&ma);
10774 if ac_fn_c_try_link
"$LINENO"; then :
10776 LIBPTHREAD
=$gl_pthread
10777 LIBPMULTITHREAD
=$gl_pthread
10779 rm -f core conftest.err conftest.
$ac_objext \
10780 conftest
$ac_exeext conftest.
$ac_ext
10782 test $gl_pthread_api = yes && break
10785 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
10786 # since it is defined as a macro on OSF/1.)
10787 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
10788 # The program links fine without libpthread. But it may actually
10789 # need to link with libpthread in order to create multiple threads.
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10791 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10792 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
10793 $as_echo_n "(cached) " >&6
10795 ac_check_lib_save_LIBS
=$LIBS
10796 LIBS
="-lpthread $LIBS"
10797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10806 char pthread_kill ();
10810 return pthread_kill ();
10815 if ac_fn_c_try_link
"$LINENO"; then :
10816 ac_cv_lib_pthread_pthread_kill
=yes
10818 ac_cv_lib_pthread_pthread_kill
=no
10820 rm -f core conftest.err conftest.
$ac_objext \
10821 conftest
$ac_exeext conftest.
$ac_ext
10822 LIBS
=$ac_check_lib_save_LIBS
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10825 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10826 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
10827 LIBPMULTITHREAD
=-lpthread
10828 # On Solaris and HP-UX, most pthread functions exist also in libc.
10829 # Therefore pthread_in_use() needs to actually try to create a
10830 # thread: pthread_create from libc will fail, whereas
10831 # pthread_create will actually create a thread.
10832 # On Solaris 10 or newer, this test is no longer needed, because
10833 # libc contains the fully functional pthread functions.
10835 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
10837 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
10843 elif test $gl_pthread_api != yes; then
10844 # Some library is needed. Try libpthread and libc_r.
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10846 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10847 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
10848 $as_echo_n "(cached) " >&6
10850 ac_check_lib_save_LIBS
=$LIBS
10851 LIBS
="-lpthread $LIBS"
10852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10855 /* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
10861 char pthread_kill ();
10865 return pthread_kill ();
10870 if ac_fn_c_try_link
"$LINENO"; then :
10871 ac_cv_lib_pthread_pthread_kill
=yes
10873 ac_cv_lib_pthread_pthread_kill
=no
10875 rm -f core conftest.err conftest.
$ac_objext \
10876 conftest
$ac_exeext conftest.
$ac_ext
10877 LIBS
=$ac_check_lib_save_LIBS
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10880 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10881 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
10883 LIBPTHREAD
=-lpthread
10884 LIBPMULTITHREAD
=-lpthread
10887 if test $gl_pthread_api != yes; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
10890 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
10891 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
10892 $as_echo_n "(cached) " >&6
10894 ac_check_lib_save_LIBS
=$LIBS
10896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10899 /* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10905 char pthread_kill ();
10909 return pthread_kill ();
10914 if ac_fn_c_try_link
"$LINENO"; then :
10915 ac_cv_lib_c_r_pthread_kill
=yes
10917 ac_cv_lib_c_r_pthread_kill
=no
10919 rm -f core conftest.err conftest.
$ac_objext \
10920 conftest
$ac_exeext conftest.
$ac_ext
10921 LIBS
=$ac_check_lib_save_LIBS
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
10924 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
10925 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
10928 LIBPMULTITHREAD
=-lc_r
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
10935 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
10937 $as_echo "$gl_pthread_api" >&6; }
10940 if test $gl_pthread_api = yes; then
10942 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10957 if ac_fn_c_try_link
"$LINENO"; then :
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
10962 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
10963 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
10964 $as_echo_n "(cached) " >&6
10966 ac_check_lib_save_LIBS
=$LIBS
10968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10977 char sched_yield ();
10981 return sched_yield ();
10986 if ac_fn_c_try_link
"$LINENO"; then :
10987 ac_cv_lib_rt_sched_yield
=yes
10989 ac_cv_lib_rt_sched_yield
=no
10991 rm -f core conftest.err conftest.
$ac_objext \
10992 conftest
$ac_exeext conftest.
$ac_ext
10993 LIBS
=$ac_check_lib_save_LIBS
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
10996 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
10997 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
10998 LIB_SCHED_YIELD
=-lrt
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
11001 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
11002 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
11003 $as_echo_n "(cached) " >&6
11005 ac_check_lib_save_LIBS
=$LIBS
11006 LIBS
="-lposix4 $LIBS"
11007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11016 char sched_yield ();
11020 return sched_yield ();
11025 if ac_fn_c_try_link
"$LINENO"; then :
11026 ac_cv_lib_posix4_sched_yield
=yes
11028 ac_cv_lib_posix4_sched_yield
=no
11030 rm -f core conftest.err conftest.
$ac_objext \
11031 conftest
$ac_exeext conftest.
$ac_ext
11032 LIBS
=$ac_check_lib_save_LIBS
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
11035 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
11036 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
11037 LIB_SCHED_YIELD
=-lposix4
11044 rm -f core conftest.err conftest.
$ac_objext \
11045 conftest
$ac_exeext conftest.
$ac_ext
11048 gl_pthreadlib_body_done
=done
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
11060 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
11061 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
11062 $as_echo_n "(cached) " >&6
11065 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
11066 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
11067 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
11068 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
11069 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
11070 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
11071 # If we don't know, obey --enable-cross-guesses.
11073 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
11078 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
11082 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11083 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
11087 case "$gl_cv_func_setlocale_null_all_mtsafe" in
11088 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
11089 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
11092 cat >>confdefs.h
<<_ACEOF
11093 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
11098 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
11099 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
11100 $as_echo_n "(cached) " >&6
11103 # Guess no on OpenBSD, AIX.
11105 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
11106 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
11107 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
11108 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
11109 # If we don't know, obey --enable-cross-guesses.
11111 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
11116 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
11120 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11121 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
11125 case "$gl_cv_func_setlocale_null_one_mtsafe" in
11126 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
11127 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
11130 cat >>confdefs.h
<<_ACEOF
11131 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
11135 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
11137 mingw
*) LIB_SETLOCALE_NULL
= ;;
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11142 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11143 if ${gl_cv_have_weak+:} false
; then :
11144 $as_echo_n "(cached) " >&6
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 extern void xyzzy ();
11159 if ac_fn_c_try_link
"$LINENO"; then :
11160 gl_cv_have_weak
=maybe
11162 rm -f core conftest.err conftest.
$ac_objext \
11163 conftest
$ac_exeext conftest.
$ac_ext
11164 if test $gl_cv_have_weak = maybe
; then
11165 if test "$cross_compiling" = yes; then :
11166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 Extensible Linking Format
11173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11174 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
11175 gl_cv_have_weak
="guessing yes"
11177 gl_cv_have_weak
="guessing no"
11183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11190 return (fputs == NULL);
11193 if ac_fn_c_try_run
"$LINENO"; then :
11194 gl_cv_have_weak
=yes
11198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11203 case " $LDFLAGS " in
11204 *" -static "*) gl_cv_have_weak
=no
;;
11206 case "$gl_cv_have_weak" in
11209 freebsd
* | dragonfly
*)
11211 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
11212 cat <<EOF > conftest2.c
11213 #include <pthread.h>
11214 #pragma weak pthread_mutexattr_gettype
11217 return (pthread_mutexattr_gettype != NULL);
11220 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
11221 || gl_cv_have_weak
=no
11222 rm -f conftest1.c libempty.so conftest2.c conftest
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11230 $as_echo "$gl_cv_have_weak" >&6; }
11231 case "$gl_cv_have_weak" in
11234 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11239 case "$gl_cv_have_weak" in
11240 *yes) LIB_SETLOCALE_NULL
= ;;
11241 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
11246 LIB_SETLOCALE_NULL
=
11257 GNULIB_GETPEERNAME
=0;
11258 GNULIB_GETSOCKNAME
=0;
11259 GNULIB_GETSOCKOPT
=0;
11265 GNULIB_SETSOCKOPT
=0;
11268 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
11269 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
11271 HAVE_SA_FAMILY_T
=1;
11281 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
11287 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
11288 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
11289 $as_echo_n "(cached) " >&6
11292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 #include <sys/socket.h>
11303 if ac_fn_c_try_compile
"$LINENO"; then :
11304 gl_cv_header_sys_socket_h_selfcontained
=yes
11306 gl_cv_header_sys_socket_h_selfcontained
=no
11308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
11312 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
11313 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
11314 for ac_func
in shutdown
11316 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
11317 if test "x$ac_cv_func_shutdown" = xyes
; then :
11318 cat >>confdefs.h
<<_ACEOF
11319 #define HAVE_SHUTDOWN 1
11325 if test $ac_cv_func_shutdown = yes; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
11327 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
11328 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
11329 $as_echo_n "(cached) " >&6
11332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334 #include <sys/socket.h>
11338 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
11343 if ac_fn_c_try_compile
"$LINENO"; then :
11344 gl_cv_header_sys_socket_h_shut
=yes
11346 gl_cv_header_sys_socket_h_shut
=no
11348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
11352 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
11353 if test $gl_cv_header_sys_socket_h_shut = no
; then
11354 SYS_SOCKET_H
='sys/socket.h'
11358 # We need to check for ws2tcpip.h now.
11370 if test $gl_cv_have_include_next = yes; then
11371 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
11374 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
11375 if ${gl_cv_next_sys_socket_h+:} false
; then :
11376 $as_echo_n "(cached) " >&6
11379 if test $ac_cv_header_sys_socket_h = yes; then
11384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386 #include <sys/socket.h>
11389 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11390 *) gl_absname_cpp
="$ac_cpp" ;;
11395 gl_dirsep_regex
='[/\\]'
11398 gl_dirsep_regex
='\/'
11401 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11402 gl_header_literal_regex
=`echo 'sys/socket.h' \
11403 | sed -e "$gl_make_literal_regex_sed"`
11404 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11405 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11411 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11412 sed -n "$gl_absolute_header_sed"`
11414 gl_header
=$gl_cv_absolute_sys_socket_h
11415 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11417 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11423 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11425 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11427 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11428 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11429 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11432 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11434 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11439 if test $ac_cv_header_sys_socket_h = yes; then
11440 HAVE_SYS_SOCKET_H
=1
11442 HAVE_SYS_SOCKET_H
=0
11447 if test $ac_cv_header_sys_socket_h = yes; then
11450 if test $ac_cv_header_ws2tcpip_h = yes; then
11459 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11460 /* sys/types.h is not needed according to POSIX, but the
11461 sys/socket.h in i386-unknown-freebsd4.10 and
11462 powerpc-apple-darwin5.5 required it. */
11463 #include <sys/types.h>
11464 #ifdef HAVE_SYS_SOCKET_H
11465 #include <sys/socket.h>
11467 #ifdef HAVE_WS2TCPIP_H
11468 #include <ws2tcpip.h>
11472 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11474 cat >>confdefs.h
<<_ACEOF
11475 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11480 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11481 /* sys/types.h is not needed according to POSIX, but the
11482 sys/socket.h in i386-unknown-freebsd4.10 and
11483 powerpc-apple-darwin5.5 required it. */
11484 #include <sys/types.h>
11485 #ifdef HAVE_SYS_SOCKET_H
11486 #include <sys/socket.h>
11488 #ifdef HAVE_WS2TCPIP_H
11489 #include <ws2tcpip.h>
11493 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11495 cat >>confdefs.h
<<_ACEOF
11496 #define HAVE_SA_FAMILY_T 1
11502 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11503 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11505 if test $ac_cv_type_sa_family_t = no
; then
11508 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11509 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11510 #ifdef HAVE_SYS_SOCKET_H
11511 #include <sys/socket.h>
11513 #ifdef HAVE_WS2TCPIP_H
11514 #include <ws2tcpip.h>
11518 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11520 cat >>confdefs.h
<<_ACEOF
11521 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11526 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11530 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11531 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11532 SYS_SOCKET_H
='sys/socket.h'
11538 if test $ac_cv_header_sys_socket_h != yes; then
11539 for ac_header
in winsock2.h
11541 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11542 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11543 cat >>confdefs.h
<<_ACEOF
11544 #define HAVE_WINSOCK2_H 1
11552 if test "$ac_cv_header_winsock2_h" = yes; then
11554 UNISTD_H_HAVE_WINSOCK2_H
=1
11555 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11575 $as_echo_n "checking for IPv4 sockets... " >&6; }
11576 if ${gl_cv_socket_ipv4+:} false
; then :
11577 $as_echo_n "(cached) " >&6
11579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11581 #include <sys/types.h>
11582 #ifdef HAVE_SYS_SOCKET_H
11583 #include <sys/socket.h>
11585 #ifdef HAVE_NETINET_IN_H
11586 #include <netinet/in.h>
11588 #ifdef HAVE_WINSOCK2_H
11589 #include <winsock2.h>
11594 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11595 if (&x && &y && &z) return 0;
11600 if ac_fn_c_try_compile
"$LINENO"; then :
11601 gl_cv_socket_ipv4
=yes
11603 gl_cv_socket_ipv4
=no
11605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11608 $as_echo "$gl_cv_socket_ipv4" >&6; }
11609 if test $gl_cv_socket_ipv4 = yes; then
11611 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11616 $as_echo_n "checking for IPv6 sockets... " >&6; }
11617 if ${gl_cv_socket_ipv6+:} false
; then :
11618 $as_echo_n "(cached) " >&6
11620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 #include <sys/types.h>
11623 #ifdef HAVE_SYS_SOCKET_H
11624 #include <sys/socket.h>
11626 #ifdef HAVE_NETINET_IN_H
11627 #include <netinet/in.h>
11629 #ifdef HAVE_WINSOCK2_H
11630 #include <winsock2.h>
11632 #ifdef HAVE_WS2TCPIP_H
11633 #include <ws2tcpip.h>
11638 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11639 if (&x && &y && &z) return 0;
11644 if ac_fn_c_try_compile
"$LINENO"; then :
11645 gl_cv_socket_ipv6
=yes
11647 gl_cv_socket_ipv6
=no
11649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
11652 $as_echo "$gl_cv_socket_ipv6" >&6; }
11653 if test $gl_cv_socket_ipv6 = yes; then
11655 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11671 if test $gl_cv_have_include_next = yes; then
11672 gl_cv_next_limits_h
='<'limits.h
'>'
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11675 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11676 if ${gl_cv_next_limits_h+:} false
; then :
11677 $as_echo_n "(cached) " >&6
11680 if test $ac_cv_header_limits_h = yes; then
11685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 #include <limits.h>
11690 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11691 *) gl_absname_cpp
="$ac_cpp" ;;
11696 gl_dirsep_regex
='[/\\]'
11699 gl_dirsep_regex
='\/'
11702 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11703 gl_header_literal_regex
=`echo 'limits.h' \
11704 | sed -e "$gl_make_literal_regex_sed"`
11705 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11706 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11712 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11713 sed -n "$gl_absolute_header_sed"`
11715 gl_header
=$gl_cv_absolute_limits_h
11716 gl_cv_next_limits_h
='"'$gl_header'"'
11718 gl_cv_next_limits_h
='<'limits.h
'>'
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11724 $as_echo "$gl_cv_next_limits_h" >&6; }
11726 NEXT_LIMITS_H
=$gl_cv_next_limits_h
11728 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11730 gl_next_as_first_directive
='<'limits.h
'>'
11732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11733 gl_next_as_first_directive
=$gl_cv_next_limits_h
11735 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11742 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11743 if ${gl_cv_header_limits_width+:} false
; then :
11744 $as_echo_n "(cached) " >&6
11746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11749 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11751 #include <limits.h>
11752 long long llm = LLONG_MAX;
11754 int ullw = ULLONG_WIDTH;
11764 if ac_fn_c_try_compile
"$LINENO"; then :
11765 gl_cv_header_limits_width
=yes
11767 gl_cv_header_limits_width
=no
11769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11772 $as_echo "$gl_cv_header_limits_width" >&6; }
11773 if test "$gl_cv_header_limits_width" = yes; then
11779 if test -n "$LIMITS_H"; then
11780 GL_GENERATE_LIMITS_H_TRUE
=
11781 GL_GENERATE_LIMITS_H_FALSE
='#'
11783 GL_GENERATE_LIMITS_H_TRUE
='#'
11784 GL_GENERATE_LIMITS_H_FALSE
=
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11790 $as_echo_n "checking for wint_t... " >&6; }
11791 if ${gt_cv_c_wint_t+:} false
; then :
11792 $as_echo_n "(cached) " >&6
11794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11797 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11799 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11800 before <wchar.h>. */
11801 #include <stddef.h>
11805 wint_t foo = (wchar_t)'\0';
11814 if ac_fn_c_try_compile
"$LINENO"; then :
11819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11822 $as_echo "$gt_cv_c_wint_t" >&6; }
11823 if test $gt_cv_c_wint_t = yes; then
11825 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11829 $as_echo_n "checking whether wint_t is too small... " >&6; }
11830 if ${gl_cv_type_wint_t_too_small+:} false
; then :
11831 $as_echo_n "(cached) " >&6
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11838 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11839 included before <wchar.h>. */
11840 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11841 # include <stddef.h>
11842 # include <stdio.h>
11846 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11856 if ac_fn_c_try_compile
"$LINENO"; then :
11857 gl_cv_type_wint_t_too_small
=no
11859 gl_cv_type_wint_t_too_small
=yes
11861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11864 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
11865 if test $gl_cv_type_wint_t_too_small = yes; then
11866 GNULIB_OVERRIDES_WINT_T
=1
11868 GNULIB_OVERRIDES_WINT_T
=0
11871 GNULIB_OVERRIDES_WINT_T
=0
11880 gl_cv_c_multiarch
=no
11881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 #ifndef __APPLE_CC__
11884 not a universal capable compiler
11889 if ac_fn_c_try_compile
"$LINENO"; then :
11893 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11894 if test -n "$prev"; then
11896 i?
86 | x86_64 | ppc | ppc64
)
11897 if test -z "$arch" ||
test "$arch" = "$word"; then
11900 gl_cv_c_multiarch
=yes
11906 if test "x$word" = "x-arch"; then
11913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11914 if test $gl_cv_c_multiarch = yes; then
11915 APPLE_UNIVERSAL_BUILD
=1
11917 APPLE_UNIVERSAL_BUILD
=0
11927 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11930 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11934 if test $ac_cv_header_wchar_h = yes; then
11941 if test $ac_cv_header_inttypes_h = yes; then
11948 if test $ac_cv_header_sys_types_h = yes; then
11964 if test $gl_cv_have_include_next = yes; then
11965 gl_cv_next_stdint_h
='<'stdint.h
'>'
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
11968 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11969 if ${gl_cv_next_stdint_h+:} false
; then :
11970 $as_echo_n "(cached) " >&6
11973 if test $ac_cv_header_stdint_h = yes; then
11978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #include <stdint.h>
11983 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11984 *) gl_absname_cpp
="$ac_cpp" ;;
11989 gl_dirsep_regex
='[/\\]'
11992 gl_dirsep_regex
='\/'
11995 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11996 gl_header_literal_regex
=`echo 'stdint.h' \
11997 | sed -e "$gl_make_literal_regex_sed"`
11998 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11999 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12005 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12006 sed -n "$gl_absolute_header_sed"`
12008 gl_header
=$gl_cv_absolute_stdint_h
12009 gl_cv_next_stdint_h
='"'$gl_header'"'
12011 gl_cv_next_stdint_h
='<'stdint.h
'>'
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12017 $as_echo "$gl_cv_next_stdint_h" >&6; }
12019 NEXT_STDINT_H
=$gl_cv_next_stdint_h
12021 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12023 gl_next_as_first_directive
='<'stdint.h
'>'
12025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12026 gl_next_as_first_directive
=$gl_cv_next_stdint_h
12028 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
12033 if test $ac_cv_header_stdint_h = yes; then
12040 if test $ac_cv_header_stdint_h = yes; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12042 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12043 if ${gl_cv_header_working_stdint_h+:} false
; then :
12044 $as_echo_n "(cached) " >&6
12046 gl_cv_header_working_stdint_h
=no
12047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12051 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12052 #define __STDC_CONSTANT_MACROS 1
12053 #define __STDC_LIMIT_MACROS 1
12054 #include <stdint.h>
12055 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12056 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12057 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12061 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12062 included before <wchar.h>. */
12063 #include <stddef.h>
12064 #include <signal.h>
12066 # include <stdio.h>
12068 # include <wchar.h>
12073 int8_t a1 = INT8_MAX;
12074 int8_t a1min = INT8_MIN;
12077 int16_t a2 = INT16_MAX;
12078 int16_t a2min = INT16_MIN;
12081 int32_t a3 = INT32_MAX;
12082 int32_t a3min = INT32_MIN;
12085 int64_t a4 = INT64_MAX;
12086 int64_t a4min = INT64_MIN;
12089 uint8_t b1 = UINT8_MAX;
12091 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12094 uint16_t b2 = UINT16_MAX;
12097 uint32_t b3 = UINT32_MAX;
12100 uint64_t b4 = UINT64_MAX;
12102 int_least8_t c1 = INT8_C (0x7f);
12103 int_least8_t c1max = INT_LEAST8_MAX;
12104 int_least8_t c1min = INT_LEAST8_MIN;
12105 int_least16_t c2 = INT16_C (0x7fff);
12106 int_least16_t c2max = INT_LEAST16_MAX;
12107 int_least16_t c2min = INT_LEAST16_MIN;
12108 int_least32_t c3 = INT32_C (0x7fffffff);
12109 int_least32_t c3max = INT_LEAST32_MAX;
12110 int_least32_t c3min = INT_LEAST32_MIN;
12111 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12112 int_least64_t c4max = INT_LEAST64_MAX;
12113 int_least64_t c4min = INT_LEAST64_MIN;
12114 uint_least8_t d1 = UINT8_C (0xff);
12115 uint_least8_t d1max = UINT_LEAST8_MAX;
12116 uint_least16_t d2 = UINT16_C (0xffff);
12117 uint_least16_t d2max = UINT_LEAST16_MAX;
12118 uint_least32_t d3 = UINT32_C (0xffffffff);
12119 uint_least32_t d3max = UINT_LEAST32_MAX;
12120 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12121 uint_least64_t d4max = UINT_LEAST64_MAX;
12122 int_fast8_t e1 = INT_FAST8_MAX;
12123 int_fast8_t e1min = INT_FAST8_MIN;
12124 int_fast16_t e2 = INT_FAST16_MAX;
12125 int_fast16_t e2min = INT_FAST16_MIN;
12126 int_fast32_t e3 = INT_FAST32_MAX;
12127 int_fast32_t e3min = INT_FAST32_MIN;
12128 int_fast64_t e4 = INT_FAST64_MAX;
12129 int_fast64_t e4min = INT_FAST64_MIN;
12130 uint_fast8_t f1 = UINT_FAST8_MAX;
12131 uint_fast16_t f2 = UINT_FAST16_MAX;
12132 uint_fast32_t f3 = UINT_FAST32_MAX;
12133 uint_fast64_t f4 = UINT_FAST64_MAX;
12135 intptr_t g = INTPTR_MAX;
12136 intptr_t gmin = INTPTR_MIN;
12139 uintptr_t h = UINTPTR_MAX;
12141 intmax_t i = INTMAX_MAX;
12142 uintmax_t j = UINTMAX_MAX;
12144 /* Check that SIZE_MAX has the correct type, if possible. */
12145 #if 201112 <= __STDC_VERSION__
12146 int k = _Generic (SIZE_MAX, size_t: 0);
12147 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
12148 || (0x5110 <= __SUNPRO_C && !__STDC__))
12150 extern __typeof__ (SIZE_MAX) k;
12153 #include <limits.h> /* for CHAR_BIT */
12154 #define TYPE_MINIMUM(t) \
12155 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12156 #define TYPE_MAXIMUM(t) \
12157 ((t) ((t) 0 < (t) -1 \
12159 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12162 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12163 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12165 /* Detect bug in FreeBSD 6.0 / ia64. */
12166 int check_SIG_ATOMIC:
12167 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12168 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12170 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12172 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12173 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12175 /* Detect bug in mingw. */
12177 WINT_MIN == TYPE_MINIMUM (wint_t)
12178 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12181 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12183 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12184 int check_UINT16_C:
12185 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12187 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12189 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12192 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12195 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12198 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12200 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12201 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12202 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12203 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12204 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12205 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12206 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12207 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12208 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12209 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12210 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12221 if ac_fn_c_try_compile
"$LINENO"; then :
12222 if test "$cross_compiling" = yes; then :
12224 # Guess yes on native Windows.
12225 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12226 # In general, assume it works.
12227 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12235 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12236 #define __STDC_CONSTANT_MACROS 1
12237 #define __STDC_LIMIT_MACROS 1
12238 #include <stdint.h>
12241 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12242 included before <wchar.h>. */
12243 #include <stddef.h>
12244 #include <signal.h>
12246 # include <stdio.h>
12248 # include <wchar.h>
12253 #include <string.h>
12254 #define MVAL(macro) MVAL1(macro)
12255 #define MVAL1(expression) #expression
12256 static const char *macro_values[] =
12290 for (mv = macro_values; *mv != NULL; mv++)
12292 const char *value = *mv;
12293 /* Test whether it looks like a cast expression. */
12294 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12295 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12296 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12297 || strncmp (value, "((int)"/*)*/, 6) == 0
12298 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12299 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12300 return mv - macro_values + 1;
12308 if ac_fn_c_try_run
"$LINENO"; then :
12309 gl_cv_header_working_stdint_h
=yes
12311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12321 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12324 HAVE_C99_STDINT_H
=0
12325 HAVE_SYS_BITYPES_H
=0
12326 HAVE_SYS_INTTYPES_H
=0
12328 case "$gl_cv_header_working_stdint_h" in
12330 HAVE_C99_STDINT_H
=1
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
12332 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
12333 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
12334 $as_echo_n "(cached) " >&6
12336 gl_cv_header_stdint_predates_cxx11_h
=yes
12337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12341 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12342 #include <stdint.h>
12345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12346 included before <wchar.h>. */
12347 #include <stddef.h>
12348 #include <signal.h>
12350 # include <stdio.h>
12352 # include <wchar.h>
12356 intmax_t im = INTMAX_MAX;
12357 int32_t i32 = INT32_C (0x7fffffff);
12367 if ac_fn_c_try_compile
"$LINENO"; then :
12368 gl_cv_header_stdint_predates_cxx11_h
=no
12370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
12373 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
12375 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
12377 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12380 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12384 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12385 if ${gl_cv_header_stdint_width+:} false
; then :
12386 $as_echo_n "(cached) " >&6
12388 gl_cv_header_stdint_width
=no
12389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12392 /* Work if build is not clean. */
12393 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12394 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12395 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12397 #include <stdint.h>
12399 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12400 included before <wchar.h>. */
12401 #include <stddef.h>
12402 #include <signal.h>
12404 # include <stdio.h>
12406 # include <wchar.h>
12409 int iw = UINTMAX_WIDTH;
12419 if ac_fn_c_try_compile
"$LINENO"; then :
12420 gl_cv_header_stdint_width
=yes
12422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12425 $as_echo "$gl_cv_header_stdint_width" >&6; }
12426 if test "$gl_cv_header_stdint_width" = yes; then
12431 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12433 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12434 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12435 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12436 cat >>confdefs.h
<<_ACEOF
12437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12444 if test $ac_cv_header_sys_inttypes_h = yes; then
12445 HAVE_SYS_INTTYPES_H
=1
12447 if test $ac_cv_header_sys_bitypes_h = yes; then
12448 HAVE_SYS_BITYPES_H
=1
12452 if test $APPLE_UNIVERSAL_BUILD = 0; then
12455 for gltype
in ptrdiff_t size_t
; do
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12457 $as_echo_n "checking for bit size of $gltype... " >&6; }
12458 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12459 $as_echo_n "(cached) " >&6
12461 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12462 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12463 included before <wchar.h>. */
12464 #include <stddef.h>
12465 #include <signal.h>
12467 # include <stdio.h>
12469 # include <wchar.h>
12472 #include <limits.h>"; then :
12478 eval gl_cv_bitsizeof_
${gltype}=\
$result
12481 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12483 $as_echo "$ac_res" >&6; }
12484 eval result
=\
$gl_cv_bitsizeof_${gltype}
12485 if test $result = unknown
; then
12488 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12489 cat >>confdefs.h
<<_ACEOF
12490 #define BITSIZEOF_${GLTYPE} $result
12493 eval BITSIZEOF_
${GLTYPE}=\
$result
12500 for gltype
in sig_atomic_t wchar_t wint_t
; do
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12502 $as_echo_n "checking for bit size of $gltype... " >&6; }
12503 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12504 $as_echo_n "(cached) " >&6
12506 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12507 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12508 included before <wchar.h>. */
12509 #include <stddef.h>
12510 #include <signal.h>
12512 # include <stdio.h>
12514 # include <wchar.h>
12517 #include <limits.h>"; then :
12523 eval gl_cv_bitsizeof_
${gltype}=\
$result
12526 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12528 $as_echo "$ac_res" >&6; }
12529 eval result
=\
$gl_cv_bitsizeof_${gltype}
12530 if test $result = unknown
; then
12533 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12534 cat >>confdefs.h
<<_ACEOF
12535 #define BITSIZEOF_${GLTYPE} $result
12538 eval BITSIZEOF_
${GLTYPE}=\
$result
12544 for gltype
in sig_atomic_t wchar_t wint_t
; do
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12546 $as_echo_n "checking whether $gltype is signed... " >&6; }
12547 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12548 $as_echo_n "(cached) " >&6
12550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12553 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12554 included before <wchar.h>. */
12555 #include <stddef.h>
12556 #include <signal.h>
12558 # include <stdio.h>
12560 # include <wchar.h>
12563 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12572 if ac_fn_c_try_compile
"$LINENO"; then :
12577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12578 eval gl_cv_type_
${gltype}_signed
=\
$result
12581 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12583 $as_echo "$ac_res" >&6; }
12584 eval result
=\
$gl_cv_type_${gltype}_signed
12585 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12586 if test "$result" = yes; then
12587 cat >>confdefs.h
<<_ACEOF
12588 #define HAVE_SIGNED_${GLTYPE} 1
12591 eval HAVE_SIGNED_
${GLTYPE}=1
12593 eval HAVE_SIGNED_
${GLTYPE}=0
12598 gl_cv_type_ptrdiff_t_signed
=yes
12599 gl_cv_type_size_t_signed
=no
12600 if test $APPLE_UNIVERSAL_BUILD = 0; then
12603 for gltype
in ptrdiff_t size_t
; do
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12605 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12606 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12607 $as_echo_n "(cached) " >&6
12609 eval gl_cv_type_
${gltype}_suffix
=no
12610 eval result
=\
$gl_cv_type_${gltype}_signed
12611 if test "$result" = yes; then
12616 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12618 '') gltype1
='int';;
12619 l
) gltype1
='long int';;
12620 ll
) gltype1
='long long int';;
12621 i64
) gltype1
='__int64';;
12622 u
) gltype1
='unsigned int';;
12623 ul
) gltype1
='unsigned long int';;
12624 ull
) gltype1
='unsigned long long int';;
12625 ui64
)gltype1
='unsigned __int64';;
12627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12630 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12631 included before <wchar.h>. */
12632 #include <stddef.h>
12633 #include <signal.h>
12635 # include <stdio.h>
12637 # include <wchar.h>
12640 extern $gltype foo;
12641 extern $gltype1 foo;
12650 if ac_fn_c_try_compile
"$LINENO"; then :
12651 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12654 eval result
=\
$gl_cv_type_${gltype}_suffix
12655 test "$result" != no
&& break
12658 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12660 $as_echo "$ac_res" >&6; }
12661 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12662 eval result
=\
$gl_cv_type_${gltype}_suffix
12663 test "$result" = no
&& result
=
12664 eval ${GLTYPE}_SUFFIX
=\
$result
12665 cat >>confdefs.h
<<_ACEOF
12666 #define ${GLTYPE}_SUFFIX $result
12675 for gltype
in sig_atomic_t wchar_t wint_t
; do
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12677 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12678 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 eval gl_cv_type_
${gltype}_suffix
=no
12682 eval result
=\
$gl_cv_type_${gltype}_signed
12683 if test "$result" = yes; then
12688 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12690 '') gltype1
='int';;
12691 l
) gltype1
='long int';;
12692 ll
) gltype1
='long long int';;
12693 i64
) gltype1
='__int64';;
12694 u
) gltype1
='unsigned int';;
12695 ul
) gltype1
='unsigned long int';;
12696 ull
) gltype1
='unsigned long long int';;
12697 ui64
)gltype1
='unsigned __int64';;
12699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12702 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12703 included before <wchar.h>. */
12704 #include <stddef.h>
12705 #include <signal.h>
12707 # include <stdio.h>
12709 # include <wchar.h>
12712 extern $gltype foo;
12713 extern $gltype1 foo;
12722 if ac_fn_c_try_compile
"$LINENO"; then :
12723 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12726 eval result
=\
$gl_cv_type_${gltype}_suffix
12727 test "$result" != no
&& break
12730 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12732 $as_echo "$ac_res" >&6; }
12733 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12734 eval result
=\
$gl_cv_type_${gltype}_suffix
12735 test "$result" = no
&& result
=
12736 eval ${GLTYPE}_SUFFIX
=\
$result
12737 cat >>confdefs.h
<<_ACEOF
12738 #define ${GLTYPE}_SUFFIX $result
12745 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12746 BITSIZEOF_WINT_T
=32
12754 LIMITS_H
='limits.h'
12755 if test -n "$LIMITS_H"; then
12756 GL_GENERATE_LIMITS_H_TRUE
=
12757 GL_GENERATE_LIMITS_H_FALSE
='#'
12759 GL_GENERATE_LIMITS_H_TRUE
='#'
12760 GL_GENERATE_LIMITS_H_FALSE
=
12769 if test -n "$STDINT_H"; then
12770 GL_GENERATE_STDINT_H_TRUE
=
12771 GL_GENERATE_STDINT_H_FALSE
='#'
12773 GL_GENERATE_STDINT_H_TRUE
='#'
12774 GL_GENERATE_STDINT_H_FALSE
=
12783 GNULIB_STRTOIMAX
=0;
12784 GNULIB_STRTOUMAX
=0;
12785 HAVE_DECL_IMAXABS
=1;
12786 HAVE_DECL_IMAXDIV
=1;
12787 HAVE_DECL_STRTOIMAX
=1;
12788 HAVE_DECL_STRTOUMAX
=1;
12790 REPLACE_STRTOIMAX
=0;
12791 REPLACE_STRTOUMAX
=0;
12792 INT32_MAX_LT_INTMAX_MAX
=1;
12793 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
12794 PRI_MACROS_BROKEN
=0;
12795 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
12796 UINT32_MAX_LT_UINTMAX_MAX
=1;
12797 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
12813 if test $gl_cv_have_include_next = yes; then
12814 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12817 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12818 if ${gl_cv_next_inttypes_h+:} false
; then :
12819 $as_echo_n "(cached) " >&6
12822 if test $ac_cv_header_inttypes_h = yes; then
12827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include <inttypes.h>
12832 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12833 *) gl_absname_cpp
="$ac_cpp" ;;
12838 gl_dirsep_regex
='[/\\]'
12841 gl_dirsep_regex
='\/'
12844 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12845 gl_header_literal_regex
=`echo 'inttypes.h' \
12846 | sed -e "$gl_make_literal_regex_sed"`
12847 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12848 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12854 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12855 sed -n "$gl_absolute_header_sed"`
12857 gl_header
=$gl_cv_absolute_inttypes_h
12858 gl_cv_next_inttypes_h
='"'$gl_header'"'
12860 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
12866 $as_echo "$gl_cv_next_inttypes_h" >&6; }
12868 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
12870 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12872 gl_next_as_first_directive
='<'inttypes.h
'>'
12874 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12875 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
12877 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
12892 for ac_header
in inttypes.h
12894 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12895 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
12896 cat >>confdefs.h
<<_ACEOF
12897 #define HAVE_INTTYPES_H 1
12904 if test $ac_cv_header_inttypes_h = yes; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12906 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12907 if ${gt_cv_inttypes_pri_broken+:} false
; then :
12908 $as_echo_n "(cached) " >&6
12911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12914 #include <inttypes.h>
12927 if ac_fn_c_try_compile
"$LINENO"; then :
12928 gt_cv_inttypes_pri_broken
=no
12930 gt_cv_inttypes_pri_broken
=yes
12932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12936 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12938 if test "$gt_cv_inttypes_pri_broken" = yes; then
12940 cat >>confdefs.h
<<_ACEOF
12941 #define PRI_MACROS_BROKEN 1
12944 PRI_MACROS_BROKEN
=1
12946 PRI_MACROS_BROKEN
=0
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
12954 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
12955 if ${gl_cv_cc_double_expbit0+:} false
; then :
12956 $as_echo_n "(cached) " >&6
12959 if test "$cross_compiling" = yes; then :
12961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12964 #if defined arm || defined __arm || defined __arm__
12969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12970 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
12971 gl_cv_cc_double_expbit0
="unknown"
12975 if ${ac_cv_c_bigendian+:} false
; then :
12976 $as_echo_n "(cached) " >&6
12978 ac_cv_c_bigendian
=unknown
12979 # See if we're dealing with a universal compiler.
12980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 #ifndef __APPLE_CC__
12983 not a universal capable compiler
12988 if ac_fn_c_try_compile
"$LINENO"; then :
12990 # Check for potential -arch flags. It is not universal unless
12991 # there are at least two -arch flags with different values.
12994 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12995 if test -n "$ac_prev"; then
12997 i?
86 | x86_64 | ppc | ppc64
)
12998 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13001 ac_cv_c_bigendian
=universal
13007 elif test "x$ac_word" = "x-arch"; then
13012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13013 if test $ac_cv_c_bigendian = unknown
; then
13014 # See if sys/param.h defines the BYTE_ORDER macro.
13015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017 #include <sys/types.h>
13018 #include <sys/param.h>
13023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13024 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13026 bogus endian macros
13033 if ac_fn_c_try_compile
"$LINENO"; then :
13034 # It does; now see whether it defined to BIG_ENDIAN or not.
13035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <sys/types.h>
13038 #include <sys/param.h>
13043 #if BYTE_ORDER != BIG_ENDIAN
13051 if ac_fn_c_try_compile
"$LINENO"; then :
13052 ac_cv_c_bigendian
=yes
13054 ac_cv_c_bigendian
=no
13056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13060 if test $ac_cv_c_bigendian = unknown
; then
13061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include <limits.h>
13069 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13070 bogus endian macros
13077 if ac_fn_c_try_compile
"$LINENO"; then :
13078 # It does; now see whether it defined to _BIG_ENDIAN or not.
13079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #include <limits.h>
13086 #ifndef _BIG_ENDIAN
13094 if ac_fn_c_try_compile
"$LINENO"; then :
13095 ac_cv_c_bigendian
=yes
13097 ac_cv_c_bigendian
=no
13099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13103 if test $ac_cv_c_bigendian = unknown
; then
13104 # Compile a test program.
13105 if test "$cross_compiling" = yes; then :
13106 # Try to guess by grepping values from an object file.
13107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 short int ascii_mm[] =
13110 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13111 short int ascii_ii[] =
13112 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13113 int use_ascii (int i) {
13114 return ascii_mm[i] + ascii_ii[i];
13116 short int ebcdic_ii[] =
13117 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13118 short int ebcdic_mm[] =
13119 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13120 int use_ebcdic (int i) {
13121 return ebcdic_mm[i] + ebcdic_ii[i];
13128 return use_ascii (foo) == use_ebcdic (foo);
13133 if ac_fn_c_try_compile
"$LINENO"; then :
13134 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13135 ac_cv_c_bigendian
=yes
13137 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13138 if test "$ac_cv_c_bigendian" = unknown
; then
13139 ac_cv_c_bigendian
=no
13141 # finding both strings is unlikely to happen, but who knows?
13142 ac_cv_c_bigendian
=unknown
13146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 $ac_includes_default
13155 /* Are we little or big endian? From Harbison&Steele. */
13159 char c[sizeof (long int)];
13162 return u.c[sizeof (long int) - 1] == 1;
13168 if ac_fn_c_try_run
"$LINENO"; then :
13169 ac_cv_c_bigendian
=no
13171 ac_cv_c_bigendian
=yes
13173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13180 case $ac_cv_c_bigendian in #(
13182 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
13184 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
13187 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13191 gl_cv_cc_double_expbit0
="unknown" ;;
13200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13204 #include <stddef.h>
13206 #include <string.h>
13208 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13209 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
13210 static unsigned int ored_words[NWORDS];
13211 static unsigned int anded_words[NWORDS];
13212 static void add_to_ored_words (double x)
13216 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
13217 memset (&m, 0, sizeof (memory_double));
13219 for (i = 0; i < NWORDS; i++)
13221 ored_words[i] |= m.word[i];
13222 anded_words[i] &= m.word[i];
13228 FILE *fp = fopen ("conftest.out", "w");
13231 for (j = 0; j < NWORDS; j++)
13232 anded_words[j] = ~ (unsigned int) 0;
13233 add_to_ored_words (0.25);
13234 add_to_ored_words (0.5);
13235 add_to_ored_words (1.0);
13236 add_to_ored_words (2.0);
13237 add_to_ored_words (4.0);
13238 /* Remove bits that are common (e.g. if representation of the first mantissa
13239 bit is explicit). */
13240 for (j = 0; j < NWORDS; j++)
13241 ored_words[j] &= ~anded_words[j];
13242 /* Now find the nonzero word. */
13243 for (j = 0; j < NWORDS; j++)
13244 if (ored_words[j] != 0)
13249 for (i = j + 1; i < NWORDS; i++)
13250 if (ored_words[i] != 0)
13252 fprintf (fp, "unknown");
13253 return (fclose (fp) != 0);
13256 if ((ored_words[j] >> i) & 1)
13258 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13259 return (fclose (fp) != 0);
13262 fprintf (fp, "unknown");
13263 return (fclose (fp) != 0);
13267 if ac_fn_c_try_run
"$LINENO"; then :
13268 gl_cv_cc_double_expbit0
=`cat conftest.out`
13270 gl_cv_cc_double_expbit0
="unknown"
13272 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13273 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13280 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13281 case "$gl_cv_cc_double_expbit0" in
13283 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13284 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13286 cat >>confdefs.h
<<_ACEOF
13287 #define DBL_EXPBIT0_WORD $word
13291 cat >>confdefs.h
<<_ACEOF
13292 #define DBL_EXPBIT0_BIT $bit
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13300 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13301 if ${ac_cv_c_bigendian+:} false
; then :
13302 $as_echo_n "(cached) " >&6
13304 ac_cv_c_bigendian
=unknown
13305 # See if we're dealing with a universal compiler.
13306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 #ifndef __APPLE_CC__
13309 not a universal capable compiler
13314 if ac_fn_c_try_compile
"$LINENO"; then :
13316 # Check for potential -arch flags. It is not universal unless
13317 # there are at least two -arch flags with different values.
13320 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13321 if test -n "$ac_prev"; then
13323 i?
86 | x86_64 | ppc | ppc64
)
13324 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13327 ac_cv_c_bigendian
=universal
13333 elif test "x$ac_word" = "x-arch"; then
13338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13339 if test $ac_cv_c_bigendian = unknown
; then
13340 # See if sys/param.h defines the BYTE_ORDER macro.
13341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343 #include <sys/types.h>
13344 #include <sys/param.h>
13349 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13350 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13352 bogus endian macros
13359 if ac_fn_c_try_compile
"$LINENO"; then :
13360 # It does; now see whether it defined to BIG_ENDIAN or not.
13361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <sys/types.h>
13364 #include <sys/param.h>
13369 #if BYTE_ORDER != BIG_ENDIAN
13377 if ac_fn_c_try_compile
"$LINENO"; then :
13378 ac_cv_c_bigendian
=yes
13380 ac_cv_c_bigendian
=no
13382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 if test $ac_cv_c_bigendian = unknown
; then
13387 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 #include <limits.h>
13395 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13396 bogus endian macros
13403 if ac_fn_c_try_compile
"$LINENO"; then :
13404 # It does; now see whether it defined to _BIG_ENDIAN or not.
13405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #include <limits.h>
13412 #ifndef _BIG_ENDIAN
13420 if ac_fn_c_try_compile
"$LINENO"; then :
13421 ac_cv_c_bigendian
=yes
13423 ac_cv_c_bigendian
=no
13425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13429 if test $ac_cv_c_bigendian = unknown
; then
13430 # Compile a test program.
13431 if test "$cross_compiling" = yes; then :
13432 # Try to guess by grepping values from an object file.
13433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 short int ascii_mm[] =
13436 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13437 short int ascii_ii[] =
13438 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13439 int use_ascii (int i) {
13440 return ascii_mm[i] + ascii_ii[i];
13442 short int ebcdic_ii[] =
13443 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13444 short int ebcdic_mm[] =
13445 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13446 int use_ebcdic (int i) {
13447 return ebcdic_mm[i] + ebcdic_ii[i];
13454 return use_ascii (foo) == use_ebcdic (foo);
13459 if ac_fn_c_try_compile
"$LINENO"; then :
13460 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13461 ac_cv_c_bigendian
=yes
13463 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13464 if test "$ac_cv_c_bigendian" = unknown
; then
13465 ac_cv_c_bigendian
=no
13467 # finding both strings is unlikely to happen, but who knows?
13468 ac_cv_c_bigendian
=unknown
13472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 $ac_includes_default
13481 /* Are we little or big endian? From Harbison&Steele. */
13485 char c[sizeof (long int)];
13488 return u.c[sizeof (long int) - 1] == 1;
13494 if ac_fn_c_try_run
"$LINENO"; then :
13495 ac_cv_c_bigendian
=no
13497 ac_cv_c_bigendian
=yes
13499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13506 $as_echo "$ac_cv_c_bigendian" >&6; }
13507 case $ac_cv_c_bigendian in #(
13509 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13515 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13519 as_fn_error $?
"unknown endianness
13520 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13525 GNULIB_LOCALECONV
=0;
13526 GNULIB_SETLOCALE
=0;
13527 GNULIB_SETLOCALE_NULL
=0;
13528 GNULIB_DUPLOCALE
=0;
13529 GNULIB_LOCALENAME
=0;
13533 REPLACE_LOCALECONV
=0;
13534 REPLACE_SETLOCALE
=0;
13535 REPLACE_NEWLOCALE
=0;
13536 REPLACE_DUPLOCALE
=0;
13537 REPLACE_FREELOCALE
=0;
13538 REPLACE_STRUCT_LCONV
=0;
13542 HAVE_MAX_ALIGN_T
=1;
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13547 $as_echo_n "checking for wchar_t... " >&6; }
13548 if ${gt_cv_c_wchar_t+:} false
; then :
13549 $as_echo_n "(cached) " >&6
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #include <stddef.h>
13554 wchar_t foo = (wchar_t)'\0';
13563 if ac_fn_c_try_compile
"$LINENO"; then :
13564 gt_cv_c_wchar_t
=yes
13568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13571 $as_echo "$gt_cv_c_wchar_t" >&6; }
13572 if test $gt_cv_c_wchar_t = yes; then
13574 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13584 $as_echo_n "checking for good max_align_t... " >&6; }
13585 if ${gl_cv_type_max_align_t+:} false
; then :
13586 $as_echo_n "(cached) " >&6
13588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <stddef.h>
13591 unsigned int s = sizeof (max_align_t);
13592 #if defined __GNUC__ || defined __IBM__ALIGNOF__
13593 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13594 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13605 if ac_fn_c_try_compile
"$LINENO"; then :
13606 gl_cv_type_max_align_t
=yes
13608 gl_cv_type_max_align_t
=no
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13614 $as_echo "$gl_cv_type_max_align_t" >&6; }
13615 if test $gl_cv_type_max_align_t = no
; then
13620 if test $gt_cv_c_wchar_t = no
; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13626 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13627 if ${gl_cv_decl_null_works+:} false
; then :
13628 $as_echo_n "(cached) " >&6
13630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632 #include <stddef.h>
13633 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13643 if ac_fn_c_try_compile
"$LINENO"; then :
13644 gl_cv_decl_null_works
=yes
13646 gl_cv_decl_null_works
=no
13648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13651 $as_echo "$gl_cv_decl_null_works" >&6; }
13652 if test $gl_cv_decl_null_works = no
; then
13658 if test -n "$STDDEF_H"; then
13659 GL_GENERATE_STDDEF_H_TRUE
=
13660 GL_GENERATE_STDDEF_H_FALSE
='#'
13662 GL_GENERATE_STDDEF_H_TRUE
='#'
13663 GL_GENERATE_STDDEF_H_FALSE
=
13666 if test -n "$STDDEF_H"; then
13675 if test $gl_cv_have_include_next = yes; then
13676 gl_cv_next_stddef_h
='<'stddef.h
'>'
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13679 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13680 if ${gl_cv_next_stddef_h+:} false
; then :
13681 $as_echo_n "(cached) " >&6
13686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 #include <stddef.h>
13691 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13692 *) gl_absname_cpp
="$ac_cpp" ;;
13697 gl_dirsep_regex
='[/\\]'
13700 gl_dirsep_regex
='\/'
13703 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13704 gl_header_literal_regex
=`echo 'stddef.h' \
13705 | sed -e "$gl_make_literal_regex_sed"`
13706 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13713 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13714 sed -n "$gl_absolute_header_sed"`
13716 gl_header
=$gl_cv_absolute_stddef_h
13717 gl_cv_next_stddef_h
='"'$gl_header'"'
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13722 $as_echo "$gl_cv_next_stddef_h" >&6; }
13724 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13726 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13728 gl_next_as_first_directive
='<'stddef.h
'>'
13730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13731 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13733 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
13746 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
13747 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
13748 $as_echo_n "(cached) " >&6
13750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <locale.h>
13762 if ac_fn_c_try_compile
"$LINENO"; then :
13763 gl_cv_header_locale_has_locale_t
=yes
13765 gl_cv_header_locale_has_locale_t
=no
13767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
13771 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
13774 if test $ac_cv_header_xlocale_h = yes; then
13776 if test $gl_cv_header_locale_has_locale_t = yes; then
13777 gl_cv_header_locale_h_needs_xlocale_h
=no
13779 gl_cv_header_locale_h_needs_xlocale_h
=yes
13784 gl_cv_header_locale_h_needs_xlocale_h
=no
13785 if test $gl_cv_header_locale_has_locale_t = yes; then
13795 gl_threads_api
=none
13800 if test "$gl_use_threads" != no
; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
13804 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13805 if ${gl_cv_have_weak+:} false
; then :
13806 $as_echo_n "(cached) " >&6
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 extern void xyzzy ();
13821 if ac_fn_c_try_link
"$LINENO"; then :
13822 gl_cv_have_weak
=maybe
13824 rm -f core conftest.err conftest.
$ac_objext \
13825 conftest
$ac_exeext conftest.
$ac_ext
13826 if test $gl_cv_have_weak = maybe
; then
13827 if test "$cross_compiling" = yes; then :
13828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13831 Extensible Linking Format
13835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13836 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
13837 gl_cv_have_weak
="guessing yes"
13839 gl_cv_have_weak
="guessing no"
13845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13852 return (fputs == NULL);
13855 if ac_fn_c_try_run
"$LINENO"; then :
13856 gl_cv_have_weak
=yes
13860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13865 case " $LDFLAGS " in
13866 *" -static "*) gl_cv_have_weak
=no
;;
13868 case "$gl_cv_have_weak" in
13871 freebsd
* | dragonfly
*)
13873 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
13874 cat <<EOF > conftest2.c
13875 #include <pthread.h>
13876 #pragma weak pthread_mutexattr_gettype
13879 return (pthread_mutexattr_gettype != NULL);
13882 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
13883 || gl_cv_have_weak
=no
13884 rm -f conftest1.c libempty.so conftest2.c conftest
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
13892 $as_echo "$gl_cv_have_weak" >&6; }
13893 case "$gl_cv_have_weak" in
13896 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
13901 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13905 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
13907 gl_have_isoc_threads
="$ac_cv_header_threads_h"
13909 if test "$gl_use_threads" = yes \
13910 ||
test "$gl_use_threads" = posix \
13911 ||
test "$gl_use_threads" = isoc
+posix
; then
13914 if test -z "$gl_pthreadlib_body_done"; then
13918 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13919 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
13920 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13921 if test "x$ac_cv_header_pthread_h" = xyes
; then :
13922 gl_have_pthread_h
=yes
13924 gl_have_pthread_h
=no
13928 if test "$gl_have_pthread_h" = yes; then
13929 # Other possible tests:
13930 # -lpthreads (FSU threads, PCthreads)
13932 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13933 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13934 # the second one only in libpthread, and lock.c needs it.
13936 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
13937 # needs -pthread for some reason. See:
13938 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13940 for gl_pthread
in '' '-pthread'; do
13941 LIBS
="$LIBS $gl_pthread"
13942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 #include <pthread.h>
13946 pthread_mutexattr_t ma;
13951 pthread_mutex_lock (&m);
13952 pthread_mutexattr_init (&ma);
13957 if ac_fn_c_try_link
"$LINENO"; then :
13959 LIBPTHREAD
=$gl_pthread
13960 LIBPMULTITHREAD
=$gl_pthread
13962 rm -f core conftest.err conftest.
$ac_objext \
13963 conftest
$ac_exeext conftest.
$ac_ext
13965 test $gl_pthread_api = yes && break
13968 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13969 # since it is defined as a macro on OSF/1.)
13970 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
13971 # The program links fine without libpthread. But it may actually
13972 # need to link with libpthread in order to create multiple threads.
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13974 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13975 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13976 $as_echo_n "(cached) " >&6
13978 ac_check_lib_save_LIBS
=$LIBS
13979 LIBS
="-lpthread $LIBS"
13980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13983 /* Override any GCC internal prototype to avoid an error.
13984 Use char because int might match the return type of a GCC
13985 builtin and then its argument prototype would still apply. */
13989 char pthread_kill ();
13993 return pthread_kill ();
13998 if ac_fn_c_try_link
"$LINENO"; then :
13999 ac_cv_lib_pthread_pthread_kill
=yes
14001 ac_cv_lib_pthread_pthread_kill
=no
14003 rm -f core conftest.err conftest.
$ac_objext \
14004 conftest
$ac_exeext conftest.
$ac_ext
14005 LIBS
=$ac_check_lib_save_LIBS
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14008 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14009 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14010 LIBPMULTITHREAD
=-lpthread
14011 # On Solaris and HP-UX, most pthread functions exist also in libc.
14012 # Therefore pthread_in_use() needs to actually try to create a
14013 # thread: pthread_create from libc will fail, whereas
14014 # pthread_create will actually create a thread.
14015 # On Solaris 10 or newer, this test is no longer needed, because
14016 # libc contains the fully functional pthread functions.
14018 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14020 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14026 elif test $gl_pthread_api != yes; then
14027 # Some library is needed. Try libpthread and libc_r.
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14029 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14030 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14031 $as_echo_n "(cached) " >&6
14033 ac_check_lib_save_LIBS
=$LIBS
14034 LIBS
="-lpthread $LIBS"
14035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14044 char pthread_kill ();
14048 return pthread_kill ();
14053 if ac_fn_c_try_link
"$LINENO"; then :
14054 ac_cv_lib_pthread_pthread_kill
=yes
14056 ac_cv_lib_pthread_pthread_kill
=no
14058 rm -f core conftest.err conftest.
$ac_objext \
14059 conftest
$ac_exeext conftest.
$ac_ext
14060 LIBS
=$ac_check_lib_save_LIBS
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14063 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14064 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14066 LIBPTHREAD
=-lpthread
14067 LIBPMULTITHREAD
=-lpthread
14070 if test $gl_pthread_api != yes; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14073 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14074 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14075 $as_echo_n "(cached) " >&6
14077 ac_check_lib_save_LIBS
=$LIBS
14079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14082 /* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14088 char pthread_kill ();
14092 return pthread_kill ();
14097 if ac_fn_c_try_link
"$LINENO"; then :
14098 ac_cv_lib_c_r_pthread_kill
=yes
14100 ac_cv_lib_c_r_pthread_kill
=no
14102 rm -f core conftest.err conftest.
$ac_objext \
14103 conftest
$ac_exeext conftest.
$ac_ext
14104 LIBS
=$ac_check_lib_save_LIBS
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14107 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14108 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14111 LIBPMULTITHREAD
=-lc_r
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14118 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14120 $as_echo "$gl_pthread_api" >&6; }
14123 if test $gl_pthread_api = yes; then
14125 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14140 if ac_fn_c_try_link
"$LINENO"; then :
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14145 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14146 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14147 $as_echo_n "(cached) " >&6
14149 ac_check_lib_save_LIBS
=$LIBS
14151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14154 /* Override any GCC internal prototype to avoid an error.
14155 Use char because int might match the return type of a GCC
14156 builtin and then its argument prototype would still apply. */
14160 char sched_yield ();
14164 return sched_yield ();
14169 if ac_fn_c_try_link
"$LINENO"; then :
14170 ac_cv_lib_rt_sched_yield
=yes
14172 ac_cv_lib_rt_sched_yield
=no
14174 rm -f core conftest.err conftest.
$ac_objext \
14175 conftest
$ac_exeext conftest.
$ac_ext
14176 LIBS
=$ac_check_lib_save_LIBS
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14179 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14180 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14181 LIB_SCHED_YIELD
=-lrt
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14184 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14185 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14186 $as_echo_n "(cached) " >&6
14188 ac_check_lib_save_LIBS
=$LIBS
14189 LIBS
="-lposix4 $LIBS"
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14193 /* Override any GCC internal prototype to avoid an error.
14194 Use char because int might match the return type of a GCC
14195 builtin and then its argument prototype would still apply. */
14199 char sched_yield ();
14203 return sched_yield ();
14208 if ac_fn_c_try_link
"$LINENO"; then :
14209 ac_cv_lib_posix4_sched_yield
=yes
14211 ac_cv_lib_posix4_sched_yield
=no
14213 rm -f core conftest.err conftest.
$ac_objext \
14214 conftest
$ac_exeext conftest.
$ac_ext
14215 LIBS
=$ac_check_lib_save_LIBS
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14218 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14219 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14220 LIB_SCHED_YIELD
=-lposix4
14227 rm -f core conftest.err conftest.
$ac_objext \
14228 conftest
$ac_exeext conftest.
$ac_ext
14231 gl_pthreadlib_body_done
=done
14234 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14235 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14236 if test $gl_pthread_api = yes; then
14237 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14238 gl_threads_api
='isoc+posix'
14240 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14242 LIBTHREAD
= LTLIBTHREAD
=
14244 gl_threads_api
=posix
14246 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14248 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14249 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14251 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14253 LIBTHREAD
= LTLIBTHREAD
=
14259 if test $gl_threads_api = none
; then
14260 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14264 if test -z "$gl_stdthreadlib_body_done"; then
14274 if test -z "$gl_pthreadlib_body_done"; then
14278 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14279 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14280 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14282 gl_have_pthread_h
=yes
14284 gl_have_pthread_h
=no
14288 if test "$gl_have_pthread_h" = yes; then
14289 # Other possible tests:
14290 # -lpthreads (FSU threads, PCthreads)
14292 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14293 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14294 # the second one only in libpthread, and lock.c needs it.
14296 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14297 # needs -pthread for some reason. See:
14298 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14300 for gl_pthread
in '' '-pthread'; do
14301 LIBS
="$LIBS $gl_pthread"
14302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #include <pthread.h>
14306 pthread_mutexattr_t ma;
14311 pthread_mutex_lock (&m);
14312 pthread_mutexattr_init (&ma);
14317 if ac_fn_c_try_link
"$LINENO"; then :
14319 LIBPTHREAD
=$gl_pthread
14320 LIBPMULTITHREAD
=$gl_pthread
14322 rm -f core conftest.err conftest.
$ac_objext \
14323 conftest
$ac_exeext conftest.
$ac_ext
14325 test $gl_pthread_api = yes && break
14328 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14329 # since it is defined as a macro on OSF/1.)
14330 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14331 # The program links fine without libpthread. But it may actually
14332 # need to link with libpthread in order to create multiple threads.
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14334 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14335 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14336 $as_echo_n "(cached) " >&6
14338 ac_check_lib_save_LIBS
=$LIBS
14339 LIBS
="-lpthread $LIBS"
14340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14349 char pthread_kill ();
14353 return pthread_kill ();
14358 if ac_fn_c_try_link
"$LINENO"; then :
14359 ac_cv_lib_pthread_pthread_kill
=yes
14361 ac_cv_lib_pthread_pthread_kill
=no
14363 rm -f core conftest.err conftest.
$ac_objext \
14364 conftest
$ac_exeext conftest.
$ac_ext
14365 LIBS
=$ac_check_lib_save_LIBS
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14368 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14369 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14370 LIBPMULTITHREAD
=-lpthread
14371 # On Solaris and HP-UX, most pthread functions exist also in libc.
14372 # Therefore pthread_in_use() needs to actually try to create a
14373 # thread: pthread_create from libc will fail, whereas
14374 # pthread_create will actually create a thread.
14375 # On Solaris 10 or newer, this test is no longer needed, because
14376 # libc contains the fully functional pthread functions.
14378 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14380 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14386 elif test $gl_pthread_api != yes; then
14387 # Some library is needed. Try libpthread and libc_r.
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14389 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14390 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14391 $as_echo_n "(cached) " >&6
14393 ac_check_lib_save_LIBS
=$LIBS
14394 LIBS
="-lpthread $LIBS"
14395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14404 char pthread_kill ();
14408 return pthread_kill ();
14413 if ac_fn_c_try_link
"$LINENO"; then :
14414 ac_cv_lib_pthread_pthread_kill
=yes
14416 ac_cv_lib_pthread_pthread_kill
=no
14418 rm -f core conftest.err conftest.
$ac_objext \
14419 conftest
$ac_exeext conftest.
$ac_ext
14420 LIBS
=$ac_check_lib_save_LIBS
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14423 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14424 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14426 LIBPTHREAD
=-lpthread
14427 LIBPMULTITHREAD
=-lpthread
14430 if test $gl_pthread_api != yes; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14433 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14434 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14435 $as_echo_n "(cached) " >&6
14437 ac_check_lib_save_LIBS
=$LIBS
14439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14442 /* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
14448 char pthread_kill ();
14452 return pthread_kill ();
14457 if ac_fn_c_try_link
"$LINENO"; then :
14458 ac_cv_lib_c_r_pthread_kill
=yes
14460 ac_cv_lib_c_r_pthread_kill
=no
14462 rm -f core conftest.err conftest.
$ac_objext \
14463 conftest
$ac_exeext conftest.
$ac_ext
14464 LIBS
=$ac_check_lib_save_LIBS
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14467 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14468 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14471 LIBPMULTITHREAD
=-lc_r
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14478 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14480 $as_echo "$gl_pthread_api" >&6; }
14483 if test $gl_pthread_api = yes; then
14485 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14500 if ac_fn_c_try_link
"$LINENO"; then :
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14505 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14506 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14507 $as_echo_n "(cached) " >&6
14509 ac_check_lib_save_LIBS
=$LIBS
14511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14520 char sched_yield ();
14524 return sched_yield ();
14529 if ac_fn_c_try_link
"$LINENO"; then :
14530 ac_cv_lib_rt_sched_yield
=yes
14532 ac_cv_lib_rt_sched_yield
=no
14534 rm -f core conftest.err conftest.
$ac_objext \
14535 conftest
$ac_exeext conftest.
$ac_ext
14536 LIBS
=$ac_check_lib_save_LIBS
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14539 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14540 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14541 LIB_SCHED_YIELD
=-lrt
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14544 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14545 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14546 $as_echo_n "(cached) " >&6
14548 ac_check_lib_save_LIBS
=$LIBS
14549 LIBS
="-lposix4 $LIBS"
14550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 /* Override any GCC internal prototype to avoid an error.
14554 Use char because int might match the return type of a GCC
14555 builtin and then its argument prototype would still apply. */
14559 char sched_yield ();
14563 return sched_yield ();
14568 if ac_fn_c_try_link
"$LINENO"; then :
14569 ac_cv_lib_posix4_sched_yield
=yes
14571 ac_cv_lib_posix4_sched_yield
=no
14573 rm -f core conftest.err conftest.
$ac_objext \
14574 conftest
$ac_exeext conftest.
$ac_ext
14575 LIBS
=$ac_check_lib_save_LIBS
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14578 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14579 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14580 LIB_SCHED_YIELD
=-lposix4
14587 rm -f core conftest.err conftest.
$ac_objext \
14588 conftest
$ac_exeext conftest.
$ac_ext
14591 gl_pthreadlib_body_done
=done
14594 if test $ac_cv_header_threads_h = yes; then
14595 for ac_func
in thrd_create
14597 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14598 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14599 cat >>confdefs.h
<<_ACEOF
14600 #define HAVE_THRD_CREATE 1
14606 if test $ac_cv_func_thrd_create = yes; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14610 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14611 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14612 $as_echo_n "(cached) " >&6
14614 ac_check_lib_save_LIBS
=$LIBS
14615 LIBS
="-lstdthreads $LIBS"
14616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14625 char thrd_create ();
14629 return thrd_create ();
14634 if ac_fn_c_try_link
"$LINENO"; then :
14635 ac_cv_lib_stdthreads_thrd_create
=yes
14637 ac_cv_lib_stdthreads_thrd_create
=no
14639 rm -f core conftest.err conftest.
$ac_objext \
14640 conftest
$ac_exeext conftest.
$ac_ext
14641 LIBS
=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14644 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14645 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14647 LIBSTDTHREAD
='-lstdthreads -lpthread'
14651 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14657 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14664 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14666 $as_echo "$ac_cv_header_threads_h" >&6; }
14667 gl_stdthreadlib_body_done
=done
14670 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14671 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14672 gl_threads_api
=isoc
14674 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14678 if test $gl_threads_api = none
; then
14679 case "$gl_use_threads" in
14680 yes | windows | win32
) # The 'win32' is for backward compatibility.
14681 if { case "$host_os" in
14686 gl_threads_api
=windows
14688 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14696 $as_echo_n "checking for multithread API to use... " >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14698 $as_echo "$gl_threads_api" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14712 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14713 if ${gl_cv_func_malloc_posix+:} false
; then :
14714 $as_echo_n "(cached) " >&6
14717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14723 #if defined _WIN32 && ! defined __CYGWIN__
14731 if ac_fn_c_try_compile
"$LINENO"; then :
14732 gl_cv_func_malloc_posix
=yes
14734 gl_cv_func_malloc_posix
=no
14736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14740 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14744 for ac_header
in stdlib.h
14746 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14747 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
14748 cat >>confdefs.h
<<_ACEOF
14749 #define HAVE_STDLIB_H 1
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14757 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14758 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14759 $as_echo_n "(cached) " >&6
14761 if test "$cross_compiling" = yes; then :
14763 # Guess yes on platforms where we know the result.
14764 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
14765 | hpux
* | solaris
* | cygwin
* | mingw
*)
14766 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
14767 # If we don't know, obey --enable-cross-guesses.
14768 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
14772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14775 # include <stdlib.h>
14783 char *p = malloc (0);
14792 if ac_fn_c_try_run
"$LINENO"; then :
14793 ac_cv_func_malloc_0_nonnull
=yes
14795 ac_cv_func_malloc_0_nonnull
=no
14797 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14798 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14804 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14805 case "$ac_cv_func_malloc_0_nonnull" in
14807 gl_cv_func_malloc_0_nonnull
=1
14810 gl_cv_func_malloc_0_nonnull
=0
14815 cat >>confdefs.h
<<_ACEOF
14816 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14830 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14831 if ${gt_cv_locale_ja+:} false
; then :
14832 $as_echo_n "(cached) " >&6
14835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14838 #include <locale.h>
14840 #if HAVE_LANGINFO_CODESET
14841 # include <langinfo.h>
14843 #include <stdlib.h>
14844 #include <string.h>
14849 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14850 imitates locale dependent behaviour by looking at the environment
14851 variables, and all locales use the UTF-8 encoding. */
14852 #if defined __BEOS__ || defined __HAIKU__
14855 /* Check whether the given locale name is recognized by the system. */
14856 # if defined _WIN32 && !defined __CYGWIN__
14857 /* On native Windows, setlocale(category, "") looks at the system settings,
14858 not at the environment variables. Also, when an encoding suffix such
14859 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14860 category of the locale to "C". */
14861 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14862 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14865 if (setlocale (LC_ALL, "") == NULL) return 1;
14867 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14868 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14869 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14870 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14871 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14872 some unit tests fail.
14873 On MirBSD 10, when an unsupported locale is specified, setlocale()
14874 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14875 # if HAVE_LANGINFO_CODESET
14877 const char *cs = nl_langinfo (CODESET);
14878 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14879 || strcmp (cs, "UTF-8") == 0)
14884 /* On Cygwin, avoid locale names without encoding suffix, because the
14885 locale_charset() function relies on the encoding suffix. Note that
14886 LC_ALL is set on the command line. */
14887 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14889 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14890 on Cygwin 1.5.x. */
14891 if (MB_CUR_MAX == 1)
14893 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14894 This excludes the UTF-8 encoding (except on MirBSD). */
14897 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14898 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14899 for (p = buf; *p != '\0'; p++)
14900 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14909 (eval $ac_link) 2>&5
14911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14912 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14914 # Handle native Windows specially, because there setlocale() interprets
14915 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14916 # "fr" or "fra" as "French" or "French_France.1252",
14917 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14918 # "ja" as "Japanese" or "Japanese_Japan.932",
14921 # Note that on native Windows, the Japanese locale is
14922 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14923 # cannot use it here.
14924 gt_cv_locale_ja
=none
14927 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14928 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14929 # configure script would override the LC_ALL setting. Likewise for
14930 # LC_CTYPE, which is also set at the beginning of the configure script.
14931 # Test for the AIX locale name.
14932 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14933 gt_cv_locale_ja
=ja_JP
14935 # Test for the locale name with explicit encoding suffix.
14936 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14937 gt_cv_locale_ja
=ja_JP.EUC-JP
14939 # Test for the HP-UX, OSF/1, NetBSD locale name.
14940 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14941 gt_cv_locale_ja
=ja_JP.eucJP
14943 # Test for the IRIX, FreeBSD locale name.
14944 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14945 gt_cv_locale_ja
=ja_JP.EUC
14947 # Test for the Solaris 7 locale name.
14948 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14951 # Special test for NetBSD 1.6.
14952 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14953 gt_cv_locale_ja
=ja_JP.eucJP
14956 gt_cv_locale_ja
=none
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14970 $as_echo "$gt_cv_locale_ja" >&6; }
14971 LOCALE_JA
=$gt_cv_locale_ja
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14977 $as_echo_n "checking for a french Unicode locale... " >&6; }
14978 if ${gt_cv_locale_fr_utf8+:} false
; then :
14979 $as_echo_n "(cached) " >&6
14982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14985 #include <locale.h>
14987 #if HAVE_LANGINFO_CODESET
14988 # include <langinfo.h>
14990 #include <stdlib.h>
14991 #include <string.h>
14995 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14996 imitates locale dependent behaviour by looking at the environment
14997 variables, and all locales use the UTF-8 encoding. */
14998 #if !(defined __BEOS__ || defined __HAIKU__)
14999 /* Check whether the given locale name is recognized by the system. */
15000 # if defined _WIN32 && !defined __CYGWIN__
15001 /* On native Windows, setlocale(category, "") looks at the system settings,
15002 not at the environment variables. Also, when an encoding suffix such
15003 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15004 category of the locale to "C". */
15005 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15006 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15009 if (setlocale (LC_ALL, "") == NULL) return 1;
15011 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15012 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15013 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15014 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15015 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15016 some unit tests fail. */
15017 # if HAVE_LANGINFO_CODESET
15019 const char *cs = nl_langinfo (CODESET);
15020 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15025 /* On Cygwin, avoid locale names without encoding suffix, because the
15026 locale_charset() function relies on the encoding suffix. Note that
15027 LC_ALL is set on the command line. */
15028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15030 /* Check whether in the abbreviation of the second month, the second
15031 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15032 two bytes long, with UTF-8 encoding. */
15033 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15034 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15035 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15038 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15039 /* Check whether the decimal separator is a comma.
15040 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15041 are nl_langinfo(RADIXCHAR) are both ".". */
15042 if (localeconv () ->decimal_point[0] != ',') return 1;
15048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15049 (eval $ac_link) 2>&5
15051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15052 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15054 # Handle native Windows specially, because there setlocale() interprets
15055 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15056 # "fr" or "fra" as "French" or "French_France.1252",
15057 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15058 # "ja" as "Japanese" or "Japanese_Japan.932",
15061 # Test for the hypothetical native Windows locale name.
15062 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15063 gt_cv_locale_fr_utf8
=French_France
.65001
15066 gt_cv_locale_fr_utf8
=none
15070 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15071 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15072 # configure script would override the LC_ALL setting. Likewise for
15073 # LC_CTYPE, which is also set at the beginning of the configure script.
15074 # Test for the usual locale name.
15075 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15076 gt_cv_locale_fr_utf8
=fr_FR
15078 # Test for the locale name with explicit encoding suffix.
15079 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15080 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
15082 # Test for the Solaris 7 locale name.
15083 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15084 gt_cv_locale_fr_utf8
=fr.UTF-8
15087 gt_cv_locale_fr_utf8
=none
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15098 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15099 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15106 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15107 if ${gt_cv_locale_zh_CN+:} false
; then :
15108 $as_echo_n "(cached) " >&6
15111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15114 #include <locale.h>
15115 #include <stdlib.h>
15117 #if HAVE_LANGINFO_CODESET
15118 # include <langinfo.h>
15120 #include <stdlib.h>
15121 #include <string.h>
15126 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15127 imitates locale dependent behaviour by looking at the environment
15128 variables, and all locales use the UTF-8 encoding. */
15129 #if defined __BEOS__ || defined __HAIKU__
15132 /* Check whether the given locale name is recognized by the system. */
15133 # if defined _WIN32 && !defined __CYGWIN__
15134 /* On native Windows, setlocale(category, "") looks at the system settings,
15135 not at the environment variables. Also, when an encoding suffix such
15136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15137 category of the locale to "C". */
15138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15142 if (setlocale (LC_ALL, "") == NULL) return 1;
15144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15149 some unit tests fail.
15150 On MirBSD 10, when an unsupported locale is specified, setlocale()
15151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15152 # if HAVE_LANGINFO_CODESET
15154 const char *cs = nl_langinfo (CODESET);
15155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15156 || strcmp (cs, "UTF-8") == 0)
15161 /* On Cygwin, avoid locale names without encoding suffix, because the
15162 locale_charset() function relies on the encoding suffix. Note that
15163 LC_ALL is set on the command line. */
15164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15166 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15167 This excludes the UTF-8 encoding (except on MirBSD). */
15170 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15171 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15172 for (p = buf; *p != '\0'; p++)
15173 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15176 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15177 single wide character. This excludes the GB2312 and GBK encodings. */
15178 if (mblen ("\203\062\332\066", 5) != 4)
15185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15186 (eval $ac_link) 2>&5
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15191 # Handle native Windows specially, because there setlocale() interprets
15192 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15193 # "fr" or "fra" as "French" or "French_France.1252",
15194 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15195 # "ja" as "Japanese" or "Japanese_Japan.932",
15198 # Test for the hypothetical native Windows locale name.
15199 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15200 gt_cv_locale_zh_CN
=Chinese_China
.54936
15203 gt_cv_locale_zh_CN
=none
15207 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15208 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15209 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15210 gt_cv_locale_zh_CN
=none
15213 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15214 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15215 # configure script would override the LC_ALL setting. Likewise for
15216 # LC_CTYPE, which is also set at the beginning of the configure script.
15217 # Test for the locale name without encoding suffix.
15218 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15219 gt_cv_locale_zh_CN
=zh_CN
15221 # Test for the locale name with explicit encoding suffix.
15222 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15223 gt_cv_locale_zh_CN
=zh_CN.GB18030
15226 gt_cv_locale_zh_CN
=none
15232 # If there was a link error, due to mblen(), the system is so old that
15233 # it certainly doesn't have a chinese locale.
15234 gt_cv_locale_zh_CN
=none
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15240 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15241 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15245 $as_echo_n "checking for inline... " >&6; }
15246 if ${ac_cv_c_inline+:} false
; then :
15247 $as_echo_n "(cached) " >&6
15250 for ac_kw
in inline __inline__ __inline
; do
15251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253 #ifndef __cplusplus
15255 static $ac_kw foo_t static_foo () {return 0; }
15256 $ac_kw foo_t foo () {return 0; }
15260 if ac_fn_c_try_compile
"$LINENO"; then :
15261 ac_cv_c_inline
=$ac_kw
15263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15264 test "$ac_cv_c_inline" != no
&& break
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15269 $as_echo "$ac_cv_c_inline" >&6; }
15271 case $ac_cv_c_inline in
15274 case $ac_cv_c_inline in
15276 *) ac_val
=$ac_cv_c_inline;;
15278 cat >>confdefs.h
<<_ACEOF
15279 #ifndef __cplusplus
15280 #define inline $ac_val
15291 GNULIB_EXPLICIT_BZERO
=0;
15298 GNULIB_RAWMEMCHR
=0;
15301 GNULIB_STRCHRNUL
=0;
15309 GNULIB_STRCASESTR
=0;
15316 GNULIB_MBSCASECMP
=0;
15317 GNULIB_MBSNCASECMP
=0;
15318 GNULIB_MBSPCASECMP
=0;
15319 GNULIB_MBSCASESTR
=0;
15326 GNULIB_STRERROR_R
=0;
15327 GNULIB_STRSIGNAL
=0;
15328 GNULIB_STRVERSCMP
=0;
15330 HAVE_EXPLICIT_BZERO
=1;
15334 HAVE_DECL_MEMMEM
=1;
15336 HAVE_DECL_MEMRCHR
=1;
15341 HAVE_DECL_STRDUP
=1;
15342 HAVE_DECL_STRNDUP
=1;
15343 HAVE_DECL_STRNLEN
=1;
15347 HAVE_DECL_STRTOK_R
=1;
15348 HAVE_DECL_STRERROR_R
=1;
15349 HAVE_DECL_STRSIGNAL
=1;
15354 REPLACE_STRCHRNUL
=0;
15360 REPLACE_STRCASESTR
=0;
15361 REPLACE_STRTOK_R
=0;
15362 REPLACE_STRERROR
=0;
15363 REPLACE_STRERROR_R
=0;
15364 REPLACE_STRSIGNAL
=0;
15365 UNDEFINE_STRTOK_R
=0;
15372 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15373 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15374 # irrelevant for anonymous mappings.
15375 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15376 if test "x$ac_cv_func_mmap" = xyes
; then :
15383 # Try to allow MAP_ANONYMOUS.
15384 gl_have_mmap_anonymous
=no
15385 if test $gl_have_mmap = yes; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15387 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15391 #include <sys/mman.h>
15392 #ifdef MAP_ANONYMOUS
15393 I cannot identify this map
15397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15398 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15399 gl_have_mmap_anonymous
=yes
15403 if test $gl_have_mmap_anonymous != yes; then
15404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15407 #include <sys/mman.h>
15409 I cannot identify this map
15413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15414 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15416 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15418 gl_have_mmap_anonymous
=yes
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15424 $as_echo "$gl_have_mmap_anonymous" >&6; }
15425 if test $gl_have_mmap_anonymous = yes; then
15427 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15437 if test $HAVE_MEMCHR = 1; then
15438 # Detect platform-specific bugs in some versions of glibc:
15439 # memchr should not dereference anything with length 0
15440 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15441 # memchr should not dereference overestimated length after a match
15442 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15443 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15444 # memchr should cast the second argument to 'unsigned char'.
15445 # This bug exists in Android 4.3.
15446 # Assume that memchr works on platforms that lack mprotect.
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15448 $as_echo_n "checking whether memchr works... " >&6; }
15449 if ${gl_cv_func_memchr_works+:} false
; then :
15450 $as_echo_n "(cached) " >&6
15452 if test "$cross_compiling" = yes; then :
15454 # Guess no on Android.
15455 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15456 # Guess yes on native Windows.
15457 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15458 # If we don't know, obey --enable-cross-guesses.
15459 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15466 #include <string.h>
15467 #if HAVE_SYS_MMAN_H
15468 # include <fcntl.h>
15469 # include <unistd.h>
15470 # include <sys/types.h>
15471 # include <sys/mman.h>
15473 # define MAP_FILE 0
15482 char *fence = NULL;
15483 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15484 # if HAVE_MAP_ANONYMOUS
15485 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15487 # else /* !HAVE_MAP_ANONYMOUS */
15488 const int flags = MAP_FILE | MAP_PRIVATE;
15489 int fd = open ("/dev/zero", O_RDONLY, 0666);
15493 int pagesize = getpagesize ();
15495 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15497 if (two_pages != (char *)(-1)
15498 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15499 fence = two_pages + pagesize;
15504 if (memchr (fence, 0, 0))
15506 strcpy (fence - 9, "12345678");
15507 if (memchr (fence - 9, 0, 79) != fence - 1)
15509 if (memchr (fence - 1, 0, 3) != fence - 1)
15512 /* Test against bug on Android 4.3. */
15518 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15527 if ac_fn_c_try_run
"$LINENO"; then :
15528 gl_cv_func_memchr_works
=yes
15530 gl_cv_func_memchr_works
=no
15532 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15533 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15539 $as_echo "$gl_cv_func_memchr_works" >&6; }
15540 case "$gl_cv_func_memchr_works" in
15542 *) REPLACE_MEMCHR
=1 ;;
15546 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15547 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15553 cat >>confdefs.h
<<_ACEOF
15554 #define HAVE_DECL_MEMMEM $ac_have_decl
15561 for ac_func
in memmem
15563 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15564 if test "x$ac_cv_func_memmem" = xyes
; then :
15565 cat >>confdefs.h
<<_ACEOF
15566 #define HAVE_MEMMEM 1
15572 if test $ac_cv_func_memmem = yes; then
15578 if test $ac_cv_have_decl_memmem = no
; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15582 $as_echo_n "checking whether memmem works... " >&6; }
15583 if ${gl_cv_func_memmem_works_always+:} false
; then :
15584 $as_echo_n "(cached) " >&6
15586 if test "$cross_compiling" = yes; then :
15587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15590 #ifdef __GNU_LIBRARY__
15591 #include <features.h>
15592 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15593 || __GLIBC_MINOR__ > 12)) \
15594 || (__GLIBC__ > 2)) \
15595 || defined __UCLIBC__
15598 #elif defined __CYGWIN__
15599 #include <cygwin/version.h>
15600 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15609 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15610 gl_cv_func_memmem_works_always
="guessing yes"
15612 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15621 #include <string.h> /* for memmem */
15622 #define P "_EF_BF_BD"
15623 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15624 #define NEEDLE P P P P P
15631 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15633 /* Check for empty needle behavior. */
15635 const char *haystack = "AAA";
15636 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
15645 if ac_fn_c_try_run
"$LINENO"; then :
15646 gl_cv_func_memmem_works_always
=yes
15648 gl_cv_func_memmem_works_always
=no
15650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15651 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15657 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15658 case "$gl_cv_func_memmem_works_always" in
15667 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15668 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15674 cat >>confdefs.h
<<_ACEOF
15675 #define HAVE_DECL_MEMRCHR $ac_have_decl
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
15683 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
15684 if ${gl_cv_minmax_in_limits_h+:} false
; then :
15685 $as_echo_n "(cached) " >&6
15687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 #include <limits.h>
15690 int x = MIN (42, 17);
15699 if ac_fn_c_try_compile
"$LINENO"; then :
15700 gl_cv_minmax_in_limits_h
=yes
15702 gl_cv_minmax_in_limits_h
=no
15704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
15707 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
15708 if test $gl_cv_minmax_in_limits_h = yes; then
15710 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
15720 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
15721 if ${gl_cv_minmax_in_sys_param_h+:} false
; then :
15722 $as_echo_n "(cached) " >&6
15724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 #include <sys/param.h>
15727 int x = MIN (42, 17);
15736 if ac_fn_c_try_compile
"$LINENO"; then :
15737 gl_cv_minmax_in_sys_param_h
=yes
15739 gl_cv_minmax_in_sys_param_h
=no
15741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
15744 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
15745 if test $gl_cv_minmax_in_sys_param_h = yes; then
15747 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15761 $as_echo_n "checking for O_CLOEXEC... " >&6; }
15762 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
15763 $as_echo_n "(cached) " >&6
15765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15780 if ac_fn_c_try_compile
"$LINENO"; then :
15781 gl_cv_macro_O_CLOEXEC
=yes
15783 gl_cv_macro_O_CLOEXEC
=no
15785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
15788 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
15793 $as_echo_n "checking for promoted mode_t type... " >&6; }
15794 if ${gl_cv_promoted_mode_t+:} false
; then :
15795 $as_echo_n "(cached) " >&6
15798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #include <sys/types.h>
15804 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
15809 if ac_fn_c_try_compile
"$LINENO"; then :
15810 gl_cv_promoted_mode_t
='int'
15812 gl_cv_promoted_mode_t
='mode_t'
15814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
15818 $as_echo "$gl_cv_promoted_mode_t" >&6; }
15820 cat >>confdefs.h
<<_ACEOF
15821 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
15836 GNULIB_FPRINTF_POSIX
=0;
15852 GNULIB_OBSTACK_PRINTF
=0;
15853 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15858 GNULIB_PRINTF_POSIX
=0;
15867 GNULIB_SPRINTF_POSIX
=0;
15868 GNULIB_STDIO_H_NONBLOCKING
=0;
15869 GNULIB_STDIO_H_SIGPIPE
=0;
15871 GNULIB_VASPRINTF
=0;
15876 GNULIB_VFPRINTF_POSIX
=0;
15878 GNULIB_VPRINTF_POSIX
=0;
15879 GNULIB_VSNPRINTF
=0;
15880 GNULIB_VSPRINTF_POSIX
=0;
15881 HAVE_DECL_FPURGE
=1;
15882 HAVE_DECL_FSEEKO
=1;
15883 HAVE_DECL_FTELLO
=1;
15884 HAVE_DECL_GETDELIM
=1;
15885 HAVE_DECL_GETLINE
=1;
15886 HAVE_DECL_OBSTACK_PRINTF
=1;
15887 HAVE_DECL_SNPRINTF
=1;
15888 HAVE_DECL_VSNPRINTF
=1;
15909 REPLACE_GETDELIM
=0;
15911 REPLACE_OBSTACK_PRINTF
=0;
15917 REPLACE_RENAMEAT
=0;
15918 REPLACE_SNPRINTF
=0;
15920 REPLACE_STDIO_READ_FUNCS
=0;
15921 REPLACE_STDIO_WRITE_FUNCS
=0;
15923 REPLACE_VASPRINTF
=0;
15924 REPLACE_VDPRINTF
=0;
15925 REPLACE_VFPRINTF
=0;
15927 REPLACE_VSNPRINTF
=0;
15928 REPLACE_VSPRINTF
=0;
15932 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
15933 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
15939 cat >>confdefs.h
<<_ACEOF
15940 #define HAVE_DECL_SETENV $ac_have_decl
15948 if test $ac_cv_have_decl_setenv = no
; then
15956 for ac_header
in search.h
15958 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15959 if test "x$ac_cv_header_search_h" = xyes
; then :
15960 cat >>confdefs.h
<<_ACEOF
15961 #define HAVE_SEARCH_H 1
15968 for ac_func
in tsearch
15970 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
15971 if test "x$ac_cv_func_tsearch" = xyes
; then :
15972 cat >>confdefs.h
<<_ACEOF
15973 #define HAVE_TSEARCH 1
15982 GNULIB_PTHREAD_SIGMASK
=0;
15984 GNULIB_SIGNAL_H_SIGPIPE
=0;
15985 GNULIB_SIGPROCMASK
=0;
15986 GNULIB_SIGACTION
=0;
15987 HAVE_POSIX_SIGNALBLOCKING
=1;
15988 HAVE_PTHREAD_SIGMASK
=1;
15993 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
15995 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
15997 HAVE_SIGHANDLER_T
=1;
15998 REPLACE_PTHREAD_SIGMASK
=0;
16002 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
16003 #include <signal.h>
16004 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
16005 #include <sys/types.h>
16008 if test "x$ac_cv_type_sigset_t" = xyes
; then :
16010 cat >>confdefs.h
<<_ACEOF
16011 #define HAVE_SIGSET_T 1
16014 gl_cv_type_sigset_t
=yes
16016 gl_cv_type_sigset_t
=no
16019 if test $gl_cv_type_sigset_t != yes; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16024 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16025 if ${ac_cv_type_uid_t+:} false
; then :
16026 $as_echo_n "(cached) " >&6
16028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 #include <sys/types.h>
16033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16034 $EGREP "uid_t" >/dev
/null
2>&1; then :
16035 ac_cv_type_uid_t
=yes
16037 ac_cv_type_uid_t
=no
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16043 $as_echo "$ac_cv_type_uid_t" >&6; }
16044 if test $ac_cv_type_uid_t = no
; then
16046 $as_echo "#define uid_t int" >>confdefs.h
16049 $as_echo "#define gid_t int" >>confdefs.h
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16054 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16055 if ${ac_cv_header_stdbool_h+:} false
; then :
16056 $as_echo_n "(cached) " >&6
16058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16061 #include <stdbool.h>
16066 typedef _Bool Bool;
16068 "error: bool is not defined"
16071 "error: false is not defined"
16074 "error: false is not 0"
16077 "error: true is not defined"
16080 "error: true is not 1"
16084 #ifndef __bool_true_false_are_defined
16085 "error: __bool_true_false_are_defined is not defined"
16088 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
16090 char a[true == 1 ? 1 : -1];
16091 char b[false == 0 ? 1 : -1];
16092 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16093 char d[(bool) 0.5 == true ? 1 : -1];
16094 /* See body of main program for 'e'. */
16095 char f[(Bool) 0.0 == false ? 1 : -1];
16097 char h[sizeof (Bool)];
16098 char i[sizeof s.t];
16099 enum { j = false, k = true, l = false * true, m = true * 256 };
16100 /* The following fails for
16101 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16103 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16104 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16105 /* Catch a bug in an HP-UX C compiler. See
16106 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16107 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16118 *pq |= q; *pq |= ! q;
16119 *qq |= q; *qq |= ! q;
16120 /* Refer to every declared value, to avoid compiler optimizations. */
16121 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16122 + !m + !n + !o + !p + !q + !pq + !qq);
16128 if ac_fn_c_try_compile
"$LINENO"; then :
16129 ac_cv_header_stdbool_h
=yes
16131 ac_cv_header_stdbool_h
=no
16133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16136 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16137 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16138 if test "x$ac_cv_type__Bool" = xyes
; then :
16140 cat >>confdefs.h
<<_ACEOF
16141 #define HAVE__BOOL 1
16150 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
16151 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
16157 cat >>confdefs.h
<<_ACEOF
16158 #define HAVE_DECL_STRDUP $ac_have_decl
16162 REPLACE_STRERROR_0
=0
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16164 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
16165 if ${gl_cv_func_strerror_0_works+:} false
; then :
16166 $as_echo_n "(cached) " >&6
16168 if test "$cross_compiling" = yes; then :
16170 # Guess yes on glibc systems.
16171 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16172 # Guess yes on musl systems.
16173 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16174 # Guess yes on native Windows.
16175 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16176 # If we don't know, obey --enable-cross-guesses.
16177 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
16181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 #include <string.h>
16192 str = strerror (0);
16193 if (!*str) result |= 1;
16194 if (errno) result |= 2;
16195 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16202 if ac_fn_c_try_run
"$LINENO"; then :
16203 gl_cv_func_strerror_0_works
=yes
16205 gl_cv_func_strerror_0_works
=no
16207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16214 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16215 case "$gl_cv_func_strerror_0_works" in
16218 REPLACE_STRERROR_0
=1
16220 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16234 if test $ac_cv_func_strerror_r = yes; then
16235 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16237 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16238 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16239 $as_echo_n "(cached) " >&6
16241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <string.h>
16244 int strerror_r (int, char *, size_t);
16254 if ac_fn_c_try_compile
"$LINENO"; then :
16255 gl_cv_func_strerror_r_posix_signature
=yes
16257 gl_cv_func_strerror_r_posix_signature
=no
16259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16263 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16264 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16266 $as_echo_n "checking whether strerror_r works... " >&6; }
16267 if ${gl_cv_func_strerror_r_works+:} false
; then :
16268 $as_echo_n "(cached) " >&6
16270 if test "$cross_compiling" = yes; then :
16274 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16275 # Guess no on HP-UX.
16276 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16277 # Guess no on BSD variants.
16278 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16279 # Guess yes otherwise.
16280 *) gl_cv_func_strerror_r_works
="guessing yes";;
16284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16287 #include <string.h>
16294 if (strerror_r (EACCES, buf, 0) < 0)
16297 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16299 strcpy (buf, "Unknown");
16300 if (strerror_r (0, buf, sizeof buf) != 0)
16304 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16308 if (strerror_r (-3, buf, sizeof buf) < 0)
16320 if ac_fn_c_try_run
"$LINENO"; then :
16321 gl_cv_func_strerror_r_works
=yes
16323 gl_cv_func_strerror_r_works
=no
16325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16332 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16335 if test $ac_cv_func___xpg_strerror_r = yes; then
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16337 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16338 if ${gl_cv_func_strerror_r_works+:} false
; then :
16339 $as_echo_n "(cached) " >&6
16341 if test "$cross_compiling" = yes; then :
16342 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h. */
16348 #include <string.h>
16353 int __xpg_strerror_r(int, char *, size_t);
16359 char buf[256] = "^";
16361 char *str = strerror (-1);
16362 strcpy (copy, str);
16363 if (__xpg_strerror_r (-2, buf, 1) == 0)
16367 __xpg_strerror_r (-2, buf, 256);
16368 if (strcmp (str, copy))
16376 if ac_fn_c_try_run
"$LINENO"; then :
16377 gl_cv_func_strerror_r_works
=yes
16379 gl_cv_func_strerror_r_works
=no
16381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16382 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16388 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16394 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16395 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16401 cat >>confdefs.h
<<_ACEOF
16402 #define HAVE_DECL_STRERROR_R $ac_have_decl
16419 if test $gl_cv_have_include_next = yes; then
16420 gl_cv_next_string_h
='<'string.h
'>'
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16423 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16424 if ${gl_cv_next_string_h+:} false
; then :
16425 $as_echo_n "(cached) " >&6
16430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16432 #include <string.h>
16435 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16436 *) gl_absname_cpp
="$ac_cpp" ;;
16441 gl_dirsep_regex
='[/\\]'
16444 gl_dirsep_regex
='\/'
16447 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16448 gl_header_literal_regex
=`echo 'string.h' \
16449 | sed -e "$gl_make_literal_regex_sed"`
16450 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16451 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16457 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16458 sed -n "$gl_absolute_header_sed"`
16460 gl_header
=$gl_cv_absolute_string_h
16461 gl_cv_next_string_h
='"'$gl_header'"'
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16466 $as_echo "$gl_cv_next_string_h" >&6; }
16468 NEXT_STRING_H
=$gl_cv_next_string_h
16470 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16472 gl_next_as_first_directive
='<'string.h
'>'
16474 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16475 gl_next_as_first_directive
=$gl_cv_next_string_h
16477 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16489 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16490 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16496 cat >>confdefs.h
<<_ACEOF
16497 #define HAVE_DECL_STRNLEN $ac_have_decl
16503 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16507 $as_echo_n "checking whether strstr works... " >&6; }
16508 if ${gl_cv_func_strstr_works_always+:} false
; then :
16509 $as_echo_n "(cached) " >&6
16511 if test "$cross_compiling" = yes; then :
16512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16515 #ifdef __GNU_LIBRARY__
16516 #include <features.h>
16517 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16518 || defined __UCLIBC__
16521 #elif defined __CYGWIN__
16522 #include <cygwin/version.h>
16523 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16533 gl_cv_func_strstr_works_always
="guessing yes"
16535 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16544 #include <string.h> /* for strstr */
16545 #ifdef __GNU_LIBRARY__
16546 #include <features.h>
16547 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16551 #define P "_EF_BF_BD"
16552 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16553 #define NEEDLE P P P P P
16558 return !!strstr (HAYSTACK, NEEDLE);
16564 if ac_fn_c_try_run
"$LINENO"; then :
16565 gl_cv_func_strstr_works_always
=yes
16567 gl_cv_func_strstr_works_always
=no
16569 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16570 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16576 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16577 case "$gl_cv_func_strstr_works_always" in
16585 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16586 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16592 cat >>confdefs.h
<<_ACEOF
16593 #define HAVE_DECL_STRTOK_R $ac_have_decl
16608 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16620 if test $gl_cv_have_include_next = yes; then
16621 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16624 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16625 if ${gl_cv_next_sys_types_h+:} false
; then :
16626 $as_echo_n "(cached) " >&6
16631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633 #include <sys/types.h>
16636 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16637 *) gl_absname_cpp
="$ac_cpp" ;;
16642 gl_dirsep_regex
='[/\\]'
16645 gl_dirsep_regex
='\/'
16648 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16649 gl_header_literal_regex
=`echo 'sys/types.h' \
16650 | sed -e "$gl_make_literal_regex_sed"`
16651 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16652 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16658 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16659 sed -n "$gl_absolute_header_sed"`
16661 gl_header
=$gl_cv_absolute_sys_types_h
16662 gl_cv_next_sys_types_h
='"'$gl_header'"'
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16667 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16669 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16671 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16673 gl_next_as_first_directive
='<'sys
/types.h
'>'
16675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16676 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16691 WINDOWS_STAT_INODES
=0
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16702 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16703 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
16704 $as_echo_n "(cached) " >&6
16706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16713 static struct timespec x; x.tv_sec = x.tv_nsec;
16718 if ac_fn_c_try_compile
"$LINENO"; then :
16719 gl_cv_sys_struct_timespec_in_time_h
=yes
16721 gl_cv_sys_struct_timespec_in_time_h
=no
16723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16726 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16728 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16729 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16730 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16731 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
16732 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16733 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16736 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16737 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
16738 $as_echo_n "(cached) " >&6
16740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 #include <sys/time.h>
16747 static struct timespec x; x.tv_sec = x.tv_nsec;
16752 if ac_fn_c_try_compile
"$LINENO"; then :
16753 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16755 gl_cv_sys_struct_timespec_in_sys_time_h
=no
16757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16760 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16761 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16762 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16765 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16766 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
16767 $as_echo_n "(cached) " >&6
16769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 #include <pthread.h>
16776 static struct timespec x; x.tv_sec = x.tv_nsec;
16781 if ac_fn_c_try_compile
"$LINENO"; then :
16782 gl_cv_sys_struct_timespec_in_pthread_h
=yes
16784 gl_cv_sys_struct_timespec_in_pthread_h
=no
16786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16789 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16790 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16791 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
16794 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
16795 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
16796 $as_echo_n "(cached) " >&6
16798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800 #include <unistd.h>
16805 static struct timespec x; x.tv_sec = x.tv_nsec;
16810 if ac_fn_c_try_compile
"$LINENO"; then :
16811 gl_cv_sys_struct_timespec_in_unistd_h
=yes
16813 gl_cv_sys_struct_timespec_in_unistd_h
=no
16815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
16818 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
16819 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
16820 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
16841 if test $gl_cv_have_include_next = yes; then
16842 gl_cv_next_time_h
='<'time.h
'>'
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16845 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16846 if ${gl_cv_next_time_h+:} false
; then :
16847 $as_echo_n "(cached) " >&6
16852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16857 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16858 *) gl_absname_cpp
="$ac_cpp" ;;
16863 gl_dirsep_regex
='[/\\]'
16866 gl_dirsep_regex
='\/'
16869 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16870 gl_header_literal_regex
=`echo 'time.h' \
16871 | sed -e "$gl_make_literal_regex_sed"`
16872 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16873 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16879 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16880 sed -n "$gl_absolute_header_sed"`
16882 gl_header
=$gl_cv_absolute_time_h
16883 gl_cv_next_time_h
='"'$gl_header'"'
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16888 $as_echo "$gl_cv_next_time_h" >&6; }
16890 NEXT_TIME_H
=$gl_cv_next_time_h
16892 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16894 gl_next_as_first_directive
='<'time.h
'>'
16896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16897 gl_next_as_first_directive
=$gl_cv_next_time_h
16899 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16912 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
16913 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
16919 cat >>confdefs.h
<<_ACEOF
16920 #define HAVE_DECL_UNSETENV $ac_have_decl
16927 if test $ac_cv_header_crtdefs_h = yes; then
16937 GNULIB_ISWXDIGIT
=0;
16941 GNULIB_TOWCTRANS
=0;
16945 REPLACE_ISWBLANK
=0;
16946 REPLACE_ISWDIGIT
=0;
16947 REPLACE_ISWXDIGIT
=0;
16957 GL_COND_LIBTOOL_TRUE
=
16958 GL_COND_LIBTOOL_FALSE
='#'
16960 GL_COND_LIBTOOL_TRUE
='#'
16961 GL_COND_LIBTOOL_FALSE
=
16964 gl_cond_libtool
=false
16967 gl_m4_base
='import/m4'
16978 gl_source_base
='import'
16981 if test $ac_cv_func_alloca_works = no
; then
16985 # Define an additional variable used in the Makefile substitution.
16986 if test $ac_cv_working_alloca_h = yes; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16988 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16989 if ${gl_cv_rpl_alloca+:} false
; then :
16990 $as_echo_n "(cached) " >&6
16993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16996 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17002 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
17003 gl_cv_rpl_alloca
=yes
17005 gl_cv_rpl_alloca
=no
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17012 $as_echo "$gl_cv_rpl_alloca" >&6; }
17013 if test $gl_cv_rpl_alloca = yes; then
17015 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17025 if test -n "$ALLOCA_H"; then
17026 GL_GENERATE_ALLOCA_H_TRUE
=
17027 GL_GENERATE_ALLOCA_H_FALSE
='#'
17029 GL_GENERATE_ALLOCA_H_TRUE
='#'
17030 GL_GENERATE_ALLOCA_H_FALSE
=
17034 if test $ac_cv_working_alloca_h = yes; then
17045 if test $ac_cv_header_arpa_inet_h = yes; then
17060 if test $gl_cv_have_include_next = yes; then
17061 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
17064 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
17065 if ${gl_cv_next_arpa_inet_h+:} false
; then :
17066 $as_echo_n "(cached) " >&6
17069 if test $ac_cv_header_arpa_inet_h = yes; then
17074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <arpa/inet.h>
17079 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17080 *) gl_absname_cpp
="$ac_cpp" ;;
17085 gl_dirsep_regex
='[/\\]'
17088 gl_dirsep_regex
='\/'
17091 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17092 gl_header_literal_regex
=`echo 'arpa/inet.h' \
17093 | sed -e "$gl_make_literal_regex_sed"`
17094 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17095 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17101 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17102 sed -n "$gl_absolute_header_sed"`
17104 gl_header
=$gl_cv_absolute_arpa_inet_h
17105 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
17107 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
17113 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
17115 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
17117 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17119 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
17121 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17122 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
17124 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17134 if test $ac_cv_header_sys_socket_h = yes; then
17137 if test $ac_cv_header_ws2tcpip_h = yes; then
17158 if test $ac_cv_func_btowc = no
; then
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17166 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17167 if ${gl_cv_func_btowc_nul+:} false
; then :
17168 $as_echo_n "(cached) " >&6
17171 if test "$cross_compiling" = yes; then :
17174 # Guess no on Cygwin.
17175 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17176 # Guess yes on native Windows.
17177 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
17178 # Guess yes otherwise.
17179 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17186 #include <string.h>
17187 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17189 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17190 included before <wchar.h>. */
17191 #include <stddef.h>
17197 if (btowc ('\0') != 0)
17202 if ac_fn_c_try_run
"$LINENO"; then :
17203 gl_cv_func_btowc_nul
=yes
17205 gl_cv_func_btowc_nul
=no
17207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17214 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17217 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17218 if ${gl_cv_func_btowc_eof+:} false
; then :
17219 $as_echo_n "(cached) " >&6
17223 # Guess no on IRIX.
17224 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17225 # Guess yes on native Windows.
17226 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
17227 # Guess yes otherwise.
17228 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17230 if test $LOCALE_FR != none
; then
17231 if test "$cross_compiling" = yes; then :
17234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17237 #include <locale.h>
17238 #include <string.h>
17239 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17241 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17242 included before <wchar.h>. */
17243 #include <stddef.h>
17249 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17251 if (btowc (EOF) != WEOF)
17257 if ac_fn_c_try_run
"$LINENO"; then :
17258 gl_cv_func_btowc_eof
=yes
17260 gl_cv_func_btowc_eof
=no
17262 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17263 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17270 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17272 case "$gl_cv_func_btowc_nul" in
17274 *) REPLACE_BTOWC
=1 ;;
17276 case "$gl_cv_func_btowc_eof" in
17278 *) REPLACE_BTOWC
=1 ;;
17282 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17291 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17308 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17314 $as_echo_n "checking for __builtin_expect... " >&6; }
17315 if ${gl_cv___builtin_expect+:} false
; then :
17316 $as_echo_n "(cached) " >&6
17318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17322 main (int argc, char **argv)
17324 argc = __builtin_expect (argc, 100);
17325 return argv[argc != 100][0];
17328 if ac_fn_c_try_link
"$LINENO"; then :
17329 gl_cv___builtin_expect
=yes
17331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17334 #include <builtins.h>
17336 main (int argc, char **argv)
17338 argc = __builtin_expect (argc, 100);
17339 return argv[argc != 100][0];
17342 if ac_fn_c_try_link
"$LINENO"; then :
17343 gl_cv___builtin_expect
="in <builtins.h>"
17345 gl_cv___builtin_expect
=no
17347 rm -f core conftest.err conftest.
$ac_objext \
17348 conftest
$ac_exeext conftest.
$ac_ext
17350 rm -f core conftest.err conftest.
$ac_objext \
17351 conftest
$ac_exeext conftest.
$ac_ext
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17354 $as_echo "$gl_cv___builtin_expect" >&6; }
17355 if test "$gl_cv___builtin_expect" = yes; then
17356 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17358 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17359 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17367 if test $ac_cv_func_canonicalize_file_name = no
; then
17368 HAVE_CANONICALIZE_FILE_NAME
=0
17369 if test $ac_cv_func_realpath = no
; then
17372 case "$gl_cv_func_realpath_works" in
17374 *) REPLACE_REALPATH
=1 ;;
17378 case "$gl_cv_func_realpath_works" in
17382 REPLACE_CANONICALIZE_FILE_NAME
=1
17388 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17397 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17402 cat >>confdefs.h
<<_ACEOF
17403 #define GNULIB_CANONICALIZE_LGPL 1
17412 GNULIB_CANONICALIZE_FILE_NAME
=1
17418 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17433 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17448 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
17455 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
17456 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
17457 $as_echo_n "(cached) " >&6
17459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17462 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17464 # include <unistd.h>
17466 #include <limits.h>
17467 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17468 # include <sys/param.h>
17470 #if !defined PATH_MAX && defined MAXPATHLEN
17471 # define PATH_MAX MAXPATHLEN
17475 # define PATH_MAX 1024
17477 #if defined _WIN32 && ! defined __CYGWIN__
17479 # define PATH_MAX 260
17483 have_arbitrary_file_name_length_limit
17486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17487 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17488 gl_cv_have_arbitrary_file_name_length_limit
=yes
17490 gl_cv_have_arbitrary_file_name_length_limit
=no
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17496 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17498 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17507 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17513 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17520 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17529 if test $ac_cv_header_sys_socket_h != yes; then
17530 for ac_header
in winsock2.h
17532 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17533 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17534 cat >>confdefs.h
<<_ACEOF
17535 #define HAVE_WINSOCK2_H 1
17543 if test "$ac_cv_header_winsock2_h" = yes; then
17545 UNISTD_H_HAVE_WINSOCK2_H
=1
17546 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17552 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17557 if test $REPLACE_CLOSE = 0; then
17561 if test $ac_cv_func_fchdir = no
; then
17565 if test $HAVE_FCHDIR = 0; then
17571 if test $REPLACE_CLOSE = 1; then
17580 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
17594 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17601 for ac_func
in closedir
17603 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
17604 if test "x$ac_cv_func_closedir" = xyes
; then :
17605 cat >>confdefs.h
<<_ACEOF
17606 #define HAVE_CLOSEDIR 1
17612 if test $ac_cv_func_closedir = no
; then
17619 if test $ac_cv_func_fchdir = no
; then
17623 if test $HAVE_FCHDIR = 0; then
17624 if test $HAVE_CLOSEDIR = 1; then
17629 case $host_os,$HAVE_CLOSEDIR in
17631 REPLACE_CLOSEDIR
=1;;
17634 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
17643 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
17657 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
17672 if test $gl_cv_have_include_next = yes; then
17673 gl_cv_next_ctype_h
='<'ctype.h
'>'
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
17676 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
17677 if ${gl_cv_next_ctype_h+:} false
; then :
17678 $as_echo_n "(cached) " >&6
17683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17684 /* end confdefs.h. */
17688 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17689 *) gl_absname_cpp
="$ac_cpp" ;;
17694 gl_dirsep_regex
='[/\\]'
17697 gl_dirsep_regex
='\/'
17700 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17701 gl_header_literal_regex
=`echo 'ctype.h' \
17702 | sed -e "$gl_make_literal_regex_sed"`
17703 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17710 gl_cv_absolute_ctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17711 sed -n "$gl_absolute_header_sed"`
17713 gl_header
=$gl_cv_absolute_ctype_h
17714 gl_cv_next_ctype_h
='"'$gl_header'"'
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
17719 $as_echo "$gl_cv_next_ctype_h" >&6; }
17721 NEXT_CTYPE_H
=$gl_cv_next_ctype_h
17723 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17725 gl_next_as_first_directive
='<'ctype.h
'>'
17727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17728 gl_next_as_first_directive
=$gl_cv_next_ctype_h
17730 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
=$gl_next_as_first_directive
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
17741 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
17742 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
17743 $as_echo_n "(cached) " >&6
17745 if test "$cross_compiling" = yes; then :
17747 # Guess yes on glibc systems with Linux kernel.
17748 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
17749 # Guess yes on musl systems with Linux kernel.
17750 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
17751 # Guess no on native Windows.
17752 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
17753 # If we don't know, obey --enable-cross-guesses.
17754 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
17758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17760 #include <sys/types.h>
17761 #include <sys/stat.h>
17762 #include <dirent.h>
17767 DIR *dp = opendir (".");
17774 { closedir (dp); return 2; }
17775 if (lstat (e->d_name, &st) != 0)
17776 { closedir (dp); return 3; }
17777 if (e->d_ino != st.st_ino)
17778 { closedir (dp); return 4; }
17786 if ac_fn_c_try_run
"$LINENO"; then :
17787 gl_cv_struct_dirent_d_ino
=yes
17789 gl_cv_struct_dirent_d_ino
=no
17791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
17797 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
17798 case "$gl_cv_struct_dirent_d_ino" in
17801 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
17808 $as_echo_n "checking for d_type member in directory struct... " >&6; }
17809 if ${gl_cv_struct_dirent_d_type+:} false
; then :
17810 $as_echo_n "(cached) " >&6
17812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 #include <sys/types.h>
17816 #include <dirent.h>
17821 struct dirent dp; dp.d_type = 0;
17826 if ac_fn_c_try_link
"$LINENO"; then :
17827 gl_cv_struct_dirent_d_type
=yes
17829 gl_cv_struct_dirent_d_type
=no
17831 rm -f core conftest.err conftest.
$ac_objext \
17832 conftest
$ac_exeext conftest.
$ac_ext
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
17837 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
17838 if test $gl_cv_struct_dirent_d_type = yes; then
17840 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
17857 if test $gl_cv_have_include_next = yes; then
17858 gl_cv_next_dirent_h
='<'dirent.h
'>'
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
17861 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
17862 if ${gl_cv_next_dirent_h+:} false
; then :
17863 $as_echo_n "(cached) " >&6
17866 if test $ac_cv_header_dirent_h = yes; then
17871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 #include <dirent.h>
17876 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17877 *) gl_absname_cpp
="$ac_cpp" ;;
17882 gl_dirsep_regex
='[/\\]'
17885 gl_dirsep_regex
='\/'
17888 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17889 gl_header_literal_regex
=`echo 'dirent.h' \
17890 | sed -e "$gl_make_literal_regex_sed"`
17891 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17892 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17898 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17899 sed -n "$gl_absolute_header_sed"`
17901 gl_header
=$gl_cv_absolute_dirent_h
17902 gl_cv_next_dirent_h
='"'$gl_header'"'
17904 gl_cv_next_dirent_h
='<'dirent.h
'>'
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
17910 $as_echo "$gl_cv_next_dirent_h" >&6; }
17912 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
17914 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17916 gl_next_as_first_directive
='<'dirent.h
'>'
17918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17919 gl_next_as_first_directive
=$gl_cv_next_dirent_h
17921 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
17926 if test $ac_cv_header_dirent_h = yes; then
17942 for ac_func
in dirfd
17944 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
17945 if test "x$ac_cv_func_dirfd" = xyes
; then :
17946 cat >>confdefs.h
<<_ACEOF
17947 #define HAVE_DIRFD 1
17953 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17954 #include <dirent.h>
17956 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
17962 cat >>confdefs.h
<<_ACEOF
17963 #define HAVE_DECL_DIRFD $ac_have_decl
17966 if test $ac_cv_have_decl_dirfd = no
; then
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17971 $as_echo_n "checking whether dirfd is a macro... " >&6; }
17972 if ${gl_cv_func_dirfd_macro+:} false
; then :
17973 $as_echo_n "(cached) " >&6
17975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17978 #include <sys/types.h>
17979 #include <dirent.h>
17981 dirent_header_defines_dirfd
17984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17985 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
17986 gl_cv_func_dirfd_macro
=yes
17988 gl_cv_func_dirfd_macro
=no
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17994 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
17996 # Use the replacement if we have no function or macro with that name,
17997 # or if OS/2 kLIBC whose dirfd() does not work.
17998 # Replace only if the system declares dirfd already.
17999 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
18000 no
,no
,*,yes |
*,*,os2
*,yes)
18003 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
18007 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
18008 ||
test $REPLACE_DIRFD = 1; then
18017 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
18021 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18022 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
18023 $as_echo_n "(cached) " >&6
18026 dirfd_save_CFLAGS
=$CFLAGS
18027 for ac_expr
in d_fd dd_fd
; do
18029 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18033 #include <sys/types.h>
18034 #include <dirent.h>
18038 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18043 if ac_fn_c_try_compile
"$LINENO"; then :
18047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18048 CFLAGS
=$dirfd_save_CFLAGS
18049 test "$dir_fd_found" = yes && break
18051 test "$dir_fd_found" = yes || ac_expr
=no_such_member
18053 gl_cv_sys_dir_fd_member_name
=$ac_expr
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
18058 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18059 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
18061 cat >>confdefs.h
<<_ACEOF
18062 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18080 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18091 $as_echo_n "checking whether // is distinct from /... " >&6; }
18092 if ${gl_cv_double_slash_root+:} false
; then :
18093 $as_echo_n "(cached) " >&6
18095 if test x
"$cross_compiling" = xyes
; then
18096 # When cross-compiling, there is no way to tell whether // is special
18097 # short of a list of hosts. However, the only known hosts to date
18098 # that have a distinct // are Apollo DomainOS (too old to port to),
18099 # Cygwin, and z/OS. If anyone knows of another system for which // has
18100 # special semantics and is distinct from /, please report it to
18101 # <bug-gnulib@gnu.org>.
18103 *-cygwin | i370-ibm-openedition
)
18104 gl_cv_double_slash_root
=yes ;;
18106 # Be optimistic and assume that / and // are the same when we
18108 gl_cv_double_slash_root
='unknown, assuming no' ;;
18111 set x
`ls -di / // 2>/dev/null`
18112 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
18113 gl_cv_double_slash_root
=no
18115 gl_cv_double_slash_root
=yes
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18120 $as_echo "$gl_cv_double_slash_root" >&6; }
18121 if test "$gl_cv_double_slash_root" = yes; then
18123 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18131 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18139 if test $ac_cv_func_fchdir = no
; then
18143 if test $HAVE_FCHDIR = 0; then
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
18148 $as_echo_n "checking whether dup works... " >&6; }
18149 if ${gl_cv_func_dup_works+:} false
; then :
18150 $as_echo_n "(cached) " >&6
18152 if test "$cross_compiling" = yes; then :
18154 # Guess no on native Windows.
18155 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
18156 *) gl_cv_func_dup_works
="guessing yes" ;;
18160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18162 #include <unistd.h>
18168 /* On OS/2 kLIBC, dup does not work on a directory fd. */
18169 int fd = open (".", O_RDONLY);
18170 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
18177 if ac_fn_c_try_run
"$LINENO"; then :
18178 gl_cv_func_dup_works
=yes
18180 gl_cv_func_dup_works
=no
18182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18183 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
18189 $as_echo "$gl_cv_func_dup_works" >&6; }
18190 case "$gl_cv_func_dup_works" in
18197 if test $REPLACE_DUP = 1; then
18206 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
18221 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18230 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18233 if test $HAVE_DUP2 = 1; then
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18235 $as_echo_n "checking whether dup2 works... " >&6; }
18236 if ${gl_cv_func_dup2_works+:} false
; then :
18237 $as_echo_n "(cached) " >&6
18239 if test "$cross_compiling" = yes; then :
18241 mingw
*) # on this platform, dup2 always returns 0 for success
18242 gl_cv_func_dup2_works
="guessing no" ;;
18243 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18244 gl_cv_func_dup2_works
="guessing no" ;;
18246 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18248 gl_cv_func_dup2_works
="guessing no" ;;
18249 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18250 gl_cv_func_dup2_works
="guessing no" ;;
18251 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18252 gl_cv_func_dup2_works
="guessing no" ;;
18253 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
18254 gl_cv_func_dup2_works
="guessing no" ;;
18255 *) gl_cv_func_dup2_works
="guessing yes" ;;
18258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18263 #include <limits.h>
18264 #include <sys/resource.h>
18265 #include <unistd.h>
18266 #ifndef RLIM_SAVED_CUR
18267 # define RLIM_SAVED_CUR RLIM_INFINITY
18269 #ifndef RLIM_SAVED_MAX
18270 # define RLIM_SAVED_MAX RLIM_INFINITY
18277 int bad_fd = INT_MAX;
18278 struct rlimit rlim;
18279 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18280 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18281 && rlim.rlim_cur != RLIM_INFINITY
18282 && rlim.rlim_cur != RLIM_SAVED_MAX
18283 && rlim.rlim_cur != RLIM_SAVED_CUR)
18284 bad_fd = rlim.rlim_cur;
18286 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18289 if (dup2 (1, 1) != 1)
18292 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18296 if (dup2 (0, 0) != -1)
18298 /* Many gnulib modules require POSIX conformance of EBADF. */
18299 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18301 /* Flush out some cygwin core dumps. */
18302 if (dup2 (2, -1) != -1 || errno != EBADF)
18306 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
18308 int fd = open (".", O_RDONLY);
18311 else if (dup2 (fd, fd + 1) == -1)
18322 if ac_fn_c_try_run
"$LINENO"; then :
18323 gl_cv_func_dup2_works
=yes
18325 gl_cv_func_dup2_works
=no
18327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18334 $as_echo "$gl_cv_func_dup2_works" >&6; }
18335 case "$gl_cv_func_dup2_works" in
18339 for ac_func
in setdtablesize
18341 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18342 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
18343 cat >>confdefs.h
<<_ACEOF
18344 #define HAVE_SETDTABLESIZE 1
18357 if test $ac_cv_func_fchdir = no
; then
18361 if test $HAVE_FCHDIR = 0; then
18362 if test $HAVE_DUP2 = 1; then
18368 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
18377 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18392 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18408 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18415 $as_echo_n "checking for error_at_line... " >&6; }
18416 if ${ac_cv_lib_error_at_line+:} false
; then :
18417 $as_echo_n "(cached) " >&6
18419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18425 error_at_line (0, 0, "", 0, "an error occurred");
18430 if ac_fn_c_try_link
"$LINENO"; then :
18431 ac_cv_lib_error_at_line
=yes
18433 ac_cv_lib_error_at_line
=no
18435 rm -f core conftest.err conftest.
$ac_objext \
18436 conftest
$ac_exeext conftest.
$ac_ext
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18439 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18441 if test $ac_cv_lib_error_at_line = no
; then
18450 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18464 if test $ac_cv_have_decl_fchdir = no
; then
18469 if test $HAVE_FCHDIR = 0; then
18478 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18482 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18485 $as_echo_n "checking whether open can visit directories... " >&6; }
18486 if ${gl_cv_func_open_directory_works+:} false
; then :
18487 $as_echo_n "(cached) " >&6
18489 if test "$cross_compiling" = yes; then :
18491 # Guess yes on Linux systems.
18492 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18493 # Guess yes on glibc systems.
18494 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18495 # Guess no on native Windows.
18496 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18497 # If we don't know, obey --enable-cross-guesses.
18498 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18509 return open(".", O_RDONLY) < 0;
18514 if ac_fn_c_try_run
"$LINENO"; then :
18515 gl_cv_func_open_directory_works
=yes
18517 gl_cv_func_open_directory_works
=no
18519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18525 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18526 case "$gl_cv_func_open_directory_works" in
18530 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18547 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18556 if test $ac_cv_func_fcntl = no
; then
18560 if test $ac_cv_func_fcntl = no
; then
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18568 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18569 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
18570 $as_echo_n "(cached) " >&6
18572 if test "$cross_compiling" = yes; then :
18574 aix
* | cygwin
* | haiku
*)
18575 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
18576 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
18579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18583 #include <limits.h>
18584 #include <sys/resource.h>
18585 #include <unistd.h>
18586 #ifndef RLIM_SAVED_CUR
18587 # define RLIM_SAVED_CUR RLIM_INFINITY
18589 #ifndef RLIM_SAVED_MAX
18590 # define RLIM_SAVED_MAX RLIM_INFINITY
18597 int bad_fd = INT_MAX;
18598 struct rlimit rlim;
18599 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18600 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18601 && rlim.rlim_cur != RLIM_INFINITY
18602 && rlim.rlim_cur != RLIM_SAVED_MAX
18603 && rlim.rlim_cur != RLIM_SAVED_CUR)
18604 bad_fd = rlim.rlim_cur;
18605 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18606 if (errno != EINVAL) result |= 2;
18607 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18608 if (errno != EINVAL) result |= 8;
18609 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18612 fd = open (".", O_RDONLY);
18615 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18625 if ac_fn_c_try_run
"$LINENO"; then :
18626 gl_cv_func_fcntl_f_dupfd_works
=yes
18628 gl_cv_func_fcntl_f_dupfd_works
=no
18630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18636 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18637 case $gl_cv_func_fcntl_f_dupfd_works in
18642 if test $ac_cv_func_fcntl = no
; then
18649 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
18654 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
18655 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
18656 $as_echo_n "(cached) " >&6
18658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18662 #ifndef F_DUPFD_CLOEXEC
18674 if ac_fn_c_try_compile
"$LINENO"; then :
18675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18679 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
18680 it to support the semantics on older kernels that failed with EINVAL. */
18692 if ac_fn_c_try_compile
"$LINENO"; then :
18693 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
18695 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
18697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18699 gl_cv_func_fcntl_f_dupfd_cloexec
=no
18701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
18704 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
18705 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
18709 if test $ac_cv_func_fcntl = no
; then
18721 if test $ac_cv_func_fchdir = no
; then
18725 if test $HAVE_FCHDIR = 0; then
18729 if test $ac_cv_func_fcntl = no
; then
18738 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
18747 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
18761 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
18776 if test $gl_cv_have_include_next = yes; then
18777 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
18780 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
18781 if ${gl_cv_next_fcntl_h+:} false
; then :
18782 $as_echo_n "(cached) " >&6
18787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18792 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18793 *) gl_absname_cpp
="$ac_cpp" ;;
18798 gl_dirsep_regex
='[/\\]'
18801 gl_dirsep_regex
='\/'
18804 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18805 gl_header_literal_regex
=`echo 'fcntl.h' \
18806 | sed -e "$gl_make_literal_regex_sed"`
18807 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18808 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18814 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18815 sed -n "$gl_absolute_header_sed"`
18817 gl_header
=$gl_cv_absolute_fcntl_h
18818 gl_cv_next_fcntl_h
='"'$gl_header'"'
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
18823 $as_echo "$gl_cv_next_fcntl_h" >&6; }
18825 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
18827 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18829 gl_next_as_first_directive
='<'fcntl.h
'>'
18831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18832 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
18834 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
18850 cat >>confdefs.h
<<_ACEOF
18851 #define GNULIB_FD_SAFER_FLAG 1
18860 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
18861 #include <dirent.h>
18864 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
18870 cat >>confdefs.h
<<_ACEOF
18871 #define HAVE_DECL_FDOPENDIR $ac_have_decl
18873 if test $ac_have_decl = 1; then :
18876 HAVE_DECL_FDOPENDIR
=0
18880 if test $ac_cv_func_fdopendir = no
; then
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
18884 $as_echo_n "checking whether fdopendir works... " >&6; }
18885 if ${gl_cv_func_fdopendir_works+:} false
; then :
18886 $as_echo_n "(cached) " >&6
18888 if test "$cross_compiling" = yes; then :
18890 # Guess yes on glibc systems.
18891 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18892 # Guess yes on musl systems.
18893 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18894 # If we don't know, obey --enable-cross-guesses.
18895 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
18899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18902 #include <dirent.h>
18904 #include <unistd.h>
18905 #if !HAVE_DECL_FDOPENDIR
18907 # ifdef __cplusplus
18910 DIR *fdopendir (int);
18917 int fd = open ("conftest.c", O_RDONLY);
18918 if (fd < 0) result |= 1;
18919 if (fdopendir (fd)) result |= 2;
18920 if (close (fd)) result |= 4;
18926 if ac_fn_c_try_run
"$LINENO"; then :
18927 gl_cv_func_fdopendir_works
=yes
18929 gl_cv_func_fdopendir_works
=no
18931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18932 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
18937 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
18938 case "$gl_cv_func_fdopendir_works" in
18941 REPLACE_FDOPENDIR
=1
18946 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
18955 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
18969 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
18975 cat >>confdefs.h
<<_ACEOF
18976 #define GNULIB_FDOPENDIR 1
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
18985 $as_echo_n "checking for flexible array member... " >&6; }
18986 if ${ac_cv_c_flexmember+:} false
; then :
18987 $as_echo_n "(cached) " >&6
18989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18991 #include <stdlib.h>
18993 #include <stddef.h>
18994 struct m { struct m *next, **list; char name[]; };
18995 struct s { struct s *p; struct m *m; int n; double d[]; };
18999 int m = getchar ();
19000 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
19001 nbytes += sizeof (struct s) - 1;
19002 nbytes -= nbytes % sizeof (struct s);
19003 struct s *p = malloc (nbytes);
19007 return p->d != (double *) NULL;
19012 if ac_fn_c_try_compile
"$LINENO"; then :
19013 ac_cv_c_flexmember
=yes
19015 ac_cv_c_flexmember
=no
19017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19020 $as_echo "$ac_cv_c_flexmember" >&6; }
19021 if test $ac_cv_c_flexmember = yes; then
19023 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19026 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19034 REPLACE_FLOAT_LDBL
=0
19036 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
19039 freebsd
* | dragonfly
*)
19040 case "$host_cpu" in
19045 # On x86_64 systems, the C compiler may still be generating
19047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19049 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
19056 if ac_fn_c_try_compile
"$LINENO"; then :
19061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19066 case "$host_cpu" in
19074 aix
* | freebsd
* | dragonfly
* | linux
*)
19075 if test -n "$FLOAT_H"; then
19076 REPLACE_FLOAT_LDBL
=1
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
19083 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
19084 if ${gl_cv_func_itold_works+:} false
; then :
19085 $as_echo_n "(cached) " >&6
19088 if test "$cross_compiling" = yes; then :
19091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19093 #if defined __LP64__ || defined __arch64__
19100 if ac_fn_c_try_compile
"$LINENO"; then :
19101 gl_cv_func_itold_works
="guessing no"
19103 gl_cv_func_itold_works
="guessing yes"
19105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19107 # Guess yes on native Windows.
19108 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
19109 *) gl_cv_func_itold_works
="guessing yes" ;;
19113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19117 volatile long double ld;
19126 if ac_fn_c_try_run
"$LINENO"; then :
19127 gl_cv_func_itold_works
=yes
19129 gl_cv_func_itold_works
=no
19131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
19138 $as_echo "$gl_cv_func_itold_works" >&6; }
19139 case "$gl_cv_func_itold_works" in
19146 if test -n "$FLOAT_H"; then
19155 if test $gl_cv_have_include_next = yes; then
19156 gl_cv_next_float_h
='<'float.h
'>'
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19159 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19160 if ${gl_cv_next_float_h+:} false
; then :
19161 $as_echo_n "(cached) " >&6
19166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19171 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19172 *) gl_absname_cpp
="$ac_cpp" ;;
19177 gl_dirsep_regex
='[/\\]'
19180 gl_dirsep_regex
='\/'
19183 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19184 gl_header_literal_regex
=`echo 'float.h' \
19185 | sed -e "$gl_make_literal_regex_sed"`
19186 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19193 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19194 sed -n "$gl_absolute_header_sed"`
19196 gl_header
=$gl_cv_absolute_float_h
19197 gl_cv_next_float_h
='"'$gl_header'"'
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19202 $as_echo "$gl_cv_next_float_h" >&6; }
19204 NEXT_FLOAT_H
=$gl_cv_next_float_h
19206 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19208 gl_next_as_first_directive
='<'float.h
'>'
19210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19211 gl_next_as_first_directive
=$gl_cv_next_float_h
19213 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
19220 if test -n "$FLOAT_H"; then
19221 GL_GENERATE_FLOAT_H_TRUE
=
19222 GL_GENERATE_FLOAT_H_FALSE
='#'
19224 GL_GENERATE_FLOAT_H_TRUE
='#'
19225 GL_GENERATE_FLOAT_H_FALSE
=
19230 if test $REPLACE_FLOAT_LDBL = 1; then
19239 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
19242 if test $REPLACE_ITOLD = 1; then
19251 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
19258 gl_fnmatch_required_lowercase
=`
19259 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19262 if test $ac_cv_func_fnmatch = no
; then
19265 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19267 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19268 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
19269 $as_echo_n "(cached) " >&6
19271 if test $gl_fnmatch_required = GNU
; then
19272 gl_fnmatch_gnu_start
=
19273 gl_fnmatch_gnu_end
=
19275 gl_fnmatch_gnu_start
='#if 0'
19276 gl_fnmatch_gnu_end
='#endif'
19278 if test "$cross_compiling" = yes; then :
19280 # Guess yes on musl systems.
19281 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
19282 # Guess no otherwise, even on glibc systems.
19283 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
19287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19289 #include <fnmatch.h>
19291 y (char const *pattern, char const *string, int flags)
19293 return fnmatch (pattern, string, flags) == 0;
19296 n (char const *pattern, char const *string, int flags)
19298 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19304 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19305 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19306 static char const A_1[] = { 'A' - 1, 0 };
19307 static char const A01[] = { 'A' + 1, 0 };
19308 static char const a_1[] = { 'a' - 1, 0 };
19309 static char const a01[] = { 'a' + 1, 0 };
19310 static char const bs_1[] = { '\\\\' - 1, 0 };
19311 static char const bs01[] = { '\\\\' + 1, 0 };
19313 if (!n ("a*", "", 0))
19315 if (!y ("a*", "abc", 0))
19317 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
19319 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
19321 if (!y ("a\\\\bc", "abc", 0))
19323 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
19325 if (!y ("*x", ".x", 0))
19327 if (!n ("*x", ".x", FNM_PERIOD))
19329 if (!y (Apat, "\\\\", 0))
19331 if (!y (Apat, "A", 0))
19333 if (!y (apat, "\\\\", 0))
19335 if (!y (apat, "a", 0))
19337 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
19339 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
19341 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
19343 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
19345 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
19347 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
19349 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
19351 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
19353 $gl_fnmatch_gnu_start
19354 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
19356 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
19358 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
19360 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
19362 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
19364 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
19366 $gl_fnmatch_gnu_end
19373 if ac_fn_c_try_run
"$LINENO"; then :
19374 eval "$gl_fnmatch_cache_var=yes"
19376 eval "$gl_fnmatch_cache_var=no"
19378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19379 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19384 eval ac_res
=\$
$gl_fnmatch_cache_var
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19386 $as_echo "$ac_res" >&6; }
19387 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19388 case "$gl_fnmatch_result" in
19390 *) REPLACE_FNMATCH
=1 ;;
19393 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19396 FNMATCH_H
='fnmatch.h'
19397 if test -n "$FNMATCH_H"; then
19398 GL_GENERATE_FNMATCH_H_TRUE
=
19399 GL_GENERATE_FNMATCH_H_FALSE
='#'
19401 GL_GENERATE_FNMATCH_H_TRUE
='#'
19402 GL_GENERATE_FNMATCH_H_FALSE
=
19408 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19417 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19435 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19444 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19453 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19462 cat >>confdefs.h
<<_ACEOF
19463 #define GNULIB_FNMATCH_GNU 1
19469 if test $gl_func_frexp != yes; then
19478 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
19492 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
19497 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19506 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19520 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19538 if test $ac_cv_func_fchdir = no
; then
19542 if test $HAVE_FCHDIR = 0; then
19543 case "$gl_cv_func_open_directory_works" in
19552 if test $REPLACE_FSTAT = 1; then
19561 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19573 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
19593 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
19604 if test $ac_cv_func_fstatat = no
; then
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
19608 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
19609 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
19610 $as_echo_n "(cached) " >&6
19612 if test "$cross_compiling" = yes; then :
19614 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
19615 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
19619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19623 #include <sys/stat.h>
19628 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
19632 if ac_fn_c_try_run
"$LINENO"; then :
19633 gl_cv_func_fstatat_zero_flag
=yes
19635 gl_cv_func_fstatat_zero_flag
=no
19637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
19644 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
19646 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
19648 *) REPLACE_FSTATAT
=1 ;;
19653 REPLACE_FSTATAT
=1 ;;
19656 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
19659 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
19665 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
19674 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
19688 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
19700 gl_cv_func_getcwd_path_max
=yes
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
19709 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19710 if ${gl_cv_func_getcwd_path_max+:} false
; then :
19711 $as_echo_n "(cached) " >&6
19713 # Arrange for deletion of the temporary directory this test creates.
19714 ac_clean_files
="$ac_clean_files confdir3"
19715 if test "$cross_compiling" = yes; then :
19716 # Cross-compilation guesses:
19718 aix
*) # On AIX, it has the AIX bug.
19719 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
19720 gnu
*) # On Hurd, it is 'yes'.
19721 gl_cv_func_getcwd_path_max
='guessing yes' ;;
19722 linux
* | kfreebsd
*)
19723 # On older Linux+glibc it's 'no, but it is partly working',
19724 # on newer Linux+glibc it's 'yes'.
19725 # On Linux+musl libc, it's 'no, but it is partly working'.
19726 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
19727 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
19728 *) # If we don't know, obey --enable-cross-guesses.
19729 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
19733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19737 #include <stdlib.h>
19739 # include <unistd.h>
19741 # include <direct.h>
19743 #include <string.h>
19744 #include <limits.h>
19745 #include <sys/stat.h>
19746 #include <sys/types.h>
19750 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19752 # include <unistd.h>
19754 #include <limits.h>
19755 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19756 # include <sys/param.h>
19758 #if !defined PATH_MAX && defined MAXPATHLEN
19759 # define PATH_MAX MAXPATHLEN
19763 # define PATH_MAX 1024
19765 #if defined _WIN32 && ! defined __CYGWIN__
19767 # define PATH_MAX 260
19772 # define AT_FDCWD 0
19774 #ifdef ENAMETOOLONG
19775 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19777 # define is_ENAMETOOLONG(x) 0
19780 /* Use the getcwd function, not any macro. */
19783 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19787 # define S_IRWXU 0700
19790 /* The length of this name must be 8. */
19791 #define DIR_NAME "confdir3"
19792 #define DIR_NAME_LEN 8
19793 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19795 /* The length of "../". */
19796 #define DOTDOTSLASH_LEN 3
19798 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19799 #define BUF_SLOP 20
19805 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19806 at least not on a local file system. And if we were to start worrying
19807 about remote file systems, we'd have to enable the wrapper function
19808 all of the time, just to be safe. That's not worth the cost. */
19810 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19811 - DIR_NAME_SIZE - BUF_SLOP) \
19813 /* FIXME: Assuming there's a system for which this is true,
19814 this should be done in a compile test. */
19817 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19818 + DIR_NAME_SIZE + BUF_SLOP];
19819 char *cwd = getcwd (buf, PATH_MAX);
19820 size_t initial_cwd_len;
19823 size_t n_chdirs = 0;
19828 cwd_len = initial_cwd_len = strlen (cwd);
19832 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19835 cwd_len += DIR_NAME_SIZE;
19836 /* If mkdir or chdir fails, it could be that this system cannot create
19837 any file with an absolute name longer than PATH_MAX, such as cygwin.
19838 If so, leave fail as 0, because the current working directory can't
19839 be too long for getcwd if it can't even be created. On Linux with
19840 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
19841 too long; ignore this failure because the getcwd() system call
19842 produces good results whereas the gnulib substitute calls getdents64
19843 which fails with error EPROTO.
19844 For other errors, be pessimistic and consider that as a failure,
19846 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19848 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19850 if (! (errno == EINVAL))
19856 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19860 c = getcwd (buf, PATH_MAX);
19861 if (!c && errno == ENOENT)
19871 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19877 /* Our replacement needs to be able to stat() long ../../paths,
19878 so generate a path larger than PATH_MAX to check,
19879 avoiding the replacement if we can't stat(). */
19880 c = getcwd (buf, cwd_len + 1);
19881 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
19888 if (dotdot_max <= cwd_len - initial_cwd_len)
19890 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
19892 c = getcwd (buf, cwd_len + 1);
19895 if (! (errno == ERANGE || errno == ENOENT
19896 || is_ENAMETOOLONG (errno)))
19901 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
19909 if (c && strlen (c) != cwd_len)
19917 /* Leaving behind such a deep directory is not polite.
19918 So clean up here, right away, even though the driving
19919 shell script would also clean up. */
19923 /* Try rmdir first, in case the chdir failed. */
19925 for (i = 0; i <= n_chdirs; i++)
19927 if (chdir ("..") < 0)
19929 if (rmdir (DIR_NAME) != 0)
19939 if ac_fn_c_try_run
"$LINENO"; then :
19940 gl_cv_func_getcwd_path_max
=yes
19943 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
19944 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
19945 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
19946 *) gl_cv_func_getcwd_path_max
=no
;;
19949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
19956 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
19958 case "$gl_cv_func_getcwd_null" in
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
19967 $as_echo_n "checking for getpagesize... " >&6; }
19968 if ${gl_cv_func_getpagesize+:} false
; then :
19969 $as_echo_n "(cached) " >&6
19971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19972 /* end confdefs.h. */
19973 #include <unistd.h>
19977 return getpagesize();
19983 if ac_fn_c_try_link
"$LINENO"; then :
19984 gl_cv_func_getpagesize
=yes
19986 gl_cv_func_getpagesize
=no
19988 rm -f core conftest.err conftest.
$ac_objext \
19989 conftest
$ac_exeext conftest.
$ac_ext
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
19993 $as_echo "$gl_cv_func_getpagesize" >&6; }
19995 if test $gl_cv_func_getpagesize = yes; then
19997 cat >>confdefs.h
<<_ACEOF
19998 #define HAVE_GETPAGESIZE 1
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
20004 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
20005 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
20006 $as_echo_n "(cached) " >&6
20008 # Remove any remnants of a previous test.
20009 rm -rf confdir-14B---
20010 # Arrange for deletion of the temporary directory this test creates.
20011 ac_clean_files
="$ac_clean_files confdir-14B---"
20012 if test "$cross_compiling" = yes; then :
20014 # Guess no on musl systems.
20015 *-musl*) gl_cv_func_getcwd_abort_bug
="guessing no" ;;
20016 # Guess yes otherwise, even on glibc systems.
20017 *) gl_cv_func_getcwd_abort_bug
="guessing yes"
20021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20025 #include <stdlib.h>
20027 # include <unistd.h>
20028 #else /* on Windows with MSVC */
20029 # include <direct.h>
20031 #include <string.h>
20032 #include <sys/stat.h>
20035 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20037 # include <unistd.h>
20039 #include <limits.h>
20040 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20041 # include <sys/param.h>
20043 #if !defined PATH_MAX && defined MAXPATHLEN
20044 # define PATH_MAX MAXPATHLEN
20048 # define PATH_MAX 1024
20050 #if defined _WIN32 && ! defined __CYGWIN__
20052 # define PATH_MAX 260
20056 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
20060 # define S_IRWXU 0700
20063 /* FIXME: skip the run-test altogether on systems without getpagesize. */
20064 #if ! HAVE_GETPAGESIZE
20065 # define getpagesize() 0
20068 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20069 the 16kB pagesize on ia64 linux. Those conditions make the code below
20070 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
20071 #define TARGET_LEN (5 * 1024)
20077 size_t initial_cwd_len;
20080 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20081 this relatively expensive and invasive test if that's not true. */
20083 int bug_possible = PATH_MAX < getpagesize ();
20085 int bug_possible = 0;
20087 if (! bug_possible)
20090 cwd = getcwd (NULL, 0);
20094 initial_cwd_len = strlen (cwd);
20099 static char const dir_name[] = "confdir-14B---";
20100 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20101 / sizeof dir_name);
20103 for (d = 0; d < desired_depth; d++)
20105 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20107 if (! (errno == ERANGE || errno == ENAMETOOLONG
20108 || errno == ENOENT))
20109 fail = 3; /* Unable to construct deep hierarchy. */
20114 /* If libc has the bug in question, this invocation of getcwd
20115 results in a failed assertion. */
20116 cwd = getcwd (NULL, 0);
20118 fail = 4; /* getcwd didn't assert, but it failed for a long name
20119 where the answer could have been learned. */
20122 /* Call rmdir first, in case the above chdir failed. */
20126 if (chdir ("..") < 0)
20139 if ac_fn_c_try_run
"$LINENO"; then :
20140 gl_cv_func_getcwd_abort_bug
=no
20143 if test $ret -ge 128 ||
test $ret = 4; then
20144 gl_cv_func_getcwd_abort_bug
=yes
20146 gl_cv_func_getcwd_abort_bug
=no
20150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
20157 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
20158 case "$gl_cv_func_getcwd_abort_bug" in
20171 case "$gl_cv_func_getcwd_path_max" in
20172 *"no" |
*"no, it has the AIX bug") ;;
20175 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
20179 case "$gl_cv_func_getcwd_path_max" in
20180 *"no, but it is partly working")
20182 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
20185 *"yes, but with shorter paths")
20187 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
20192 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
20193 ||
test $gl_cv_func_getcwd_posix_signature != yes \
20194 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
20195 ||
test $gl_abort_bug = yes; then
20199 if test $REPLACE_GETCWD = 1; then
20208 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
20218 cat >>confdefs.h
<<_ACEOF
20219 #define GNULIB_GETCWD 1
20234 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20243 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
20250 if test $REPLACE_GETCWD = 1; then
20259 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
20273 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20282 if test $ac_cv_func_getdtablesize = yes &&
20283 test $ac_cv_have_decl_getdtablesize = yes; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
20285 $as_echo_n "checking whether getdtablesize works... " >&6; }
20286 if ${gl_cv_func_getdtablesize_works+:} false
; then :
20287 $as_echo_n "(cached) " >&6
20290 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
20292 if test "$cross_compiling" = yes; then :
20294 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
20295 gl_cv_func_getdtablesize_works
="guessing no" ;;
20296 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
20300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20303 #include <unistd.h>
20307 int size = getdtablesize();
20308 if (dup2 (0, getdtablesize()) != -1)
20310 if (size != getdtablesize())
20317 if ac_fn_c_try_run
"$LINENO"; then :
20318 gl_cv_func_getdtablesize_works
=yes
20320 gl_cv_func_getdtablesize_works
=no
20322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
20331 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
20332 case "$gl_cv_func_getdtablesize_works" in
20333 *yes |
"no (limitation)") ;;
20334 *) REPLACE_GETDTABLESIZE
=1 ;;
20337 HAVE_GETDTABLESIZE
=0
20340 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20349 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20358 GNULIB_GETDTABLESIZE
=1
20364 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20374 if test $ac_cv_have_decl_getlogin_r = no
; then
20375 HAVE_DECL_GETLOGIN_R
=0
20379 if test $ac_cv_func_getlogin_r = no
; then
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20385 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20386 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20387 $as_echo_n "(cached) " >&6
20391 # Guess no on Mac OS X, OSF/1.
20392 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20393 # Guess yes otherwise.
20394 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20396 if test "$cross_compiling" = yes; then :
20399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20402 #include <stddef.h>
20403 #include <string.h>
20404 #include <unistd.h>
20405 #if !HAVE_DECL_GETLOGIN_R
20407 # ifdef __cplusplus
20410 int getlogin_r (char *, size_t);
20418 if (getlogin_r (buf, 0) == 0)
20420 if (getlogin_r (buf, 1) == 0)
20422 if (getlogin_r (buf, 100) == 0)
20424 size_t n = strlen (buf);
20425 if (getlogin_r (buf, n) == 0)
20431 if ac_fn_c_try_run
"$LINENO"; then :
20432 gl_cv_func_getlogin_r_works
=yes
20434 gl_cv_func_getlogin_r_works
=no
20436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20443 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20444 case "$gl_cv_func_getlogin_r_works" in
20446 *) REPLACE_GETLOGIN_R
=1 ;;
20450 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20459 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20470 GNULIB_GETLOGIN_R
=1
20476 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20485 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20487 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20493 cat >>confdefs.h
<<_ACEOF
20494 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20496 if test $ac_have_decl = 1; then :
20500 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20502 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20508 cat >>confdefs.h
<<_ACEOF
20509 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20511 if test $ac_have_decl = 1; then :
20515 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20517 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20523 cat >>confdefs.h
<<_ACEOF
20524 #define HAVE_DECL___ARGV $ac_have_decl
20526 if test $ac_have_decl = 1; then :
20531 # Incur the cost of this test only if none of the above worked.
20532 if test $ac_found = 0; then
20533 # On OpenBSD 5.1, using the global __progname variable appears to be
20534 # the only way to implement getprogname.
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20536 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20537 if ${gl_cv_var___progname+:} false
; then :
20538 $as_echo_n "(cached) " >&6
20541 gl_cv_var___progname
=
20542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h. */
20544 extern char *__progname;
20548 return *__progname;
20554 if ac_fn_c_try_link
"$LINENO"; then :
20555 gl_cv_var___progname
=yes
20558 rm -f core conftest.err conftest.
$ac_objext \
20559 conftest
$ac_exeext conftest.
$ac_ext
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20564 $as_echo "$gl_cv_var___progname" >&6; }
20565 if test "$gl_cv_var___progname" = yes; then
20567 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
20576 if test "$ac_cv_func_getrandom" != yes; then
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
20580 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
20581 if ${gl_cv_func_getrandom_ok+:} false
; then :
20582 $as_echo_n "(cached) " >&6
20584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586 /* Additional includes are needed before <sys/random.h> on Mac OS X. */
20587 #include <sys/types.h>
20588 #include <stdlib.h>
20589 #include <sys/random.h>
20590 ssize_t getrandom (void *, size_t, unsigned int);
20601 if ac_fn_c_try_compile
"$LINENO"; then :
20602 gl_cv_func_getrandom_ok
=yes
20604 gl_cv_func_getrandom_ok
=no
20606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
20610 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
20611 if test $gl_cv_func_getrandom_ok = no
; then
20612 REPLACE_GETRANDOM
=1
20618 for ac_header
in bcrypt.h
20620 ac_fn_c_check_header_mongrel
"$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "$ac_includes_default"
20621 if test "x$ac_cv_header_bcrypt_h" = xyes
; then :
20622 cat >>confdefs.h
<<_ACEOF
20623 #define HAVE_BCRYPT_H 1
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
20631 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
20632 if ${gl_cv_lib_assume_bcrypt+:} false
; then :
20633 $as_echo_n "(cached) " >&6
20635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20636 /* end confdefs.h. */
20637 #include <windows.h>
20641 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
20650 if ac_fn_c_try_compile
"$LINENO"; then :
20651 gl_cv_lib_assume_bcrypt
=yes
20653 gl_cv_lib_assume_bcrypt
=no
20655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
20659 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
20660 if test $gl_cv_lib_assume_bcrypt = yes; then
20662 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
20664 LIB_GETRANDOM
='-lbcrypt'
20666 LIB_GETRANDOM
='-ladvapi32'
20674 if test $HAVE_GETRANDOM = 0 ||
test $REPLACE_GETRANDOM = 1; then
20683 gl_LIBOBJS
="$gl_LIBOBJS getrandom.$ac_objext"
20697 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
20710 gl_gettimeofday_timezone
=void
20711 if test $ac_cv_func_gettimeofday != yes; then
20712 HAVE_GETTIMEOFDAY
=0
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20719 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20720 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
20721 $as_echo_n "(cached) " >&6
20723 if test "$cross_compiling" = yes; then :
20724 # When cross-compiling:
20726 # Guess all is fine on glibc systems.
20727 *-gnu* | gnu
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20728 # Guess all is fine on musl systems.
20729 *-musl*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20730 # Guess no on native Windows.
20731 mingw
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20732 # If we don't know, obey --enable-cross-guesses.
20733 *) gl_cv_func_gettimeofday_clobber
="$gl_cross_guess_inverted" ;;
20737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20739 #include <string.h>
20740 #include <sys/time.h>
20742 #include <stdlib.h>
20750 struct tm saved_lt;
20752 lt = localtime (&t);
20754 gettimeofday (&tv, NULL);
20755 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20761 if ac_fn_c_try_run
"$LINENO"; then :
20762 gl_cv_func_gettimeofday_clobber
=no
20764 gl_cv_func_gettimeofday_clobber
=yes
20766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20772 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20774 case "$gl_cv_func_gettimeofday_clobber" in
20776 REPLACE_GETTIMEOFDAY
=1
20778 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20783 NEED_LOCALTIME_BUFFER
=1
20785 REPLACE_LOCALTIME
=1
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20791 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20792 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
20793 $as_echo_n "(cached) " >&6
20795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20796 /* end confdefs.h. */
20797 #include <sys/time.h>
20799 int gettimeofday (struct timeval *restrict, void *restrict);
20804 /* glibc uses struct timezone * rather than the POSIX void *
20805 if _GNU_SOURCE is defined. However, since the only portable
20806 use of gettimeofday uses NULL as the second parameter, and
20807 since the glibc definition is actually more typesafe, it is
20808 not worth wrapping this to get a compliant signature. */
20809 int (*f) (struct timeval *restrict, void *restrict)
20812 return !(x | c.tv_sec | c.tv_usec);
20818 if ac_fn_c_try_compile
"$LINENO"; then :
20819 gl_cv_func_gettimeofday_posix_signature
=yes
20821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20823 #include <sys/time.h>
20824 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20834 if ac_fn_c_try_compile
"$LINENO"; then :
20835 gl_cv_func_gettimeofday_posix_signature
=almost
20837 gl_cv_func_gettimeofday_posix_signature
=no
20839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20844 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20845 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20846 gl_gettimeofday_timezone
='struct timezone'
20847 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20848 REPLACE_GETTIMEOFDAY
=1
20850 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20851 REPLACE_GETTIMEOFDAY
=1
20854 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
20858 cat >>confdefs.h
<<_ACEOF
20859 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20863 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20872 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20881 GNULIB_GETTIMEOFDAY
=1
20887 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
20895 if test $ac_cv_func_glob = no
; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
20900 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
20901 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
20902 $as_echo_n "(cached) " >&6
20904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20905 /* end confdefs.h. */
20906 #include <gnu-versions.h>
20907 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
20909 if ac_fn_c_try_compile
"$LINENO"; then :
20910 gl_cv_gnu_glob_interface_version_1_2
=yes
20912 gl_cv_gnu_glob_interface_version_1_2
=no
20914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
20917 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
20918 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
20922 if test $REPLACE_GLOB = 0; then
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
20924 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
20925 if ${gl_cv_glob_lists_symlinks+:} false
; then :
20926 $as_echo_n "(cached) " >&6
20928 if test $cross_compiling != yes; then
20929 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
20930 gl_cv_glob_lists_symlinks
=maybe
20932 # If we can't make a symlink, then we cannot test this issue. Be
20933 # pessimistic about this.
20934 gl_cv_glob_lists_symlinks
=no
20936 if test $gl_cv_glob_lists_symlinks = maybe
; then
20937 if test "$cross_compiling" = yes; then :
20941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20943 #include <stddef.h>
20949 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
20957 if ac_fn_c_try_run
"$LINENO"; then :
20958 gl_cv_glob_lists_symlinks
=yes
20960 gl_cv_glob_lists_symlinks
=no
20962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20967 rm -f conf$$
-globtest
20969 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
20974 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
20975 case "$gl_cv_glob_lists_symlinks" in
20977 *) REPLACE_GLOB
=1 ;;
20983 if test $ac_cv_func_glob_pattern_p = no
; then
20984 HAVE_GLOB_PATTERN_P
=0
20986 if test $REPLACE_GLOB = 1; then
20987 REPLACE_GLOB_PATTERN_P
=1
20991 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
20995 if test -n "$GLOB_H"; then
20996 GL_GENERATE_GLOB_H_TRUE
=
20997 GL_GENERATE_GLOB_H_FALSE
='#'
20999 GL_GENERATE_GLOB_H_TRUE
='#'
21000 GL_GENERATE_GLOB_H_FALSE
=
21006 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21015 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
21025 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
21033 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
21042 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
21056 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
21062 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
21077 if test $ac_cv_header_sys_socket_h != yes; then
21078 for ac_header
in winsock2.h
21080 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21081 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21082 cat >>confdefs.h
<<_ACEOF
21083 #define HAVE_WINSOCK2_H 1
21091 if test "$ac_cv_header_winsock2_h" = yes; then
21093 UNISTD_H_HAVE_WINSOCK2_H
=1
21094 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21100 if test $HAVE_WINSOCK2_H = 1; then
21101 REPLACE_INET_NTOP
=1
21102 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
21104 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21110 cat >>confdefs.h
<<_ACEOF
21111 #define HAVE_DECL_INET_NTOP $ac_have_decl
21114 if test $ac_cv_have_decl_inet_ntop = yes; then
21115 INET_NTOP_LIB
="-lws2_32"
21117 HAVE_DECL_INET_NTOP
=0
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21122 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21123 if ${ac_cv_search_inet_ntop+:} false
; then :
21124 $as_echo_n "(cached) " >&6
21126 ac_func_search_save_LIBS
=$LIBS
21127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21130 /* Override any GCC internal prototype to avoid an error.
21131 Use char because int might match the return type of a GCC
21132 builtin and then its argument prototype would still apply. */
21140 return inet_ntop ();
21145 for ac_lib
in '' nsl resolv network
; do
21146 if test -z "$ac_lib"; then
21147 ac_res
="none required"
21150 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21152 if ac_fn_c_try_link
"$LINENO"; then :
21153 ac_cv_search_inet_ntop
=$ac_res
21155 rm -f core conftest.err conftest.
$ac_objext \
21157 if ${ac_cv_search_inet_ntop+:} false
; then :
21161 if ${ac_cv_search_inet_ntop+:} false
; then :
21164 ac_cv_search_inet_ntop
=no
21166 rm conftest.
$ac_ext
21167 LIBS
=$ac_func_search_save_LIBS
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21170 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21171 ac_res
=$ac_cv_search_inet_ntop
21172 if test "$ac_res" != no
; then :
21173 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21176 for ac_func
in inet_ntop
21178 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21179 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
21180 cat >>confdefs.h
<<_ACEOF
21181 #define HAVE_INET_NTOP 1
21187 if test $ac_cv_func_inet_ntop = no
; then
21195 if test "$ac_cv_search_inet_ntop" != "no" \
21196 && test "$ac_cv_search_inet_ntop" != "none required"; then
21197 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
21201 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
21203 # include <netdb.h>
21207 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21213 cat >>confdefs.h
<<_ACEOF
21214 #define HAVE_DECL_INET_NTOP $ac_have_decl
21217 if test $ac_cv_have_decl_inet_ntop = no
; then
21218 HAVE_DECL_INET_NTOP
=0
21223 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
21232 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
21254 if test -n "$STDINT_H"; then
21255 PRIPTR_PREFIX
='"l"'
21257 for glpfx
in '' l ll I64
; do
21259 '') gltype1
='int';;
21260 l
) gltype1
='long int';;
21261 ll
) gltype1
='long long int';;
21262 I64
) gltype1
='__int64';;
21264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21265 /* end confdefs.h. */
21266 #include <stdint.h>
21267 extern intptr_t foo;
21268 extern $gltype1 foo;
21277 if ac_fn_c_try_compile
"$LINENO"; then :
21278 PRIPTR_PREFIX
='"'$glpfx'"'
21280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21281 test -n "$PRIPTR_PREFIX" && break
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
21288 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
21289 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
21290 $as_echo_n "(cached) " >&6
21292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 /* Work also in C++ mode. */
21295 #define __STDC_LIMIT_MACROS 1
21297 /* Work if build is not clean. */
21298 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21300 #include <limits.h>
21302 #include <stdint.h>
21305 #if defined INT32_MAX && defined INTMAX_MAX
21306 #define CONDITION (INT32_MAX < INTMAX_MAX)
21308 #define CONDITION (sizeof (int) < sizeof (long long int))
21310 int test[CONDITION ? 1 : -1];
21319 if ac_fn_c_try_compile
"$LINENO"; then :
21320 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
21322 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
21324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
21327 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
21328 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
21329 INT32_MAX_LT_INTMAX_MAX
=1;
21331 INT32_MAX_LT_INTMAX_MAX
=0;
21335 if test $APPLE_UNIVERSAL_BUILD = 0; then
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
21338 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
21339 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
21340 $as_echo_n "(cached) " >&6
21342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21344 /* Work also in C++ mode. */
21345 #define __STDC_LIMIT_MACROS 1
21347 /* Work if build is not clean. */
21348 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21350 #include <limits.h>
21352 #include <stdint.h>
21355 #if defined INT64_MAX
21356 #define CONDITION (INT64_MAX == LONG_MAX)
21358 #define CONDITION (sizeof (long long int) == sizeof (long int))
21360 int test[CONDITION ? 1 : -1];
21369 if ac_fn_c_try_compile
"$LINENO"; then :
21370 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
21372 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
21374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
21377 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
21378 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
21379 INT64_MAX_EQ_LONG_MAX
=1;
21381 INT64_MAX_EQ_LONG_MAX
=0;
21386 INT64_MAX_EQ_LONG_MAX
=-1
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
21390 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
21391 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
21392 $as_echo_n "(cached) " >&6
21394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396 /* Work also in C++ mode. */
21397 #define __STDC_LIMIT_MACROS 1
21399 /* Work if build is not clean. */
21400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21402 #include <limits.h>
21404 #include <stdint.h>
21407 #if defined UINT32_MAX && defined UINTMAX_MAX
21408 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
21410 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
21412 int test[CONDITION ? 1 : -1];
21421 if ac_fn_c_try_compile
"$LINENO"; then :
21422 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
21424 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
21426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
21429 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
21430 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
21431 UINT32_MAX_LT_UINTMAX_MAX
=1;
21433 UINT32_MAX_LT_UINTMAX_MAX
=0;
21437 if test $APPLE_UNIVERSAL_BUILD = 0; then
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
21440 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
21441 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
21442 $as_echo_n "(cached) " >&6
21444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 /* Work also in C++ mode. */
21447 #define __STDC_LIMIT_MACROS 1
21449 /* Work if build is not clean. */
21450 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21452 #include <limits.h>
21454 #include <stdint.h>
21457 #if defined UINT64_MAX
21458 #define CONDITION (UINT64_MAX == ULONG_MAX)
21460 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21462 int test[CONDITION ? 1 : -1];
21471 if ac_fn_c_try_compile
"$LINENO"; then :
21472 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21474 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21479 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21480 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21481 UINT64_MAX_EQ_ULONG_MAX
=1;
21483 UINT64_MAX_EQ_ULONG_MAX
=0;
21488 UINT64_MAX_EQ_ULONG_MAX
=-1
21498 if test $ac_cv_func_isblank = no
; then
21502 if test $HAVE_ISBLANK = 0; then
21511 gl_LIBOBJS
="$gl_LIBOBJS isblank.$ac_objext"
21516 cat >>confdefs.h
<<_ACEOF
21517 #define GNULIB_ISBLANK 1
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21534 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21535 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21536 $as_echo_n "(cached) " >&6
21539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h. */
21544 # define isnand(x) __builtin_isnan ((double)(x))
21547 # define isnand(x) isnan ((double)(x))
21558 if ac_fn_c_try_link
"$LINENO"; then :
21559 gl_cv_func_isnand_no_libm
=yes
21561 gl_cv_func_isnand_no_libm
=no
21563 rm -f core conftest.err conftest.
$ac_objext \
21564 conftest
$ac_exeext conftest.
$ac_ext
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21568 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21570 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21571 if test $gl_cv_func_isnand_no_libm = yes; then
21573 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21577 if test $gl_func_isnand_no_libm != yes; then
21586 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21595 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21596 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21597 $as_echo_n "(cached) " >&6
21600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21603 #ifndef __has_builtin
21604 # define __has_builtin(name) 0
21606 #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
21608 # define isnanl(x) __builtin_isnanl ((long double)(x))
21609 #elif defined isnan
21611 # define isnanl(x) isnan ((long double)(x))
21622 if ac_fn_c_try_link
"$LINENO"; then :
21623 gl_cv_func_isnanl_no_libm
=yes
21625 gl_cv_func_isnanl_no_libm
=no
21627 rm -f core conftest.err conftest.
$ac_objext \
21628 conftest
$ac_exeext conftest.
$ac_ext
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21632 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21634 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
21635 if test $gl_func_isnanl_no_libm = yes; then
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21641 $as_echo_n "checking whether isnanl works... " >&6; }
21642 if ${gl_cv_func_isnanl_works+:} false
; then :
21643 $as_echo_n "(cached) " >&6
21646 if test "$cross_compiling" = yes; then :
21648 mingw
*) # Guess yes on mingw, no on MSVC.
21649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21658 $EGREP "Known" >/dev
/null
2>&1; then :
21659 gl_cv_func_isnanl_works
="guessing yes"
21661 gl_cv_func_isnanl_works
="guessing no"
21666 *) gl_cv_func_isnanl_works
="guessing yes" ;;
21670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21671 /* end confdefs.h. */
21674 #include <limits.h>
21676 #ifndef __has_builtin
21677 # define __has_builtin(name) 0
21679 #if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
21681 # define isnanl(x) __builtin_isnanl ((long double)(x))
21682 #elif defined isnan
21684 # define isnanl(x) isnan ((long double)(x))
21687 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21688 typedef union { unsigned int word[NWORDS]; long double value; }
21689 memory_long_double;
21690 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21691 runtime type conversion. */
21693 static long double NaNl ()
21696 return zero / zero;
21699 # define NaNl() (0.0L / 0.0L)
21705 if (!isnanl (NaNl ()))
21709 memory_long_double m;
21712 /* The isnanl function should be immune against changes in the sign bit and
21713 in the mantissa bits. The xor operation twiddles a bit that can only be
21714 a sign bit or a mantissa bit (since the exponent never extends to
21717 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21718 for (i = 0; i < NWORDS; i++)
21720 if (!isnanl (m.value))
21724 #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
21725 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21726 of 'unsigned int' words. */
21727 # ifdef WORDS_BIGENDIAN
21728 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21729 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21730 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
21731 (unsigned int) (mantlo) << 16 \
21734 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21735 { mantlo, manthi, exponent }
21738 static memory_long_double x =
21739 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21740 if (!isnanl (x.value))
21744 /* Signalling NaN. */
21745 static memory_long_double x =
21746 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21747 if (!isnanl (x.value))
21750 /* isnanl should return something even for noncanonical values. */
21751 { /* Pseudo-NaN. */
21752 static memory_long_double x =
21753 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21754 if (isnanl (x.value) && !isnanl (x.value))
21757 { /* Pseudo-Infinity. */
21758 static memory_long_double x =
21759 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21760 if (isnanl (x.value) && !isnanl (x.value))
21763 { /* Pseudo-Zero. */
21764 static memory_long_double x =
21765 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21766 if (isnanl (x.value) && !isnanl (x.value))
21769 { /* Unnormalized number. */
21770 static memory_long_double x =
21771 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21772 if (isnanl (x.value) && !isnanl (x.value))
21775 { /* Pseudo-Denormal. */
21776 static memory_long_double x =
21777 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21778 if (isnanl (x.value) && !isnanl (x.value))
21786 if ac_fn_c_try_run
"$LINENO"; then :
21787 gl_cv_func_isnanl_works
=yes
21789 gl_cv_func_isnanl_works
=no
21791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21798 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21800 case "$gl_cv_func_isnanl_works" in
21802 *) gl_func_isnanl_no_libm
=no
;;
21805 if test $gl_func_isnanl_no_libm = yes; then
21807 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21811 if test $gl_func_isnanl_no_libm != yes; then
21820 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21826 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21827 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
21828 $as_echo_n "(cached) " >&6
21831 if test "$cross_compiling" = yes; then :
21833 gl_cv_cc_long_double_expbit0
="unknown"
21835 mingw
*) # On native Windows (little-endian), we know the result
21836 # in two cases: mingw, MSVC.
21837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21838 /* end confdefs.h. */
21845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21846 $EGREP "Known" >/dev
/null
2>&1; then :
21847 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
21851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21860 $EGREP "Known" >/dev
/null
2>&1; then :
21861 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
21869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21873 #include <stddef.h>
21875 #include <string.h>
21877 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21878 typedef union { long double value; unsigned int word[NWORDS]; }
21879 memory_long_double;
21880 static unsigned int ored_words[NWORDS];
21881 static unsigned int anded_words[NWORDS];
21882 static void add_to_ored_words (long double *x)
21884 memory_long_double m;
21886 /* Clear it first, in case
21887 sizeof (long double) < sizeof (memory_long_double). */
21888 memset (&m, 0, sizeof (memory_long_double));
21890 for (i = 0; i < NWORDS; i++)
21892 ored_words[i] |= m.word[i];
21893 anded_words[i] &= m.word[i];
21898 static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
21900 FILE *fp = fopen ("conftest.out", "w");
21903 for (j = 0; j < NWORDS; j++)
21904 anded_words[j] = ~ (unsigned int) 0;
21905 for (j = 0; j < 5; j++)
21906 add_to_ored_words (&samples[j]);
21907 /* Remove bits that are common (e.g. if representation of the first mantissa
21908 bit is explicit). */
21909 for (j = 0; j < NWORDS; j++)
21910 ored_words[j] &= ~anded_words[j];
21911 /* Now find the nonzero word. */
21912 for (j = 0; j < NWORDS; j++)
21913 if (ored_words[j] != 0)
21918 for (i = j + 1; i < NWORDS; i++)
21919 if (ored_words[i] != 0)
21921 fprintf (fp, "unknown");
21922 return (fclose (fp) != 0);
21925 if ((ored_words[j] >> i) & 1)
21927 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21928 return (fclose (fp) != 0);
21931 fprintf (fp, "unknown");
21932 return (fclose (fp) != 0);
21936 if ac_fn_c_try_run
"$LINENO"; then :
21937 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
21939 gl_cv_cc_long_double_expbit0
="unknown"
21941 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21942 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21949 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21950 case "$gl_cv_cc_long_double_expbit0" in
21952 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21953 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21955 cat >>confdefs.h
<<_ACEOF
21956 #define LDBL_EXPBIT0_WORD $word
21960 cat >>confdefs.h
<<_ACEOF
21961 #define LDBL_EXPBIT0_BIT $bit
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
21973 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
21974 if ${gl_cv_c___inline+:} false
; then :
21975 $as_echo_n "(cached) " >&6
21977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21980 static __inline foo_t foo (void) { return 0; }
21989 if ac_fn_c_try_compile
"$LINENO"; then :
21990 gl_cv_c___inline
=yes
21992 gl_cv_c___inline
=no
21994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
21997 $as_echo "$gl_cv_c___inline" >&6; }
21998 if test $gl_cv_c___inline = yes; then
22000 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
22008 LOCALCHARSET_TESTS_ENVIRONMENT
=
22023 $as_echo "#define _LCONV_C99 1" >>confdefs.h
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
22029 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
22030 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
22031 $as_echo_n "(cached) " >&6
22033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22035 #include <locale.h>
22036 int x = LC_MESSAGES;
22037 int y = sizeof (((struct lconv *) 0)->decimal_point);
22046 if ac_fn_c_try_compile
"$LINENO"; then :
22047 gl_cv_header_locale_h_posix2001
=yes
22049 gl_cv_header_locale_h_posix2001
=no
22051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
22054 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
22057 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
22058 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
22059 $as_echo_n "(cached) " >&6
22061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063 #include <locale.h>
22065 int x = sizeof (l.decimal_point);
22066 int y = sizeof (l.int_p_cs_precedes);
22075 if ac_fn_c_try_compile
"$LINENO"; then :
22076 gl_cv_sys_struct_lconv_ok
=yes
22078 gl_cv_sys_struct_lconv_ok
=no
22080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
22084 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
22085 if test $gl_cv_sys_struct_lconv_ok = no
; then
22088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22097 $EGREP "Special" >/dev
/null
2>&1; then :
22100 REPLACE_STRUCT_LCONV
=1
22105 *) REPLACE_STRUCT_LCONV
=1 ;;
22117 if test $gl_cv_have_include_next = yes; then
22118 gl_cv_next_locale_h
='<'locale.h
'>'
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
22121 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
22122 if ${gl_cv_next_locale_h+:} false
; then :
22123 $as_echo_n "(cached) " >&6
22128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h. */
22130 #include <locale.h>
22133 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22134 *) gl_absname_cpp
="$ac_cpp" ;;
22139 gl_dirsep_regex
='[/\\]'
22142 gl_dirsep_regex
='\/'
22145 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22146 gl_header_literal_regex
=`echo 'locale.h' \
22147 | sed -e "$gl_make_literal_regex_sed"`
22148 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22149 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22155 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22156 sed -n "$gl_absolute_header_sed"`
22158 gl_header
=$gl_cv_absolute_locale_h
22159 gl_cv_next_locale_h
='"'$gl_header'"'
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
22164 $as_echo "$gl_cv_next_locale_h" >&6; }
22166 NEXT_LOCALE_H
=$gl_cv_next_locale_h
22168 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22170 gl_next_as_first_directive
='<'locale.h
'>'
22172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22173 gl_next_as_first_directive
=$gl_cv_next_locale_h
22175 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
22194 gl_LIBOBJS
="$gl_LIBOBJS localtime-buffer.$ac_objext"
22198 if test "$gl_threads_api" = posix
; then
22199 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22200 # pthread_rwlock_* functions.
22202 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22204 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
22207 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22211 if $has_rwlock; then
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
22215 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
22216 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
22217 $as_echo_n "(cached) " >&6
22220 LIBS
="$LIBS $LIBMULTITHREAD"
22221 if test "$cross_compiling" = yes; then :
22223 # Guess no on glibc systems.
22224 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22225 # Guess no on musl systems.
22226 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22227 # Guess no on bionic systems.
22228 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22229 # Guess yes on native Windows with the mingw-w64 winpthreads library.
22230 # Guess no on native Windows with the gnulib windows-rwlock module.
22231 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
22232 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
22234 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
22237 # If we don't know, obey --enable-cross-guesses.
22238 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
22242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22243 /* end confdefs.h. */
22246 #include <pthread.h>
22247 #include <stdlib.h>
22248 #include <unistd.h>
22250 #define SUCCEED() exit (0)
22251 #define FAILURE() exit (1)
22252 #define UNEXPECTED(n) (exit (10 + (n)))
22254 /* The main thread creates the waiting writer and the requesting reader threads
22255 in the default way; this guarantees that they have the same priority.
22256 We can reuse the main thread as first reader thread. */
22258 static pthread_rwlock_t lock;
22259 static pthread_t reader1;
22260 static pthread_t writer;
22261 static pthread_t reader2;
22262 static pthread_t timer;
22263 /* Used to pass control from writer to reader2 and from reader2 to timer,
22264 as in a relay race.
22265 Passing control from one running thread to another running thread
22266 is most likely faster than to create the second thread. */
22267 static pthread_mutex_t baton;
22270 timer_func (void *ignored)
22272 /* Step 13 (can be before or after step 12):
22273 The timer thread takes the baton, then waits a moment to make sure
22274 it can tell whether the second reader thread is blocked at step 12. */
22275 if (pthread_mutex_lock (&baton))
22278 /* By the time we get here, it's clear that the second reader thread is
22279 blocked at step 12. This is the desired behaviour. */
22284 reader2_func (void *ignored)
22288 /* Step 8 (can be before or after step 7):
22289 The second reader thread takes the baton, then waits a moment to make sure
22290 the writer thread has reached step 7. */
22291 if (pthread_mutex_lock (&baton))
22294 /* Step 9: The second reader thread requests the lock. */
22295 err = pthread_rwlock_tryrdlock (&lock);
22298 else if (err != EBUSY)
22300 /* Step 10: Launch a timer, to test whether the next call blocks. */
22301 if (pthread_create (&timer, NULL, timer_func, NULL))
22303 /* Step 11: Release the baton. */
22304 if (pthread_mutex_unlock (&baton))
22306 /* Step 12: The second reader thread requests the lock. */
22307 err = pthread_rwlock_rdlock (&lock);
22315 writer_func (void *ignored)
22317 /* Step 4: Take the baton, so that the second reader thread does not go ahead
22319 if (pthread_mutex_lock (&baton))
22321 /* Step 5: Create the second reader thread. */
22322 if (pthread_create (&reader2, NULL, reader2_func, NULL))
22324 /* Step 6: Release the baton. */
22325 if (pthread_mutex_unlock (&baton))
22327 /* Step 7: The writer thread requests the lock. */
22328 if (pthread_rwlock_wrlock (&lock))
22336 reader1 = pthread_self ();
22338 /* Step 1: The main thread initializes the lock and the baton. */
22339 if (pthread_rwlock_init (&lock, NULL))
22341 if (pthread_mutex_init (&baton, NULL))
22343 /* Step 2: The main thread acquires the lock as a reader. */
22344 if (pthread_rwlock_rdlock (&lock))
22346 /* Step 3: Create the writer thread. */
22347 if (pthread_create (&writer, NULL, writer_func, NULL))
22349 /* Job done. Go to sleep. */
22357 if ac_fn_c_try_run
"$LINENO"; then :
22358 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
22360 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
22362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
22370 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
22371 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
22374 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
22380 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22384 #include <pthread.h>
22389 #if __FreeBSD__ == 4
22390 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22391 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22392 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22393 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22395 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22403 if ac_fn_c_try_compile
"$LINENO"; then :
22405 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22414 cat >>confdefs.h
<<_ACEOF
22415 #define GNULIB_LOCK 1
22423 if test $ac_cv_func_lstat = yes; then
22425 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
22434 if test $REPLACE_LSTAT = 1; then
22443 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22458 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22465 if test $gl_cv_func_malloc_posix = yes; then
22467 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22473 if test $REPLACE_MALLOC = 1; then
22482 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
22490 GNULIB_MALLOC_POSIX
=1
22496 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22514 if test $gl_cv_have_include_next = yes; then
22515 gl_cv_next_math_h
='<'math.h
'>'
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
22518 $as_echo_n "checking absolute name of <math.h>... " >&6; }
22519 if ${gl_cv_next_math_h+:} false
; then :
22520 $as_echo_n "(cached) " >&6
22523 if test $ac_cv_header_math_h = yes; then
22528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22529 /* end confdefs.h. */
22533 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22534 *) gl_absname_cpp
="$ac_cpp" ;;
22539 gl_dirsep_regex
='[/\\]'
22542 gl_dirsep_regex
='\/'
22545 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22546 gl_header_literal_regex
=`echo 'math.h' \
22547 | sed -e "$gl_make_literal_regex_sed"`
22548 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22549 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22555 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22556 sed -n "$gl_absolute_header_sed"`
22558 gl_header
=$gl_cv_absolute_math_h
22559 gl_cv_next_math_h
='"'$gl_header'"'
22561 gl_cv_next_math_h
='<'math.h
'>'
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
22567 $as_echo "$gl_cv_next_math_h" >&6; }
22569 NEXT_MATH_H
=$gl_cv_next_math_h
22571 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22573 gl_next_as_first_directive
='<'math.h
'>'
22575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22576 gl_next_as_first_directive
=$gl_cv_next_math_h
22578 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
22585 $as_echo_n "checking whether NAN macro works... " >&6; }
22586 if ${gl_cv_header_math_nan_works+:} false
; then :
22587 $as_echo_n "(cached) " >&6
22589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h. */
22595 /* Solaris 10 has a broken definition of NAN. Other platforms
22596 fail to provide NAN, or provide it only in C99 mode; this
22597 test only needs to fail when NAN is provided but wrong. */
22607 if ac_fn_c_try_compile
"$LINENO"; then :
22608 gl_cv_header_math_nan_works
=yes
22610 gl_cv_header_math_nan_works
=no
22612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
22615 $as_echo "$gl_cv_header_math_nan_works" >&6; }
22616 if test $gl_cv_header_math_nan_works = no
; then
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
22620 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
22621 if ${gl_cv_header_math_huge_val_works+:} false
; then :
22622 $as_echo_n "(cached) " >&6
22624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22625 /* end confdefs.h. */
22630 /* Solaris 10 has a broken definition of HUGE_VAL. */
22631 double d = HUGE_VAL;
22637 if ac_fn_c_try_compile
"$LINENO"; then :
22638 gl_cv_header_math_huge_val_works
=yes
22640 gl_cv_header_math_huge_val_works
=no
22642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
22645 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
22646 if test $gl_cv_header_math_huge_val_works = no
; then
22667 if case "$host_os" in
22669 *) test $ac_cv_func_mbsinit = yes ;;
22671 && test $ac_cv_func_mbrtowc = yes; then
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22677 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22678 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22679 $as_echo_n "(cached) " >&6
22683 # Guess no on AIX and OSF/1.
22684 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22685 # Guess yes otherwise.
22686 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22688 if test $LOCALE_JA != none
; then
22689 if test "$cross_compiling" = yes; then :
22692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h. */
22695 #include <locale.h>
22696 #include <string.h>
22697 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22699 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22700 included before <wchar.h>. */
22701 #include <stddef.h>
22707 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22709 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22713 memset (&state, '\0', sizeof (mbstate_t));
22714 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22715 if (mbsinit (&state))
22721 if ac_fn_c_try_run
"$LINENO"; then :
22722 gl_cv_func_mbrtowc_incomplete_state
=yes
22724 gl_cv_func_mbrtowc_incomplete_state
=no
22726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22727 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22731 if test $LOCALE_FR_UTF8 != none
; then
22732 if test "$cross_compiling" = yes; then :
22735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h. */
22738 #include <locale.h>
22739 #include <string.h>
22740 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22743 included before <wchar.h>. */
22744 #include <stddef.h>
22750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22752 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
22756 memset (&state, '\0', sizeof (mbstate_t));
22757 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22758 if (mbsinit (&state))
22764 if ac_fn_c_try_run
"$LINENO"; then :
22765 gl_cv_func_mbrtowc_incomplete_state
=yes
22767 gl_cv_func_mbrtowc_incomplete_state
=no
22769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22778 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22784 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22785 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22786 $as_echo_n "(cached) " >&6
22790 # Guess no on Solaris 8.
22791 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22792 # Guess yes otherwise.
22793 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22795 if test $LOCALE_ZH_CN != none
; then
22796 if test "$cross_compiling" = yes; then :
22799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h. */
22802 #include <locale.h>
22803 #include <stdlib.h>
22804 #include <string.h>
22805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22808 included before <wchar.h>. */
22809 #include <stddef.h>
22815 /* This fails on Solaris 8:
22816 mbrtowc returns 2, and sets wc to 0x00F0.
22817 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22818 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22820 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22824 memset (&state, '\0', sizeof (mbstate_t));
22825 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22826 && mbtowc (&wc, input + 3, 6) == 4)
22832 if ac_fn_c_try_run
"$LINENO"; then :
22833 gl_cv_func_mbrtowc_sanitycheck
=yes
22835 gl_cv_func_mbrtowc_sanitycheck
=no
22837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22845 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22847 REPLACE_MBSTATE_T
=0
22848 case "$gl_cv_func_mbrtowc_incomplete_state" in
22850 *) REPLACE_MBSTATE_T
=1 ;;
22852 case "$gl_cv_func_mbrtowc_sanitycheck" in
22854 *) REPLACE_MBSTATE_T
=1 ;;
22857 REPLACE_MBSTATE_T
=1
22862 if test $ac_cv_func_mbrtowc = no
; then
22864 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
22865 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22867 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22868 included before <wchar.h>. */
22869 #include <stddef.h>
22875 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
22881 cat >>confdefs.h
<<_ACEOF
22882 #define HAVE_DECL_MBRTOWC $ac_have_decl
22885 if test $ac_cv_have_decl_mbrtowc = yes; then
22889 if test $REPLACE_MBSTATE_T = 1; then
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
22896 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
22897 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
22898 $as_echo_n "(cached) " >&6
22902 # Guess no on Solaris.
22903 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
22904 # Guess yes otherwise.
22905 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
22907 if test $LOCALE_FR_UTF8 != none
; then
22908 if test "$cross_compiling" = yes; then :
22911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22914 #include <locale.h>
22915 #include <stdlib.h>
22916 #include <string.h>
22917 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22919 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22920 included before <wchar.h>. */
22921 #include <stddef.h>
22929 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22931 char input[] = "\303\237er";
22936 memset (&state, '\0', sizeof (mbstate_t));
22937 wc = (wchar_t) 0xBADFACE;
22938 ret = mbrtowc (&wc, input, 5, &state);
22941 if (!mbsinit (&state))
22944 memset (&state, '\0', sizeof (mbstate_t));
22945 ret = mbrtowc (NULL, input, 5, &state);
22946 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
22948 if (!mbsinit (&state))
22954 if ac_fn_c_try_run
"$LINENO"; then :
22955 gl_cv_func_mbrtowc_null_arg1
=yes
22957 gl_cv_func_mbrtowc_null_arg1
=no
22959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
22967 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
22973 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
22974 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
22975 $as_echo_n "(cached) " >&6
22979 # Guess no on OSF/1.
22980 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
22981 # Guess yes otherwise.
22982 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
22984 if test $LOCALE_FR_UTF8 != none
; then
22985 if test "$cross_compiling" = yes; then :
22988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22989 /* end confdefs.h. */
22991 #include <locale.h>
22992 #include <string.h>
22993 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22995 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22996 included before <wchar.h>. */
22997 #include <stddef.h>
23003 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23009 memset (&state, '\0', sizeof (mbstate_t));
23010 wc = (wchar_t) 0xBADFACE;
23011 mbrtowc (&wc, NULL, 5, &state);
23012 /* Check that wc was not modified. */
23013 if (wc != (wchar_t) 0xBADFACE)
23019 if ac_fn_c_try_run
"$LINENO"; then :
23020 gl_cv_func_mbrtowc_null_arg2
=yes
23022 gl_cv_func_mbrtowc_null_arg2
=no
23024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
23032 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
23040 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
23041 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
23042 $as_echo_n "(cached) " >&6
23046 # Guess no on HP-UX, Solaris, native Windows.
23047 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
23048 # Guess yes otherwise.
23049 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
23051 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
23052 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
23053 if test "$cross_compiling" = yes; then :
23056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h. */
23059 #include <locale.h>
23060 #include <string.h>
23061 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23063 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23064 included before <wchar.h>. */
23065 #include <stddef.h>
23072 int found_some_locale = 0;
23073 /* This fails on Solaris. */
23074 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23076 char input[] = "B\303\274\303\237er"; /* "Büßer" */
23080 memset (&state, '\0', sizeof (mbstate_t));
23081 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23084 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
23087 found_some_locale = 1;
23089 /* This fails on HP-UX 11.11. */
23090 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23092 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23096 memset (&state, '\0', sizeof (mbstate_t));
23097 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23100 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
23103 found_some_locale = 1;
23105 /* This fails on native Windows. */
23106 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23108 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
23112 memset (&state, '\0', sizeof (mbstate_t));
23113 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23116 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23119 found_some_locale = 1;
23121 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23123 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
23127 memset (&state, '\0', sizeof (mbstate_t));
23128 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23131 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23134 found_some_locale = 1;
23136 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23138 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
23142 memset (&state, '\0', sizeof (mbstate_t));
23143 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23146 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23149 found_some_locale = 1;
23151 return (found_some_locale ? result : 77);
23154 if ac_fn_c_try_run
"$LINENO"; then :
23155 gl_cv_func_mbrtowc_retval
=yes
23157 if test $?
!= 77; then
23158 gl_cv_func_mbrtowc_retval
=no
23162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23163 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
23170 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
23176 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
23177 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
23178 $as_echo_n "(cached) " >&6
23182 # Guess no on Solaris 8 and 9.
23183 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
23184 # Guess yes otherwise.
23185 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
23187 if test $LOCALE_ZH_CN != none
; then
23188 if test "$cross_compiling" = yes; then :
23191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23192 /* end confdefs.h. */
23194 #include <locale.h>
23195 #include <string.h>
23196 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23198 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23199 included before <wchar.h>. */
23200 #include <stddef.h>
23206 /* This fails on Solaris 8 and 9. */
23207 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23212 memset (&state, '\0', sizeof (mbstate_t));
23213 if (mbrtowc (&wc, "", 1, &state) != 0)
23219 if ac_fn_c_try_run
"$LINENO"; then :
23220 gl_cv_func_mbrtowc_nul_retval
=yes
23222 gl_cv_func_mbrtowc_nul_retval
=no
23224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
23232 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
23237 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
23238 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
23239 $as_echo_n "(cached) " >&6
23243 # Guess yes on native Windows.
23244 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
23245 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
23249 if test "$cross_compiling" = yes; then :
23252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23255 #include <locale.h>
23256 #include <string.h>
23257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23260 included before <wchar.h>. */
23261 #include <stddef.h>
23268 if (setlocale (LC_ALL, "French_France.65001") != NULL)
23270 wchar_t wc = (wchar_t) 0xBADFACE;
23273 memset (&state, '\0', sizeof (mbstate_t));
23274 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23275 && wc != (wchar_t) 0xBADFACE)
23278 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23280 wchar_t wc = (wchar_t) 0xBADFACE;
23283 memset (&state, '\0', sizeof (mbstate_t));
23284 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
23285 && wc != (wchar_t) 0xBADFACE)
23288 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23290 wchar_t wc = (wchar_t) 0xBADFACE;
23293 memset (&state, '\0', sizeof (mbstate_t));
23294 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
23295 && wc != (wchar_t) 0xBADFACE)
23298 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23300 wchar_t wc = (wchar_t) 0xBADFACE;
23303 memset (&state, '\0', sizeof (mbstate_t));
23304 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
23305 && wc != (wchar_t) 0xBADFACE)
23311 if ac_fn_c_try_run
"$LINENO"; then :
23312 gl_cv_func_mbrtowc_stores_incomplete
=no
23314 gl_cv_func_mbrtowc_stores_incomplete
=yes
23316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23323 if test $LOCALE_FR_UTF8 != none
; then
23324 if test "$cross_compiling" = yes; then :
23327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h. */
23330 #include <locale.h>
23331 #include <string.h>
23332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23335 included before <wchar.h>. */
23336 #include <stddef.h>
23342 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23344 wchar_t wc = (wchar_t) 0xBADFACE;
23347 memset (&state, '\0', sizeof (mbstate_t));
23348 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23349 && wc != (wchar_t) 0xBADFACE)
23355 if ac_fn_c_try_run
"$LINENO"; then :
23356 gl_cv_func_mbrtowc_stores_incomplete
=no
23358 gl_cv_func_mbrtowc_stores_incomplete
=yes
23360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23361 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
23370 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
23375 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
23376 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
23377 $as_echo_n "(cached) " >&6
23381 # Guess no on AIX and glibc systems.
23382 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
23383 # Guess yes on native Windows.
23384 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23385 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23387 if test "$cross_compiling" = yes; then :
23390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23391 /* end confdefs.h. */
23395 static mbstate_t mbs;
23399 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
23402 if ac_fn_c_try_run
"$LINENO"; then :
23403 gl_cv_func_mbrtowc_empty_input
=yes
23405 gl_cv_func_mbrtowc_empty_input
=no
23407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
23414 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
23418 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
23419 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
23420 $as_echo_n "(cached) " >&6
23423 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
23425 if test "$cross_compiling" = yes; then :
23427 # Guess yes on native Windows.
23428 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
23432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23434 #include <limits.h>
23435 #include <locale.h>
23443 char *locale = setlocale (LC_ALL, "C");
23446 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
23450 mbstate_t mbs = { 0, };
23451 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
23461 if ac_fn_c_try_run
"$LINENO"; then :
23462 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
23464 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
23466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
23473 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
23475 case "$gl_cv_func_mbrtowc_null_arg1" in
23478 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
23483 case "$gl_cv_func_mbrtowc_null_arg2" in
23486 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
23491 case "$gl_cv_func_mbrtowc_retval" in
23494 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
23499 case "$gl_cv_func_mbrtowc_nul_retval" in
23502 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
23507 case "$gl_cv_func_mbrtowc_stores_incomplete" in
23510 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
23515 case "$gl_cv_func_mbrtowc_empty_input" in
23518 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
23523 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
23526 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
23533 if test $REPLACE_MBSTATE_T = 1; then
23535 mingw
*) LIB_MBRTOWC
= ;;
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23540 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23541 if ${gl_cv_have_weak+:} false
; then :
23542 $as_echo_n "(cached) " >&6
23545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23546 /* end confdefs.h. */
23547 extern void xyzzy ();
23557 if ac_fn_c_try_link
"$LINENO"; then :
23558 gl_cv_have_weak
=maybe
23560 rm -f core conftest.err conftest.
$ac_objext \
23561 conftest
$ac_exeext conftest.
$ac_ext
23562 if test $gl_cv_have_weak = maybe
; then
23563 if test "$cross_compiling" = yes; then :
23564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23565 /* end confdefs.h. */
23567 Extensible Linking Format
23571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23572 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
23573 gl_cv_have_weak
="guessing yes"
23575 gl_cv_have_weak
="guessing no"
23581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23582 /* end confdefs.h. */
23588 return (fputs == NULL);
23591 if ac_fn_c_try_run
"$LINENO"; then :
23592 gl_cv_have_weak
=yes
23596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23601 case " $LDFLAGS " in
23602 *" -static "*) gl_cv_have_weak
=no
;;
23604 case "$gl_cv_have_weak" in
23607 freebsd
* | dragonfly
*)
23609 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
23610 cat <<EOF > conftest2.c
23611 #include <pthread.h>
23612 #pragma weak pthread_mutexattr_gettype
23615 return (pthread_mutexattr_gettype != NULL);
23618 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
23619 || gl_cv_have_weak
=no
23620 rm -f conftest1.c libempty.so conftest2.c conftest
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23628 $as_echo "$gl_cv_have_weak" >&6; }
23629 case "$gl_cv_have_weak" in
23632 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
23637 case "$gl_cv_have_weak" in
23638 *yes) LIB_MBRTOWC
= ;;
23639 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
23648 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
23657 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
23659 if test $REPLACE_MBSTATE_T = 1; then
23668 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
23678 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
23685 if test -n "$GCC"; then
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
23687 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
23688 if ${gl_cv_cc_vis_werror+:} false
; then :
23689 $as_echo_n "(cached) " >&6
23691 gl_save_CFLAGS
="$CFLAGS"
23692 CFLAGS
="$CFLAGS -Werror"
23693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23694 /* end confdefs.h. */
23704 if ac_fn_c_try_compile
"$LINENO"; then :
23705 gl_cv_cc_vis_werror
=yes
23707 gl_cv_cc_vis_werror
=no
23709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23710 CFLAGS
="$gl_save_CFLAGS"
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
23714 $as_echo "$gl_cv_cc_vis_werror" >&6; }
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
23716 $as_echo_n "checking for simple visibility declarations... " >&6; }
23717 if ${gl_cv_cc_visibility+:} false
; then :
23718 $as_echo_n "(cached) " >&6
23720 gl_save_CFLAGS
="$CFLAGS"
23721 CFLAGS
="$CFLAGS -fvisibility=hidden"
23722 if test $gl_cv_cc_vis_werror = yes; then
23723 CFLAGS
="$CFLAGS -Werror"
23725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h. */
23727 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
23728 extern __attribute__((__visibility__("default"))) int exportedvar;
23729 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
23730 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
23731 void dummyfunc (void) {}
23741 if ac_fn_c_try_compile
"$LINENO"; then :
23742 gl_cv_cc_visibility
=yes
23744 gl_cv_cc_visibility
=no
23746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23747 CFLAGS
="$gl_save_CFLAGS"
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
23751 $as_echo "$gl_cv_cc_visibility" >&6; }
23752 if test $gl_cv_cc_visibility = yes; then
23753 CFLAG_VISIBILITY
="-fvisibility=hidden"
23760 cat >>confdefs.h
<<_ACEOF
23761 #define HAVE_VISIBILITY $HAVE_VISIBILITY
23783 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
23799 if case "$host_os" in
23801 *) test $ac_cv_func_mbsinit = yes ;;
23803 && test $ac_cv_func_mbrtowc = yes; then
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23809 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23810 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23811 $as_echo_n "(cached) " >&6
23815 # Guess no on AIX and OSF/1.
23816 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23817 # Guess yes otherwise.
23818 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23820 if test $LOCALE_JA != none
; then
23821 if test "$cross_compiling" = yes; then :
23824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23825 /* end confdefs.h. */
23827 #include <locale.h>
23828 #include <string.h>
23829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23832 included before <wchar.h>. */
23833 #include <stddef.h>
23839 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23841 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23845 memset (&state, '\0', sizeof (mbstate_t));
23846 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23847 if (mbsinit (&state))
23853 if ac_fn_c_try_run
"$LINENO"; then :
23854 gl_cv_func_mbrtowc_incomplete_state
=yes
23856 gl_cv_func_mbrtowc_incomplete_state
=no
23858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23863 if test $LOCALE_FR_UTF8 != none
; then
23864 if test "$cross_compiling" = yes; then :
23867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23868 /* end confdefs.h. */
23870 #include <locale.h>
23871 #include <string.h>
23872 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23874 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23875 included before <wchar.h>. */
23876 #include <stddef.h>
23882 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23884 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23888 memset (&state, '\0', sizeof (mbstate_t));
23889 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23890 if (mbsinit (&state))
23896 if ac_fn_c_try_run
"$LINENO"; then :
23897 gl_cv_func_mbrtowc_incomplete_state
=yes
23899 gl_cv_func_mbrtowc_incomplete_state
=no
23901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23910 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23916 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23917 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23918 $as_echo_n "(cached) " >&6
23922 # Guess no on Solaris 8.
23923 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23924 # Guess yes otherwise.
23925 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23927 if test $LOCALE_ZH_CN != none
; then
23928 if test "$cross_compiling" = yes; then :
23931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23934 #include <locale.h>
23935 #include <stdlib.h>
23936 #include <string.h>
23937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23940 included before <wchar.h>. */
23941 #include <stddef.h>
23947 /* This fails on Solaris 8:
23948 mbrtowc returns 2, and sets wc to 0x00F0.
23949 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23950 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23952 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23956 memset (&state, '\0', sizeof (mbstate_t));
23957 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23958 && mbtowc (&wc, input + 3, 6) == 4)
23964 if ac_fn_c_try_run
"$LINENO"; then :
23965 gl_cv_func_mbrtowc_sanitycheck
=yes
23967 gl_cv_func_mbrtowc_sanitycheck
=no
23969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23977 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23979 REPLACE_MBSTATE_T
=0
23980 case "$gl_cv_func_mbrtowc_incomplete_state" in
23982 *) REPLACE_MBSTATE_T
=1 ;;
23984 case "$gl_cv_func_mbrtowc_sanitycheck" in
23986 *) REPLACE_MBSTATE_T
=1 ;;
23989 REPLACE_MBSTATE_T
=1
23994 if test $ac_cv_func_mbsinit = no
; then
23996 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
23997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24000 included before <wchar.h>. */
24001 #include <stddef.h>
24007 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
24013 cat >>confdefs.h
<<_ACEOF
24014 #define HAVE_DECL_MBSINIT $ac_have_decl
24017 if test $ac_cv_have_decl_mbsinit = yes; then
24021 if test $REPLACE_MBSTATE_T = 1; then
24025 mingw
*) REPLACE_MBSINIT
=1 ;;
24030 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
24039 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
24056 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
24071 if case "$host_os" in
24073 *) test $ac_cv_func_mbsinit = yes ;;
24075 && test $ac_cv_func_mbrtowc = yes; then
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24081 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24082 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24083 $as_echo_n "(cached) " >&6
24087 # Guess no on AIX and OSF/1.
24088 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24089 # Guess yes otherwise.
24090 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24092 if test $LOCALE_JA != none
; then
24093 if test "$cross_compiling" = yes; then :
24096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24097 /* end confdefs.h. */
24099 #include <locale.h>
24100 #include <string.h>
24101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24103 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24104 included before <wchar.h>. */
24105 #include <stddef.h>
24111 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24113 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24117 memset (&state, '\0', sizeof (mbstate_t));
24118 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24119 if (mbsinit (&state))
24125 if ac_fn_c_try_run
"$LINENO"; then :
24126 gl_cv_func_mbrtowc_incomplete_state
=yes
24128 gl_cv_func_mbrtowc_incomplete_state
=no
24130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24131 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24135 if test $LOCALE_FR_UTF8 != none
; then
24136 if test "$cross_compiling" = yes; then :
24139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24140 /* end confdefs.h. */
24142 #include <locale.h>
24143 #include <string.h>
24144 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24146 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24147 included before <wchar.h>. */
24148 #include <stddef.h>
24154 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24156 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24160 memset (&state, '\0', sizeof (mbstate_t));
24161 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24162 if (mbsinit (&state))
24168 if ac_fn_c_try_run
"$LINENO"; then :
24169 gl_cv_func_mbrtowc_incomplete_state
=yes
24171 gl_cv_func_mbrtowc_incomplete_state
=no
24173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24182 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24188 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24189 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24190 $as_echo_n "(cached) " >&6
24194 # Guess no on Solaris 8.
24195 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24196 # Guess yes otherwise.
24197 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24199 if test $LOCALE_ZH_CN != none
; then
24200 if test "$cross_compiling" = yes; then :
24203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24204 /* end confdefs.h. */
24206 #include <locale.h>
24207 #include <stdlib.h>
24208 #include <string.h>
24209 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24211 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24212 included before <wchar.h>. */
24213 #include <stddef.h>
24219 /* This fails on Solaris 8:
24220 mbrtowc returns 2, and sets wc to 0x00F0.
24221 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24222 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24224 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24228 memset (&state, '\0', sizeof (mbstate_t));
24229 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24230 && mbtowc (&wc, input + 3, 6) == 4)
24236 if ac_fn_c_try_run
"$LINENO"; then :
24237 gl_cv_func_mbrtowc_sanitycheck
=yes
24239 gl_cv_func_mbrtowc_sanitycheck
=no
24241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24249 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24251 REPLACE_MBSTATE_T
=0
24252 case "$gl_cv_func_mbrtowc_incomplete_state" in
24254 *) REPLACE_MBSTATE_T
=1 ;;
24256 case "$gl_cv_func_mbrtowc_sanitycheck" in
24258 *) REPLACE_MBSTATE_T
=1 ;;
24261 REPLACE_MBSTATE_T
=1
24266 if test $ac_cv_func_mbsrtowcs = no
; then
24268 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
24269 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24271 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24272 included before <wchar.h>. */
24273 #include <stddef.h>
24279 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
24285 cat >>confdefs.h
<<_ACEOF
24286 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
24289 if test $ac_cv_have_decl_mbsrtowcs = yes; then
24290 REPLACE_MBSRTOWCS
=1
24293 if test $REPLACE_MBSTATE_T = 1; then
24294 REPLACE_MBSRTOWCS
=1
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
24303 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
24304 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
24305 $as_echo_n "(cached) " >&6
24309 # Guess no on HP-UX, Solaris, mingw.
24310 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
24311 # Guess yes otherwise.
24312 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
24314 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
24315 if test "$cross_compiling" = yes; then :
24318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h. */
24321 #include <locale.h>
24322 #include <string.h>
24323 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24325 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24326 included before <wchar.h>. */
24327 #include <stddef.h>
24334 /* Test whether the function supports a NULL destination argument.
24335 This fails on native Windows. */
24336 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24338 const char input[] = "\337er";
24339 const char *src = input;
24342 memset (&state, '\0', sizeof (mbstate_t));
24343 if (mbsrtowcs (NULL, &src, 1, &state) != 3
24347 /* Test whether the function works when started with a conversion state
24348 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
24349 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24351 const char input[] = "B\303\274\303\237er";
24354 memset (&state, '\0', sizeof (mbstate_t));
24355 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24356 if (!mbsinit (&state))
24358 const char *src = input + 2;
24359 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24363 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24365 const char input[] = "<\306\374\313\334\270\354>";
24368 memset (&state, '\0', sizeof (mbstate_t));
24369 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
24370 if (!mbsinit (&state))
24372 const char *src = input + 4;
24373 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
24377 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24379 const char input[] = "B\250\271\201\060\211\070er";
24382 memset (&state, '\0', sizeof (mbstate_t));
24383 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24384 if (!mbsinit (&state))
24386 const char *src = input + 2;
24387 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24394 if ac_fn_c_try_run
"$LINENO"; then :
24395 gl_cv_func_mbsrtowcs_works
=yes
24397 gl_cv_func_mbsrtowcs_works
=no
24399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
24407 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
24409 case "$gl_cv_func_mbsrtowcs_works" in
24411 *) REPLACE_MBSRTOWCS
=1 ;;
24416 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
24425 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
24435 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
24452 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
24459 for ac_func
in mbtowc
24461 ac_fn_c_check_func
"$LINENO" "mbtowc" "ac_cv_func_mbtowc"
24462 if test "x$ac_cv_func_mbtowc" = xyes
; then :
24463 cat >>confdefs.h
<<_ACEOF
24464 #define HAVE_MBTOWC 1
24470 if test $ac_cv_func_mbtowc = no
; then
24478 if test $HAVE_MBTOWC = 0 ||
test $REPLACE_MBTOWC = 1; then
24487 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
24504 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
24509 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
24518 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
24521 for ac_header
in bp-sym.h
24523 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24524 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
24525 cat >>confdefs.h
<<_ACEOF
24526 #define HAVE_BP_SYM_H 1
24546 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24552 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
24554 $as_echo_n "checking whether memmem works in linear time... " >&6; }
24555 if ${gl_cv_func_memmem_works_fast+:} false
; then :
24556 $as_echo_n "(cached) " >&6
24558 if test "$cross_compiling" = yes; then :
24559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h. */
24562 #include <features.h>
24563 #ifdef __GNU_LIBRARY__
24564 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
24565 && !defined __UCLIBC__
24570 #include <cygwin/version.h>
24571 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24578 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24579 gl_cv_func_memmem_works_fast
="guessing yes"
24581 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
24587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24588 /* end confdefs.h. */
24590 #include <signal.h> /* for signal */
24591 #include <string.h> /* for memmem */
24592 #include <stdlib.h> /* for malloc */
24593 #include <unistd.h> /* for alarm */
24594 static void quit (int sig) { _exit (sig + 128); }
24601 size_t m = 1000000;
24602 char *haystack = (char *) malloc (2 * m + 1);
24603 char *needle = (char *) malloc (m + 1);
24604 /* Failure to compile this test due to missing alarm is okay,
24605 since all such platforms (mingw) also lack memmem. */
24606 signal (SIGALRM, quit);
24608 /* Check for quadratic performance. */
24609 if (haystack && needle)
24611 memset (haystack, 'A', 2 * m);
24612 haystack[2 * m] = 'B';
24613 memset (needle, 'A', m);
24615 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
24618 /* Free allocated memory, in case some sanitizer is watching. */
24627 if ac_fn_c_try_run
"$LINENO"; then :
24628 gl_cv_func_memmem_works_fast
=yes
24630 gl_cv_func_memmem_works_fast
=no
24632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
24639 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
24640 case "$gl_cv_func_memmem_works_fast" in
24648 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24657 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24664 for ac_func
in memmem
24666 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
24667 if test "x$ac_cv_func_memmem" = xyes
; then :
24668 cat >>confdefs.h
<<_ACEOF
24669 #define HAVE_MEMMEM 1
24675 if test $ac_cv_func_memmem = yes; then
24681 if test $ac_cv_have_decl_memmem = no
; then
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
24685 $as_echo_n "checking whether memmem works... " >&6; }
24686 if ${gl_cv_func_memmem_works_always+:} false
; then :
24687 $as_echo_n "(cached) " >&6
24689 if test "$cross_compiling" = yes; then :
24690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24693 #ifdef __GNU_LIBRARY__
24694 #include <features.h>
24695 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
24696 || __GLIBC_MINOR__ > 12)) \
24697 || (__GLIBC__ > 2)) \
24698 || defined __UCLIBC__
24701 #elif defined __CYGWIN__
24702 #include <cygwin/version.h>
24703 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24712 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24713 gl_cv_func_memmem_works_always
="guessing yes"
24715 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
24721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24722 /* end confdefs.h. */
24724 #include <string.h> /* for memmem */
24725 #define P "_EF_BF_BD"
24726 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24727 #define NEEDLE P P P P P
24734 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
24736 /* Check for empty needle behavior. */
24738 const char *haystack = "AAA";
24739 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
24748 if ac_fn_c_try_run
"$LINENO"; then :
24749 gl_cv_func_memmem_works_always
=yes
24751 gl_cv_func_memmem_works_always
=no
24753 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24754 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
24760 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
24761 case "$gl_cv_func_memmem_works_always" in
24770 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24779 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24793 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
24803 for ac_func
in mempcpy
24805 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
24806 if test "x$ac_cv_func_mempcpy" = xyes
; then :
24807 cat >>confdefs.h
<<_ACEOF
24808 #define HAVE_MEMPCPY 1
24814 if test $ac_cv_func_mempcpy = no
; then
24818 if test $HAVE_MEMPCPY = 0; then
24827 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
24844 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
24853 if test $ac_cv_have_decl_memrchr = no
; then
24854 HAVE_DECL_MEMRCHR
=0
24857 for ac_func
in memrchr
24859 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24860 if test "x$ac_cv_func_memrchr" = xyes
; then :
24861 cat >>confdefs.h
<<_ACEOF
24862 #define HAVE_MEMRCHR 1
24869 if test $ac_cv_func_memrchr = no
; then
24878 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24893 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24903 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24904 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
24905 $as_echo_n "(cached) " >&6
24907 rm -rf conftest.dir
24908 if test "$cross_compiling" = yes; then :
24910 # Guess yes on Linux systems.
24911 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
24912 # Guess yes on glibc systems.
24913 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
24914 # Guess yes on MSVC, no on mingw.
24915 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24916 /* end confdefs.h. */
24923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24924 $EGREP "Known" >/dev
/null
2>&1; then :
24925 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
24927 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
24932 # If we don't know, obey --enable-cross-guesses.
24933 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
24937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24938 /* end confdefs.h. */
24940 # include <sys/types.h>
24941 # include <sys/stat.h>
24946 return mkdir ("conftest.dir/", 0700);
24951 if ac_fn_c_try_run
"$LINENO"; then :
24952 gl_cv_func_mkdir_trailing_slash_works
=yes
24954 gl_cv_func_mkdir_trailing_slash_works
=no
24956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24957 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24960 rm -rf conftest.dir
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24965 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24966 case "$gl_cv_func_mkdir_trailing_slash_works" in
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24974 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24975 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
24976 $as_echo_n "(cached) " >&6
24978 rm -rf conftest.dir
24979 if test "$cross_compiling" = yes; then :
24981 # Guess yes on glibc systems.
24982 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
24983 # Guess yes on musl systems.
24984 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
24985 # Guess no on native Windows.
24986 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
24987 # If we don't know, obey --enable-cross-guesses.
24988 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
24992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24993 /* end confdefs.h. */
24995 # include <sys/types.h>
24996 # include <sys/stat.h>
25001 return !mkdir ("conftest.dir/./", 0700);
25006 if ac_fn_c_try_run
"$LINENO"; then :
25007 gl_cv_func_mkdir_trailing_dot_works
=yes
25009 gl_cv_func_mkdir_trailing_dot_works
=no
25011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25012 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25015 rm -rf conftest.dir
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
25020 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
25021 case "$gl_cv_func_mkdir_trailing_dot_works" in
25026 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
25031 if test $REPLACE_MKDIR = 1; then
25040 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
25045 for ac_func
in mkdtemp
25047 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
25048 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
25049 cat >>confdefs.h
<<_ACEOF
25050 #define HAVE_MKDTEMP 1
25056 if test $ac_cv_func_mkdtemp = no
; then
25060 if test $HAVE_MKDTEMP = 0; then
25069 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
25085 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
25095 if test $ac_cv_func_mkostemp != yes; then
25099 if test $HAVE_MKOSTEMP = 0; then
25108 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
25115 cat >>confdefs.h
<<_ACEOF
25116 #define GNULIB_MKOSTEMP 1
25131 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
25136 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25145 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
25149 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25158 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
25163 cat >>confdefs.h
<<_ACEOF
25164 #define GNULIB_MSVC_NOTHROW 1
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
25171 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25172 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
25173 $as_echo_n "(cached) " >&6
25176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25177 /* end confdefs.h. */
25178 #include <netinet/in.h>
25187 if ac_fn_c_try_compile
"$LINENO"; then :
25188 gl_cv_header_netinet_in_h_selfcontained
=yes
25190 gl_cv_header_netinet_in_h_selfcontained
=no
25192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25196 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25197 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25200 NETINET_IN_H
='netinet/in.h'
25201 for ac_header
in netinet
/in.h
25203 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25204 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
25205 cat >>confdefs.h
<<_ACEOF
25206 #define HAVE_NETINET_IN_H 1
25222 if test $gl_cv_have_include_next = yes; then
25223 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
25226 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25227 if ${gl_cv_next_netinet_in_h+:} false
; then :
25228 $as_echo_n "(cached) " >&6
25231 if test $ac_cv_header_netinet_in_h = yes; then
25236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25238 #include <netinet/in.h>
25241 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25242 *) gl_absname_cpp
="$ac_cpp" ;;
25247 gl_dirsep_regex
='[/\\]'
25250 gl_dirsep_regex
='\/'
25253 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25254 gl_header_literal_regex
=`echo 'netinet/in.h' \
25255 | sed -e "$gl_make_literal_regex_sed"`
25256 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25257 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25263 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25264 sed -n "$gl_absolute_header_sed"`
25266 gl_header
=$gl_cv_absolute_netinet_in_h
25267 gl_cv_next_netinet_in_h
='"'$gl_header'"'
25269 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
25275 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25277 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
25279 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25281 gl_next_as_first_directive
='<'netinet
/in.h
'>'
25283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25284 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
25286 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
25291 if test $ac_cv_header_netinet_in_h = yes; then
25292 HAVE_NETINET_IN_H
=1
25294 HAVE_NETINET_IN_H
=0
25299 if test -n "$NETINET_IN_H"; then
25300 GL_GENERATE_NETINET_IN_H_TRUE
=
25301 GL_GENERATE_NETINET_IN_H_FALSE
='#'
25303 GL_GENERATE_NETINET_IN_H_TRUE
='#'
25304 GL_GENERATE_NETINET_IN_H_FALSE
=
25318 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
25324 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
25325 if ${gl_cv_func_open_slash+:} false
; then :
25326 $as_echo_n "(cached) " >&6
25328 # Assume that if we have lstat, we can also check symlinks.
25329 if test $ac_cv_func_lstat = yes; then
25331 ln -s conftest.tmp conftest.lnk
25333 if test "$cross_compiling" = yes; then :
25336 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
25337 gl_cv_func_open_slash
="guessing no" ;;
25339 gl_cv_func_open_slash
="guessing yes" ;;
25343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25344 /* end confdefs.h. */
25348 # include <unistd.h>
25354 if (open ("conftest.lnk/", O_RDONLY) != -1)
25357 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
25362 if ac_fn_c_try_run
"$LINENO"; then :
25363 gl_cv_func_open_slash
=yes
25365 gl_cv_func_open_slash
=no
25367 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25368 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25371 rm -f conftest.sl conftest.tmp conftest.lnk
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
25375 $as_echo "$gl_cv_func_open_slash" >&6; }
25376 case "$gl_cv_func_open_slash" in
25379 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25384 case "$gl_cv_func_open_slash" in
25392 if test $REPLACE_OPEN = 0; then
25396 if test $ac_cv_func_fchdir = no
; then
25400 if test $HAVE_FCHDIR = 0; then
25407 if test $REPLACE_OPEN = 1; then
25416 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
25434 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
25444 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
25448 # Solaris 10 lacks O_CLOEXEC.
25449 # Solaris 9 has *at functions, but uniformly mishandles trailing
25450 # slash in all of them.
25458 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
25467 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
25476 cat >>confdefs.h
<<_ACEOF
25477 #define GNULIB_OPENAT 1
25491 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
25498 for ac_func
in opendir
25500 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
25501 if test "x$ac_cv_func_opendir" = xyes
; then :
25502 cat >>confdefs.h
<<_ACEOF
25503 #define HAVE_OPENDIR 1
25509 if test $ac_cv_func_opendir = no
; then
25516 if test $ac_cv_func_fchdir = no
; then
25520 if test $HAVE_FCHDIR = 0; then
25521 if test $HAVE_OPENDIR = 1; then
25526 case $host_os,$HAVE_OPENDIR in
25528 REPLACE_OPENDIR
=1;;
25531 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
25540 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
25554 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
25565 for ac_func
in rawmemchr
25567 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
25568 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
25569 cat >>confdefs.h
<<_ACEOF
25570 #define HAVE_RAWMEMCHR 1
25576 if test $ac_cv_func_rawmemchr = no
; then
25580 if test $HAVE_RAWMEMCHR = 0; then
25589 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
25604 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
25611 for ac_func
in readdir
25613 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
25614 if test "x$ac_cv_func_readdir" = xyes
; then :
25615 cat >>confdefs.h
<<_ACEOF
25616 #define HAVE_READDIR 1
25622 if test $ac_cv_func_readdir = no
; then
25626 if test $HAVE_READDIR = 0; then
25635 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
25649 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
25656 if test $ac_cv_func_readlink = no
; then
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25660 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25661 if ${gl_cv_decl_readlink_works+:} false
; then :
25662 $as_echo_n "(cached) " >&6
25664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25665 /* end confdefs.h. */
25666 #include <unistd.h>
25667 /* Cause compilation failure if original declaration has wrong type. */
25668 ssize_t readlink (const char *, char *, size_t);
25677 if ac_fn_c_try_compile
"$LINENO"; then :
25678 gl_cv_decl_readlink_works
=yes
25680 gl_cv_decl_readlink_works
=no
25682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25685 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25687 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25688 if ${gl_cv_func_readlink_works+:} false
; then :
25689 $as_echo_n "(cached) " >&6
25691 # We have readlink, so assume ln -s works.
25692 ln -s conftest.no-such conftest.link
25693 ln -s conftest.link conftest.lnk2
25694 if test "$cross_compiling" = yes; then :
25696 # Guess yes on Linux systems.
25697 linux-
* | linux
) gl_cv_func_readlink_works
="guessing yes" ;;
25698 # Guess yes on glibc systems.
25699 *-gnu* | gnu
*) gl_cv_func_readlink_works
="guessing yes" ;;
25700 # If we don't know, obey --enable-cross-guesses.
25701 *) gl_cv_func_readlink_works
="$gl_cross_guess_normal" ;;
25705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25706 /* end confdefs.h. */
25707 #include <unistd.h>
25713 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25718 if ac_fn_c_try_run
"$LINENO"; then :
25719 gl_cv_func_readlink_works
=yes
25721 gl_cv_func_readlink_works
=no
25723 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25724 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25727 rm -f conftest.link conftest.lnk2
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25730 $as_echo "$gl_cv_func_readlink_works" >&6; }
25731 case "$gl_cv_func_readlink_works" in
25733 if test "$gl_cv_decl_readlink_works" != yes; then
25739 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25746 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25755 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25772 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
25779 if test $gl_cv_func_malloc_posix = yes; then
25781 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
25787 if test $REPLACE_REALLOC = 1; then
25796 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
25804 GNULIB_REALLOC_POSIX
=1
25810 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
25820 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
25821 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
25822 $as_echo_n "(cached) " >&6
25824 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
25825 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
25826 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25827 # Assume that if we have lstat, we can also check symlinks.
25828 if test $ac_cv_func_lstat = yes; then
25829 ln -s conftest.f conftest.lnk
25831 if test "$cross_compiling" = yes; then :
25833 # Guess yes on Linux systems.
25834 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
25835 # Guess yes on glibc systems.
25836 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
25837 # Guess no on native Windows.
25838 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
25839 # If we don't know, obey --enable-cross-guesses.
25840 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
25844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25845 /* end confdefs.h. */
25847 # include <stdio.h>
25848 # include <stdlib.h>
25854 if (rename ("conftest.f1", "conftest.f2/") == 0)
25856 if (rename ("conftest.d1", "conftest.d2/") != 0)
25859 if (rename ("conftest.f", "conftest.lnk/") == 0)
25868 if ac_fn_c_try_run
"$LINENO"; then :
25869 gl_cv_func_rename_slash_dst_works
=yes
25871 gl_cv_func_rename_slash_dst_works
=no
25873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25877 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
25881 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
25882 case "$gl_cv_func_rename_slash_dst_works" in
25887 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
25893 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
25894 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
25895 $as_echo_n "(cached) " >&6
25897 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
25898 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
25899 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25900 # Assume that if we have lstat, we can also check symlinks.
25901 if test $ac_cv_func_lstat = yes; then
25902 ln -s conftest.f conftest.lnk
25904 if test "$cross_compiling" = yes; then :
25906 # Guess yes on Linux systems.
25907 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25908 # Guess yes on glibc systems.
25909 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25910 # Guess yes on native Windows.
25911 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25912 # If we don't know, obey --enable-cross-guesses.
25913 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
25917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25918 /* end confdefs.h. */
25920 # include <stdio.h>
25921 # include <stdlib.h>
25927 if (rename ("conftest.f1/", "conftest.d3") == 0)
25929 if (rename ("conftest.d1/", "conftest.d2") != 0)
25932 if (rename ("conftest.lnk/", "conftest.f") == 0)
25941 if ac_fn_c_try_run
"$LINENO"; then :
25942 gl_cv_func_rename_slash_src_works
=yes
25944 gl_cv_func_rename_slash_src_works
=no
25946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25950 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
25954 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
25955 case "$gl_cv_func_rename_slash_src_works" in
25960 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
25967 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
25968 if ${gl_cv_func_rename_link_works+:} false
; then :
25969 $as_echo_n "(cached) " >&6
25971 if test $ac_cv_func_link = yes; then
25972 if test $cross_compiling != yes; then
25973 rm -rf conftest.f conftest.f1 conftest.f2
25974 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
25975 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
25976 if test "$cross_compiling" = yes; then :
25980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h. */
25983 # include <errno.h>
25984 # include <stdio.h>
25985 # include <stdlib.h>
25986 # include <unistd.h>
25992 if (rename ("conftest.f", "conftest.f1"))
25994 if (unlink ("conftest.f1"))
25997 /* Allow either the POSIX-required behavior, where the
25998 previous rename kept conftest.f, or the (better) NetBSD
25999 behavior, where it removed conftest.f. */
26000 if (rename ("conftest.f", "conftest.f") != 0
26001 && errno != ENOENT)
26004 if (rename ("conftest.f1", "conftest.f1") == 0)
26006 if (rename ("conftest.f2", "conftest.f2") != 0)
26014 if ac_fn_c_try_run
"$LINENO"; then :
26015 gl_cv_func_rename_link_works
=yes
26017 gl_cv_func_rename_link_works
=no
26019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26024 gl_cv_func_rename_link_works
="guessing no"
26026 rm -rf conftest.f conftest.f1 conftest.f2
26029 # Guess yes on Linux systems.
26030 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
26031 # Guess yes on glibc systems.
26032 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
26033 # Guess yes on native Windows.
26034 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
26035 # If we don't know, obey --enable-cross-guesses.
26036 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
26040 gl_cv_func_rename_link_works
=yes
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
26045 $as_echo "$gl_cv_func_rename_link_works" >&6; }
26046 case "$gl_cv_func_rename_link_works" in
26051 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
26057 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
26058 if ${gl_cv_func_rename_dest_works+:} false
; then :
26059 $as_echo_n "(cached) " >&6
26061 rm -rf conftest.f conftest.d1 conftest.d2
26062 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
26063 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26064 if test "$cross_compiling" = yes; then :
26066 # Guess yes on Linux systems.
26067 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
26068 # Guess yes on glibc systems.
26069 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
26070 # Guess no on native Windows.
26071 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
26072 # If we don't know, obey --enable-cross-guesses.
26073 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
26077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h. */
26080 # include <stdio.h>
26081 # include <stdlib.h>
26087 if (rename ("conftest.d1", "conftest.d2") != 0)
26089 if (rename ("conftest.d2", "conftest.f") == 0)
26097 if ac_fn_c_try_run
"$LINENO"; then :
26098 gl_cv_func_rename_dest_works
=yes
26100 gl_cv_func_rename_dest_works
=no
26102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26106 rm -rf conftest.f conftest.d1 conftest.d2
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
26110 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
26111 case "$gl_cv_func_rename_dest_works" in
26116 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
26121 if test $REPLACE_RENAME = 1; then
26130 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
26144 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
26151 for ac_func
in rewinddir
26153 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
26154 if test "x$ac_cv_func_rewinddir" = xyes
; then :
26155 cat >>confdefs.h
<<_ACEOF
26156 #define HAVE_REWINDDIR 1
26162 if test $ac_cv_func_rewinddir = no
; then
26166 if test $HAVE_REWINDDIR = 0; then
26175 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
26189 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
26197 $as_echo_n "checking whether rmdir works... " >&6; }
26198 if ${gl_cv_func_rmdir_works+:} false
; then :
26199 $as_echo_n "(cached) " >&6
26202 touch conftest.
file
26203 if test "$cross_compiling" = yes; then :
26205 # Guess yes on Linux systems.
26206 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
26207 # Guess yes on glibc systems.
26208 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
26209 # Guess no on native Windows.
26210 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
26211 # If we don't know, obey --enable-cross-guesses.
26212 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
26216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26217 /* end confdefs.h. */
26221 # include <unistd.h>
26222 #else /* on Windows with MSVC */
26223 # include <direct.h>
26230 if (!rmdir ("conftest.file/"))
26232 else if (errno != ENOTDIR)
26234 if (!rmdir ("conftest.dir/./"))
26242 if ac_fn_c_try_run
"$LINENO"; then :
26243 gl_cv_func_rmdir_works
=yes
26245 gl_cv_func_rmdir_works
=no
26247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26248 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26251 rm -rf conftest.dir conftest.
file
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
26254 $as_echo "$gl_cv_func_rmdir_works" >&6; }
26255 case "$gl_cv_func_rmdir_works" in
26262 if test $REPLACE_RMDIR = 1; then
26271 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
26285 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
26294 if test $ac_cv_func_setenv = no
; then
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
26298 $as_echo_n "checking whether setenv validates arguments... " >&6; }
26299 if ${gl_cv_func_setenv_works+:} false
; then :
26300 $as_echo_n "(cached) " >&6
26302 if test "$cross_compiling" = yes; then :
26304 # Guess yes on glibc systems.
26305 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
26306 # Guess yes on musl systems.
26307 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
26308 # If we don't know, obey --enable-cross-guesses.
26309 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
26313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26314 /* end confdefs.h. */
26316 #include <stdlib.h>
26318 #include <string.h>
26326 if (setenv ("", "", 0) != -1)
26328 else if (errno != EINVAL)
26332 if (setenv ("a", "=", 1) != 0)
26334 else if (strcmp (getenv ("a"), "=") != 0)
26343 if ac_fn_c_try_run
"$LINENO"; then :
26344 gl_cv_func_setenv_works
=yes
26346 gl_cv_func_setenv_works
=no
26348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
26354 $as_echo "$gl_cv_func_setenv_works" >&6; }
26355 case "$gl_cv_func_setenv_works" in
26363 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
26372 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
26386 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
26396 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
26397 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
26398 $as_echo_n "(cached) " >&6
26401 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
26402 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
26403 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
26404 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
26405 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
26406 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
26407 # If we don't know, obey --enable-cross-guesses.
26409 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
26414 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
26418 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26419 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
26423 case "$gl_cv_func_setlocale_null_all_mtsafe" in
26424 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
26425 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
26428 cat >>confdefs.h
<<_ACEOF
26429 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
26434 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
26435 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
26436 $as_echo_n "(cached) " >&6
26439 # Guess no on OpenBSD, AIX.
26441 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
26442 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
26443 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
26444 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
26445 # If we don't know, obey --enable-cross-guesses.
26447 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
26452 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
26456 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26457 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
26461 case "$gl_cv_func_setlocale_null_one_mtsafe" in
26462 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
26463 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
26466 cat >>confdefs.h
<<_ACEOF
26467 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
26471 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26473 mingw
*) LIB_SETLOCALE_NULL
= ;;
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
26478 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
26479 if ${gl_cv_have_weak+:} false
; then :
26480 $as_echo_n "(cached) " >&6
26483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h. */
26485 extern void xyzzy ();
26495 if ac_fn_c_try_link
"$LINENO"; then :
26496 gl_cv_have_weak
=maybe
26498 rm -f core conftest.err conftest.
$ac_objext \
26499 conftest
$ac_exeext conftest.
$ac_ext
26500 if test $gl_cv_have_weak = maybe
; then
26501 if test "$cross_compiling" = yes; then :
26502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26505 Extensible Linking Format
26509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26510 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
26511 gl_cv_have_weak
="guessing yes"
26513 gl_cv_have_weak
="guessing no"
26519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26526 return (fputs == NULL);
26529 if ac_fn_c_try_run
"$LINENO"; then :
26530 gl_cv_have_weak
=yes
26534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26539 case " $LDFLAGS " in
26540 *" -static "*) gl_cv_have_weak
=no
;;
26542 case "$gl_cv_have_weak" in
26545 freebsd
* | dragonfly
*)
26547 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
26548 cat <<EOF > conftest2.c
26549 #include <pthread.h>
26550 #pragma weak pthread_mutexattr_gettype
26553 return (pthread_mutexattr_gettype != NULL);
26556 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
26557 || gl_cv_have_weak
=no
26558 rm -f conftest1.c libempty.so conftest2.c conftest
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
26566 $as_echo "$gl_cv_have_weak" >&6; }
26567 case "$gl_cv_have_weak" in
26570 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
26575 case "$gl_cv_have_weak" in
26576 *yes) LIB_SETLOCALE_NULL
= ;;
26577 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
26582 LIB_SETLOCALE_NULL
=
26586 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26595 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
26602 if test -n "$GCC"; then
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
26604 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
26605 if ${gl_cv_cc_vis_werror+:} false
; then :
26606 $as_echo_n "(cached) " >&6
26608 gl_save_CFLAGS
="$CFLAGS"
26609 CFLAGS
="$CFLAGS -Werror"
26610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26611 /* end confdefs.h. */
26621 if ac_fn_c_try_compile
"$LINENO"; then :
26622 gl_cv_cc_vis_werror
=yes
26624 gl_cv_cc_vis_werror
=no
26626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26627 CFLAGS
="$gl_save_CFLAGS"
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
26631 $as_echo "$gl_cv_cc_vis_werror" >&6; }
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
26633 $as_echo_n "checking for simple visibility declarations... " >&6; }
26634 if ${gl_cv_cc_visibility+:} false
; then :
26635 $as_echo_n "(cached) " >&6
26637 gl_save_CFLAGS
="$CFLAGS"
26638 CFLAGS
="$CFLAGS -fvisibility=hidden"
26639 if test $gl_cv_cc_vis_werror = yes; then
26640 CFLAGS
="$CFLAGS -Werror"
26642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h. */
26644 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
26645 extern __attribute__((__visibility__("default"))) int exportedvar;
26646 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
26647 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
26648 void dummyfunc (void) {}
26658 if ac_fn_c_try_compile
"$LINENO"; then :
26659 gl_cv_cc_visibility
=yes
26661 gl_cv_cc_visibility
=no
26663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26664 CFLAGS
="$gl_save_CFLAGS"
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
26668 $as_echo "$gl_cv_cc_visibility" >&6; }
26669 if test $gl_cv_cc_visibility = yes; then
26670 CFLAG_VISIBILITY
="-fvisibility=hidden"
26677 cat >>confdefs.h
<<_ACEOF
26678 #define HAVE_VISIBILITY $HAVE_VISIBILITY
26689 GNULIB_SETLOCALE_NULL
=1
26695 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
26710 if test $gl_cv_have_include_next = yes; then
26711 gl_cv_next_signal_h
='<'signal.h
'>'
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26714 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26715 if ${gl_cv_next_signal_h+:} false
; then :
26716 $as_echo_n "(cached) " >&6
26721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h. */
26723 #include <signal.h>
26726 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26727 *) gl_absname_cpp
="$ac_cpp" ;;
26732 gl_dirsep_regex
='[/\\]'
26735 gl_dirsep_regex
='\/'
26738 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26739 gl_header_literal_regex
=`echo 'signal.h' \
26740 | sed -e "$gl_make_literal_regex_sed"`
26741 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26742 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26748 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26749 sed -n "$gl_absolute_header_sed"`
26751 gl_header
=$gl_cv_absolute_signal_h
26752 gl_cv_next_signal_h
='"'$gl_header'"'
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26757 $as_echo "$gl_cv_next_signal_h" >&6; }
26759 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
26761 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26762 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26763 gl_next_as_first_directive
='<'signal.h
'>'
26765 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26766 gl_next_as_first_directive
=$gl_cv_next_signal_h
26768 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
26774 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26775 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26776 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26777 #include <signal.h>
26780 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
26783 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
26792 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26793 #include <signal.h>
26796 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
26799 HAVE_SIGHANDLER_T
=0
26809 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26810 /* <sys/types.h> is not needed according to POSIX, but the
26811 <sys/socket.h> in i386-unknown-freebsd4.10 and
26812 powerpc-apple-darwin5.5 required it. */
26813 #include <sys/types.h>
26814 #if HAVE_SYS_SOCKET_H
26815 # include <sys/socket.h>
26816 #elif HAVE_WS2TCPIP_H
26817 # include <ws2tcpip.h>
26821 if test "x$ac_cv_type_socklen_t" = xyes
; then :
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26825 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26826 if ${gl_cv_socklen_t_equiv+:} false
; then :
26827 $as_echo_n "(cached) " >&6
26829 # Systems have either "struct sockaddr *" or
26830 # "void *" as the second argument to getpeername
26831 gl_cv_socklen_t_equiv
=
26832 for arg2
in "struct sockaddr" void
; do
26833 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
26834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26835 /* end confdefs.h. */
26836 #include <sys/types.h>
26837 #include <sys/socket.h>
26839 int getpeername (int, $arg2 *, $t *);
26844 getpeername (0, 0, &len);
26849 if ac_fn_c_try_compile
"$LINENO"; then :
26850 gl_cv_socklen_t_equiv
="$t"
26852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26853 test "$gl_cv_socklen_t_equiv" != "" && break
26855 test "$gl_cv_socklen_t_equiv" != "" && break
26857 if test "$gl_cv_socklen_t_equiv" = ""; then
26858 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26863 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26865 cat >>confdefs.h
<<_ACEOF
26866 #define socklen_t $gl_cv_socklen_t_equiv
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26873 $as_echo_n "checking for ssize_t... " >&6; }
26874 if ${gt_cv_ssize_t+:} false
; then :
26875 $as_echo_n "(cached) " >&6
26877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26879 #include <sys/types.h>
26883 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26889 if ac_fn_c_try_compile
"$LINENO"; then :
26894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26897 $as_echo "$gt_cv_ssize_t" >&6; }
26898 if test $gt_cv_ssize_t = no
; then
26900 $as_echo "#define ssize_t int" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26913 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26914 if ${gl_cv_func_stat_file_slash+:} false
; then :
26915 $as_echo_n "(cached) " >&6
26918 # Assume that if we have lstat, we can also check symlinks.
26919 if test $ac_cv_func_lstat = yes; then
26920 ln -s conftest.tmp conftest.lnk
26922 if test "$cross_compiling" = yes; then :
26924 # Guess yes on Linux systems.
26925 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
26926 # Guess yes on glibc systems.
26927 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
26928 # If we don't know, obey --enable-cross-guesses.
26929 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
26933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h. */
26935 #include <sys/stat.h>
26942 if (!stat ("conftest.tmp/", &st))
26945 if (!stat ("conftest.lnk/", &st))
26954 if ac_fn_c_try_run
"$LINENO"; then :
26955 gl_cv_func_stat_file_slash
=yes
26957 gl_cv_func_stat_file_slash
=no
26959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26963 rm -f conftest.tmp conftest.lnk
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26966 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26967 case $gl_cv_func_stat_file_slash in
26971 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26981 if test $REPLACE_STAT = 1; then
26990 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27002 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
27022 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
27030 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
27031 #include <sys/stat.h>
27033 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
27035 cat >>confdefs.h
<<_ACEOF
27036 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27040 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27041 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
27042 $as_echo_n "(cached) " >&6
27044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27045 /* end confdefs.h. */
27047 #include <sys/types.h>
27048 #include <sys/stat.h>
27049 #if HAVE_SYS_TIME_H
27050 # include <sys/time.h>
27053 struct timespec ts;
27066 if ac_fn_c_try_compile
"$LINENO"; then :
27067 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
27069 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
27071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27074 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27075 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27077 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27081 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
27082 #include <sys/stat.h>
27084 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
27086 cat >>confdefs.h
<<_ACEOF
27087 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27092 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27093 #include <sys/stat.h>
27095 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
27097 cat >>confdefs.h
<<_ACEOF
27098 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27103 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
27104 #include <sys/stat.h>
27106 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
27108 cat >>confdefs.h
<<_ACEOF
27109 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27125 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
27126 #include <sys/stat.h>
27128 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
27130 cat >>confdefs.h
<<_ACEOF
27131 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27136 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27137 #include <sys/stat.h>
27139 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
27141 cat >>confdefs.h
<<_ACEOF
27142 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27147 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
27148 #include <sys/stat.h>
27150 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
27152 cat >>confdefs.h
<<_ACEOF
27153 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
27166 $as_echo_n "checking for working stdalign.h... " >&6; }
27167 if ${gl_cv_header_working_stdalign_h+:} false
; then :
27168 $as_echo_n "(cached) " >&6
27170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27172 #include <stdalign.h>
27173 #include <stddef.h>
27175 /* Test that alignof yields a result consistent with offsetof.
27176 This catches GCC bug 52023
27177 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
27179 template <class t> struct alignof_helper { char a; t b; };
27180 # define ao(type) offsetof (alignof_helper<type>, b)
27182 # define ao(type) offsetof (struct { char a; type b; }, b)
27184 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
27185 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
27186 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
27188 /* Test _Alignas only on platforms where gnulib can help. */
27190 ((defined __cplusplus && 201103 <= __cplusplus) \
27191 || (defined __APPLE__ && defined __MACH__ \
27192 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
27194 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
27195 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
27196 || 1300 <= _MSC_VER)
27197 struct alignas_test { char c; char alignas (8) alignas_8; };
27198 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
27210 if ac_fn_c_try_compile
"$LINENO"; then :
27211 gl_cv_header_working_stdalign_h
=yes
27213 gl_cv_header_working_stdalign_h
=no
27215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
27218 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
27220 if test $gl_cv_header_working_stdalign_h = yes; then
27223 STDALIGN_H
='stdalign.h'
27227 if test -n "$STDALIGN_H"; then
27228 GL_GENERATE_STDALIGN_H_TRUE
=
27229 GL_GENERATE_STDALIGN_H_FALSE
='#'
27231 GL_GENERATE_STDALIGN_H_TRUE
='#'
27232 GL_GENERATE_STDALIGN_H_FALSE
=
27240 if test "$ac_cv_header_stdbool_h" = yes; then
27243 if test -z "$GCC"; then
27244 STDBOOL_H
='stdbool.h'
27254 STDBOOL_H
='stdbool.h'
27257 if test -n "$STDBOOL_H"; then
27258 GL_GENERATE_STDBOOL_H_TRUE
=
27259 GL_GENERATE_STDBOOL_H_FALSE
='#'
27261 GL_GENERATE_STDBOOL_H_TRUE
='#'
27262 GL_GENERATE_STDBOOL_H_FALSE
=
27266 if test "$ac_cv_type__Bool" = yes; then
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27279 $as_echo_n "checking for good max_align_t... " >&6; }
27280 if ${gl_cv_type_max_align_t+:} false
; then :
27281 $as_echo_n "(cached) " >&6
27283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27284 /* end confdefs.h. */
27285 #include <stddef.h>
27286 unsigned int s = sizeof (max_align_t);
27287 #if defined __GNUC__ || defined __IBM__ALIGNOF__
27288 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27289 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27300 if ac_fn_c_try_compile
"$LINENO"; then :
27301 gl_cv_type_max_align_t
=yes
27303 gl_cv_type_max_align_t
=no
27305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27309 $as_echo "$gl_cv_type_max_align_t" >&6; }
27310 if test $gl_cv_type_max_align_t = no
; then
27315 if test $gt_cv_c_wchar_t = no
; then
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27321 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
27322 if ${gl_cv_decl_null_works+:} false
; then :
27323 $as_echo_n "(cached) " >&6
27325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27326 /* end confdefs.h. */
27327 #include <stddef.h>
27328 int test[2 * (sizeof NULL == sizeof (void *)) -1];
27338 if ac_fn_c_try_compile
"$LINENO"; then :
27339 gl_cv_decl_null_works
=yes
27341 gl_cv_decl_null_works
=no
27343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27346 $as_echo "$gl_cv_decl_null_works" >&6; }
27347 if test $gl_cv_decl_null_works = no
; then
27353 if test -n "$STDDEF_H"; then
27354 GL_GENERATE_STDDEF_H_TRUE
=
27355 GL_GENERATE_STDDEF_H_FALSE
='#'
27357 GL_GENERATE_STDDEF_H_TRUE
='#'
27358 GL_GENERATE_STDDEF_H_FALSE
=
27361 if test -n "$STDDEF_H"; then
27370 if test $gl_cv_have_include_next = yes; then
27371 gl_cv_next_stddef_h
='<'stddef.h
'>'
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27374 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
27375 if ${gl_cv_next_stddef_h+:} false
; then :
27376 $as_echo_n "(cached) " >&6
27381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27382 /* end confdefs.h. */
27383 #include <stddef.h>
27386 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27387 *) gl_absname_cpp
="$ac_cpp" ;;
27392 gl_dirsep_regex
='[/\\]'
27395 gl_dirsep_regex
='\/'
27398 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27399 gl_header_literal_regex
=`echo 'stddef.h' \
27400 | sed -e "$gl_make_literal_regex_sed"`
27401 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27402 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27408 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27409 sed -n "$gl_absolute_header_sed"`
27411 gl_header
=$gl_cv_absolute_stddef_h
27412 gl_cv_next_stddef_h
='"'$gl_header'"'
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27417 $as_echo "$gl_cv_next_stddef_h" >&6; }
27419 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
27421 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27423 gl_next_as_first_directive
='<'stddef.h
'>'
27425 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27426 gl_next_as_first_directive
=$gl_cv_next_stddef_h
27428 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
27438 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27449 if test $gl_cv_have_include_next = yes; then
27450 gl_cv_next_stdio_h
='<'stdio.h
'>'
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27453 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
27454 if ${gl_cv_next_stdio_h+:} false
; then :
27455 $as_echo_n "(cached) " >&6
27460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27461 /* end confdefs.h. */
27465 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27466 *) gl_absname_cpp
="$ac_cpp" ;;
27471 gl_dirsep_regex
='[/\\]'
27474 gl_dirsep_regex
='\/'
27477 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27478 gl_header_literal_regex
=`echo 'stdio.h' \
27479 | sed -e "$gl_make_literal_regex_sed"`
27480 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27481 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27487 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27488 sed -n "$gl_absolute_header_sed"`
27490 gl_header
=$gl_cv_absolute_stdio_h
27491 gl_cv_next_stdio_h
='"'$gl_header'"'
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27496 $as_echo "$gl_cv_next_stdio_h" >&6; }
27498 NEXT_STDIO_H
=$gl_cv_next_stdio_h
27500 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27502 gl_next_as_first_directive
='<'stdio.h
'>'
27504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27505 gl_next_as_first_directive
=$gl_cv_next_stdio_h
27507 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27514 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27515 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
27516 $as_echo_n "(cached) " >&6
27518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27519 /* end confdefs.h. */
27521 #define __STDC_FORMAT_MACROS 1
27523 #include <inttypes.h>
27524 /* For non-mingw systems, compilation will trivially succeed.
27525 For mingw, compilation will succeed for older mingw (system
27526 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27527 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27528 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27529 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27540 if ac_fn_c_try_compile
"$LINENO"; then :
27541 gl_cv_func_printf_attribute_flavor
=system
27543 gl_cv_func_printf_attribute_flavor
=gnu
27545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27548 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
27549 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
27551 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27558 cat >>confdefs.h
<<_ACEOF
27559 #define GNULIB_FSCANF 1
27566 cat >>confdefs.h
<<_ACEOF
27567 #define GNULIB_SCANF 1
27607 if test $gl_cv_have_include_next = yes; then
27608 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27611 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
27612 if ${gl_cv_next_stdlib_h+:} false
; then :
27613 $as_echo_n "(cached) " >&6
27618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h. */
27620 #include <stdlib.h>
27623 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27624 *) gl_absname_cpp
="$ac_cpp" ;;
27629 gl_dirsep_regex
='[/\\]'
27632 gl_dirsep_regex
='\/'
27635 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27636 gl_header_literal_regex
=`echo 'stdlib.h' \
27637 | sed -e "$gl_make_literal_regex_sed"`
27638 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27639 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27645 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27646 sed -n "$gl_absolute_header_sed"`
27648 gl_header
=$gl_cv_absolute_stdlib_h
27649 gl_cv_next_stdlib_h
='"'$gl_header'"'
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27654 $as_echo "$gl_cv_next_stdlib_h" >&6; }
27656 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
27658 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27660 gl_next_as_first_directive
='<'stdlib.h
'>'
27662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27663 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
27665 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
27681 for ac_func
in strchrnul
27683 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
27684 if test "x$ac_cv_func_strchrnul" = xyes
; then :
27685 cat >>confdefs.h
<<_ACEOF
27686 #define HAVE_STRCHRNUL 1
27692 if test $ac_cv_func_strchrnul = no
; then
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
27696 $as_echo_n "checking whether strchrnul works... " >&6; }
27697 if ${gl_cv_func_strchrnul_works+:} false
; then :
27698 $as_echo_n "(cached) " >&6
27700 if test "$cross_compiling" = yes; then :
27701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h. */
27704 #if defined __CYGWIN__
27705 #include <cygwin/version.h>
27706 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
27714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27715 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27716 gl_cv_func_strchrnul_works
="guessing yes"
27718 gl_cv_func_strchrnul_works
="guessing no"
27724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27725 /* end confdefs.h. */
27727 #include <string.h> /* for strchrnul */
27732 const char *buf = "a";
27733 return strchrnul (buf, 'b') != buf + 1;
27739 if ac_fn_c_try_run
"$LINENO"; then :
27740 gl_cv_func_strchrnul_works
=yes
27742 gl_cv_func_strchrnul_works
=no
27744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
27751 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
27752 case "$gl_cv_func_strchrnul_works" in
27754 *) REPLACE_STRCHRNUL
=1 ;;
27758 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
27767 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
27782 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
27790 if test $ac_cv_func_strdup = yes; then
27791 if test $gl_cv_func_malloc_posix != yes; then
27796 if test $ac_cv_have_decl_strdup = no
; then
27800 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
27809 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
27824 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
27835 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
27837 $as_echo_n "checking for working strerror function... " >&6; }
27838 if ${gl_cv_func_working_strerror+:} false
; then :
27839 $as_echo_n "(cached) " >&6
27841 if test "$cross_compiling" = yes; then :
27843 # Guess yes on glibc systems.
27844 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
27845 # Guess yes on musl systems.
27846 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
27847 # If we don't know, obey --enable-cross-guesses.
27848 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
27852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27853 /* end confdefs.h. */
27854 #include <string.h>
27859 if (!*strerror (-2)) return 1;
27864 if ac_fn_c_try_run
"$LINENO"; then :
27865 gl_cv_func_working_strerror
=yes
27867 gl_cv_func_working_strerror
=no
27869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
27876 $as_echo "$gl_cv_func_working_strerror" >&6; }
27877 case "$gl_cv_func_working_strerror" in
27884 case "$gl_cv_func_strerror_r_works" in
27885 *no
) REPLACE_STRERROR
=1 ;;
27892 if test $REPLACE_STRERROR = 1; then
27901 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
27906 cat >>confdefs.h
<<_ACEOF
27907 #define GNULIB_STRERROR 1
27922 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
27928 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
27937 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
27943 if test $ac_cv_header_sys_socket_h != yes; then
27944 for ac_header
in winsock2.h
27946 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27947 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
27948 cat >>confdefs.h
<<_ACEOF
27949 #define HAVE_WINSOCK2_H 1
27957 if test "$ac_cv_header_winsock2_h" = yes; then
27959 UNISTD_H_HAVE_WINSOCK2_H
=1
27960 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27974 if test $ac_cv_have_decl_strerror_r = no
; then
27975 HAVE_DECL_STRERROR_R
=0
27978 if test $ac_cv_func_strerror_r = yes; then
27979 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27980 if test $gl_cv_func_strerror_r_posix_signature = yes; then
27981 case "$gl_cv_func_strerror_r_works" in
27982 *no
) REPLACE_STRERROR_R
=1 ;;
27985 REPLACE_STRERROR_R
=1
27988 REPLACE_STRERROR_R
=1
27992 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
28001 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
28014 GNULIB_STRERROR_R
=1
28020 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
28026 cat >>confdefs.h
<<_ACEOF
28027 #define GNULIB_STRERROR_R_POSIX 1
28040 if test $ac_cv_have_decl_strnlen = no
; then
28041 HAVE_DECL_STRNLEN
=0
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28045 $as_echo_n "checking for working strnlen... " >&6; }
28046 if ${ac_cv_func_strnlen_working+:} false
; then :
28047 $as_echo_n "(cached) " >&6
28049 if test "$cross_compiling" = yes; then :
28050 # Guess no on AIX systems, yes otherwise.
28052 aix
*) ac_cv_func_strnlen_working
=no
;;
28053 *) ac_cv_func_strnlen_working
=yes;;
28056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28057 /* end confdefs.h. */
28058 $ac_includes_default
28064 #define S_LEN (sizeof S - 1)
28066 /* At least one implementation is buggy: that of AIX 4.3 would
28067 give strnlen (S, 1) == 3. */
28070 for (i = 0; i < S_LEN + 1; ++i)
28072 int expected = i <= S_LEN ? i : S_LEN;
28073 if (strnlen (S, i) != expected)
28082 if ac_fn_c_try_run
"$LINENO"; then :
28083 ac_cv_func_strnlen_working
=yes
28085 ac_cv_func_strnlen_working
=no
28087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28093 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28094 test $ac_cv_func_strnlen_working = no
&& :
28097 if test $ac_cv_func_strnlen_working = no
; then
28102 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
28111 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
28126 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28132 if test $REPLACE_STRSTR = 0; then
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
28134 $as_echo_n "checking whether strstr works in linear time... " >&6; }
28135 if ${gl_cv_func_strstr_linear+:} false
; then :
28136 $as_echo_n "(cached) " >&6
28138 if test "$cross_compiling" = yes; then :
28139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28140 /* end confdefs.h. */
28142 #include <features.h>
28143 #ifdef __GNU_LIBRARY__
28144 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28145 && !(defined __i386__ || defined __x86_64__) \
28146 && !defined __UCLIBC__
28151 #include <cygwin/version.h>
28152 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28159 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28160 gl_cv_func_strstr_linear
="guessing yes"
28162 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
28168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28169 /* end confdefs.h. */
28172 /* z/OS does not deliver signals while strstr() is running (thanks to
28173 restrictions on its LE runtime), which prevents us from limiting the
28174 running time of this test. */
28175 # error "This test does not work properly on z/OS"
28177 #include <signal.h> /* for signal */
28178 #include <string.h> /* for strstr */
28179 #include <stdlib.h> /* for malloc */
28180 #include <unistd.h> /* for alarm */
28181 static void quit (int sig) { _exit (sig + 128); }
28188 size_t m = 1000000;
28189 char *haystack = (char *) malloc (2 * m + 2);
28190 char *needle = (char *) malloc (m + 2);
28191 /* Failure to compile this test due to missing alarm is okay,
28192 since all such platforms (mingw) also have quadratic strstr. */
28193 signal (SIGALRM, quit);
28195 /* Check for quadratic performance. */
28196 if (haystack && needle)
28198 memset (haystack, 'A', 2 * m);
28199 haystack[2 * m] = 'B';
28200 haystack[2 * m + 1] = 0;
28201 memset (needle, 'A', m);
28204 if (!strstr (haystack, needle))
28207 /* Free allocated memory, in case some sanitizer is watching. */
28216 if ac_fn_c_try_run
"$LINENO"; then :
28217 gl_cv_func_strstr_linear
=yes
28219 gl_cv_func_strstr_linear
=no
28221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
28228 $as_echo "$gl_cv_func_strstr_linear" >&6; }
28229 case "$gl_cv_func_strstr_linear" in
28237 if test $REPLACE_STRSTR = 1; then
28246 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28252 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
28256 $as_echo_n "checking whether strstr works... " >&6; }
28257 if ${gl_cv_func_strstr_works_always+:} false
; then :
28258 $as_echo_n "(cached) " >&6
28260 if test "$cross_compiling" = yes; then :
28261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h. */
28264 #ifdef __GNU_LIBRARY__
28265 #include <features.h>
28266 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28267 || defined __UCLIBC__
28270 #elif defined __CYGWIN__
28271 #include <cygwin/version.h>
28272 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28281 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28282 gl_cv_func_strstr_works_always
="guessing yes"
28284 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
28290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28291 /* end confdefs.h. */
28293 #include <string.h> /* for strstr */
28294 #ifdef __GNU_LIBRARY__
28295 #include <features.h>
28296 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
28300 #define P "_EF_BF_BD"
28301 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
28302 #define NEEDLE P P P P P
28307 return !!strstr (HAYSTACK, NEEDLE);
28313 if ac_fn_c_try_run
"$LINENO"; then :
28314 gl_cv_func_strstr_works_always
=yes
28316 gl_cv_func_strstr_works_always
=no
28318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
28325 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
28326 case "$gl_cv_func_strstr_works_always" in
28334 if test $REPLACE_STRSTR = 1; then
28343 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28357 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
28365 for ac_func
in strtok_r
28367 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
28368 if test "x$ac_cv_func_strtok_r" = xyes
; then :
28369 cat >>confdefs.h
<<_ACEOF
28370 #define HAVE_STRTOK_R 1
28376 if test $ac_cv_func_strtok_r = yes; then
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
28379 $as_echo_n "checking whether strtok_r works... " >&6; }
28380 if ${gl_cv_func_strtok_r_works+:} false
; then :
28381 $as_echo_n "(cached) " >&6
28383 if test "$cross_compiling" = yes; then :
28385 # Guess no on glibc systems.
28386 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
28387 # Guess yes on native Windows.
28388 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
28389 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
28393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28394 /* end confdefs.h. */
28396 #ifndef __OPTIMIZE__
28397 # define __OPTIMIZE__ 1
28399 #undef __OPTIMIZE_SIZE__
28400 #undef __NO_INLINE__
28401 #include <stdlib.h>
28402 #include <string.h>
28407 static const char dummy[] = "\177\01a";
28408 char delimiters[] = "xxxxxxxx";
28409 char *save_ptr = (char *) dummy;
28410 strtok_r (delimiters, "x", &save_ptr);
28411 strtok_r (NULL, "x", &save_ptr);
28419 if ac_fn_c_try_run
"$LINENO"; then :
28420 gl_cv_func_strtok_r_works
=yes
28422 gl_cv_func_strtok_r_works
=no
28424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
28431 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
28432 case "$gl_cv_func_strtok_r_works" in
28434 UNDEFINE_STRTOK_R
=1
28441 if test $ac_cv_have_decl_strtok_r = no
; then
28442 HAVE_DECL_STRTOK_R
=0
28445 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
28454 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
28471 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
28486 if test $gl_cv_have_include_next = yes; then
28487 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
28490 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
28491 if ${gl_cv_next_sys_random_h+:} false
; then :
28492 $as_echo_n "(cached) " >&6
28495 if test $ac_cv_header_sys_random_h = yes; then
28500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28501 /* end confdefs.h. */
28502 #include <sys/random.h>
28505 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28506 *) gl_absname_cpp
="$ac_cpp" ;;
28511 gl_dirsep_regex
='[/\\]'
28514 gl_dirsep_regex
='\/'
28517 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28518 gl_header_literal_regex
=`echo 'sys/random.h' \
28519 | sed -e "$gl_make_literal_regex_sed"`
28520 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28521 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28527 gl_cv_absolute_sys_random_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28528 sed -n "$gl_absolute_header_sed"`
28530 gl_header
=$gl_cv_absolute_sys_random_h
28531 gl_cv_next_sys_random_h
='"'$gl_header'"'
28533 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
28539 $as_echo "$gl_cv_next_sys_random_h" >&6; }
28541 NEXT_SYS_RANDOM_H
=$gl_cv_next_sys_random_h
28543 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28545 gl_next_as_first_directive
='<'sys
/random.h
'>'
28547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28548 gl_next_as_first_directive
=$gl_cv_next_sys_random_h
28550 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
=$gl_next_as_first_directive
28555 if test $ac_cv_header_sys_random_h = yes; then
28556 HAVE_SYS_RANDOM_H
=1
28558 HAVE_SYS_RANDOM_H
=0
28563 if test $ac_cv_header_sys_random_h = yes; then
28564 UNISTD_H_HAVE_SYS_RANDOM_H
=1
28588 if test $gl_cv_have_include_next = yes; then
28589 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28592 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
28593 if ${gl_cv_next_sys_stat_h+:} false
; then :
28594 $as_echo_n "(cached) " >&6
28597 if test $ac_cv_header_sys_stat_h = yes; then
28602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28603 /* end confdefs.h. */
28604 #include <sys/stat.h>
28607 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28608 *) gl_absname_cpp
="$ac_cpp" ;;
28613 gl_dirsep_regex
='[/\\]'
28616 gl_dirsep_regex
='\/'
28619 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28620 gl_header_literal_regex
=`echo 'sys/stat.h' \
28621 | sed -e "$gl_make_literal_regex_sed"`
28622 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28623 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28629 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28630 sed -n "$gl_absolute_header_sed"`
28632 gl_header
=$gl_cv_absolute_sys_stat_h
28633 gl_cv_next_sys_stat_h
='"'$gl_header'"'
28635 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
28641 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
28643 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
28645 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28646 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28647 gl_next_as_first_directive
='<'sys
/stat.h
'>'
28649 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28650 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
28652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
28661 WINDOWS_STAT_TIMESPEC
=0
28670 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
28671 #include <sys/stat.h>
28673 if test "x$ac_cv_type_nlink_t" = xyes
; then :
28677 $as_echo "#define nlink_t int" >>confdefs.h
28706 if test $gl_cv_have_include_next = yes; then
28707 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
28710 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
28711 if ${gl_cv_next_sys_uio_h+:} false
; then :
28712 $as_echo_n "(cached) " >&6
28715 if test $ac_cv_header_sys_uio_h = yes; then
28720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h. */
28722 #include <sys/uio.h>
28725 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28726 *) gl_absname_cpp
="$ac_cpp" ;;
28731 gl_dirsep_regex
='[/\\]'
28734 gl_dirsep_regex
='\/'
28737 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28738 gl_header_literal_regex
=`echo 'sys/uio.h' \
28739 | sed -e "$gl_make_literal_regex_sed"`
28740 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28741 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28747 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28748 sed -n "$gl_absolute_header_sed"`
28750 gl_header
=$gl_cv_absolute_sys_uio_h
28751 gl_cv_next_sys_uio_h
='"'$gl_header'"'
28753 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
28759 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
28761 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
28763 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28765 gl_next_as_first_directive
='<'sys
/uio.h
'>'
28767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28768 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
28770 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
28775 if test $ac_cv_header_sys_uio_h = yes; then
28798 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r,
28799 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28800 been included before. */
28801 #if defined __MINGW32__
28802 # include <unistd.h>
28807 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
28813 cat >>confdefs.h
<<_ACEOF
28814 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
28817 if test $ac_cv_have_decl_localtime_r = no
; then
28818 HAVE_DECL_LOCALTIME_R
=0
28822 if test $ac_cv_func_localtime_r = yes; then
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
28825 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
28826 if ${gl_cv_time_r_posix+:} false
; then :
28827 $as_echo_n "(cached) " >&6
28829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28830 /* end confdefs.h. */
28831 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
28832 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28833 been included before. */
28834 #if defined __MINGW32__
28835 # include <unistd.h>
28842 /* We don't need to append 'restrict's to the argument types,
28843 even though the POSIX signature has the 'restrict's,
28844 since C99 says they can't affect type compatibility. */
28845 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
28847 /* Check the return type is a pointer.
28848 On HP-UX 10 it is 'int'. */
28849 *localtime_r (0, 0);
28855 if ac_fn_c_try_compile
"$LINENO"; then :
28856 gl_cv_time_r_posix
=yes
28858 gl_cv_time_r_posix
=no
28860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
28864 $as_echo "$gl_cv_time_r_posix" >&6; }
28865 if test $gl_cv_time_r_posix = yes; then
28866 REPLACE_LOCALTIME_R
=0
28868 REPLACE_LOCALTIME_R
=1
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
28873 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
28874 if ${gl_cv_func_localtime_r_inline+:} false
; then :
28875 $as_echo_n "(cached) " >&6
28877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28878 /* end confdefs.h. */
28879 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
28880 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28881 been included before. */
28882 #if defined __MINGW32__
28883 # include <unistd.h>
28892 localtime_r (&a, &r);
28899 if ac_fn_c_try_link
"$LINENO"; then :
28900 gl_cv_func_localtime_r_inline
=yes
28902 gl_cv_func_localtime_r_inline
=no
28904 rm -f core conftest.err conftest.
$ac_objext \
28905 conftest
$ac_exeext conftest.
$ac_ext
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
28909 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
28910 if test $gl_cv_func_localtime_r_inline = yes; then
28911 REPLACE_LOCALTIME_R
=1
28915 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
28924 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
28941 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
28957 if test $gl_cv_have_include_next = yes; then
28958 gl_cv_next_unistd_h
='<'unistd.h
'>'
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
28961 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
28962 if ${gl_cv_next_unistd_h+:} false
; then :
28963 $as_echo_n "(cached) " >&6
28966 if test $ac_cv_header_unistd_h = yes; then
28971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28972 /* end confdefs.h. */
28973 #include <unistd.h>
28976 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28977 *) gl_absname_cpp
="$ac_cpp" ;;
28982 gl_dirsep_regex
='[/\\]'
28985 gl_dirsep_regex
='\/'
28988 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28989 gl_header_literal_regex
=`echo 'unistd.h' \
28990 | sed -e "$gl_make_literal_regex_sed"`
28991 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28992 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28998 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28999 sed -n "$gl_absolute_header_sed"`
29001 gl_header
=$gl_cv_absolute_unistd_h
29002 gl_cv_next_unistd_h
='"'$gl_header'"'
29004 gl_cv_next_unistd_h
='<'unistd.h
'>'
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29010 $as_echo "$gl_cv_next_unistd_h" >&6; }
29012 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
29014 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29016 gl_next_as_first_directive
='<'unistd.h
'>'
29018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29019 gl_next_as_first_directive
=$gl_cv_next_unistd_h
29021 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
29026 if test $ac_cv_header_unistd_h = yes; then
29049 if test $ac_cv_have_decl_unsetenv = no
; then
29050 HAVE_DECL_UNSETENV
=0
29052 for ac_func
in unsetenv
29054 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
29055 if test "x$ac_cv_func_unsetenv" = xyes
; then :
29056 cat >>confdefs.h
<<_ACEOF
29057 #define HAVE_UNSETENV 1
29063 if test $ac_cv_func_unsetenv = no
; then
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
29068 $as_echo_n "checking for unsetenv() return type... " >&6; }
29069 if ${gt_cv_func_unsetenv_ret+:} false
; then :
29070 $as_echo_n "(cached) " >&6
29072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29073 /* end confdefs.h. */
29076 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
29077 #include <stdlib.h>
29082 int unsetenv (const char *name);
29092 if ac_fn_c_try_compile
"$LINENO"; then :
29093 gt_cv_func_unsetenv_ret
='int'
29095 gt_cv_func_unsetenv_ret
='void'
29097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
29100 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
29101 if test $gt_cv_func_unsetenv_ret = 'void'; then
29103 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
29109 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
29110 if ${gl_cv_func_unsetenv_works+:} false
; then :
29111 $as_echo_n "(cached) " >&6
29113 if test "$cross_compiling" = yes; then :
29115 # Guess yes on glibc systems.
29116 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
29117 # If we don't know, obey --enable-cross-guesses.
29118 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
29122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29123 /* end confdefs.h. */
29125 #include <stdlib.h>
29127 extern char **environ;
29133 char entry1[] = "a=1";
29134 char entry2[] = "b=2";
29135 char *env[] = { entry1, entry2, NULL };
29136 if (putenv ((char *) "a=1")) return 1;
29137 if (putenv (entry2)) return 2;
29140 if (getenv ("a")) return 3;
29141 if (!unsetenv ("") || errno != EINVAL) return 4;
29144 if (!getenv ("a")) return 5;
29147 if (getenv ("a")) return 6;
29153 if ac_fn_c_try_run
"$LINENO"; then :
29154 gl_cv_func_unsetenv_works
=yes
29156 gl_cv_func_unsetenv_works
=no
29158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
29164 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
29165 case "$gl_cv_func_unsetenv_works" in
29173 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
29182 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
29200 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
29216 if test $gl_cv_have_include_next = yes; then
29217 gl_cv_next_wchar_h
='<'wchar.h
'>'
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29220 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
29221 if ${gl_cv_next_wchar_h+:} false
; then :
29222 $as_echo_n "(cached) " >&6
29225 if test $ac_cv_header_wchar_h = yes; then
29230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29231 /* end confdefs.h. */
29235 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29236 *) gl_absname_cpp
="$ac_cpp" ;;
29241 gl_dirsep_regex
='[/\\]'
29244 gl_dirsep_regex
='\/'
29247 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29248 gl_header_literal_regex
=`echo 'wchar.h' \
29249 | sed -e "$gl_make_literal_regex_sed"`
29250 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29251 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29257 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29258 sed -n "$gl_absolute_header_sed"`
29260 gl_header
=$gl_cv_absolute_wchar_h
29261 gl_cv_next_wchar_h
='"'$gl_header'"'
29263 gl_cv_next_wchar_h
='<'wchar.h
'>'
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29269 $as_echo "$gl_cv_next_wchar_h" >&6; }
29271 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
29273 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29275 gl_next_as_first_directive
='<'wchar.h
'>'
29277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29278 gl_next_as_first_directive
=$gl_cv_next_wchar_h
29280 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
29285 if test $ac_cv_header_wchar_h = yes; then
29295 if test $gt_cv_c_wint_t = yes; then
29315 if test $ac_cv_func_iswcntrl = yes; then
29323 if test $gt_cv_c_wint_t = yes; then
29341 if test $gl_cv_have_include_next = yes; then
29342 gl_cv_next_wctype_h
='<'wctype.h
'>'
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29345 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
29346 if ${gl_cv_next_wctype_h+:} false
; then :
29347 $as_echo_n "(cached) " >&6
29350 if test $ac_cv_header_wctype_h = yes; then
29355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29356 /* end confdefs.h. */
29357 #include <wctype.h>
29360 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29361 *) gl_absname_cpp
="$ac_cpp" ;;
29366 gl_dirsep_regex
='[/\\]'
29369 gl_dirsep_regex
='\/'
29372 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29373 gl_header_literal_regex
=`echo 'wctype.h' \
29374 | sed -e "$gl_make_literal_regex_sed"`
29375 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29376 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29382 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29383 sed -n "$gl_absolute_header_sed"`
29385 gl_header
=$gl_cv_absolute_wctype_h
29386 gl_cv_next_wctype_h
='"'$gl_header'"'
29388 gl_cv_next_wctype_h
='<'wctype.h
'>'
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29394 $as_echo "$gl_cv_next_wctype_h" >&6; }
29396 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
29398 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29400 gl_next_as_first_directive
='<'wctype.h
'>'
29402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29403 gl_next_as_first_directive
=$gl_cv_next_wctype_h
29405 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
29410 if test $ac_cv_header_wctype_h = yes; then
29411 if test $ac_cv_func_iswcntrl = yes; then
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29413 $as_echo_n "checking whether iswcntrl works... " >&6; }
29414 if ${gl_cv_func_iswcntrl_works+:} false
; then :
29415 $as_echo_n "(cached) " >&6
29418 if test "$cross_compiling" = yes; then :
29419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29420 /* end confdefs.h. */
29421 #include <stdlib.h>
29422 #if __GNU_LIBRARY__ == 1
29423 Linux libc5 i18n is broken.
29433 if ac_fn_c_try_compile
"$LINENO"; then :
29434 gl_cv_func_iswcntrl_works
="guessing yes"
29436 gl_cv_func_iswcntrl_works
="guessing no"
29438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29442 /* end confdefs.h. */
29444 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29445 included before <wchar.h>.
29446 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29447 must be included before <wchar.h>. */
29448 #include <stddef.h>
29452 #include <wctype.h>
29453 int main () { return iswprint ('x') == 0; }
29456 if ac_fn_c_try_run
"$LINENO"; then :
29457 gl_cv_func_iswcntrl_works
=yes
29459 gl_cv_func_iswcntrl_works
=no
29461 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29462 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29468 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
29476 if test $GNULIB_OVERRIDES_WINT_T = 1; then
29479 case "$gl_cv_func_iswcntrl_works" in
29480 *yes) REPLACE_ISWCNTRL
=0 ;;
29481 *) REPLACE_ISWCNTRL
=1 ;;
29486 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
29490 if test $REPLACE_ISWCNTRL = 1; then
29493 for ac_func
in towlower
29495 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
29496 if test "x$ac_cv_func_towlower" = xyes
; then :
29497 cat >>confdefs.h
<<_ACEOF
29498 #define HAVE_TOWLOWER 1
29504 if test $ac_cv_func_towlower = yes; then
29507 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29508 included before <wchar.h>.
29509 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29510 must be included before <wchar.h>. */
29511 #include <stddef.h>
29516 # include <wctype.h>
29520 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
29526 cat >>confdefs.h
<<_ACEOF
29527 #define HAVE_DECL_TOWLOWER $ac_have_decl
29530 if test $ac_cv_have_decl_towlower = yes; then
29539 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29544 $as_echo_n "checking for wctype_t... " >&6; }
29545 if ${gl_cv_type_wctype_t+:} false
; then :
29546 $as_echo_n "(cached) " >&6
29548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29549 /* end confdefs.h. */
29550 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29551 included before <wchar.h>.
29552 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29553 must be included before <wchar.h>. */
29554 #include <stddef.h>
29559 # include <wctype.h>
29571 if ac_fn_c_try_compile
"$LINENO"; then :
29572 gl_cv_type_wctype_t
=yes
29574 gl_cv_type_wctype_t
=no
29576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29580 $as_echo "$gl_cv_type_wctype_t" >&6; }
29581 if test $gl_cv_type_wctype_t = no
; then
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29586 $as_echo_n "checking for wctrans_t... " >&6; }
29587 if ${gl_cv_type_wctrans_t+:} false
; then :
29588 $as_echo_n "(cached) " >&6
29590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29591 /* end confdefs.h. */
29592 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29593 included before <wchar.h>.
29594 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29595 must be included before <wchar.h>. */
29596 #include <stddef.h>
29600 #include <wctype.h>
29611 if ac_fn_c_try_compile
"$LINENO"; then :
29612 gl_cv_type_wctrans_t
=yes
29614 gl_cv_type_wctrans_t
=no
29616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
29620 $as_echo "$gl_cv_type_wctrans_t" >&6; }
29621 if test $gl_cv_type_wctrans_t = no
; then
29640 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
29655 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
29670 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
29685 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
29692 $as_echo_n "checking for wmemchr... " >&6; }
29693 if ${gl_cv_func_wmemchr+:} false
; then :
29694 $as_echo_n "(cached) " >&6
29696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29699 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29701 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29702 before <wchar.h>. */
29703 #include <stddef.h>
29711 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
29717 if ac_fn_c_try_link
"$LINENO"; then :
29718 gl_cv_func_wmemchr
=yes
29720 gl_cv_func_wmemchr
=no
29722 rm -f core conftest.err conftest.
$ac_objext \
29723 conftest
$ac_exeext conftest.
$ac_ext
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
29727 $as_echo "$gl_cv_func_wmemchr" >&6; }
29728 if test $gl_cv_func_wmemchr = no
; then
29732 if test $HAVE_WMEMCHR = 0; then
29741 gl_LIBOBJS
="$gl_LIBOBJS wmemchr.$ac_objext"
29755 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
29767 if test $ac_cv_func_wmempcpy = no
; then
29771 if test $HAVE_WMEMPCPY = 0; then
29780 gl_LIBOBJS
="$gl_LIBOBJS wmempcpy.$ac_objext"
29794 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
29798 # End of code from modules
29820 gl_source_base
='tests'
29821 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
29823 gl_module_indicator_condition
=$gltests_WITNESS
29833 LIBGNU_LIBDEPS
="$gl_libdeps"
29835 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
29839 am__api_version
='1.15'
29841 # Find a good install program. We prefer a C program (faster),
29842 # so one script is as good as another. But avoid the broken or
29843 # incompatible versions:
29844 # SysV /etc/install, /usr/sbin/install
29845 # SunOS /usr/etc/install
29846 # IRIX /sbin/install
29848 # AmigaOS /C/install, which installs bootblocks on floppy discs
29849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
29850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
29851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
29852 # OS/2's system install, which has a completely different semantic
29853 # ./install, which can be erroneously created by make from ./install.sh.
29854 # Reject install programs that cannot install multiple files.
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
29856 $as_echo_n "checking for a BSD-compatible install... " >&6; }
29857 if test -z "$INSTALL"; then
29858 if ${ac_cv_path_install+:} false
; then :
29859 $as_echo_n "(cached) " >&6
29861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29862 for as_dir
in $PATH
29865 test -z "$as_dir" && as_dir
=.
29866 # Account for people who put trailing slashes in PATH elements.
29867 case $as_dir/ in #((
29868 .
/ | .
// |
/[cC
]/* | \
29869 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
29870 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
29873 # OSF1 and SCO ODT 3.0 have their own names for install.
29874 # Don't use installbsd from OSF since it installs stuff as root
29876 for ac_prog
in ginstall scoinst
install; do
29877 for ac_exec_ext
in '' $ac_executable_extensions; do
29878 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
29879 if test $ac_prog = install &&
29880 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
29881 # AIX install. It has an incompatible calling convention.
29883 elif test $ac_prog = install &&
29884 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
29885 # program-specific install script used by HP pwplus--don't use.
29888 rm -rf conftest.one conftest.two conftest.dir
29889 echo one
> conftest.one
29890 echo two
> conftest.two
29892 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
29893 test -s conftest.one
&& test -s conftest.two
&&
29894 test -s conftest.dir
/conftest.one
&&
29895 test -s conftest.dir
/conftest.two
29897 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
29910 rm -rf conftest.one conftest.two conftest.dir
29913 if test "${ac_cv_path_install+set}" = set; then
29914 INSTALL
=$ac_cv_path_install
29916 # As a last resort, use the slow shell script. Don't cache a
29917 # value for INSTALL within a source directory, because that will
29918 # break other packages using the cache if that directory is
29919 # removed, or if the value is a relative name.
29920 INSTALL
=$ac_install_sh
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
29924 $as_echo "$INSTALL" >&6; }
29926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29927 # It thinks the first close brace ends the variable substitution.
29928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
29930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
29932 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
29935 $as_echo_n "checking whether build environment is sane... " >&6; }
29936 # Reject unsafe characters in $srcdir or the absolute working directory
29937 # name. Accept space and tab only in the latter.
29941 *[\\\"\
#\$\&\'\`$am_lf]*)
29942 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
29945 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
29946 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
29949 # Do 'set' in a subshell so we don't clobber the current shell's
29950 # arguments. Must try -L first in case configure is actually a
29951 # symlink; some systems play weird games with the mod time of symlinks
29952 # (eg FreeBSD returns the mod time of the symlink's containing
29956 for am_try
in 1 2; do
29957 echo "timestamp, slept: $am_has_slept" > conftest.
file
29958 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
29959 if test "$*" = "X"; then
29961 set X
`ls -t "$srcdir/configure" conftest.file`
29963 if test "$*" != "X $srcdir/configure conftest.file" \
29964 && test "$*" != "X conftest.file $srcdir/configure"; then
29966 # If neither matched, then we have a broken ls. This can happen
29967 # if, for instance, CONFIG_SHELL is bash and it inherits a
29968 # broken ls alias from the environment. This has actually
29969 # happened. Such a system could not be considered "sane".
29970 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
29971 alias in your environment" "$LINENO" 5
29973 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
29980 test "$2" = conftest.
file
29986 as_fn_error $?
"newly created file is older than distributed files!
29987 Check your system clock" "$LINENO" 5
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29990 $as_echo "yes" >&6; }
29991 # If we didn't sleep, we still need to ensure time stamps of config.status and
29992 # generated files are strictly newer.
29994 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
29999 rm -f conftest.
file
30001 test "$program_prefix" != NONE
&&
30002 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
30003 # Use a double $ so make ignores it.
30004 test "$program_suffix" != NONE
&&
30005 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
30006 # Double any \ or $.
30007 # By default was `s,x,x', remove it if useless.
30008 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
30009 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
30011 # Expand $ac_aux_dir to an absolute path.
30012 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
30014 if test x
"${MISSING+set}" != xset
; then
30015 case $am_aux_dir in
30017 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
30019 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
30022 # Use eval to expand $SHELL
30023 if eval "$MISSING --is-lightweight"; then
30024 am_missing_run
="$MISSING "
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
30028 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
30031 if test x
"${install_sh+set}" != xset
; then
30032 case $am_aux_dir in
30034 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
30036 install_sh
="\${SHELL} $am_aux_dir/install-sh"
30040 # Installed binaries are usually stripped using 'strip' when the user
30041 # run "make install-strip". However 'strip' might not be the right
30042 # tool to use in cross-compilation environments, therefore Automake
30043 # will honor the 'STRIP' environment variable to overrule this program.
30044 if test "$cross_compiling" != no
; then
30045 if test -n "$ac_tool_prefix"; then
30046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30047 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30049 $as_echo_n "checking for $ac_word... " >&6; }
30050 if ${ac_cv_prog_STRIP+:} false
; then :
30051 $as_echo_n "(cached) " >&6
30053 if test -n "$STRIP"; then
30054 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
30056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30057 for as_dir
in $PATH
30060 test -z "$as_dir" && as_dir
=.
30061 for ac_exec_ext
in '' $ac_executable_extensions; do
30062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30063 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
30064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30073 STRIP
=$ac_cv_prog_STRIP
30074 if test -n "$STRIP"; then
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30076 $as_echo "$STRIP" >&6; }
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30079 $as_echo "no" >&6; }
30084 if test -z "$ac_cv_prog_STRIP"; then
30086 # Extract the first word of "strip", so it can be a program name with args.
30087 set dummy strip
; ac_word
=$2
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30089 $as_echo_n "checking for $ac_word... " >&6; }
30090 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
30091 $as_echo_n "(cached) " >&6
30093 if test -n "$ac_ct_STRIP"; then
30094 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
30096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30097 for as_dir
in $PATH
30100 test -z "$as_dir" && as_dir
=.
30101 for ac_exec_ext
in '' $ac_executable_extensions; do
30102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30103 ac_cv_prog_ac_ct_STRIP
="strip"
30104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30113 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
30114 if test -n "$ac_ct_STRIP"; then
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30116 $as_echo "$ac_ct_STRIP" >&6; }
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119 $as_echo "no" >&6; }
30122 if test "x$ac_ct_STRIP" = x
; then
30125 case $cross_compiling:$ac_tool_warned in
30127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30129 ac_tool_warned
=yes ;;
30134 STRIP
="$ac_cv_prog_STRIP"
30138 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
30140 for ac_prog
in gawk mawk nawk
awk
30142 # Extract the first word of "$ac_prog", so it can be a program name with args.
30143 set dummy
$ac_prog; ac_word
=$2
30144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30145 $as_echo_n "checking for $ac_word... " >&6; }
30146 if ${ac_cv_prog_AWK+:} false
; then :
30147 $as_echo_n "(cached) " >&6
30149 if test -n "$AWK"; then
30150 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
30152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30153 for as_dir
in $PATH
30156 test -z "$as_dir" && as_dir
=.
30157 for ac_exec_ext
in '' $ac_executable_extensions; do
30158 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30159 ac_cv_prog_AWK
="$ac_prog"
30160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30169 AWK
=$ac_cv_prog_AWK
30170 if test -n "$AWK"; then
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
30172 $as_echo "$AWK" >&6; }
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30175 $as_echo "no" >&6; }
30179 test -n "$AWK" && break
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
30183 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
30185 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
30186 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
30187 $as_echo_n "(cached) " >&6
30189 cat >conftest.
make <<\_ACEOF
30192 @
echo '@@@%%%=$(MAKE)=@@@%%%'
30194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30195 case `${MAKE-make} -f conftest.make 2>/dev/null` in
30196 *@@@
%%%=?
*=@@@
%%%*)
30197 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
30199 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
30201 rm -f conftest.
make
30203 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30205 $as_echo "yes" >&6; }
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30209 $as_echo "no" >&6; }
30210 SET_MAKE
="MAKE=${MAKE-make}"
30213 rm -rf .tst
2>/dev
/null
30214 mkdir .tst
2>/dev
/null
30215 if test -d .tst
; then
30220 rmdir .tst
2>/dev
/null
30222 DEPDIR
="${am__leading_dot}deps"
30224 ac_config_commands
="$ac_config_commands depfiles"
30227 am_make
=${MAKE-make}
30228 cat > confinc
<< 'END'
30230 @
echo this is the am__doit target
30233 # If we don't find an include directive, just comment out the code.
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30235 $as_echo_n "checking for style of include used by $am_make... " >&6; }
30239 # First try GNU make style include.
30240 echo "include confinc" > confmf
30241 # Ignore all kinds of additional output from 'make'.
30242 case `$am_make -s -f confmf 2> /dev/null` in #(
30243 *the\ am__doit\ target
*)
30244 am__include
=include
30249 # Now try BSD make style include.
30250 if test "$am__include" = "#"; then
30251 echo '.include "confinc"' > confmf
30252 case `$am_make -s -f confmf 2> /dev/null` in #(
30253 *the\ am__doit\ target
*)
30254 am__include
=.include
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30263 $as_echo "$_am_result" >&6; }
30264 rm -f confinc confmf
30266 # Check whether --enable-dependency-tracking was given.
30267 if test "${enable_dependency_tracking+set}" = set; then :
30268 enableval
=$enable_dependency_tracking;
30271 if test "x$enable_dependency_tracking" != xno
; then
30272 am_depcomp
="$ac_aux_dir/depcomp"
30276 if test "x$enable_dependency_tracking" != xno; then
30285 # Check whether --enable-silent-rules was given.
30286 if test "${enable_silent_rules+set}" = set; then :
30287 enableval
=$enable_silent_rules;
30290 case $enable_silent_rules in # (((
30291 yes) AM_DEFAULT_VERBOSITY
=0;;
30292 no
) AM_DEFAULT_VERBOSITY
=1;;
30293 *) AM_DEFAULT_VERBOSITY
=1;;
30295 am_make
=${MAKE-make}
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30297 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30298 if ${am_cv_make_support_nested_variables+:} false
; then :
30299 $as_echo_n "(cached) " >&6
30301 if $as_echo 'TRUE=$(BAR$(V))
30307 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
30308 am_cv_make_support_nested_variables
=yes
30310 am_cv_make_support_nested_variables
=no
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
30314 $as_echo "$am_cv_make_support_nested_variables" >&6; }
30315 if test $am_cv_make_support_nested_variables = yes; then
30317 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
30319 AM_V
=$AM_DEFAULT_VERBOSITY
30320 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
30324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
30325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
30326 # is not polluted with repeated "-I."
30327 am__isrc
=' -I$(srcdir)'
30328 # test to see if srcdir already configured
30329 if test -f $srcdir/config.status
; then
30330 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
30334 # test whether we have cygpath
30335 if test -z "$CYGPATH_W"; then
30336 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
30337 CYGPATH_W
='cygpath -w'
30344 # Define the identity of the package.
30346 VERSION
='UNUSED-VERSION'
30349 # Some tools Automake needs.
30351 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30354 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
30357 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30360 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
30363 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
30365 # For better backward compatibility. To be removed once Automake 1.9.x
30366 # dies out for good. For more background, see:
30367 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
30368 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30369 mkdir_p
='$(MKDIR_P)'
30371 # We need awk for the "check" target (and possibly the TAP driver). The
30372 # system "awk" is bad on some platforms.
30373 # Always define AMTAR for backward compatibility. Yes, it's still used
30374 # in the wild :-( We should find a proper way to deprecate it ...
30375 AMTAR
='$${TAR-tar}'
30378 # We'll loop over all known methods to create a tar archive until one works.
30379 _am_tools
='gnutar pax cpio none'
30381 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
30387 depcc
="$CC" am_compiler_list
=
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30390 $as_echo_n "checking dependency style of $depcc... " >&6; }
30391 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
30392 $as_echo_n "(cached) " >&6
30394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30395 # We make a subdir and do the tests there. Otherwise we can end up
30396 # making bogus files that we don't know about and never remove. For
30397 # instance it was reported that on HP-UX the gcc test will end up
30398 # making a dummy file named 'D' -- because '-MD' means "put the output
30400 rm -rf conftest.dir
30402 # Copy depcomp to subdir because otherwise we won't find it if we're
30403 # using a relative directory.
30404 cp "$am_depcomp" conftest.dir
30406 # We will build objects and dependencies in a subdirectory because
30407 # it helps to detect inapplicable dependency modes. For instance
30408 # both Tru64's cc and ICC support -MD to output dependencies as a
30409 # side effect of compilation, but ICC will put the dependencies in
30410 # the current directory while Tru64 will put them in the object
30414 am_cv_CC_dependencies_compiler_type
=none
30415 if test "$am_compiler_list" = ""; then
30416 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30418 am__universal
=false
30419 case " $depcc " in #(
30420 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
30423 for depmode
in $am_compiler_list; do
30424 # Setup a source with many dependencies, because some compilers
30425 # like to wrap large dependency lists on column 80 (with \), and
30426 # we should not choose a depcomp mode which is confused by this.
30428 # We need to recreate these files for each test, as the compiler may
30429 # overwrite some of them when testing with obscure command lines.
30430 # This happens at least with the AIX C compiler.
30432 for i
in 1 2 3 4 5 6; do
30433 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
30434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30435 # Solaris 10 /bin/sh.
30436 echo '/* dummy */' > sub
/conftst
$i.h
30438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30440 # We check with '-c' and '-o' for the sake of the "dashmstdout"
30441 # mode. It turns out that the SunPro C++ compiler does not properly
30442 # handle '-M -o', and we need to detect this. Also, some Intel
30443 # versions had trouble with output in subdirs.
30444 am__obj
=sub
/conftest.
${OBJEXT-o}
30445 am__minus_obj
="-o $am__obj"
30448 # This depmode causes a compiler race in universal mode.
30449 test "$am__universal" = false ||
continue
30452 # After this tag, mechanisms are not by side-effect, so they'll
30453 # only be used when explicitly requested.
30454 if test "x$enable_dependency_tracking" = xyes
; then
30460 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
30461 # This compiler won't grok '-c -o', but also, the minuso test has
30462 # not run yet. These depmodes are late enough in the game, and
30463 # so weak that their functioning should not be impacted.
30464 am__obj
=conftest.
${OBJEXT-o}
30469 if depmode
=$depmode \
30470 source=sub
/conftest.c object
=$am__obj \
30471 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
30472 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
30473 >/dev
/null
2>conftest.err
&&
30474 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
30475 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
30476 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
30477 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
30478 # icc doesn't choke on unknown options, it will just issue warnings
30479 # or remarks (even with -Werror). So we grep stderr for any message
30480 # that says an option was ignored or not supported.
30481 # When given -MP, icc 7.0 and 7.1 complain thusly:
30482 # icc: Command line warning: ignoring option '-M'; no argument required
30483 # The diagnosis changed in icc 8.0:
30484 # icc: Command line remark: option '-MP' not supported
30485 if (grep 'ignoring option' conftest.err ||
30486 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
30487 am_cv_CC_dependencies_compiler_type
=$depmode
30494 rm -rf conftest.dir
30496 am_cv_CC_dependencies_compiler_type
=none
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
30501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
30502 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
30505 test "x$enable_dependency_tracking" != xno \
30506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
30507 am__fastdepCC_TRUE
=
30508 am__fastdepCC_FALSE
='#'
30510 am__fastdepCC_TRUE
='#'
30511 am__fastdepCC_FALSE
=
30516 # POSIX will say in a future version that running "rm -f" with no argument
30517 # is OK; and we want to be able to make that assumption in our Makefile
30518 # recipes. So use an aggressive probe to check that the usage we want is
30519 # actually supported "in the wild" to an acceptable degree.
30520 # See automake bug#10828.
30521 # To make any issue more visible, cause the running configure to be aborted
30522 # by default if the 'rm' program in use doesn't match our expectations; the
30523 # user can still override this though.
30524 if rm -f && rm -fr && rm -rf; then : OK
; else
30528 Your 'rm' program seems unable to run without file operands specified
30529 on the command line, even when the '-f' option is present. This is contrary
30530 to the behaviour of most rm programs out there, and not conforming with
30531 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
30533 Please tell bug-automake@gnu.org about your system, including the value
30534 of your $PATH and any error possibly output before this message. This
30535 can help us improve future automake versions.
30538 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
30539 echo 'Configuration will proceed anyway, since you have set the' >&2
30540 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
30544 Aborting the configuration process, to ensure you take notice of the issue.
30546 You can download and install GNU coreutils to get an 'rm' implementation
30547 that behaves properly: <http://www.gnu.org/software/coreutils/>.
30549 If you want to complete the configuration process using your problematic
30550 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30551 to "yes", and re-run configure.
30554 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
30559 # Check whether --enable-silent-rules was given.
30560 if test "${enable_silent_rules+set}" = set; then :
30561 enableval
=$enable_silent_rules;
30564 case $enable_silent_rules in # (((
30565 yes) AM_DEFAULT_VERBOSITY
=0;;
30566 no
) AM_DEFAULT_VERBOSITY
=1;;
30567 *) AM_DEFAULT_VERBOSITY
=0;;
30569 am_make
=${MAKE-make}
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30571 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30572 if ${am_cv_make_support_nested_variables+:} false
; then :
30573 $as_echo_n "(cached) " >&6
30575 if $as_echo 'TRUE=$(BAR$(V))
30581 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
30582 am_cv_make_support_nested_variables
=yes
30584 am_cv_make_support_nested_variables
=no
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
30588 $as_echo "$am_cv_make_support_nested_variables" >&6; }
30589 if test $am_cv_make_support_nested_variables = yes; then
30591 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
30593 AM_V
=$AM_DEFAULT_VERBOSITY
30594 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
30599 # --------------------- #
30600 # Checks for programs. #
30601 # --------------------- #
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30605 $as_echo_n "checking whether ln -s works... " >&6; }
30607 if test "$LN_S" = "ln -s"; then
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30609 $as_echo "yes" >&6; }
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30612 $as_echo "no, using $LN_S" >&6; }
30615 if test -n "$ac_tool_prefix"; then
30616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30619 $as_echo_n "checking for $ac_word... " >&6; }
30620 if ${ac_cv_prog_RANLIB+:} false; then :
30621 $as_echo_n "(cached) " >&6
30623 if test -n "$RANLIB"; then
30624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
30626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30627 for as_dir in $PATH
30630 test -z "$as_dir" && as_dir=.
30631 for ac_exec_ext in '' $ac_executable_extensions; do
30632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
30634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30643 RANLIB=$ac_cv_prog_RANLIB
30644 if test -n "$RANLIB"; then
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
30646 $as_echo "$RANLIB" >&6; }
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30649 $as_echo "no" >&6; }
30654 if test -z "$ac_cv_prog_RANLIB"; then
30655 ac_ct_RANLIB=$RANLIB
30656 # Extract the first word of "ranlib", so it can be a program name with args.
30657 set dummy ranlib; ac_word=$2
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30659 $as_echo_n "checking for $ac_word... " >&6; }
30660 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
30661 $as_echo_n "(cached) " >&6
30663 if test -n "$ac_ct_RANLIB"; then
30664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
30666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30667 for as_dir in $PATH
30670 test -z "$as_dir" && as_dir=.
30671 for ac_exec_ext in '' $ac_executable_extensions; do
30672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30673 ac_cv_prog_ac_ct_RANLIB="ranlib"
30674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
30684 if test -n "$ac_ct_RANLIB"; then
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
30686 $as_echo "$ac_ct_RANLIB" >&6; }
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30689 $as_echo "no" >&6; }
30692 if test "x$ac_ct_RANLIB" = x; then
30695 case $cross_compiling:$ac_tool_warned in
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30699 ac_tool_warned=yes ;;
30701 RANLIB=$ac_ct_RANLIB
30704 RANLIB="$ac_cv_prog_RANLIB"
30708 if test -n "$ac_tool_prefix"; then
30709 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
30710 set dummy ${ac_tool_prefix}ar; ac_word=$2
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30712 $as_echo_n "checking for $ac_word... " >&6; }
30713 if ${ac_cv_prog_AR+:} false; then :
30714 $as_echo_n "(cached) " >&6
30716 if test -n "$AR"; then
30717 ac_cv_prog_AR="$AR" # Let the user override the test.
30719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30720 for as_dir in $PATH
30723 test -z "$as_dir" && as_dir=.
30724 for ac_exec_ext in '' $ac_executable_extensions; do
30725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30726 ac_cv_prog_AR="${ac_tool_prefix}ar"
30727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30737 if test -n "$AR"; then
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30739 $as_echo "$AR" >&6; }
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30742 $as_echo "no" >&6; }
30747 if test -z "$ac_cv_prog_AR"; then
30749 # Extract the first word of "ar", so it can be a program name with args.
30750 set dummy ar; ac_word=$2
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30752 $as_echo_n "checking for $ac_word... " >&6; }
30753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30754 $as_echo_n "(cached) " >&6
30756 if test -n "$ac_ct_AR"; then
30757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30760 for as_dir in $PATH
30763 test -z "$as_dir" && as_dir=.
30764 for ac_exec_ext in '' $ac_executable_extensions; do
30765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30766 ac_cv_prog_ac_ct_AR="ar"
30767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30777 if test -n "$ac_ct_AR"; then
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30779 $as_echo "$ac_ct_AR" >&6; }
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782 $as_echo "no" >&6; }
30785 if test "x$ac_ct_AR" = x; then
30788 case $cross_compiling:$ac_tool_warned in
30790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30792 ac_tool_warned=yes ;;
30797 AR="$ac_cv_prog_AR"
30801 # ---------------------- #
30802 # Checks for libraries. #
30803 # ---------------------- #
30805 ac_config_files="$ac_config_files Makefile.gnulib.inc"
30808 ac_config_files="$ac_config_files Makefile import/Makefile"
30810 ac_config_commands="$ac_config_commands default"
30812 cat >confcache <<\_ACEOF
30813 # This file is a shell script that caches the results of configure
30814 # tests run on this system so they can be shared between configure
30815 # scripts and configure runs, see configure's option
--config-cache.
30816 # It is not useful on other systems. If it contains results you don't
30817 # want to keep, you may remove or edit it.
30819 # config.status only pays attention to the cache file if you give it
30820 # the --recheck option to rerun configure.
30822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30824 # following values.
30828 # The following way of writing the cache mishandles newlines in values,
30829 # but we know of no workaround that is simple, portable, and efficient.
30830 # So, we kill variables containing newlines.
30831 # Ultrix sh set writes to stderr and can't be redirected directly,
30832 # and sets the high bit in the cache file unless we assign to the vars.
30834 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30835 eval ac_val
=\$
$ac_var
30839 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30843 _ | IFS | as_nl
) ;; #(
30844 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30845 *) { eval $ac_var=; unset $ac_var;} ;;
30851 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30852 *${as_nl}ac_space
=\
*)
30853 # `set' does not quote correctly, so add quotes: double-quote
30854 # substitution turns \\\\ into \\, and sed turns \\ into \.
30857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30860 # `set' quotes correctly as required by POSIX, so do not add quotes.
30861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30874 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30875 if test -w "$cache_file"; then
30876 if test "x$cache_file" != "x/dev/null"; then
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30878 $as_echo "$as_me: updating cache $cache_file" >&6;}
30879 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30880 cat confcache
>"$cache_file"
30882 case $cache_file in #(
30884 mv -f confcache
"$cache_file"$$
&&
30885 mv -f "$cache_file"$$
"$cache_file" ;; #(
30887 mv -f confcache
"$cache_file" ;;
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30893 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30898 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30899 # Let make expand exec_prefix.
30900 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30902 DEFS
=-DHAVE_CONFIG_H
30906 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30907 # 1. Remove the extension, and $U if already installed.
30908 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30909 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30911 # will be set to the directory where LIBOBJS objects are built.
30912 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30913 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30915 LIBOBJS
=$ac_libobjs
30917 LTLIBOBJS
=$ac_ltlibobjs
30920 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30921 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
30922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30924 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30925 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
30926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30928 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
30929 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
30930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30932 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
30933 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
30934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30936 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
30937 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
30938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30940 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
30941 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
30942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30944 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
30945 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
30946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30948 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
30949 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
30950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30952 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
30953 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
30954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30956 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
30957 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
30958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30960 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
30961 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
30962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30964 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
30965 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
30966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30970 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30971 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30974 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
30975 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
30976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30978 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
30979 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
30980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30982 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
30983 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
30984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30986 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30987 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30993 if test -n "$gl_LIBOBJS"; then
30994 # Remove the extension.
30995 sed_drop_objext
='s/\.o$//;s/\.obj$//'
30996 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30997 gl_libobjs
="$gl_libobjs $i.$ac_objext"
30998 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
31001 gl_LIBOBJS
=$gl_libobjs
31003 gl_LTLIBOBJS
=$gl_ltlibobjs
31009 if test -n "$gltests_LIBOBJS"; then
31010 # Remove the extension.
31011 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31012 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31013 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
31014 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
31017 gltests_LIBOBJS
=$gltests_libobjs
31019 gltests_LTLIBOBJS
=$gltests_ltlibobjs
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31023 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31024 if test -n "$am_sleep_pid"; then
31025 # Hide warnings about reused PIDs.
31026 wait $am_sleep_pid 2>/dev
/null
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31029 $as_echo "done" >&6; }
31030 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31031 as_fn_error $?
"conditional \"AMDEP\" was never defined.
31032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31034 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31035 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
31036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31038 if test -n "$EXEEXT"; then
31040 am__EXEEXT_FALSE
='#'
31042 am__EXEEXT_TRUE
='#'
31047 : "${CONFIG_STATUS=./config.status}"
31049 ac_clean_files_save
=$ac_clean_files
31050 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31052 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31054 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31056 # Generated by $as_me.
31057 # Run this file to recreate the current configuration.
31058 # Compiler output produced by configure, useful for debugging
31059 # configure, is in config.log if it exists.
31062 ac_cs_recheck=false
31065 SHELL=\${CONFIG_SHELL-$SHELL}
31068 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31069 ## -------------------- ##
31070 ## M4sh Initialization. ##
31071 ## -------------------- ##
31073 # Be more Bourne compatible
31074 DUALCASE
=1; export DUALCASE
# for MKS sh
31075 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31078 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31079 # is contrary to our usage. Disable this feature.
31080 alias -g '${1+"$@"}'='"$@"'
31081 setopt NO_GLOB_SUBST
31083 case `(set -o) 2>/dev/null` in #(
31095 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31096 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31097 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31098 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31099 # Prefer a ksh shell builtin over an external printf program on Solaris,
31100 # but without wasting forks for bash or zsh.
31101 if test -z "$BASH_VERSION$ZSH_VERSION" \
31102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31103 as_echo='print
-r --'
31104 as_echo_n='print
-rn --'
31105 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31106 as_echo='printf %s
\n'
31107 as_echo_n='printf %s
'
31109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31110 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31111 as_echo_n='/usr
/ucb
/echo -n'
31113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31114 as_echo_n_body='eval
31118 expr "X$arg" : "X\\(.*\\)$as_nl";
31119 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31121 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31123 export as_echo_n_body
31124 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31126 export as_echo_body
31127 as_echo='sh
-c $as_echo_body as_echo
'
31130 # The user is always right.
31131 if test "${PATH_SEPARATOR+set}" != set; then
31133 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31134 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31141 # We need space, tab and new line, in precisely that order. Quoting is
31142 # there to prevent editors from complaining about space-tab.
31143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31144 # splitting by setting IFS to empty value.)
31147 # Find who we are. Look in the path if we contain no directory separator.
31150 *[\\/]* ) as_myself=$0 ;;
31151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31152 for as_dir in $PATH
31155 test -z "$as_dir" && as_dir=.
31156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31162 # We did not find ourselves, most probably we were run as `sh COMMAND'
31163 # in which case we are not to be found in the path.
31164 if test "x$as_myself" = x
; then
31167 if test ! -f "$as_myself"; then
31168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31172 # Unset variables that we do not need and which cause bugs (e.g. in
31173 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31174 # suppresses any "Segmentation fault" message there. '((' could
31175 # trigger a bug in pdksh 5.2.14.
31176 for as_var
in BASH_ENV ENV MAIL MAILPATH
31177 do eval test x\
${$as_var+set} = xset \
31178 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31191 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31195 # ----------------------------------------
31196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31198 # script with STATUS, using 1 if that was 0.
31201 as_status
=$1; test $as_status -eq 0 && as_status
=1
31203 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31206 $as_echo "$as_me: error: $2" >&2
31207 as_fn_exit
$as_status
31211 # as_fn_set_status STATUS
31212 # -----------------------
31213 # Set $? to STATUS, without forking.
31214 as_fn_set_status
()
31217 } # as_fn_set_status
31219 # as_fn_exit STATUS
31220 # -----------------
31221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31225 as_fn_set_status
$1
31231 # Portably unset VAR.
31234 { eval $1=; unset $1;}
31236 as_unset
=as_fn_unset
31237 # as_fn_append VAR VALUE
31238 # ----------------------
31239 # Append the text in VALUE to the end of the definition contained in VAR. Take
31240 # advantage of any shell optimizations that allow amortized linear growth over
31241 # repeated appends, instead of the typical quadratic growth present in naive
31243 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31244 eval 'as_fn_append ()
31255 # as_fn_arith ARG...
31256 # ------------------
31257 # Perform arithmetic evaluation on the ARGs, and store the result in the
31258 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31259 # must be portable across $(()) and expr.
31260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31261 eval 'as_fn_arith ()
31268 as_val
=`expr "$@" || test $? -eq 1`
31273 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31274 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31280 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31281 as_basename
=basename
31286 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31292 as_me
=`$as_basename -- "$0" ||
31293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31294 X"$0" : 'X\(//\)$' \| \
31295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31297 sed '/^.*\/\([^/][^/]*\)\/*$/{
31311 # Avoid depending upon Character Ranges.
31312 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31313 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31314 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31315 as_cr_digits
='0123456789'
31316 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31318 ECHO_C
= ECHO_N
= ECHO_T
=
31319 case `echo -n x` in #(((((
31321 case `echo 'xy\c'` in
31322 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31324 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31331 rm -f conf$$ conf$$.exe conf$$.
file
31332 if test -d conf$$.dir
; then
31333 rm -f conf$$.dir
/conf$$.
file
31336 mkdir conf$$.dir
2>/dev
/null
31338 if (echo >conf$$.
file) 2>/dev
/null
; then
31339 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31341 # ... but there are two gotchas:
31342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31344 # In both cases, we have to default to `cp -pR'.
31345 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31347 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31355 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31356 rmdir conf$$.dir
2>/dev
/null
31361 # Create "$as_dir" as a directory, including parents if necessary.
31366 -*) as_dir
=.
/$as_dir;;
31368 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31372 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31373 *) as_qdir
=$as_dir;;
31375 as_dirs
="'$as_qdir' $as_dirs"
31376 as_dir
=`$as_dirname -- "$as_dir" ||
31377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31378 X"$as_dir" : 'X\(//\)[^/]' \| \
31379 X"$as_dir" : 'X\(//\)$' \| \
31380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31381 $as_echo X"$as_dir" |
31382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31386 /^X\(\/\/\)[^/].*/{
31399 test -d "$as_dir" && break
31401 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31402 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31406 if mkdir
-p .
2>/dev
/null
; then
31407 as_mkdir_p
='mkdir -p "$as_dir"'
31409 test -d .
/-p && rmdir .
/-p
31414 # as_fn_executable_p FILE
31415 # -----------------------
31416 # Test if FILE is an executable regular file.
31417 as_fn_executable_p
()
31419 test -f "$1" && test -x "$1"
31420 } # as_fn_executable_p
31421 as_test_x
='test -x'
31422 as_executable_p
=as_fn_executable_p
31424 # Sed expression to map a string onto a valid CPP name.
31425 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31427 # Sed expression to map a string onto a valid variable name.
31428 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31432 ## ----------------------------------- ##
31433 ## Main body of $CONFIG_STATUS script. ##
31434 ## ----------------------------------- ##
31436 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31439 # Save the log message, to keep $0 and so on meaningful, and to
31440 # report actual input values of CONFIG_FILES etc. instead of their
31441 # values after options handling.
31443 This file was extended by libgnu $as_me UNUSED-VERSION, which was
31444 generated by GNU Autoconf 2.69. Invocation command line was
31446 CONFIG_FILES = $CONFIG_FILES
31447 CONFIG_HEADERS = $CONFIG_HEADERS
31448 CONFIG_LINKS = $CONFIG_LINKS
31449 CONFIG_COMMANDS = $CONFIG_COMMANDS
31452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31457 case $ac_config_files in *"
31458 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31461 case $ac_config_headers in *"
31462 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31467 # Files that config.status was made for.
31468 config_files="$ac_config_files"
31469 config_headers="$ac_config_headers"
31470 config_commands="$ac_config_commands"
31474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31476 \`$as_me' instantiates files and other configuration actions
31477 from templates according to the current configuration. Unless the files
31478 and actions are specified as TAGs, all are instantiated by default.
31480 Usage: $0 [OPTION]... [TAG]...
31482 -h, --help print this help, then exit
31483 -V, --version print version number and configuration settings, then exit
31484 --config print configuration, then exit
31485 -q, --quiet, --silent
31486 do not print progress messages
31487 -d, --debug don't remove temporary files
31488 --recheck update $as_me by reconfiguring in the same conditions
31489 --file=FILE[:TEMPLATE]
31490 instantiate the configuration file FILE
31491 --header=FILE[:TEMPLATE]
31492 instantiate the configuration header FILE
31494 Configuration files:
31497 Configuration headers:
31500 Configuration commands:
31503 Report bugs to the package provider."
31506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31507 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31509 libgnu config.status UNUSED-VERSION
31510 configured by $0, generated by GNU Autoconf 2.69,
31511 with options \\"\$ac_cs_config\\"
31513 Copyright (C) 2012 Free Software Foundation, Inc.
31514 This config.status script is free software; the Free Software Foundation
31515 gives unlimited permission to copy, distribute and modify it."
31522 test -n "\$AWK" || AWK=awk
31525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31526 # The default lists apply if the user does not specify any file.
31532 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31533 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31537 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31549 # Handling of the options.
31550 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31552 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31553 $as_echo "$ac_cs_version"; exit ;;
31554 --config |
--confi |
--conf |
--con |
--co |
--c )
31555 $as_echo "$ac_cs_config"; exit ;;
31556 --debug |
--debu |
--deb |
--de |
--d |
-d )
31558 --file |
--fil |
--fi |
--f )
31561 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31562 '') as_fn_error $?
"missing file argument" ;;
31564 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31565 ac_need_defaults
=false
;;
31566 --header |
--heade |
--head |
--hea )
31569 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31571 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31572 ac_need_defaults
=false
;;
31574 # Conflict between --help and --header
31575 as_fn_error $?
"ambiguous option: \`$1'
31576 Try \`$0 --help' for more information.";;
31577 --help |
--hel |
-h )
31578 $as_echo "$ac_cs_usage"; exit ;;
31579 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31580 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31583 # This is an error.
31584 -*) as_fn_error $?
"unrecognized option: \`$1'
31585 Try \`$0 --help' for more information." ;;
31587 *) as_fn_append ac_config_targets
" $1"
31588 ac_need_defaults
=false
;;
31594 ac_configure_extra_args
=
31596 if $ac_cs_silent; then
31598 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31603 if \$ac_cs_recheck; then
31604 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31606 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31607 CONFIG_SHELL='$SHELL'
31608 export CONFIG_SHELL
31613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31618 ## Running $as_me. ##
31624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31628 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31634 # Handling of arguments.
31635 for ac_config_target
in $ac_config_targets
31637 case $ac_config_target in
31638 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
31639 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
31640 "Makefile.gnulib.inc") CONFIG_FILES
="$CONFIG_FILES Makefile.gnulib.inc" ;;
31641 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
31642 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
31643 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31645 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31650 # If the user did not use the arguments to specify the items to instantiate,
31651 # then the envvar interface is used. Set only those that are not.
31652 # We use the long form for the default assignment because of an extremely
31653 # bizarre bug on SunOS 4.1.3.
31654 if $ac_need_defaults; then
31655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31660 # Have a temporary directory for convenience. Make it in the build tree
31661 # simply because there is no reason against having it here, and in addition,
31662 # creating and moving files from /tmp can sometimes cause problems.
31663 # Hook for its removal unless debugging.
31664 # Note that there is a small window in which the directory will not be cleaned:
31665 # after its creation but before its name has been assigned to `$tmp'.
31669 trap 'exit_status=$?
31670 : "${ac_tmp:=$tmp}"
31671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31673 trap 'as_fn_exit 1' 1 2 13 15
31675 # Create a (secure) tmp directory for tmp files.
31678 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31682 tmp
=.
/conf$$
-$RANDOM
31683 (umask 077 && mkdir
"$tmp")
31684 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31687 # Set up the scripts for CONFIG_FILES section.
31688 # No need to generate them if there are no CONFIG_FILES.
31689 # This happens for instance with `./config.status config.h'.
31690 if test -n "$CONFIG_FILES"; then
31693 ac_cr
=`echo X | tr X '\015'`
31694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31695 # But we know of no other shell where ac_cr would be empty at this
31696 # point, so we can use a bashism as a fallback.
31697 if test "x$ac_cr" = x
; then
31698 eval ac_cr
=\$
\'\\r
\'
31700 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31704 ac_cs_awk_cr
=$ac_cr
31707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31712 echo "cat >conf$$subs.awk <<_ACEOF" &&
31713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31715 } >conf$$subs.sh ||
31716 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31719 for ac_last_try in false false false false false :; do
31720 . ./conf$$subs.sh ||
31721 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31723 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31724 if test $ac_delim_n = $ac_delim_num; then
31726 elif $ac_last_try; then
31727 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31729 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31732 rm -f conf$$subs.sh
31734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31735 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31739 s/^/S["/; s
/!.
*/"]=/
31749 s/\(.\{148\}\)..*/\1/
31751 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31756 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31763 s/\(.\{148\}\)..*/\1/
31765 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31769 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31774 ' <conf$$subs.awk | sed '
31779 ' >>$CONFIG_STATUS || ac_write_fail=1
31780 rm -f conf$$subs.awk
31781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31783 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31784 for (key in S) S_is_set[key] = 1
31790 nfields = split(line, field, "@
")
31792 len = length(field[1])
31793 for (i = 2; i < nfields; i++) {
31795 keylen = length(key)
31796 if (S_is_set[key]) {
31798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31799 len += length(value) + length(field[++i])
31810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31811 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31812 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31815 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31816 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31821 # trailing colons and then remove the whole line if VPATH becomes empty
31822 # (actually we leave an empty line to preserve line numbers).
31823 if test "x
$srcdir" = x.; then
31824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31843 fi # test -n "$CONFIG_FILES"
31845 # Set up the scripts for CONFIG_HEADERS section.
31846 # No need to generate them if there are no CONFIG_HEADERS.
31847 # This happens for instance with `./config.status Makefile'.
31848 if test -n "$CONFIG_HEADERS"; then
31849 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31853 # Transform confdefs.h into an awk script `defines.awk', embedded as
31854 # here-document in config.status, that substitutes the proper values into
31855 # config.h.in to produce config.h.
31857 # Create a delimiter string that does not exist in confdefs.h, to ease
31858 # handling of long lines.
31860 for ac_last_try in false false :; do
31861 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31862 if test -z "$ac_tt"; then
31864 elif $ac_last_try; then
31865 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31867 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31871 # For the awk script, D is an array of macro values keyed by name,
31872 # likewise P contains macro parameters if any. Preserve backslash
31873 # newline sequences.
31875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31877 s/.\{148\}/&'"$ac_delim"'/g
31880 s/^[ ]*#[ ]*define[ ][ ]*/ /
31887 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31889 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31894 D["\
1"]=" \
3\\\\\\n
"\\/p
31896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31901 s/.\{148\}/&'"$ac_delim"'/g
31906 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31909 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31911 ' <confdefs.h | sed '
31912 s/'"$ac_delim"'/"\\\
31913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31916 for (key in D) D_is_set[key] = 1
31919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31921 split(line, arg, " ")
31922 if (arg[1] == "#") {
31926 defundef
= substr
(arg
[1], 2)
31929 split(mac1
, mac2
, "(") #)
31931 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31932 if (D_is_set
[macro
]) {
31933 # Preserve the white space surrounding the "#".
31934 print prefix
"define", macro P
[macro
] D
[macro
]
31937 # Replace #undef with comments. This is necessary, for example,
31938 # in the case of _POSIX_SOURCE, which is predefined and required
31939 # on some systems where configure will not decide to define it.
31940 if (defundef
== "undef") {
31941 print
"/*", prefix defundef
, macro
, "*/"
31949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31950 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31951 fi # test -n "$CONFIG_HEADERS"
31954 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31959 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31961 case $ac_mode$ac_tag in
31963 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31964 :[FH
]-) ac_tag
=-:-;;
31965 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31982 -) ac_f
="$ac_tmp/stdin";;
31983 *) # Look for the file first in the build tree, then in the source tree
31984 # (if the path is not absolute). The absolute path cannot be DOS-style,
31985 # because $ac_f cannot contain `:'.
31989 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31991 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31993 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31994 as_fn_append ac_file_inputs
" '$ac_f'"
31997 # Let's still pretend it is `configure' which instantiates (i.e., don't
31998 # use $as_me), people would be surprised to read:
31999 # /* config.h. Generated by config.status. */
32000 configure_input
='Generated from '`
32001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32003 if test x
"$ac_file" != x-
; then
32004 configure_input
="$ac_file. $configure_input"
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32006 $as_echo "$as_me: creating $ac_file" >&6;}
32008 # Neutralize special characters interpreted by sed in replacement strings.
32009 case $configure_input in #(
32010 *\
&* |
*\|
* |
*\\* )
32011 ac_sed_conf_input
=`$as_echo "$configure_input" |
32012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32013 *) ac_sed_conf_input
=$configure_input;;
32017 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32018 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32023 ac_dir
=`$as_dirname -- "$ac_file" ||
32024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32025 X"$ac_file" : 'X\(//\)[^/]' \| \
32026 X"$ac_file" : 'X\(//\)$' \| \
32027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32028 $as_echo X"$ac_file" |
32029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32033 /^X\(\/\/\)[^/].*/{
32046 as_dir
="$ac_dir"; as_fn_mkdir_p
32050 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32052 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32053 # A ".." for each directory in $ac_dir_suffix.
32054 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32055 case $ac_top_builddir_sub in
32056 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32057 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32060 ac_abs_top_builddir
=$ac_pwd
32061 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32062 # for backward compatibility:
32063 ac_top_builddir
=$ac_top_build_prefix
32066 .
) # We are building in place.
32068 ac_top_srcdir
=$ac_top_builddir_sub
32069 ac_abs_top_srcdir
=$ac_pwd ;;
32070 [\\/]* | ?
:[\\/]* ) # Absolute name.
32071 ac_srcdir
=$srcdir$ac_dir_suffix;
32072 ac_top_srcdir
=$srcdir
32073 ac_abs_top_srcdir
=$srcdir ;;
32074 *) # Relative name.
32075 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32076 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32077 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32079 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32089 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32090 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32092 ac_MKDIR_P
=$MKDIR_P
32094 [\\/$
]* | ?
:[\\/]* ) ;;
32095 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32100 # If the template does not know about datarootdir, expand it.
32101 # FIXME: This hack should be removed a few years after 2.60.
32102 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32114 *datarootdir
*) ac_datarootdir_seen
=yes;;
32115 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32120 ac_datarootdir_hack='
32121 s&@datadir@&$datadir&g
32122 s&@docdir@&$docdir&g
32123 s&@infodir@&$infodir&g
32124 s&@localedir@&$localedir&g
32125 s&@mandir@&$mandir&g
32126 s&\\\${datarootdir}&$datarootdir&g' ;;
32130 # Neutralize VPATH when `$srcdir' = `.'.
32131 # Shell code in configure.ac might set extrasub.
32132 # FIXME: do we really want to maintain this feature?
32133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32134 ac_sed_extra="$ac_vpsub
32137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32139 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32140 s|@configure_input@|
$ac_sed_conf_input|
;t t
32141 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32142 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32143 s
&@srcdir@
&$ac_srcdir&;t t
32144 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32145 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32146 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32147 s
&@builddir@
&$ac_builddir&;t t
32148 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32149 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32150 s
&@INSTALL@
&$ac_INSTALL&;t t
32151 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32152 $ac_datarootdir_hack
32154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
32155 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32160 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32162 which seems to be undefined. Please make sure it is defined" >&5
32163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32164 which seems to be undefined. Please make sure it is defined" >&2;}
32166 rm -f "$ac_tmp/stdin"
32168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32177 if test x"$ac_file" != x-; then
32179 $as_echo "/* $configure_input */" \
32180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32181 } >"$ac_tmp/config.h" \
32182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32188 mv "$ac_tmp/config.h" "$ac_file" \
32189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32192 $as_echo "/* $configure_input */" \
32193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32194 || as_fn_error $? "could not create -" "$LINENO" 5
32196 # Compute "$ac_file"'s index
in $config_headers.
32199 for _am_header
in $config_headers :; do
32200 case $_am_header in
32201 $_am_arg |
$_am_arg:* )
32204 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
32207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32209 X"$_am_arg" : 'X\(//\)[^/]' \| \
32210 X"$_am_arg" : 'X\(//\)$' \| \
32211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32212 $as_echo X"$_am_arg" |
32213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32217 /^X\(\/\/\)[^/].*/{
32229 s/.*/./; q'`/stamp-h
$_am_stamp_count
32232 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32233 $as_echo "$as_me: executing $ac_file commands" >&6;}
32238 case $ac_file$ac_mode in
32239 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
32240 # Older Autoconf quotes --file arguments for eval, but not when files
32241 # are listed without --file. Let's play safe and only enable the eval
32242 # if we detect the quoting.
32243 case $CONFIG_FILES in
32244 *\'*) eval set x
"$CONFIG_FILES" ;;
32245 *) set x
$CONFIG_FILES ;;
32250 # Strip MF so we end up with the name of the file.
32251 mf
=`echo "$mf" | sed -e 's/:.*$//'`
32252 # Check whether this is an Automake generated Makefile or not.
32253 # We used to match only the files named 'Makefile.in', but
32254 # some people rename them; so instead we look at the file content.
32255 # Grep'ing the first line is not enough: some people post-process
32256 # each Makefile.in and add a new line on top of each file to say so.
32257 # Grep'ing the whole file is not good either: AIX grep has a line
32258 # limit of 2048, but all sed's we know have understand at least 4000.
32259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
32260 dirpart
=`$as_dirname -- "$mf" ||
32261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32262 X"$mf" : 'X\(//\)[^/]' \| \
32263 X"$mf" : 'X\(//\)$' \| \
32264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32270 /^X\(\/\/\)[^/].*/{
32286 # Extract the definition of DEPDIR, am__include, and am__quote
32287 # from the Makefile without running 'make'.
32288 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
32289 test -z "$DEPDIR" && continue
32290 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
32291 test -z "$am__include" && continue
32292 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
32293 # Find all dependency output files, they are included files with
32294 # $(DEPDIR) in their names. We invoke sed twice because it is the
32295 # simplest approach to changing $(DEPDIR) to its actual value in the
32297 for file in `sed -n "
32298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32300 # Make sure the directory exists.
32301 test -f "$dirpart/$file" && continue
32302 fdir
=`$as_dirname -- "$file" ||
32303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32304 X"$file" : 'X\(//\)[^/]' \| \
32305 X"$file" : 'X\(//\)$' \| \
32306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32307 $as_echo X"$file" |
32308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32312 /^X\(\/\/\)[^/].*/{
32325 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
32326 # echo "creating $dirpart/$file"
32327 echo '# dummy' > "$dirpart/$file"
32333 case x
$CONFIG_HEADERS in
32334 xconfig.h
:config.
in)
32345 ac_clean_files
=$ac_clean_files_save
32347 test $ac_write_fail = 0 ||
32348 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
32351 # configure is writing to config.log, and then calls config.status.
32352 # config.status does its own redirection, appending to config.log.
32353 # Unfortunately, on DOS this fails, as config.log is still kept open
32354 # by configure, so config.status won't be able to write to it; its
32355 # output is simply discarded. So we exec the FD to /dev/null,
32356 # effectively closing config.log, so it can be properly (re)opened and
32357 # appended to by config.status. When coming back to configure, we
32358 # need to make the FD available again.
32359 if test "$no_create" != yes; then
32361 ac_config_status_args
=
32362 test "$silent" = yes &&
32363 ac_config_status_args
="$ac_config_status_args --quiet"
32365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32368 # would make configure fail if this is the last instruction.
32369 $ac_cs_success || as_fn_exit
1
32371 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32373 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}