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"
587 # Factoring default headers for most tests.
588 ac_includes_default
="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 gl_use_threads_default
=
624 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 TIME_H_DEFINES_TIME_UTC
702 UNISTD_H_DEFINES_STRUCT_TIMESPEC
703 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
704 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
705 TIME_H_DEFINES_STRUCT_TIMESPEC
706 NEXT_AS_FIRST_DIRECTIVE_TIME_H
722 HAVE_DECL_LOCALTIME_R
736 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
740 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
743 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
745 NEXT_AS_FIRST_DIRECTIVE_STRING_H
747 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
749 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
752 GL_GENERATE_STDBOOL_H_FALSE
753 GL_GENERATE_STDBOOL_H_TRUE
755 GL_GENERATE_STDALIGN_H_FALSE
756 GL_GENERATE_STDALIGN_H_TRUE
758 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
761 REPLACE_PTHREAD_SIGMASK
763 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
764 HAVE_STRUCT_SIGACTION_SA_SIGACTION
770 HAVE_POSIX_SIGNALBLOCKING
773 GNULIB_SIGNAL_H_SIGPIPE
775 GNULIB_PTHREAD_SIGMASK
783 REPLACE_STDIO_WRITE_FUNCS
784 REPLACE_STDIO_READ_FUNCS
793 REPLACE_OBSTACK_PRINTF
818 HAVE_DECL_OBSTACK_PRINTF
831 GNULIB_VSPRINTF_POSIX
835 GNULIB_VFPRINTF_POSIX
842 GNULIB_STDIO_H_SIGPIPE
843 GNULIB_STDIO_H_NONBLOCKING
858 GNULIB_OBSTACK_PRINTF_POSIX
859 GNULIB_OBSTACK_PRINTF
884 GL_GENERATE_NETINET_IN_H_FALSE
885 GL_GENERATE_NETINET_IN_H_TRUE
888 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
892 REPLACE_STRERRORNAME_NP
937 GNULIB_STRERRORNAME_NP
973 GNULIB_EXPLICIT_BZERO
980 NEXT_AS_FIRST_DIRECTIVE_MATH_H
987 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
990 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
992 GL_GENERATE_STDDEF_H_FALSE
993 GL_GENERATE_STDDEF_H_TRUE
1009 GNULIB_SETLOCALE_NULL
1012 LOCALCHARSET_TESTS_ENVIRONMENT
1013 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1015 UINT64_MAX_EQ_ULONG_MAX
1016 UINT32_MAX_LT_UINTMAX_MAX
1018 INT64_MAX_EQ_LONG_MAX
1019 INT32_MAX_LT_INTMAX_MAX
1031 GL_GENERATE_STDINT_H_FALSE
1032 GL_GENERATE_STDINT_H_TRUE
1044 HAVE_SIGNED_SIG_ATOMIC_T
1047 BITSIZEOF_SIG_ATOMIC_T
1050 APPLE_UNIVERSAL_BUILD
1052 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1057 GNULIB_OVERRIDES_WINT_T
1058 GL_GENERATE_LIMITS_H_FALSE
1059 GL_GENERATE_LIMITS_H_TRUE
1061 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1064 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1068 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1069 HAVE_STRUCT_SOCKADDR_STORAGE
1091 GL_GENERATE_GLOB_H_FALSE
1092 GL_GENERATE_GLOB_H_TRUE
1095 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1097 REPLACE_GLOB_PATTERN_P
1102 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1104 REPLACE_STRUCT_TIMEVAL
1105 REPLACE_GETTIMEOFDAY
1117 WINDOWS_64_BIT_ST_SIZE
1118 WINDOWS_STAT_TIMESPEC
1119 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1148 GNULIB_OVERRIDES_STRUCT_STAT
1165 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1176 REPLACE_SIGNBIT_USING_BUILTINS
1256 HAVE_DECL_REMAINDERL
1443 GL_GENERATE_FNMATCH_H_FALSE
1444 GL_GENERATE_FNMATCH_H_TRUE
1447 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1453 GL_GENERATE_FLOAT_H_FALSE
1454 GL_GENERATE_FLOAT_H_TRUE
1456 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1458 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1479 GL_GENERATE_ERRNO_H_FALSE
1480 GL_GENERATE_ERRNO_H_TRUE
1482 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1485 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1487 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1513 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1515 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1516 UNISTD_H_HAVE_WINSOCK2_H
1517 UNISTD_H_HAVE_SYS_RANDOM_H
1542 REPLACE_GETDTABLESIZE
1543 REPLACE_GETDOMAINNAME
1564 HAVE_DECL_SETHOSTNAME
1565 HAVE_DECL_GETUSERSHELL
1566 HAVE_DECL_GETPAGESIZE
1567 HAVE_DECL_GETLOGIN_R
1569 HAVE_DECL_GETDOMAINNAME
1606 HAVE_COPY_FILE_RANGE
1633 GNULIB_UNISTD_H_SIGPIPE
1634 GNULIB_UNISTD_H_NONBLOCKING
1664 GNULIB_GETDTABLESIZE
1665 GNULIB_GETDOMAINNAME
1685 GNULIB_COPY_FILE_RANGE
1704 REPLACE_POSIX_MEMALIGN
1710 REPLACE_CANONICALIZE_FILE_NAME
1712 REPLACE_ALIGNED_ALLOC
1716 HAVE_STRUCT_RANDOM_DATA
1747 HAVE_DECL_GETLOADAVG
1751 HAVE_CANONICALIZE_FILE_NAME
1769 GNULIB_SECURE_GETENV
1772 GNULIB_REALLOC_POSIX
1781 GNULIB_POSIX_MEMALIGN
1793 GNULIB_CANONICALIZE_FILE_NAME
1796 GNULIB_ALIGNED_ALLOC
1901 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1904 PRAGMA_SYSTEM_HEADER
1905 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1915 GL_GENERATE_ALLOCA_H_FALSE
1916 GL_GENERATE_ALLOCA_H_TRUE
1919 GL_COND_LIBTOOL_FALSE
1920 GL_COND_LIBTOOL_TRUE
1948 MAINTAINER_MODE_FALSE
1949 MAINTAINER_MODE_TRUE
1977 program_transform_name
1990 enable_option_checking
1991 enable_maintainer_mode
1995 enable_cross_guesses
1996 enable_dependency_tracking
1999 ac_precious_vars
='build_alias
2010 # Initialize some variables set by options.
2012 ac_init_version
=false
2013 ac_unrecognized_opts
=
2014 ac_unrecognized_sep
=
2015 # The variables have the same names as the options, with
2016 # dashes changed to underlines.
2017 cache_file
=/dev
/null
2024 program_transform_name
=s
,x
,x
,
2032 # Installation directory options.
2033 # These are left unexpanded so users can "make install exec_prefix=/foo"
2034 # and all the variables that are supposed to be based on exec_prefix
2035 # by default will actually change.
2036 # Use braces instead of parens because sh, perl, etc. also accept them.
2037 # (The list follows the same order as the GNU Coding Standards.)
2038 bindir
='${exec_prefix}/bin'
2039 sbindir
='${exec_prefix}/sbin'
2040 libexecdir
='${exec_prefix}/libexec'
2041 datarootdir
='${prefix}/share'
2042 datadir
='${datarootdir}'
2043 sysconfdir
='${prefix}/etc'
2044 sharedstatedir
='${prefix}/com'
2045 localstatedir
='${prefix}/var'
2046 includedir
='${prefix}/include'
2047 oldincludedir
='/usr/include'
2048 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
2049 infodir
='${datarootdir}/info'
2054 libdir
='${exec_prefix}/lib'
2055 localedir
='${datarootdir}/locale'
2056 mandir
='${datarootdir}/man'
2062 # If the previous option needs an argument, assign it.
2063 if test -n "$ac_prev"; then
2064 eval $ac_prev=\
$ac_option
2070 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2075 # Accept the important Cygnus configure options, so we can diagnose typos.
2077 case $ac_dashdash$ac_option in
2081 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
2083 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
2084 bindir
=$ac_optarg ;;
2086 -build |
--build |
--buil |
--bui |
--bu)
2087 ac_prev
=build_alias
;;
2088 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
2089 build_alias
=$ac_optarg ;;
2091 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
2092 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
2093 ac_prev
=cache_file
;;
2094 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
2095 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
2096 cache_file
=$ac_optarg ;;
2098 --config-cache |
-C)
2099 cache_file
=config.cache
;;
2101 -datadir |
--datadir |
--datadi |
--datad)
2103 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
2104 datadir
=$ac_optarg ;;
2106 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2107 |
--dataroo |
--dataro |
--datar)
2108 ac_prev
=datarootdir
;;
2109 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2110 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2111 datarootdir
=$ac_optarg ;;
2113 -disable-* |
--disable-*)
2114 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2115 # Reject names that are not valid shell variable names.
2116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2117 as_fn_error $?
"invalid feature name: $ac_useropt"
2118 ac_useropt_orig
=$ac_useropt
2119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2120 case $ac_user_opts in
2122 "enable_
$ac_useropt"
2124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2125 ac_unrecognized_sep
=', ';;
2127 eval enable_
$ac_useropt=no
;;
2129 -docdir |
--docdir |
--docdi |
--doc |
--do)
2131 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2132 docdir
=$ac_optarg ;;
2134 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2136 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2137 dvidir
=$ac_optarg ;;
2139 -enable-* |
--enable-*)
2140 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2141 # Reject names that are not valid shell variable names.
2142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2143 as_fn_error $?
"invalid feature name: $ac_useropt"
2144 ac_useropt_orig
=$ac_useropt
2145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2146 case $ac_user_opts in
2148 "enable_
$ac_useropt"
2150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2151 ac_unrecognized_sep
=', ';;
2153 eval enable_
$ac_useropt=\
$ac_optarg ;;
2155 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2156 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2157 |
--exec |
--exe |
--ex)
2158 ac_prev
=exec_prefix
;;
2159 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2160 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2161 |
--exec=* |
--exe=* |
--ex=*)
2162 exec_prefix
=$ac_optarg ;;
2164 -gas |
--gas |
--ga |
--g)
2165 # Obsolete; use --with-gas.
2168 -help |
--help |
--hel |
--he |
-h)
2169 ac_init_help
=long
;;
2170 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2171 ac_init_help
=recursive
;;
2172 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2173 ac_init_help
=short
;;
2175 -host |
--host |
--hos |
--ho)
2176 ac_prev
=host_alias
;;
2177 -host=* |
--host=* |
--hos=* |
--ho=*)
2178 host_alias
=$ac_optarg ;;
2180 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2182 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2184 htmldir
=$ac_optarg ;;
2186 -includedir |
--includedir |
--includedi |
--included |
--include \
2187 |
--includ |
--inclu |
--incl |
--inc)
2188 ac_prev
=includedir
;;
2189 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2190 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2191 includedir
=$ac_optarg ;;
2193 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2195 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2196 infodir
=$ac_optarg ;;
2198 -libdir |
--libdir |
--libdi |
--libd)
2200 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2201 libdir
=$ac_optarg ;;
2203 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2204 |
--libexe |
--libex |
--libe)
2205 ac_prev
=libexecdir
;;
2206 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2207 |
--libexe=* |
--libex=* |
--libe=*)
2208 libexecdir
=$ac_optarg ;;
2210 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2211 ac_prev
=localedir
;;
2212 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2213 localedir
=$ac_optarg ;;
2215 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2216 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2217 ac_prev
=localstatedir
;;
2218 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2219 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2220 localstatedir
=$ac_optarg ;;
2222 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2224 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2225 mandir
=$ac_optarg ;;
2227 -nfp |
--nfp |
--nf)
2228 # Obsolete; use --without-fp.
2231 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2232 |
--no-cr |
--no-c |
-n)
2235 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2236 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2239 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2240 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2241 |
--oldin |
--oldi |
--old |
--ol |
--o)
2242 ac_prev
=oldincludedir
;;
2243 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2244 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2245 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2246 oldincludedir
=$ac_optarg ;;
2248 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2250 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2251 prefix
=$ac_optarg ;;
2253 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2254 |
--program-pre |
--program-pr |
--program-p)
2255 ac_prev
=program_prefix
;;
2256 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2257 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2258 program_prefix
=$ac_optarg ;;
2260 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2261 |
--program-suf |
--program-su |
--program-s)
2262 ac_prev
=program_suffix
;;
2263 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2264 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2265 program_suffix
=$ac_optarg ;;
2267 -program-transform-name |
--program-transform-name \
2268 |
--program-transform-nam |
--program-transform-na \
2269 |
--program-transform-n |
--program-transform- \
2270 |
--program-transform |
--program-transfor \
2271 |
--program-transfo |
--program-transf \
2272 |
--program-trans |
--program-tran \
2273 |
--progr-tra |
--program-tr |
--program-t)
2274 ac_prev
=program_transform_name
;;
2275 -program-transform-name=* |
--program-transform-name=* \
2276 |
--program-transform-nam=* |
--program-transform-na=* \
2277 |
--program-transform-n=* |
--program-transform-=* \
2278 |
--program-transform=* |
--program-transfor=* \
2279 |
--program-transfo=* |
--program-transf=* \
2280 |
--program-trans=* |
--program-tran=* \
2281 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2282 program_transform_name
=$ac_optarg ;;
2284 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2286 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2287 pdfdir
=$ac_optarg ;;
2289 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2291 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2295 |
-silent |
--silent |
--silen |
--sile |
--sil)
2298 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2300 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2302 sbindir
=$ac_optarg ;;
2304 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2305 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2306 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2308 ac_prev
=sharedstatedir
;;
2309 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2310 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2311 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2313 sharedstatedir
=$ac_optarg ;;
2315 -site |
--site |
--sit)
2317 -site=* |
--site=* |
--sit=*)
2320 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2322 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2323 srcdir
=$ac_optarg ;;
2325 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2326 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2327 ac_prev
=sysconfdir
;;
2328 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2329 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2330 sysconfdir
=$ac_optarg ;;
2332 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2333 ac_prev
=target_alias
;;
2334 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2335 target_alias
=$ac_optarg ;;
2337 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2340 -version |
--version |
--versio |
--versi |
--vers |
-V)
2341 ac_init_version
=: ;;
2344 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2345 # Reject names that are not valid shell variable names.
2346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2347 as_fn_error $?
"invalid package name: $ac_useropt"
2348 ac_useropt_orig
=$ac_useropt
2349 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2350 case $ac_user_opts in
2354 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2355 ac_unrecognized_sep
=', ';;
2357 eval with_
$ac_useropt=\
$ac_optarg ;;
2359 -without-* |
--without-*)
2360 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2361 # Reject names that are not valid shell variable names.
2362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2363 as_fn_error $?
"invalid package name: $ac_useropt"
2364 ac_useropt_orig
=$ac_useropt
2365 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2366 case $ac_user_opts in
2370 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2371 ac_unrecognized_sep
=', ';;
2373 eval with_
$ac_useropt=no
;;
2376 # Obsolete; use --with-x.
2379 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2380 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2381 ac_prev
=x_includes
;;
2382 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2383 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2384 x_includes
=$ac_optarg ;;
2386 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2387 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2388 ac_prev
=x_libraries
;;
2389 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2390 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2391 x_libraries
=$ac_optarg ;;
2393 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2394 Try \`$0 --help' for more information"
2398 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2399 # Reject names that are not valid shell variable names.
2400 case $ac_envvar in #(
2401 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2402 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2404 eval $ac_envvar=\
$ac_optarg
2405 export $ac_envvar ;;
2408 # FIXME: should be removed in autoconf 3.0.
2409 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2411 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2412 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2418 if test -n "$ac_prev"; then
2419 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2420 as_fn_error $?
"missing argument to $ac_option"
2423 if test -n "$ac_unrecognized_opts"; then
2424 case $enable_option_checking in
2426 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2431 # Check all directory arguments for consistency.
2432 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2433 datadir sysconfdir sharedstatedir localstatedir includedir \
2434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2435 libdir localedir mandir
2437 eval ac_val
=\$
$ac_var
2438 # Remove trailing slashes.
2441 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2442 eval $ac_var=\
$ac_val;;
2444 # Be sure to have absolute directory names.
2446 [\\/$
]* | ?
:[\\/]* ) continue;;
2447 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2449 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2452 # There might be people who depend on the old broken behavior: `$host'
2453 # used to hold the argument of --host etc.
2454 # FIXME: To remove some day.
2457 target
=$target_alias
2459 # FIXME: To remove some day.
2460 if test "x$host_alias" != x
; then
2461 if test "x$build_alias" = x
; then
2462 cross_compiling
=maybe
2463 elif test "x$build_alias" != "x$host_alias"; then
2469 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2471 test "$silent" = yes && exec 6>/dev
/null
2474 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2475 ac_ls_di
=`ls -di .` &&
2476 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2477 as_fn_error $?
"working directory cannot be determined"
2478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2479 as_fn_error $?
"pwd does not report name of working directory"
2482 # Find the source files, if location was not specified.
2483 if test -z "$srcdir"; then
2484 ac_srcdir_defaulted
=yes
2485 # Try the directory containing this script, then the parent directory.
2486 ac_confdir
=`$as_dirname -- "$as_myself" ||
2487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2488 X"$as_myself" : 'X\(//\)[^/]' \| \
2489 X"$as_myself" : 'X\(//\)$' \| \
2490 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2491 $as_echo X"$as_myself" |
2492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2510 if test ! -r "$srcdir/$ac_unique_file"; then
2514 ac_srcdir_defaulted
=no
2516 if test ! -r "$srcdir/$ac_unique_file"; then
2517 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2518 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2520 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2522 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2524 # When building in place, set srcdir=.
2525 if test "$ac_abs_confdir" = "$ac_pwd"; then
2528 # Remove unnecessary trailing slashes from srcdir.
2529 # Double slashes in file names in object file debugging info
2530 # mess up M-x gdb in Emacs.
2532 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2534 for ac_var
in $ac_precious_vars; do
2535 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2536 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2537 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2538 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2542 # Report the --help message.
2544 if test "$ac_init_help" = "long"; then
2545 # Omit some internal or obsolete options to make the list less imposing.
2546 # This message is too long to be a string in the A/UX 3.1 sh.
2548 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2550 Usage: $0 [OPTION]... [VAR=VALUE]...
2552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2553 VAR=VALUE. See below for descriptions of some of the useful variables.
2555 Defaults for the options are specified in brackets.
2558 -h, --help display this help and exit
2559 --help=short display options specific to this package
2560 --help=recursive display the short help of all the included packages
2561 -V, --version display version information and exit
2562 -q, --quiet, --silent do not print \`checking ...' messages
2563 --cache-file=FILE cache test results in FILE [disabled]
2564 -C, --config-cache alias for \`--cache-file=config.cache'
2565 -n, --no-create do not create output files
2566 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2568 Installation directories:
2569 --prefix=PREFIX install architecture-independent files in PREFIX
2570 [$ac_default_prefix]
2571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2574 By default, \`make install' will install all the files in
2575 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2576 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2577 for instance \`--prefix=\$HOME'.
2579 For better control, use the options below.
2581 Fine tuning of the installation directories:
2582 --bindir=DIR user executables [EPREFIX/bin]
2583 --sbindir=DIR system admin executables [EPREFIX/sbin]
2584 --libexecdir=DIR program executables [EPREFIX/libexec]
2585 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2586 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2587 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2588 --libdir=DIR object code libraries [EPREFIX/lib]
2589 --includedir=DIR C header files [PREFIX/include]
2590 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2591 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2592 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2593 --infodir=DIR info documentation [DATAROOTDIR/info]
2594 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2595 --mandir=DIR man documentation [DATAROOTDIR/man]
2596 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2597 --htmldir=DIR html documentation [DOCDIR]
2598 --dvidir=DIR dvi documentation [DOCDIR]
2599 --pdfdir=DIR pdf documentation [DOCDIR]
2600 --psdir=DIR ps documentation [DOCDIR]
2606 --program-prefix=PREFIX prepend PREFIX to installed program names
2607 --program-suffix=SUFFIX append SUFFIX to installed program names
2608 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2611 --build=BUILD configure
for building on BUILD
[guessed
]
2612 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2613 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2617 if test -n "$ac_init_help"; then
2618 case $ac_init_help in
2619 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2624 --disable-option-checking ignore unrecognized
--enable/--with options
2625 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2626 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2627 --enable-maintainer-mode
2628 enable make rules and dependencies not useful
(and
2629 sometimes confusing
) to the casual installer
2630 --enable-plugins Enable support
for plugins
2631 --disable-largefile omit support
for large files
2632 --enable-threads={isoc|posix|isoc
+posix|windows
}
2633 specify multithreading API
2634 --disable-threads build without multithread safety
2635 --enable-cross-guesses={conservative|risky
}
2636 specify policy
for cross-compilation guesses
2637 --enable-dependency-tracking
2638 do not reject slow dependency extractors
2639 --disable-dependency-tracking
2640 speeds up one-time build
2641 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2642 --disable-silent-rules verbose build output
(undo
: "make V=0")
2644 Some influential environment variables
:
2645 CC C compiler
command
2646 CFLAGS C compiler flags
2647 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2648 nonstandard directory
<lib dir
>
2649 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2650 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2651 you have headers
in a nonstandard directory
<include dir
>
2654 Use these variables to override the choices made by
`configure' or to help
2655 it to find libraries and programs with nonstandard names/locations.
2657 Report bugs to the package provider.
2662 if test "$ac_init_help" = "recursive"; then
2663 # If there are subdirs, report their specific --help.
2664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2665 test -d "$ac_dir" ||
2666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2673 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2674 # A ".." for each directory in $ac_dir_suffix.
2675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2676 case $ac_top_builddir_sub in
2677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2681 ac_abs_top_builddir=$ac_pwd
2682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2683 # for backward compatibility:
2684 ac_top_builddir=$ac_top_build_prefix
2687 .) # We are building in place.
2689 ac_top_srcdir=$ac_top_builddir_sub
2690 ac_abs_top_srcdir=$ac_pwd ;;
2691 [\\/]* | ?:[\\/]* ) # Absolute name.
2692 ac_srcdir=$srcdir$ac_dir_suffix;
2693 ac_top_srcdir=$srcdir
2694 ac_abs_top_srcdir=$srcdir ;;
2696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2697 ac_top_srcdir=$ac_top_build_prefix$srcdir
2698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2702 cd "$ac_dir" || { ac_status=$?; continue; }
2703 # Check for guested configure.
2704 if test -f "$ac_srcdir/configure.gnu"; then
2706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2707 elif test -f "$ac_srcdir/configure"; then
2709 $SHELL "$ac_srcdir/configure" --help=recursive
2711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2713 cd "$ac_pwd" || { ac_status=$?; break; }
2717 test -n "$ac_init_help" && exit $ac_status
2718 if $ac_init_version; then
2720 libgnu configure UNUSED-VERSION
2721 generated by GNU Autoconf 2.69
2723 Copyright (C) 2012 Free Software Foundation, Inc.
2724 This configure script is free software; the Free Software Foundation
2725 gives unlimited permission to copy, distribute and modify it.
2730 ## ------------------------ ##
2731 ## Autoconf initialization. ##
2732 ## ------------------------ ##
2734 # ac_fn_c_try_compile LINENO
2735 # --------------------------
2736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2737 ac_fn_c_try_compile ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 rm -f conftest.$ac_objext
2741 if { { ac_try="$ac_compile"
2743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2744 *) ac_try_echo
=$ac_try;;
2746 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_compile") 2>conftest.err
2750 if test -s conftest.err
; then
2751 grep -v '^ *+' conftest.err
>conftest.er1
2752 cat conftest.er1
>&5
2753 mv -f conftest.er1 conftest.err
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; } && {
2757 test -z "$ac_c_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest.
$ac_objext; then :
2762 $as_echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.
$ac_ext >&5
2767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 as_fn_set_status
$ac_retval
2770 } # ac_fn_c_try_compile
2772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2773 # -------------------------------------------------------
2774 # Tests whether HEADER exists and can be compiled using the include files in
2775 # INCLUDES, setting the cache variable VAR accordingly.
2776 ac_fn_c_check_header_compile
()
2778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780 $as_echo_n "checking for $2... " >&6; }
2781 if eval \
${$3+:} false
; then :
2782 $as_echo_n "(cached) " >&6
2784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h. */
2789 if ac_fn_c_try_compile
"$LINENO"; then :
2794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2798 $as_echo "$ac_res" >&6; }
2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2801 } # ac_fn_c_check_header_compile
2803 # ac_fn_c_try_cpp LINENO
2804 # ----------------------
2805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2809 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2818 if test -s conftest.err; then
2819 grep -v '^ *+' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 mv -f conftest.er1 conftest.err
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; } > conftest.i && {
2825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836 as_fn_set_status $ac_retval
2840 # ac_fn_c_try_run LINENO
2841 # ----------------------
2842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2843 # that executables *can* be run.
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 if { { ac_try="$ac_link"
2849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2850 *) ac_try_echo
=$ac_try;;
2852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>&5
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2858 { { case "(($ac_try" in
2859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863 $as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_try") 2>&5
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }; }; then :
2870 $as_echo "$as_me: program exited with status $ac_status" >&5
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 ac_retval=$ac_status
2876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2878 as_fn_set_status $ac_retval
2882 # ac_fn_c_try_link LINENO
2883 # -----------------------
2884 # Try to link conftest.$ac_ext, and return whether this succeeded.
2887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2888 rm -f conftest.$ac_objext conftest$ac_exeext
2889 if { { ac_try="$ac_link"
2891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2892 *) ac_try_echo
=$ac_try;;
2894 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895 $as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_link") 2>conftest.err
2898 if test -s conftest.err
; then
2899 grep -v '^ *+' conftest.err
>conftest.er1
2900 cat conftest.er1
>&5
2901 mv -f conftest.er1 conftest.err
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest
$ac_exeext && {
2908 test "$cross_compiling" = yes ||
2909 test -x conftest
$ac_exeext
2913 $as_echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.
$ac_ext >&5
2918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2920 # interfere with the next link command; also delete a directory that is
2921 # left behind by Apple's compiler. We do this before executing the actions.
2922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2924 as_fn_set_status
$ac_retval
2926 } # ac_fn_c_try_link
2928 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2929 # -------------------------------------------
2930 # Tests whether TYPE exists after having included INCLUDES, setting cache
2931 # variable VAR accordingly.
2932 ac_fn_c_check_type
()
2934 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936 $as_echo_n "checking for $2... " >&6; }
2937 if eval \
${$3+:} false
; then :
2938 $as_echo_n "(cached) " >&6
2941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2953 if ac_fn_c_try_compile
"$LINENO"; then :
2954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2966 if ac_fn_c_try_compile
"$LINENO"; then :
2971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_type
2982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2983 # -------------------------------------------------------
2984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2985 # the include files in INCLUDES and setting the cache variable VAR
2987 ac_fn_c_check_header_mongrel
()
2989 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2990 if eval \
${$3+:} false
; then :
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2992 $as_echo_n "checking for $2... " >&6; }
2993 if eval \
${$3+:} false
; then :
2994 $as_echo_n "(cached) " >&6
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2998 $as_echo "$ac_res" >&6; }
3000 # Is the header compilable?
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3002 $as_echo_n "checking $2 usability... " >&6; }
3003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3008 if ac_fn_c_try_compile
"$LINENO"; then :
3009 ac_header_compiler
=yes
3011 ac_header_compiler
=no
3013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3015 $as_echo "$ac_header_compiler" >&6; }
3017 # Is the header present?
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3019 $as_echo_n "checking $2 presence... " >&6; }
3020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3024 if ac_fn_c_try_cpp
"$LINENO"; then :
3025 ac_header_preproc
=yes
3027 ac_header_preproc
=no
3029 rm -f conftest.err conftest.i conftest.
$ac_ext
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3031 $as_echo "$ac_header_preproc" >&6; }
3033 # So? What about this header?
3034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3055 $as_echo_n "checking for $2... " >&6; }
3056 if eval \
${$3+:} false
; then :
3057 $as_echo_n "(cached) " >&6
3059 eval "$3=\$ac_header_compiler"
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3063 $as_echo "$ac_res" >&6; }
3065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3067 } # ac_fn_c_check_header_mongrel
3069 # ac_fn_c_check_func LINENO FUNC VAR
3070 # ----------------------------------
3071 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3072 ac_fn_c_check_func
()
3074 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3076 $as_echo_n "checking for $2... " >&6; }
3077 if eval \
${$3+:} false
; then :
3078 $as_echo_n "(cached) " >&6
3080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3082 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3084 #define $2 innocuous_$2
3086 /* System header to define __stub macros and hopefully few prototypes,
3087 which can conflict with char $2 (); below.
3088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3089 <limits.h> exists even on freestanding compilers. */
3092 # include <limits.h>
3094 # include <assert.h>
3099 /* Override any GCC internal prototype to avoid an error.
3100 Use char because int might match the return type of a GCC
3101 builtin and then its argument prototype would still apply. */
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined __stub_$2 || defined __stub___$2
3121 if ac_fn_c_try_link
"$LINENO"; then :
3126 rm -f core conftest.err conftest.
$ac_objext \
3127 conftest
$ac_exeext conftest.
$ac_ext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3131 $as_echo "$ac_res" >&6; }
3132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3134 } # ac_fn_c_check_func
3136 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3137 # ---------------------------------------------
3138 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3140 ac_fn_c_check_decl
()
3142 ac_save_ac_compile
="$ac_compile"
3143 if test -n "$ac_compile_for_check_decl"; then
3144 ac_compile
="$ac_compile_for_check_decl"
3146 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3147 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3148 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3150 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3151 if eval \
${$3+:} false
; then :
3152 $as_echo_n "(cached) " >&6
3154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3160 #ifndef $as_decl_name
3162 (void) $as_decl_use;
3164 (void) $as_decl_name;
3172 if ac_fn_c_try_compile
"$LINENO"; then :
3177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3181 $as_echo "$ac_res" >&6; }
3182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3183 ac_compile
="$ac_save_ac_compile"
3185 } # ac_fn_c_check_decl
3187 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3188 # --------------------------------------------
3189 # Tries to find the compile-time value of EXPR in a program that includes
3190 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3192 ac_fn_c_compute_int
()
3194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3195 if test "$cross_compiling" = yes; then
3196 # Depending upon the size, compute the lo and hi bounds.
3197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3203 static int test_array [1 - 2 * !(($2) >= 0)];
3205 return test_array [0];
3211 if ac_fn_c_try_compile
"$LINENO"; then :
3214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3222 return test_array [0];
3228 if ac_fn_c_try_compile
"$LINENO"; then :
3229 ac_hi
=$ac_mid; break
3231 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3232 if test $ac_lo -le $ac_mid; then
3236 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3247 static int test_array [1 - 2 * !(($2) < 0)];
3249 return test_array [0];
3255 if ac_fn_c_try_compile
"$LINENO"; then :
3258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3264 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3266 return test_array [0];
3272 if ac_fn_c_try_compile
"$LINENO"; then :
3273 ac_lo
=$ac_mid; break
3275 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3276 if test $ac_mid -le $ac_hi; then
3280 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3290 # Binary search between lo and hi bounds.
3291 while test "x$ac_lo" != "x$ac_hi"; do
3292 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3299 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3301 return test_array [0];
3307 if ac_fn_c_try_compile
"$LINENO"; then :
3310 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3315 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3322 static long int longval () { return $2; }
3323 static unsigned long int ulongval () { return $2; }
3330 FILE *f = fopen ("conftest.val", "w");
3335 long int i = longval ();
3338 fprintf (f, "%ld", i);
3342 unsigned long int i = ulongval ();
3345 fprintf (f, "%lu", i);
3347 /* Do not output a trailing newline, as this causes \r\n confusion
3348 on some platforms. */
3349 return ferror (f) || fclose (f) != 0;
3355 if ac_fn_c_try_run
"$LINENO"; then :
3356 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3361 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3366 as_fn_set_status
$ac_retval
3368 } # ac_fn_c_compute_int
3370 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3371 # ----------------------------------------------------
3372 # Tries to find if the field MEMBER exists in type AGGR, after including
3373 # INCLUDES, setting cache variable VAR accordingly.
3374 ac_fn_c_check_member
()
3376 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3378 $as_echo_n "checking for $2.$3... " >&6; }
3379 if eval \
${$4+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3395 if ac_fn_c_try_compile
"$LINENO"; then :
3398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3405 if (sizeof ac_aggr.$3)
3411 if ac_fn_c_try_compile
"$LINENO"; then :
3416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3422 $as_echo "$ac_res" >&6; }
3423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3425 } # ac_fn_c_check_member
3426 cat >config.log
<<_ACEOF
3427 This file contains any messages produced by compilers while
3428 running configure, to aid debugging if configure makes a mistake.
3430 It was created by libgnu $as_me UNUSED-VERSION, which was
3431 generated by GNU Autoconf 2.69. Invocation command line was
3443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3450 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3452 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3453 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3455 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3456 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3457 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3458 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir
=.
3467 $as_echo "PATH: $as_dir"
3483 # Keep a trace of the command line.
3484 # Strip out --no-create and --no-recursion so they do not pile up.
3485 # Strip out --silent because we don't want to record it for future runs.
3486 # Also quote any args containing shell meta-characters.
3487 # Make two passes to allow for proper duplicate-argument suppression.
3491 ac_must_keep_next
=false
3497 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3498 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3499 |
-silent |
--silent |
--silen |
--sile |
--sil)
3502 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3505 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3507 as_fn_append ac_configure_args1
" '$ac_arg'"
3508 if test $ac_must_keep_next = true
; then
3509 ac_must_keep_next
=false
# Got value, back to normal.
3512 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3513 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3514 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3515 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3516 case "$ac_configure_args0 " in
3517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3520 -* ) ac_must_keep_next
=true
;;
3523 as_fn_append ac_configure_args
" '$ac_arg'"
3528 { ac_configure_args0
=; unset ac_configure_args0
;}
3529 { ac_configure_args1
=; unset ac_configure_args1
;}
3531 # When interrupted or exit'd, cleanup temporary files, and complete
3532 # config.log. We remove comments because anyway the quotes in there
3533 # would cause problems or look ugly.
3534 # WARNING: Use '\'' to represent an apostrophe within the trap.
3535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3536 trap 'exit_status=$?
3537 # Save into config.log some information that might help in debugging.
3541 $as_echo "## ---------------- ##
3542 ## Cache variables. ##
3543 ## ---------------- ##"
3545 # The following way of writing the cache mishandles newlines in values,
3547 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3548 eval ac_val=\$$ac_var
3552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3556 _ | IFS | as_nl) ;; #(
3557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3558 *) { eval $ac_var=; unset $ac_var;} ;;
3563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3564 *${as_nl}ac_space=\ *)
3566 "s/'\''/'\''\\\\'\'''\''/g;
3567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3577 $as_echo "## ----------------- ##
3578 ## Output variables. ##
3579 ## ----------------- ##"
3581 for ac_var in $ac_subst_vars
3583 eval ac_val=\$$ac_var
3585 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3587 $as_echo "$ac_var='\''$ac_val'\''"
3591 if test -n "$ac_subst_files"; then
3592 $as_echo "## ------------------- ##
3593 ## File substitutions. ##
3594 ## ------------------- ##"
3596 for ac_var
in $ac_subst_files
3598 eval ac_val
=\$
$ac_var
3600 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3602 $as_echo "$ac_var='\''$ac_val'\''"
3607 if test -s confdefs.h; then
3608 $as_echo "## ----------- ##
3615 test "$ac_signal" != 0 &&
3616 $as_echo "$as_me: caught signal $ac_signal"
3617 $as_echo "$as_me: exit $exit_status"
3619 rm -f core *.core core.conftest.* &&
3620 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3623 for ac_signal
in 1 2 13 15; do
3624 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3629 rm -f -r conftest
* confdefs.h
3631 $as_echo "/* confdefs.h */" > confdefs.h
3633 # Predefined preprocessor variables.
3635 cat >>confdefs.h
<<_ACEOF
3636 #define PACKAGE_NAME "$PACKAGE_NAME"
3639 cat >>confdefs.h
<<_ACEOF
3640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3643 cat >>confdefs.h
<<_ACEOF
3644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3647 cat >>confdefs.h
<<_ACEOF
3648 #define PACKAGE_STRING "$PACKAGE_STRING"
3651 cat >>confdefs.h
<<_ACEOF
3652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3655 cat >>confdefs.h
<<_ACEOF
3656 #define PACKAGE_URL "$PACKAGE_URL"
3660 # Let the site file select an alternate cache file if it wants to.
3661 # Prefer an explicitly selected file to automatically selected ones.
3664 if test -n "$CONFIG_SITE"; then
3665 # We do not want a PATH search for config.site.
3666 case $CONFIG_SITE in #((
3667 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3668 */*) ac_site_file1
=$CONFIG_SITE;;
3669 *) ac_site_file1
=.
/$CONFIG_SITE;;
3671 elif test "x$prefix" != xNONE
; then
3672 ac_site_file1
=$prefix/share
/config.site
3673 ac_site_file2
=$prefix/etc
/config.site
3675 ac_site_file1
=$ac_default_prefix/share
/config.site
3676 ac_site_file2
=$ac_default_prefix/etc
/config.site
3678 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3680 test "x$ac_site_file" = xNONE
&& continue
3681 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3683 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3684 sed 's/^/| /' "$ac_site_file" >&5
3686 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $?
"failed to load site script $ac_site_file
3689 See \`config.log' for more details" "$LINENO" 5; }
3693 if test -r "$cache_file"; then
3694 # Some versions of bash will fail to source /dev/null (special files
3695 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3696 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3698 $as_echo "$as_me: loading cache $cache_file" >&6;}
3700 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3701 *) .
"./$cache_file";;
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3706 $as_echo "$as_me: creating cache $cache_file" >&6;}
3710 as_fn_append ac_header_list
" wchar.h"
3711 as_fn_append ac_header_list
" minix/config.h"
3712 as_fn_append ac_header_list
" arpa/inet.h"
3713 as_fn_append ac_header_list
" features.h"
3714 as_fn_append ac_header_list
" sys/socket.h"
3715 as_fn_append ac_func_list
" btowc"
3716 as_fn_append ac_func_list
" canonicalize_file_name"
3717 as_fn_append ac_func_list
" faccessat"
3718 as_fn_append ac_func_list
" realpath"
3719 as_fn_append ac_header_list
" sys/param.h"
3720 as_fn_append ac_header_list
" unistd.h"
3721 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3722 as_fn_append ac_func_list
" fchdir"
3723 as_fn_append ac_header_list
" dirent.h"
3724 as_fn_append ac_func_list
" fcntl"
3725 as_fn_append ac_func_list
" symlink"
3726 as_fn_append ac_func_list
" fdopendir"
3727 as_fn_append ac_func_list
" mempcpy"
3728 as_fn_append ac_header_list
" fnmatch.h"
3729 as_fn_append ac_func_list
" fnmatch"
3730 as_fn_append ac_func_list
" mbsrtowcs"
3731 gl_fnmatch_required
=GNU
3732 as_fn_append ac_header_list
" sys/stat.h"
3733 as_fn_append ac_func_list
" fstatat"
3734 as_fn_append ac_func_list
" getdtablesize"
3735 as_fn_append ac_func_list
" getlogin_r"
3736 as_fn_append ac_func_list
" getprogname"
3737 as_fn_append ac_func_list
" getexecname"
3738 as_fn_append ac_func_list
" getrandom"
3739 as_fn_append ac_header_list
" sys/time.h"
3740 as_fn_append ac_func_list
" gettimeofday"
3741 as_fn_append ac_header_list
" glob.h"
3742 as_fn_append ac_func_list
" glob"
3743 as_fn_append ac_func_list
" glob_pattern_p"
3744 as_fn_append ac_func_list
" getpwnam_r"
3745 as_fn_append ac_header_list
" threads.h"
3746 as_fn_append ac_header_list
" netdb.h"
3747 as_fn_append ac_header_list
" netinet/in.h"
3748 as_fn_append ac_header_list
" limits.h"
3749 as_fn_append ac_header_list
" inttypes.h"
3750 as_fn_append ac_header_list
" sys/types.h"
3751 as_fn_append ac_header_list
" stdint.h"
3752 as_fn_append ac_func_list
" isblank"
3753 as_fn_append ac_header_list
" xlocale.h"
3754 as_fn_append ac_func_list
" lstat"
3755 as_fn_append ac_header_list
" math.h"
3756 as_fn_append ac_func_list
" mbsinit"
3757 as_fn_append ac_func_list
" mbrtowc"
3758 as_fn_append ac_header_list
" sys/mman.h"
3759 as_fn_append ac_func_list
" mprotect"
3760 as_fn_append ac_func_list
" mkostemp"
3761 as_fn_append ac_func_list
" openat"
3762 as_fn_append ac_func_list
" pipe"
3763 as_fn_append ac_func_list
" readlink"
3764 as_fn_append ac_func_list
" link"
3765 as_fn_append ac_func_list
" setenv"
3766 as_fn_append ac_func_list
" strerror_r"
3767 as_fn_append ac_func_list
" __xpg_strerror_r"
3768 as_fn_append ac_func_list
" catgets"
3769 as_fn_append ac_func_list
" snprintf"
3770 as_fn_append ac_header_list
" sys/random.h"
3771 as_fn_append ac_header_list
" sys/uio.h"
3772 as_fn_append ac_func_list
" localtime_r"
3773 as_fn_append ac_header_list
" crtdefs.h"
3774 as_fn_append ac_func_list
" iswcntrl"
3775 as_fn_append ac_header_list
" wctype.h"
3776 as_fn_append ac_func_list
" wmempcpy"
3777 # Check that the precious variables saved in the cache have kept the same
3779 ac_cache_corrupted
=false
3780 for ac_var
in $ac_precious_vars; do
3781 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3782 eval ac_new_set
=\
$ac_env_${ac_var}_set
3783 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3784 eval ac_new_val
=\
$ac_env_${ac_var}_value
3785 case $ac_old_set,$ac_new_set in
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3789 ac_cache_corrupted
=: ;;
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3793 ac_cache_corrupted
=: ;;
3796 if test "x$ac_old_val" != "x$ac_new_val"; then
3797 # differences in whitespace do not lead to failure.
3798 ac_old_val_w
=`echo x $ac_old_val`
3799 ac_new_val_w
=`echo x $ac_new_val`
3800 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3803 ac_cache_corrupted
=:
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3807 eval $ac_var=\
$ac_old_val
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3810 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3812 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3815 # Pass precious variables to config.status.
3816 if test "$ac_new_set" = set; then
3818 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3819 *) ac_arg
=$ac_var=$ac_new_val ;;
3821 case " $ac_configure_args " in
3822 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3823 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3827 if $ac_cache_corrupted; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3832 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3834 ## -------------------- ##
3835 ## Main body of script. ##
3836 ## -------------------- ##
3839 ac_cpp
='$CPP $CPPFLAGS'
3840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3849 ac_config_headers
="$ac_config_headers config.h:config.in"
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3855 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3856 # Check whether --enable-maintainer-mode was given.
3857 if test "${enable_maintainer_mode+set}" = set; then :
3858 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3860 USE_MAINTAINER_MODE
=no
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3864 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3865 if test $USE_MAINTAINER_MODE = yes; then
3866 MAINTAINER_MODE_TRUE
=
3867 MAINTAINER_MODE_FALSE
='#'
3869 MAINTAINER_MODE_TRUE
='#'
3870 MAINTAINER_MODE_FALSE
=
3873 MAINT
=$MAINTAINER_MODE_TRUE
3878 ac_cpp
='$CPP $CPPFLAGS'
3879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3884 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CC+:} false
; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC
="$CC" # Let the user override the test.
3893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir
=.
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913 $as_echo "$CC" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3921 if test -z "$ac_cv_prog_CC"; then
3923 # Extract the first word of "gcc", so it can be a program name with args.
3924 set dummy gcc
; ac_word
=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -n "$ac_ct_CC"; then
3931 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_exec_ext
in '' $ac_executable_extensions; do
3939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_ac_ct_CC
="gcc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3951 if test -n "$ac_ct_CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3953 $as_echo "$ac_ct_CC" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3959 if test "x$ac_ct_CC" = x
; then
3962 case $cross_compiling:$ac_tool_warned in
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966 ac_tool_warned
=yes ;;
3974 if test -z "$CC"; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3977 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_CC+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC
="$CC" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006 $as_echo "$CC" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4015 if test -z "$CC"; then
4016 # Extract the first word of "cc", so it can be a program name with args.
4017 set dummy cc
; ac_word
=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_CC+:} false
; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -n "$CC"; then
4024 ac_cv_prog_CC
="$CC" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4035 ac_prog_rejected
=yes
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 if test $ac_prog_rejected = yes; then
4047 # We found a bogon in the path, so make sure we never use it.
4048 set dummy
$ac_cv_prog_CC
4050 if test $# != 0; then
4051 # We chose a different compiler from the bogus one.
4052 # However, it has the same basename, so the bogon will be chosen
4053 # first if we set CC to just the basename; use the full file name.
4055 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4061 if test -n "$CC"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4063 $as_echo "$CC" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4071 if test -z "$CC"; then
4072 if test -n "$ac_tool_prefix"; then
4073 for ac_prog
in cl.exe
4075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4076 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if ${ac_cv_prog_CC+:} false
; then :
4080 $as_echo_n "(cached) " >&6
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC
="$CC" # Let the user override the test.
4085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir
=.
4090 for ac_exec_ext
in '' $ac_executable_extensions; do
4091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 if test -n "$CC"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 $as_echo "$CC" >&6; }
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4112 test -n "$CC" && break
4115 if test -z "$CC"; then
4117 for ac_prog
in cl.exe
4119 # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy
$ac_prog; ac_word
=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4124 $as_echo_n "(cached) " >&6
4126 if test -n "$ac_ct_CC"; then
4127 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir
=.
4134 for ac_exec_ext
in '' $ac_executable_extensions; do
4135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_CC
="$ac_prog"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4149 $as_echo "$ac_ct_CC" >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4156 test -n "$ac_ct_CC" && break
4159 if test "x$ac_ct_CC" = x
; then
4162 case $cross_compiling:$ac_tool_warned in
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4166 ac_tool_warned
=yes ;;
4173 if test -z "$CC"; then
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4176 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_CC+:} false
; then :
4180 $as_echo_n "(cached) " >&6
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC
="$CC" # Let the user override the test.
4185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir
=.
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 $as_echo "$CC" >&6; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4213 if test -z "$ac_cv_prog_CC"; then
4215 # Extract the first word of "clang", so it can be a program name with args.
4216 set dummy clang
; ac_word
=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4220 $as_echo_n "(cached) " >&6
4222 if test -n "$ac_ct_CC"; then
4223 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_ac_ct_CC
="clang"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4245 $as_echo "$ac_ct_CC" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4251 if test "x$ac_ct_CC" = x
; then
4254 case $cross_compiling:$ac_tool_warned in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned
=yes ;;
4269 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error $?
"no acceptable C compiler found in \$PATH
4272 See \`config.log' for more details" "$LINENO" 5; }
4274 # Provide some information about the compiler.
4275 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4278 for ac_option
in --version -v -V -qversion -version; do
4279 { { ac_try
="$ac_compiler $ac_option >&5"
4281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4288 if test -s conftest.err; then
4290 ... rest of stderr output deleted ...
4291 10q' conftest.err >conftest.er1
4292 cat conftest.er1 >&5
4294 rm -f conftest.er1 conftest.err
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4310 ac_clean_files_save=$ac_clean_files
4311 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4312 # Try to create an executable without -o first, disregard a.out.
4313 # It will help us diagnose broken compilers, and finding out an intuition
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4316 $as_echo_n "checking whether the C compiler works... " >&6; }
4317 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4319 # The possible output files:
4320 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4323 for ac_file in $ac_files
4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4327 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4332 if { { ac_try="$ac_link_default"
4334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4335 *) ac_try_echo
=$ac_try;;
4337 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 $as_echo "$ac_try_echo"; } >&5
4339 (eval "$ac_link_default") 2>&5
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }; then :
4343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4345 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4346 # so that the user can short-circuit this test for compilers unknown to
4348 for ac_file
in $ac_files ''
4350 test -f "$ac_file" ||
continue
4352 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4355 # We found the default executable, but exeext='' is most
4359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4361 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4363 # We set ac_cv_exeext here because the later test for it is not
4364 # safe: cross compilers may not add the suffix if given an `-o'
4365 # argument, so we may need to know it at that point already.
4366 # Even if this section looks crufty: it has the advantage of
4373 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4378 if test -z "$ac_file"; then :
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 $as_echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.
$ac_ext >&5
4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error
77 "C compiler cannot create executables
4387 See \`config.log' for more details" "$LINENO" 5; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4390 $as_echo "yes" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4393 $as_echo_n "checking for C compiler default output file name... " >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4395 $as_echo "$ac_file" >&6; }
4396 ac_exeext
=$ac_cv_exeext
4398 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4399 ac_clean_files
=$ac_clean_files_save
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4401 $as_echo_n "checking for suffix of executables... " >&6; }
4402 if { { ac_try
="$ac_link"
4404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_link") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }; then :
4413 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4414 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4415 # work properly (i.e., refer to `conftest.exe'), while it won't with
4417 for ac_file
in conftest.exe conftest conftest.
*; do
4418 test -f "$ac_file" ||
continue
4420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4421 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4430 See \`config.log' for more details" "$LINENO" 5; }
4432 rm -f conftest conftest
$ac_cv_exeext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4434 $as_echo "$ac_cv_exeext" >&6; }
4436 rm -f conftest.
$ac_ext
4437 EXEEXT
=$ac_cv_exeext
4439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4445 FILE *f = fopen ("conftest.out", "w");
4446 return ferror (f) || fclose (f) != 0;
4452 ac_clean_files
="$ac_clean_files conftest.out"
4453 # Check that the compiler produces executables we can run. If not, either
4454 # the compiler is broken, or we cross compile.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4456 $as_echo_n "checking whether we are cross compiling... " >&6; }
4457 if test "$cross_compiling" != yes; then
4458 { { ac_try
="$ac_link"
4460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_link") 2>&5
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }
4469 if { ac_try='./conftest$ac_cv_exeext'
4470 { { case "(($ac_try" in
4471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4472 *) ac_try_echo
=$ac_try;;
4474 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_try") 2>&5
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }; }; then
4482 if test "$cross_compiling" = maybe
; then
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error $?
"cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details" "$LINENO" 5; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4494 $as_echo "$cross_compiling" >&6; }
4496 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4497 ac_clean_files
=$ac_clean_files_save
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4499 $as_echo_n "checking for suffix of object files... " >&6; }
4500 if ${ac_cv_objext+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 rm -f conftest.o conftest.obj
4515 if { { ac_try
="$ac_compile"
4517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_compile") 2>&5
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }; then :
4526 for ac_file in conftest.o conftest.obj conftest.*; do
4527 test -f "$ac_file" || continue;
4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4535 $as_echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4540 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4541 See \
`config.log' for more details" "$LINENO" 5; }
4543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4546 $as_echo "$ac_cv_objext" >&6; }
4547 OBJEXT=$ac_cv_objext
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4550 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4551 if ${ac_cv_c_compiler_gnu+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4579 if test $ac_compiler_gnu = yes; then
4584 ac_test_CFLAGS=${CFLAGS+set}
4585 ac_save_CFLAGS=$CFLAGS
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4588 if ${ac_cv_prog_cc_g+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 ac_save_c_werror_flag=$ac_c_werror_flag
4592 ac_c_werror_flag=yes
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_c_try_compile "$LINENO"; then :
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4621 if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_c_werror_flag=$ac_save_c_werror_flag
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4637 if ac_fn_c_try_compile "$LINENO"; then :
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_c_werror_flag=$ac_save_c_werror_flag
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4648 $as_echo "$ac_cv_prog_cc_g" >&6; }
4649 if test "$ac_test_CFLAGS" = set; then
4650 CFLAGS=$ac_save_CFLAGS
4651 elif test $ac_cv_prog_cc_g = yes; then
4652 if test "$GCC" = yes; then
4658 if test "$GCC" = yes; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4665 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4666 if ${ac_cv_prog_cc_c11+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 ac_cv_prog_cc_c11=no
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4674 #include <stdbool.h>
4680 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4681 #define debug(...) fprintf (stderr, __VA_ARGS__)
4682 #define showlist(...) puts (#__VA_ARGS__)
4683 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4685 test_varargs_macros (void)
4690 debug ("X = %d\n", x);
4691 showlist (The first, second, and third items.);
4692 report (x>y, "x is %d but y is %d", x, y);
4695 // Check long long types.
4696 #define BIG64 18446744073709551615ull
4697 #define BIG32 4294967295ul
4698 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4700 your preprocessor is broken;
4704 your preprocessor is broken;
4706 static long long int bignum = -9223372036854775807LL;
4707 static unsigned long long int ubignum = BIG64;
4709 struct incomplete_array
4717 const wchar_t *name;
4721 typedef const char *ccp;
4724 test_restrict (ccp restrict text)
4726 // See if C++-style comments work.
4727 // Iterate through items via the restricted pointer.
4728 // Also check for declarations in for loops.
4729 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4734 // Check varargs and va_copy.
4736 test_varargs (const char *format, ...)
4739 va_start (args, format);
4741 va_copy (args_copy, args);
4743 const char *str = "";
4752 str = va_arg (args_copy, const char *);
4755 number = va_arg (args_copy, int);
4758 fnumber = va_arg (args_copy, double);
4767 return *str && number && fnumber;
4770 char _Alignas (double) aligned_as_double;
4771 char _Alignas (0) no_special_alignment;
4772 extern char aligned_as_int;
4773 char _Alignas (0) _Alignas (int) aligned_as_int;
4778 int_alignment = _Alignof (int),
4779 int_array_alignment = _Alignof (int[100]),
4780 char_alignment = _Alignof (char)
4782 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4785 int _Noreturn does_not_return (void) { for (;;) continue; }
4787 // Check _Static_assert.
4788 struct test_static_assert
4791 _Static_assert (sizeof (int) <= sizeof (long int),
4792 "_Static_assert does not work in struct");
4796 // Check UTF-8 literals.
4797 #define u8 syntax error!
4798 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4800 // Check duplicate typedefs.
4801 typedef long *long_ptr;
4802 typedef long int *long_ptr;
4803 typedef long_ptr long_ptr;
4805 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4809 struct { int i; int j; };
4810 struct { int k; long int l; } w;
4820 _Bool success = false;
4823 if (test_restrict ("String literal") == 0)
4825 char *restrict newvar = "Another string";
4828 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4829 test_varargs_macros ();
4831 // Check flexible array members.
4832 struct incomplete_array *ia =
4833 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4835 for (int i = 0; i < ia->datasize; ++i)
4836 ia->data[i] = i * 1.234;
4838 // Check named initializers.
4839 struct named_init ni = {
4841 .name = L"Test wide string",
4842 .average = 543.34343,
4847 int dynamic_array[ni.number];
4848 dynamic_array[ni.number - 1] = 543;
4850 // work around unused variable warnings
4851 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4852 || dynamic_array[ni.number - 1] != 543);
4856 _Static_assert ((offsetof (struct anonymous, i)
4857 == offsetof (struct anonymous, w.k)),
4858 "Anonymous union alignment botch");
4864 for ac_arg in '' -std=gnu11
4866 CC="$ac_save_CC $ac_arg"
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868 ac_cv_prog_cc_c11=$ac_arg
4870 rm -f core conftest.err conftest.$ac_objext
4871 test "x$ac_cv_prog_cc_c11" != "xno" && break
4873 rm -f conftest.$ac_ext
4878 ac_prog_cc_stdc_options=
4879 case "x$ac_cv_prog_cc_c11" in
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4882 $as_echo "none needed" >&6; } ;;
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4885 $as_echo "unsupported" >&6; } ;;
4887 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4888 CC=$CC$ac_prog_cc_stdc_options
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4890 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4892 if test "x$ac_cv_prog_cc_c11" != xno; then :
4894 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4897 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4898 if ${ac_cv_prog_cc_c99+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 ac_cv_prog_cc_c99=no
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4906 #include <stdbool.h>
4912 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4913 #define debug(...) fprintf (stderr, __VA_ARGS__)
4914 #define showlist(...) puts (#__VA_ARGS__)
4915 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4917 test_varargs_macros (void)
4922 debug ("X = %d\n", x);
4923 showlist (The first, second, and third items.);
4924 report (x>y, "x is %d but y is %d", x, y);
4927 // Check long long types.
4928 #define BIG64 18446744073709551615ull
4929 #define BIG32 4294967295ul
4930 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4932 your preprocessor is broken;
4936 your preprocessor is broken;
4938 static long long int bignum = -9223372036854775807LL;
4939 static unsigned long long int ubignum = BIG64;
4941 struct incomplete_array
4949 const wchar_t *name;
4953 typedef const char *ccp;
4956 test_restrict (ccp restrict text)
4958 // See if C++-style comments work.
4959 // Iterate through items via the restricted pointer.
4960 // Also check for declarations in for loops.
4961 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4966 // Check varargs and va_copy.
4968 test_varargs (const char *format, ...)
4971 va_start (args, format);
4973 va_copy (args_copy, args);
4975 const char *str = "";
4984 str = va_arg (args_copy, const char *);
4987 number = va_arg (args_copy, int);
4990 fnumber = va_arg (args_copy, double);
4999 return *str && number && fnumber;
5006 _Bool success = false;
5009 if (test_restrict ("String literal") == 0)
5011 char *restrict newvar = "Another string";
5014 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5015 test_varargs_macros ();
5017 // Check flexible array members.
5018 struct incomplete_array *ia =
5019 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5021 for (int i = 0; i < ia->datasize; ++i)
5022 ia->data[i] = i * 1.234;
5024 // Check named initializers.
5025 struct named_init ni = {
5027 .name = L"Test wide string",
5028 .average = 543.34343,
5033 int dynamic_array[ni.number];
5034 dynamic_array[ni.number - 1] = 543;
5036 // work around unused variable warnings
5037 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5038 || dynamic_array[ni.number - 1] != 543);
5044 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5046 CC="$ac_save_CC $ac_arg"
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_cv_prog_cc_c99=$ac_arg
5050 rm -f core conftest.err conftest.$ac_objext
5051 test "x$ac_cv_prog_cc_c99" != "xno" && break
5053 rm -f conftest.$ac_ext
5058 ac_prog_cc_stdc_options=
5059 case "x$ac_cv_prog_cc_c99" in
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5062 $as_echo "none needed" >&6; } ;;
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5065 $as_echo "unsupported" >&6; } ;;
5067 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5068 CC=$CC$ac_prog_cc_stdc_options
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5070 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5072 if test "x$ac_cv_prog_cc_c99" != xno; then :
5074 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5077 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5078 if ${ac_cv_prog_cc_c89+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 ac_cv_prog_cc_c89=no
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5102 s = g (p, va_arg (v,int));
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_prog_cc_c89=$ac_arg
5142 rm -f core conftest.err conftest.$ac_objext
5143 test "x$ac_cv_prog_cc_c89" != "xno" && break
5145 rm -f conftest.$ac_ext
5150 ac_prog_cc_stdc_options=
5151 case "x$ac_cv_prog_cc_c89" in
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154 $as_echo "none needed" >&6; } ;;
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157 $as_echo "unsupported" >&6; } ;;
5159 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5160 CC=$CC$ac_prog_cc_stdc_options
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5164 if test "x$ac_cv_prog_cc_c89" != xno; then :
5166 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5169 ac_cv_prog_cc_stdc=no
5177 ac_cpp='$CPP $CPPFLAGS'
5178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5184 $as_echo_n "checking whether the compiler is clang... " >&6; }
5185 if ${gl_cv_compiler_clang+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 gl_cv_compiler_clang=no
5207 gl_cv_compiler_clang=yes
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5213 $as_echo "$gl_cv_compiler_clang" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5217 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5218 if ${gl_cv_compiler_check_decl_option+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 if test $gl_cv_compiler_clang = yes; then
5222 save_ac_compile="$ac_compile"
5223 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5238 gl_cv_compiler_check_decl_option=none
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 ac_compile="$save_ac_compile"
5243 gl_cv_compiler_check_decl_option=none
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5248 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5249 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5250 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5252 ac_compile_for_check_decl="$ac_compile"
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5264 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5265 # On Suns, sometimes $CPP names a directory.
5266 if test -n "$CPP" && test -d "$CPP"; then
5269 if test -z "$CPP"; then
5270 if ${ac_cv_prog_CPP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 # Double quotes because CPP needs to be expanded
5274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5277 for ac_c_preproc_warn_flag in '' yes
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5288 # include <limits.h>
5290 # include <assert.h>
5294 if ac_fn_c_try_cpp "$LINENO"; then :
5297 # Broken: fails on valid input.
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5308 if ac_fn_c_try_cpp "$LINENO"; then :
5309 # Broken: success on invalid input.
5312 # Passes both tests.
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.
$ac_ext
5321 if $ac_preproc_ok; then :
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5334 $as_echo "$CPP" >&6; }
5336 for ac_c_preproc_warn_flag
in '' yes
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5347 # include <limits.h>
5349 # include <assert.h>
5353 if ac_fn_c_try_cpp
"$LINENO"; then :
5356 # Broken: fails on valid input.
5359 rm -f conftest.err conftest.i conftest.
$ac_ext
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5367 if ac_fn_c_try_cpp
"$LINENO"; then :
5368 # Broken: success on invalid input.
5371 # Passes both tests.
5375 rm -f conftest.err conftest.i conftest.
$ac_ext
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.
$ac_ext
5380 if $ac_preproc_ok; then :
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5390 ac_cpp
='$CPP $CPPFLAGS'
5391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found
=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5405 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_prog
in grep ggrep
; do
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p
"$ac_path_GREP" ||
continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5417 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5420 $as_echo_n 0123456789 >"conftest.in"
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5428 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5429 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP
="$ac_path_GREP"
5433 ac_path_GREP_max
=$ac_count
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5438 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5441 $ac_path_GREP_found && break 3
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 ac_cv_path_GREP
=$GREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP
="$ac_cv_path_GREP"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false
; then :
5462 $as_echo_n "(cached) " >&6
5464 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5465 then ac_cv_path_EGREP
="$GREP -E"
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found
=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_prog
in egrep; do
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5483 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5486 $as_echo_n 0123456789 >"conftest.in"
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5494 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5495 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP
="$ac_path_EGREP"
5499 ac_path_EGREP_max
=$ac_count
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5504 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5507 $ac_path_EGREP_found && break 3
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 ac_cv_path_EGREP
=$EGREP
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP
="$ac_cv_path_EGREP"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5546 if ac_fn_c_try_compile
"$LINENO"; then :
5547 ac_cv_header_stdc
=yes
5549 ac_cv_header_stdc
=no
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev
/null
2>&1; then :
5564 ac_cv_header_stdc
=no
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev
/null
2>&1; then :
5581 ac_cv_header_stdc
=no
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5619 if ac_fn_c_try_run
"$LINENO"; then :
5622 ac_cv_header_stdc
=no
5624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5640 inttypes.h stdint.h unistd.h
5642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5645 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5646 cat >>confdefs.h
<<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658 for ac_header
in $ac_header_list
5660 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5663 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5664 cat >>confdefs.h
<<_ACEOF
5665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5681 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5682 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5683 $as_echo_n "(cached) " >&6
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5688 # define __EXTENSIONS__ 1
5689 $ac_includes_default
5698 if ac_fn_c_try_compile
"$LINENO"; then :
5699 ac_cv_safe_to_define___extensions__
=yes
5701 ac_cv_safe_to_define___extensions__
=no
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5706 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5709 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5710 if ${ac_cv_should_define__xopen_source+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 ac_cv_should_define__xopen_source
=no
5714 if test $ac_cv_header_wchar_h = yes; then :
5715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5728 if ac_fn_c_try_compile
"$LINENO"; then :
5731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5734 #define _XOPEN_SOURCE 500
5745 if ac_fn_c_try_compile
"$LINENO"; then :
5746 ac_cv_should_define__xopen_source
=yes
5748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5754 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5756 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5758 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5760 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5762 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5764 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5766 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5768 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5770 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5772 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5774 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5776 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5778 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5780 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5782 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5784 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5786 if test $ac_cv_header_minix_config_h = yes; then :
5788 $as_echo "#define _MINIX 1" >>confdefs.h
5790 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5792 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5797 if test $ac_cv_safe_to_define___extensions__ = yes; then :
5798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5801 if test $ac_cv_should_define__xopen_source = yes; then :
5802 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5806 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5809 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5810 if test -f "$ac_dir/install-sh"; then
5812 ac_install_sh
="$ac_aux_dir/install-sh -c"
5814 elif test -f "$ac_dir/install.sh"; then
5816 ac_install_sh
="$ac_aux_dir/install.sh -c"
5818 elif test -f "$ac_dir/shtool"; then
5820 ac_install_sh
="$ac_aux_dir/shtool install -c"
5824 if test -z "$ac_aux_dir"; then
5825 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5828 # These three variables are undocumented and unsupported,
5829 # and are intended to be withdrawn in a future Autoconf release.
5830 # They can cause serious problems if a builder's source tree is in a directory
5831 # whose full name contains unusual characters.
5832 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5833 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5834 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5837 # Make sure we can run config.sub.
5838 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5839 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5842 $as_echo_n "checking build system type... " >&6; }
5843 if ${ac_cv_build+:} false
; then :
5844 $as_echo_n "(cached) " >&6
5846 ac_build_alias
=$build_alias
5847 test "x$ac_build_alias" = x
&&
5848 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5849 test "x$ac_build_alias" = x
&&
5850 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5851 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5852 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5856 $as_echo "$ac_cv_build" >&6; }
5857 case $ac_cv_build in
5859 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5862 ac_save_IFS
=$IFS; IFS
='-'
5868 # Remember, the first character of IFS is used to create $*,
5869 # except with old shells:
5872 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5876 $as_echo_n "checking host system type... " >&6; }
5877 if ${ac_cv_host+:} false
; then :
5878 $as_echo_n "(cached) " >&6
5880 if test "x$host_alias" = x
; then
5881 ac_cv_host
=$ac_cv_build
5883 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5884 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5889 $as_echo "$ac_cv_host" >&6; }
5892 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5895 ac_save_IFS
=$IFS; IFS
='-'
5901 # Remember, the first character of IFS is used to create $*,
5902 # except with old shells:
5905 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5909 $as_echo_n "checking target system type... " >&6; }
5910 if ${ac_cv_target+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5913 if test "x$target_alias" = x
; then
5914 ac_cv_target
=$ac_cv_host
5916 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5917 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5922 $as_echo "$ac_cv_target" >&6; }
5923 case $ac_cv_target in
5925 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5927 target
=$ac_cv_target
5928 ac_save_IFS
=$IFS; IFS
='-'
5934 # Remember, the first character of IFS is used to create $*,
5935 # except with old shells:
5938 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5941 # The aliases save the names the user supplied, while $host etc.
5942 # will get canonicalized.
5943 test -n "$target_alias" &&
5944 test "$program_prefix$program_suffix$program_transform_name" = \
5946 program_prefix
=${target_alias}-
5948 # The tests for host and target for $enable_largefile require
5953 # As the $enable_largefile decision depends on --enable-plugins we must set it
5954 # even in directories otherwise not depending on the $plugins option.
5958 for ac_header
in dlfcn.h
5960 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5962 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5963 cat >>confdefs.h
<<_ACEOF
5964 #define HAVE_DLFCN_H 1
5971 for ac_header
in windows.h
5973 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5975 if test "x$ac_cv_header_windows_h" = xyes
; then :
5976 cat >>confdefs.h
<<_ACEOF
5977 #define HAVE_WINDOWS_H 1
5985 # Check whether --enable-plugins was given.
5986 if test "${enable_plugins+set}" = set; then :
5987 enableval
=$enable_plugins; case "${enableval}" in
5990 if test "$maybe_plugins" != "yes" ; then
5991 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5995 plugins
=$maybe_plugins
5999 if test "$plugins" = "yes"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6001 $as_echo_n "checking for library containing dlsym... " >&6; }
6002 if ${ac_cv_search_dlsym+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 ac_func_search_save_LIBS
=$LIBS
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6009 /* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
6024 for ac_lib
in '' dl
; do
6025 if test -z "$ac_lib"; then
6026 ac_res
="none required"
6029 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6031 if ac_fn_c_try_link
"$LINENO"; then :
6032 ac_cv_search_dlsym
=$ac_res
6034 rm -f core conftest.err conftest.
$ac_objext \
6036 if ${ac_cv_search_dlsym+:} false
; then :
6040 if ${ac_cv_search_dlsym+:} false
; then :
6043 ac_cv_search_dlsym
=no
6046 LIBS
=$ac_func_search_save_LIBS
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6049 $as_echo "$ac_cv_search_dlsym" >&6; }
6050 ac_res
=$ac_cv_search_dlsym
6051 if test "$ac_res" != no
; then :
6052 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6060 sparc-
*-solaris*|i?
86-*-solaris*)
6061 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
6062 # were mutually exclusive until Solaris 11.3. Without procfs support,
6063 # the bfd/ elf module cannot provide certain routines such as
6064 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
6065 # explicitly requested large-file support through the
6066 # --enable-largefile switch, disable large-file support in favor of
6069 # Check if <sys/procfs.h> is incompatible with large-file support.
6070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #define _FILE_OFFSET_BITS 64
6073 #define _STRUCTURED_PROC 1
6074 #include <sys/procfs.h>
6083 if ac_fn_c_try_compile
"$LINENO"; then :
6084 acx_cv_procfs_lfs
=yes
6086 acx_cv_procfs_lfs
=no
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6090 # Forcefully disable large-file support only if necessary, gdb is in
6092 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
6093 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
6094 : ${enable_largefile="no"}
6095 if test "$plugins" = yes; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
6097 plugin support disabled; require large-file support which is incompatible with GDB." >&5
6098 $as_echo "$as_me: WARNING:
6099 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
6104 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
6105 # benefit of g++ 9+ which predefines it on Solaris.
6106 if test "$enable_largefile" = no
; then
6107 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
6113 # Check whether --enable-largefile was given.
6114 if test "${enable_largefile+set}" = set; then :
6115 enableval
=$enable_largefile;
6118 if test "$enable_largefile" != no
; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6121 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6122 if ${ac_cv_sys_largefile_CC+:} false
; then :
6123 $as_echo_n "(cached) " >&6
6125 ac_cv_sys_largefile_CC
=no
6126 if test "$GCC" != yes; then
6129 # IRIX 6.2 and later do not support large files by default,
6130 # so use the C compiler's -n32 option if that helps.
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <sys/types.h>
6134 /* Check that off_t can represent 2**63 - 1 correctly.
6135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6136 since some C++ compilers masquerading as C compilers
6137 incorrectly reject 9223372036854775807. */
6138 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6140 && LARGE_OFF_T % 2147483647 == 1)
6150 if ac_fn_c_try_compile
"$LINENO"; then :
6153 rm -f core conftest.err conftest.
$ac_objext
6155 if ac_fn_c_try_compile
"$LINENO"; then :
6156 ac_cv_sys_largefile_CC
=' -n32'; break
6158 rm -f core conftest.err conftest.
$ac_objext
6162 rm -f conftest.
$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6166 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6167 if test "$ac_cv_sys_largefile_CC" != no
; then
6168 CC
=$CC$ac_cv_sys_largefile_CC
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6172 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6173 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6174 $as_echo_n "(cached) " >&6
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6180 /* Check that off_t can represent 2**63 - 1 correctly.
6181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6182 since some C++ compilers masquerading as C compilers
6183 incorrectly reject 9223372036854775807. */
6184 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6186 && LARGE_OFF_T % 2147483647 == 1)
6196 if ac_fn_c_try_compile
"$LINENO"; then :
6197 ac_cv_sys_file_offset_bits
=no
; break
6199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #define _FILE_OFFSET_BITS 64
6203 #include <sys/types.h>
6204 /* Check that off_t can represent 2**63 - 1 correctly.
6205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6206 since some C++ compilers masquerading as C compilers
6207 incorrectly reject 9223372036854775807. */
6208 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6210 && LARGE_OFF_T % 2147483647 == 1)
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6221 ac_cv_sys_file_offset_bits
=64; break
6223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 ac_cv_sys_file_offset_bits
=unknown
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6229 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6230 case $ac_cv_sys_file_offset_bits in #(
6233 cat >>confdefs.h
<<_ACEOF
6234 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6239 if test $ac_cv_sys_file_offset_bits = unknown
; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6241 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6242 if ${ac_cv_sys_large_files+:} false
; then :
6243 $as_echo_n "(cached) " >&6
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6249 /* Check that off_t can represent 2**63 - 1 correctly.
6250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6251 since some C++ compilers masquerading as C compilers
6252 incorrectly reject 9223372036854775807. */
6253 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6255 && LARGE_OFF_T % 2147483647 == 1)
6265 if ac_fn_c_try_compile
"$LINENO"; then :
6266 ac_cv_sys_large_files
=no
; break
6268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #define _LARGE_FILES 1
6272 #include <sys/types.h>
6273 /* Check that off_t can represent 2**63 - 1 correctly.
6274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6275 since some C++ compilers masquerading as C compilers
6276 incorrectly reject 9223372036854775807. */
6277 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6279 && LARGE_OFF_T % 2147483647 == 1)
6289 if ac_fn_c_try_compile
"$LINENO"; then :
6290 ac_cv_sys_large_files
=1; break
6292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6293 ac_cv_sys_large_files
=unknown
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6298 $as_echo "$ac_cv_sys_large_files" >&6; }
6299 case $ac_cv_sys_large_files in #(
6302 cat >>confdefs.h
<<_ACEOF
6303 #define _LARGE_FILES $ac_cv_sys_large_files
6319 $as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6328 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6329 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6330 $as_echo_n "(cached) " >&6
6333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6343 gl_cv_c_amsterdam_compiler
=yes
6345 gl_cv_c_amsterdam_compiler
=no
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6352 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6354 if test $gl_cv_c_amsterdam_compiler = yes; then
6355 if test -z "$AR"; then
6358 if test -z "$ARFLAGS"; then
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6367 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_AR+:} false
; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -n "$AR"; then
6374 ac_cv_prog_AR
="$AR" # Let the user override the test.
6376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir
=.
6381 for ac_exec_ext
in '' $ac_executable_extensions; do
6382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 if test -n "$AR"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6396 $as_echo "$AR" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_AR"; then
6406 # Extract the first word of "ar", so it can be a program name with args.
6407 set dummy
ar; ac_word
=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_AR"; then
6414 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir
=.
6421 for ac_exec_ext
in '' $ac_executable_extensions; do
6422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_AR
="ar"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6434 if test -n "$ac_ct_AR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6436 $as_echo "$ac_ct_AR" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_AR" = x
; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned
=yes ;;
6457 if test -z "$ARFLAGS"; then
6463 if test -z "$RANLIB"; then
6464 if test $gl_cv_c_amsterdam_compiler = yes; then
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6469 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_RANLIB+:} false
; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$RANLIB"; then
6476 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir
=.
6483 for ac_exec_ext
in '' $ac_executable_extensions; do
6484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 RANLIB
=$ac_cv_prog_RANLIB
6496 if test -n "$RANLIB"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6498 $as_echo "$RANLIB" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6506 if test -z "$ac_cv_prog_RANLIB"; then
6507 ac_ct_RANLIB
=$RANLIB
6508 # Extract the first word of "ranlib", so it can be a program name with args.
6509 set dummy ranlib
; ac_word
=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$ac_ct_RANLIB"; then
6516 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir
=.
6523 for ac_exec_ext
in '' $ac_executable_extensions; do
6524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6536 if test -n "$ac_ct_RANLIB"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6538 $as_echo "$ac_ct_RANLIB" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$ac_ct_RANLIB" = x
; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned
=yes ;;
6553 RANLIB
=$ac_ct_RANLIB
6556 RANLIB
="$ac_cv_prog_RANLIB"
6567 # IEEE behaviour is the default on all CPUs except Alpha and SH
6568 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6569 # and the GCC 4.1.2 manual).
6572 # On Alpha systems, a compiler option provides the behaviour.
6573 # See the ieee(3) manual page, also available at
6574 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6575 if test -n "$GCC"; then
6576 # GCC has the option -mieee.
6577 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6578 CPPFLAGS
="$CPPFLAGS -mieee"
6580 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6581 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6582 CPPFLAGS
="$CPPFLAGS -ieee"
6586 if test -n "$GCC"; then
6587 # GCC has the option -mieee.
6588 CPPFLAGS
="$CPPFLAGS -mieee"
6599 # Check whether --enable-threads was given.
6600 if test "${enable_threads+set}" = set; then :
6601 enableval
=$enable_threads; gl_use_threads
=$enableval
6603 if test -n "$gl_use_threads_default"; then
6604 gl_use_threads
="$gl_use_threads_default"
6607 osf
*) gl_use_threads
=no
;;
6610 1.
[0-5].
*) gl_use_threads
=no
;;
6611 *) gl_use_threads
=yes ;;
6615 case "$gl_use_winpthreads_default" in
6616 yes) gl_use_threads
=posix
;;
6617 no
) gl_use_threads
=windows
;;
6618 *) gl_use_threads
=yes ;;
6621 *) gl_use_threads
=yes ;;
6627 if test "$gl_use_threads" = yes \
6628 ||
test "$gl_use_threads" = isoc \
6629 ||
test "$gl_use_threads" = posix \
6630 ||
test "$gl_use_threads" = isoc
+posix
; then
6631 # For using <threads.h> or <pthread.h>:
6634 if test -z "$gl_anythreadlib_early_done"; then
6637 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6638 # groks <pthread.h>. cc also understands the flag -pthread, but
6639 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6640 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6641 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6642 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6643 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6646 # Some systems optimize for single-threaded programs by default, and
6647 # need special flags to disable these optimizations. For example, the
6648 # definition of 'errno' in <errno.h>.
6650 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6651 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6653 gl_anythreadlib_early_done
=done
6660 # Pre-early section.
6665 # Code from module absolute-header:
6666 # Code from module alloca:
6667 # Code from module alloca-opt:
6668 # Code from module arpa_inet:
6669 # Code from module assure:
6670 # Code from module at-internal:
6671 # Code from module attribute:
6672 # Code from module basename-lgpl:
6673 # Code from module btowc:
6674 # Code from module builtin-expect:
6675 # Code from module c99:
6676 # Code from module canonicalize-lgpl:
6677 # Code from module chdir:
6678 # Code from module chdir-long:
6679 # Code from module clock-time:
6680 # Code from module cloexec:
6681 # Code from module close:
6682 # Code from module closedir:
6683 # Code from module count-one-bits:
6684 # Code from module ctype:
6685 # Code from module d-ino:
6686 # Code from module d-type:
6687 # Code from module dirent:
6688 # Code from module dirfd:
6689 # Code from module dirname-lgpl:
6690 # Code from module double-slash-root:
6691 # Code from module dup:
6692 # Code from module dup2:
6693 # Code from module eloop-threshold:
6694 # Code from module environ:
6695 # Code from module errno:
6696 # Code from module error:
6697 # Code from module exitfail:
6698 # Code from module extensions:
6699 # Code from module extern-inline:
6700 # Code from module fchdir:
6701 # Code from module fcntl:
6702 # Code from module fcntl-h:
6703 # Code from module fd-hook:
6704 # Code from module fd-safer-flag:
6705 # Code from module fdopendir:
6706 # Code from module filename:
6707 # Code from module filenamecat-lgpl:
6708 # Code from module flexmember:
6709 # Code from module float:
6710 # Code from module fnmatch:
6711 # Code from module fnmatch-gnu:
6712 # Code from module fnmatch-h:
6713 # Code from module fpieee:
6715 # Code from module fpucw:
6716 # Code from module free-posix:
6717 # Code from module frexp:
6718 # Code from module frexpl:
6719 # Code from module fstat:
6720 # Code from module fstatat:
6721 # Code from module getcwd:
6722 # Code from module getcwd-lgpl:
6723 # Code from module getdtablesize:
6724 # Code from module getlogin_r:
6725 # Code from module getprogname:
6726 # Code from module getrandom:
6727 # Code from module gettext-h:
6728 # Code from module gettimeofday:
6729 # Code from module gitlog-to-changelog:
6730 # Code from module glob:
6731 # Code from module glob-h:
6732 # Code from module hard-locale:
6733 # Code from module idx:
6734 # Code from module include_next:
6735 # Code from module inet_ntop:
6736 # Code from module intprops:
6737 # Code from module inttypes:
6738 # Code from module inttypes-incomplete:
6739 # Code from module isblank:
6740 # Code from module isnand-nolibm:
6741 # Code from module isnanl-nolibm:
6742 # Code from module largefile:
6744 # Code from module libc-config:
6745 # Code from module limits-h:
6746 # Code from module localcharset:
6747 # Code from module locale:
6748 # Code from module lock:
6749 # Code from module lstat:
6750 # Code from module malloc-posix:
6751 # Code from module malloca:
6752 # Code from module math:
6753 # Code from module mbrtowc:
6754 # Code from module mbsinit:
6755 # Code from module mbsrtowcs:
6756 # Code from module mbtowc:
6757 # Code from module memchr:
6758 # Code from module memmem:
6759 # Code from module memmem-simple:
6760 # Code from module mempcpy:
6761 # Code from module memrchr:
6762 # Code from module minmax:
6763 # Code from module mkdir:
6764 # Code from module mkdtemp:
6765 # Code from module mkostemp:
6766 # Code from module msvc-inval:
6767 # Code from module msvc-nothrow:
6768 # Code from module multiarch:
6769 # Code from module netinet_in:
6770 # Code from module nocrash:
6771 # Code from module open:
6772 # Code from module openat:
6773 # Code from module openat-die:
6774 # Code from module openat-h:
6775 # Code from module opendir:
6776 # Code from module pathmax:
6777 # Code from module pipe-posix:
6778 # Code from module rawmemchr:
6779 # Code from module readdir:
6780 # Code from module readlink:
6781 # Code from module realloc-posix:
6782 # Code from module rename:
6783 # Code from module rewinddir:
6784 # Code from module rmdir:
6785 # Code from module same-inode:
6786 # Code from module save-cwd:
6787 # Code from module scratch_buffer:
6788 # Code from module setenv:
6789 # Code from module setlocale-null:
6790 # Code from module signal-h:
6791 # Code from module snippet/_Noreturn:
6792 # Code from module snippet/arg-nonnull:
6793 # Code from module snippet/c++defs:
6794 # Code from module snippet/warn-on-use:
6795 # Code from module socklen:
6796 # Code from module ssize_t:
6797 # Code from module stat:
6798 # Code from module stat-time:
6799 # Code from module std-gnu11:
6800 # Code from module stdalign:
6801 # Code from module stdbool:
6802 # Code from module stddef:
6803 # Code from module stdint:
6804 # Code from module stdio:
6805 # Code from module stdlib:
6806 # Code from module strchrnul:
6807 # Code from module strdup-posix:
6808 # Code from module streq:
6809 # Code from module strerror:
6810 # Code from module strerror-override:
6811 # Code from module strerror_r-posix:
6812 # Code from module string:
6813 # Code from module strnlen:
6814 # Code from module strnlen1:
6815 # Code from module strstr:
6816 # Code from module strstr-simple:
6817 # Code from module strtok_r:
6818 # Code from module sys_random:
6819 # Code from module sys_socket:
6820 # Code from module sys_stat:
6821 # Code from module sys_time:
6822 # Code from module sys_types:
6823 # Code from module sys_uio:
6824 # Code from module tempname:
6825 # Code from module threadlib:
6829 # Code from module time:
6830 # Code from module time_r:
6831 # Code from module unistd:
6832 # Code from module unistd-safer:
6833 # Code from module unsetenv:
6834 # Code from module update-copyright:
6835 # Code from module verify:
6836 # Code from module wchar:
6837 # Code from module wctype-h:
6838 # Code from module windows-mutex:
6839 # Code from module windows-once:
6840 # Code from module windows-recmutex:
6841 # Code from module windows-rwlock:
6842 # Code from module wmemchr:
6843 # Code from module wmempcpy:
6844 # Code from module xalloc-oversized:
6847 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6851 for ac_dir
in ..
"$srcdir"/..
; do
6852 if test -f "$ac_dir/install-sh"; then
6854 ac_install_sh
="$ac_aux_dir/install-sh -c"
6856 elif test -f "$ac_dir/install.sh"; then
6858 ac_install_sh
="$ac_aux_dir/install.sh -c"
6860 elif test -f "$ac_dir/shtool"; then
6862 ac_install_sh
="$ac_aux_dir/shtool install -c"
6866 if test -z "$ac_aux_dir"; then
6867 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6870 # These three variables are undocumented and unsupported,
6871 # and are intended to be withdrawn in a future Autoconf release.
6872 # They can cause serious problems if a builder's source tree is in a directory
6873 # whose full name contains unusual characters.
6874 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6875 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6876 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6889 # Check whether --enable-cross-guesses was given.
6890 if test "${enable_cross_guesses+set}" = set; then :
6891 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6893 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6894 enableval
=conservative
6896 gl_cross_guesses
="$enableval"
6898 gl_cross_guesses
=conservative
6901 if test $gl_cross_guesses = risky
; then
6902 gl_cross_guess_normal
="guessing yes"
6903 gl_cross_guess_inverted
="guessing no"
6905 gl_cross_guess_normal
="guessing no"
6906 gl_cross_guess_inverted
="guessing yes"
6908 LIBC_FATAL_STDERR_
=1
6909 export LIBC_FATAL_STDERR_
6912 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6913 if test "x$ac_cv_type_size_t" = xyes
; then :
6917 cat >>confdefs.h
<<_ACEOF
6918 #define size_t unsigned int
6923 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6924 # for constant arguments. Useless!
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6926 $as_echo_n "checking for working alloca.h... " >&6; }
6927 if ${ac_cv_working_alloca_h+:} false
; then :
6928 $as_echo_n "(cached) " >&6
6930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6936 char *p = (char *) alloca (2 * sizeof (int));
6942 if ac_fn_c_try_link
"$LINENO"; then :
6943 ac_cv_working_alloca_h
=yes
6945 ac_cv_working_alloca_h
=no
6947 rm -f core conftest.err conftest.
$ac_objext \
6948 conftest
$ac_exeext conftest.
$ac_ext
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6951 $as_echo "$ac_cv_working_alloca_h" >&6; }
6952 if test $ac_cv_working_alloca_h = yes; then
6954 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6959 $as_echo_n "checking for alloca... " >&6; }
6960 if ${ac_cv_func_alloca_works+:} false
; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6966 # define alloca __builtin_alloca
6969 # include <malloc.h>
6970 # define alloca _alloca
6972 # ifdef HAVE_ALLOCA_H
6973 # include <alloca.h>
6978 # ifndef alloca /* predefined by HP cc +Olibcalls */
6979 void *alloca (size_t);
6989 char *p = (char *) alloca (1);
6995 if ac_fn_c_try_link
"$LINENO"; then :
6996 ac_cv_func_alloca_works
=yes
6998 ac_cv_func_alloca_works
=no
7000 rm -f core conftest.err conftest.
$ac_objext \
7001 conftest
$ac_exeext conftest.
$ac_ext
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7004 $as_echo "$ac_cv_func_alloca_works" >&6; }
7006 if test $ac_cv_func_alloca_works = yes; then
7008 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7012 # that cause trouble. Some versions do not even contain alloca or
7013 # contain a buggy version. If you still want to use their alloca,
7014 # use ar to extract alloca.o from them instead of compiling alloca.c.
7020 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7022 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7026 $as_echo_n "checking stack direction for C alloca... " >&6; }
7027 if ${ac_cv_c_stack_direction+:} false
; then :
7028 $as_echo_n "(cached) " >&6
7030 if test "$cross_compiling" = yes; then :
7031 ac_cv_c_stack_direction
=0
7033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 $ac_includes_default
7037 find_stack_direction (int *addr, int depth)
7042 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7043 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7048 main (int argc, char **argv)
7050 return find_stack_direction (0, argc + !argv + 20) < 0;
7053 if ac_fn_c_try_run
"$LINENO"; then :
7054 ac_cv_c_stack_direction
=1
7056 ac_cv_c_stack_direction
=-1
7058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7064 $as_echo "$ac_cv_c_stack_direction" >&6; }
7065 cat >>confdefs.h
<<_ACEOF
7066 #define STACK_DIRECTION $ac_cv_c_stack_direction
7075 HAVE_DECL_INET_NTOP
=1;
7076 HAVE_DECL_INET_PTON
=1;
7077 REPLACE_INET_NTOP
=0;
7078 REPLACE_INET_PTON
=0;
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7085 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7086 if ${gl_cv_have_include_next+:} false
; then :
7087 $as_echo_n "(cached) " >&6
7089 rm -rf conftestd1a conftestd1b conftestd2
7090 mkdir conftestd1a conftestd1b conftestd2
7091 cat <<EOF > conftestd1a/conftest.h
7092 #define DEFINED_IN_CONFTESTD1
7093 #include_next <conftest.h>
7094 #ifdef DEFINED_IN_CONFTESTD2
7097 #error "include_next doesn't work"
7100 cat <<EOF > conftestd1b/conftest.h
7101 #define DEFINED_IN_CONFTESTD1
7103 #include_next <conftest.h>
7104 #ifdef DEFINED_IN_CONFTESTD2
7107 #error "include_next doesn't work"
7110 cat <<EOF > conftestd2/conftest.h
7111 #ifndef DEFINED_IN_CONFTESTD1
7112 #error "include_next test doesn't work"
7114 #define DEFINED_IN_CONFTESTD2
7116 gl_save_CPPFLAGS
="$CPPFLAGS"
7117 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #include <conftest.h>
7122 if ac_fn_c_try_compile
"$LINENO"; then :
7123 gl_cv_have_include_next
=yes
7125 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <conftest.h>
7130 if ac_fn_c_try_compile
"$LINENO"; then :
7131 gl_cv_have_include_next
=buggy
7133 gl_cv_have_include_next
=no
7135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7139 CPPFLAGS
="$gl_save_CPPFLAGS"
7140 rm -rf conftestd1a conftestd1b conftestd2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7144 $as_echo "$gl_cv_have_include_next" >&6; }
7145 PRAGMA_SYSTEM_HEADER
=
7146 if test $gl_cv_have_include_next = yes; then
7147 INCLUDE_NEXT
=include_next
7148 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7149 if test -n "$GCC"; then
7150 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7153 if test $gl_cv_have_include_next = buggy
; then
7154 INCLUDE_NEXT
=include
7155 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7157 INCLUDE_NEXT
=include
7158 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
7166 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
7167 if ${gl_cv_source_line_length_unlimited+:} false
; then :
7168 $as_echo_n "(cached) " >&6
7170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 $EGREP "choke me" >/dev
/null
2>&1; then :
7180 gl_cv_source_line_length_unlimited
=no
7182 gl_cv_source_line_length_unlimited
=yes
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
7189 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
7190 if test $gl_cv_source_line_length_unlimited = no
; then
7191 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7201 if test $ac_cv_header_features_h = yes; then
7211 if test $ac_cv_header_sys_socket_h = no
; then
7212 for ac_header
in ws2tcpip.h
7214 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7215 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7216 cat >>confdefs.h
<<_ACEOF
7217 #define HAVE_WS2TCPIP_H 1
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7227 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7228 if test -z "$MKDIR_P"; then
7229 if ${ac_cv_path_mkdir+:} false
; then :
7230 $as_echo_n "(cached) " >&6
7232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7233 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7236 test -z "$as_dir" && as_dir
=.
7237 for ac_prog
in mkdir gmkdir
; do
7238 for ac_exec_ext
in '' $ac_executable_extensions; do
7239 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7241 'mkdir (GNU coreutils) '* | \
7242 'mkdir (coreutils) '* | \
7243 'mkdir (fileutils) '4.1*)
7244 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7254 test -d .
/--version && rmdir .
/--version
7255 if test "${ac_cv_path_mkdir+set}" = set; then
7256 MKDIR_P
="$ac_cv_path_mkdir -p"
7258 # As a last resort, use the slow shell script. Don't cache a
7259 # value for MKDIR_P within a source directory, because that will
7260 # break other packages using the cache if that directory is
7261 # removed, or if the value is a relative name.
7262 MKDIR_P
="$ac_install_sh -d"
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7266 $as_echo "$MKDIR_P" >&6; }
7275 GNULIB_MBSNRTOWCS
=0;
7278 GNULIB_WCSNRTOMBS
=0;
7296 GNULIB_WCSCASECMP
=0;
7297 GNULIB_WCSNCASECMP
=0;
7310 GNULIB_MDA_WCSDUP
=1;
7352 HAVE_DECL_WCWIDTH
=1;
7353 REPLACE_MBSTATE_T
=0;
7359 REPLACE_MBSRTOWCS
=0;
7360 REPLACE_MBSNRTOWCS
=0;
7362 REPLACE_WCSRTOMBS
=0;
7363 REPLACE_WCSNRTOMBS
=0;
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7372 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7373 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
7374 $as_echo_n "(cached) " >&6
7376 gl_cv_header_wchar_h_correct_inline
=yes
7379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7383 #define wcstod renamed_wcstod
7385 extern int zero (void);
7386 int main () { return zero(); }
7389 save_ac_compile
="$ac_compile"
7390 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
7391 if echo '#include "conftest.c"' >conftest1.c \
7392 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7401 #define wcstod renamed_wcstod
7403 int zero (void) { return 0; }
7406 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
7407 if echo '#include "conftest.c"' >conftest2.c \
7408 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
7416 gl_cv_header_wchar_h_correct_inline
=no
7420 ac_compile
="$save_ac_compile"
7421 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7427 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7428 if test $gl_cv_header_wchar_h_correct_inline = no
; then
7429 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7430 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7431 C99 mode. You have four options:
7432 - Add the flag -fgnu89-inline to CC and reconfigure, or
7433 - Fix your include files, using parts of
7434 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7435 - Use a gcc version older than 4.3, or
7436 - Don't use the flags -std=c99 or -std=gnu99.
7437 Configuration aborted." "$LINENO" 5
7443 for ac_func
in $ac_func_list
7445 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7446 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7447 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7448 cat >>confdefs.h
<<_ACEOF
7449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7459 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7460 if ${am_cv_langinfo_codeset+:} false
; then :
7461 $as_echo_n "(cached) " >&6
7463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <langinfo.h>
7469 char* cs = nl_langinfo(CODESET); return !cs;
7474 if ac_fn_c_try_link
"$LINENO"; then :
7475 am_cv_langinfo_codeset
=yes
7477 am_cv_langinfo_codeset
=no
7479 rm -f core conftest.err conftest.
$ac_objext \
7480 conftest
$ac_exeext conftest.
$ac_ext
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7484 $as_echo "$am_cv_langinfo_codeset" >&6; }
7485 if test $am_cv_langinfo_codeset = yes; then
7487 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7495 $as_echo_n "checking for a traditional french locale... " >&6; }
7496 if ${gt_cv_locale_fr+:} false
; then :
7497 $as_echo_n "(cached) " >&6
7500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7505 #if HAVE_LANGINFO_CODESET
7506 # include <langinfo.h>
7513 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7514 imitates locale dependent behaviour by looking at the environment
7515 variables, and all locales use the UTF-8 encoding. */
7516 #if defined __BEOS__ || defined __HAIKU__
7519 /* Check whether the given locale name is recognized by the system. */
7520 # if defined _WIN32 && !defined __CYGWIN__
7521 /* On native Windows, setlocale(category, "") looks at the system settings,
7522 not at the environment variables. Also, when an encoding suffix such
7523 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7524 category of the locale to "C". */
7525 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7526 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7529 if (setlocale (LC_ALL, "") == NULL) return 1;
7531 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7532 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7533 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7534 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7535 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7536 some unit tests fail.
7537 On MirBSD 10, when an unsupported locale is specified, setlocale()
7538 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7539 # if HAVE_LANGINFO_CODESET
7541 const char *cs = nl_langinfo (CODESET);
7542 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7543 || strcmp (cs, "UTF-8") == 0)
7548 /* On Cygwin, avoid locale names without encoding suffix, because the
7549 locale_charset() function relies on the encoding suffix. Note that
7550 LC_ALL is set on the command line. */
7551 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7553 /* Check whether in the abbreviation of the second month, the second
7554 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7555 one byte long. This excludes the UTF-8 encoding. */
7556 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7557 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7558 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7559 /* Check whether the decimal separator is a comma.
7560 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7561 are nl_langinfo(RADIXCHAR) are both ".". */
7562 if (localeconv () ->decimal_point[0] != ',') return 1;
7569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7570 (eval $ac_link) 2>&5
7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7573 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7575 # Handle native Windows specially, because there setlocale() interprets
7576 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7577 # "fr" or "fra" as "French" or "French_France.1252",
7578 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7579 # "ja" as "Japanese" or "Japanese_Japan.932",
7582 # Test for the native Windows locale name.
7583 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7584 gt_cv_locale_fr
=French_France
.1252
7587 gt_cv_locale_fr
=none
7591 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7592 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7593 # configure script would override the LC_ALL setting. Likewise for
7594 # LC_CTYPE, which is also set at the beginning of the configure script.
7595 # Test for the usual locale name.
7596 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7597 gt_cv_locale_fr
=fr_FR
7599 # Test for the locale name with explicit encoding suffix.
7600 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7601 gt_cv_locale_fr
=fr_FR.ISO-8859-1
7603 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7604 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7605 gt_cv_locale_fr
=fr_FR.ISO8859-1
7607 # Test for the HP-UX locale name.
7608 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7609 gt_cv_locale_fr
=fr_FR.iso88591
7611 # Test for the Solaris 7 locale name.
7612 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7616 gt_cv_locale_fr
=none
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7629 $as_echo "$gt_cv_locale_fr" >&6; }
7630 LOCALE_FR
=$gt_cv_locale_fr
7635 GNULIB_ALIGNED_ALLOC
=0;
7637 GNULIB_CALLOC_POSIX
=0;
7638 GNULIB_CANONICALIZE_FILE_NAME
=0;
7639 GNULIB_FREE_POSIX
=0;
7640 GNULIB_GETLOADAVG
=0;
7643 GNULIB_MALLOC_POSIX
=0;
7650 GNULIB_POSIX_MEMALIGN
=0;
7651 GNULIB_POSIX_OPENPT
=0;
7658 GNULIB_REALLOCARRAY
=0;
7659 GNULIB_REALLOC_POSIX
=0;
7662 GNULIB_SECURE_GETENV
=0;
7668 GNULIB_SYSTEM_POSIX
=0;
7675 GNULIB_MDA_MKTEMP
=1;
7676 GNULIB_MDA_PUTENV
=1;
7678 HAVE_ALIGNED_ALLOC
=1;
7680 HAVE_CANONICALIZE_FILE_NAME
=1;
7684 HAVE_DECL_GETLOADAVG
=1;
7688 HAVE_DECL_INITSTATE
=1;
7695 HAVE_POSIX_MEMALIGN
=1;
7696 HAVE_POSIX_OPENPT
=1;
7703 HAVE_REALLOCARRAY
=1;
7706 HAVE_SECURE_GETENV
=1;
7710 HAVE_DECL_SETSTATE
=1;
7715 HAVE_STRUCT_RANDOM_DATA
=1;
7716 HAVE_SYS_LOADAVG_H
=0;
7718 HAVE_DECL_UNSETENV
=1;
7719 REPLACE_ALIGNED_ALLOC
=0;
7721 REPLACE_CANONICALIZE_FILE_NAME
=0;
7723 REPLACE_INITSTATE
=0;
7727 REPLACE_POSIX_MEMALIGN
=0;
7729 REPLACE_PTSNAME_R
=0;
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
7745 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7746 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
7747 $as_echo_n "(cached) " >&6
7749 rm -f conftest.sym conftest.
file
7751 if test "$cross_compiling" = yes; then :
7754 # Guess yes on Linux systems.
7755 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7757 # Guess yes on glibc systems.
7758 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7760 # Guess no on native Windows.
7761 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
7763 # If we don't know, obey --enable-cross-guesses.
7764 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
7768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 $ac_includes_default
7775 if (symlink ("conftest.file", "conftest.sym") != 0)
7777 /* Linux will dereference the symlink and fail, as required by
7778 POSIX. That is better in the sense that it means we will not
7779 have to compile and use the lstat wrapper. */
7780 return lstat ("conftest.sym/", &sbuf) == 0;
7786 if ac_fn_c_try_run
"$LINENO"; then :
7787 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
7789 gl_cv_func_lstat_dereferences_slashed_symlink
=no
7791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7795 rm -f conftest.sym conftest.
file
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
7799 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7800 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
7803 cat >>confdefs.h
<<_ACEOF
7804 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7817 $as_echo_n "checking whether // is distinct from /... " >&6; }
7818 if ${gl_cv_double_slash_root+:} false
; then :
7819 $as_echo_n "(cached) " >&6
7821 if test x
"$cross_compiling" = xyes
; then
7822 # When cross-compiling, there is no way to tell whether // is special
7823 # short of a list of hosts. However, the only known hosts to date
7824 # that have a distinct // are Apollo DomainOS (too old to port to),
7825 # Cygwin, and z/OS. If anyone knows of another system for which // has
7826 # special semantics and is distinct from /, please report it to
7827 # <bug-gnulib@gnu.org>.
7829 *-cygwin | i370-ibm-openedition
)
7830 gl_cv_double_slash_root
=yes ;;
7832 # Be optimistic and assume that / and // are the same when we
7834 gl_cv_double_slash_root
='unknown, assuming no' ;;
7837 set x
`ls -di / // 2>/dev/null`
7838 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7839 gl_cv_double_slash_root
=no
7841 gl_cv_double_slash_root
=yes
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7846 $as_echo "$gl_cv_double_slash_root" >&6; }
7847 if test "$gl_cv_double_slash_root" = yes; then
7849 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7858 $as_echo_n "checking whether realpath works... " >&6; }
7859 if ${gl_cv_func_realpath_works+:} false
; then :
7860 $as_echo_n "(cached) " >&6
7863 rm -rf conftest.a conftest.d
7866 if test "$cross_compiling" = yes; then :
7868 # Guess yes on glibc systems.
7869 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7870 # Guess yes on musl systems.
7871 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7872 # Guess no on native Windows.
7873 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7874 # If we don't know, obey --enable-cross-guesses.
7875 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7885 #if defined __MACH__ && defined __APPLE__
7886 /* Avoid a crash on Mac OS X. */
7887 #include <mach/mach.h>
7888 #include <mach/mach_error.h>
7889 #include <mach/thread_status.h>
7890 #include <mach/exception.h>
7891 #include <mach/task.h>
7892 #include <pthread.h>
7893 /* The exception port on which our thread listens. */
7894 static mach_port_t our_exception_port;
7895 /* The main function of the thread listening for exceptions of type
7898 mach_exception_thread (void *arg)
7900 /* Buffer for a message to be received. */
7902 mach_msg_header_t head;
7903 mach_msg_body_t msgh_body;
7906 mach_msg_return_t retval;
7907 /* Wait for a message on the exception port. */
7908 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7909 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7910 if (retval != MACH_MSG_SUCCESS)
7917 mach_port_t self = mach_task_self ();
7918 /* Allocate a port on which the thread shall listen for exceptions. */
7919 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7921 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7922 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7923 MACH_MSG_TYPE_MAKE_SEND)
7925 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7927 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7928 /* Create the thread listening on the exception port. */
7929 pthread_attr_t attr;
7931 if (pthread_attr_init (&attr) == 0
7932 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7933 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7934 pthread_attr_destroy (&attr);
7935 /* Replace the exception port info for these exceptions with our own.
7936 Note that we replace the exception port for the entire task, not only
7937 for a particular thread. This has the effect that when our exception
7938 port gets the message, the thread specific exception port has already
7939 been asked, and we don't need to bother about it.
7940 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7941 task_set_exception_ports (self, mask, our_exception_port,
7942 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7947 #elif defined _WIN32 && ! defined __CYGWIN__
7948 /* Avoid a crash on native Windows. */
7949 #define WIN32_LEAN_AND_MEAN
7950 #include <windows.h>
7951 #include <winerror.h>
7953 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7955 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7957 case EXCEPTION_ACCESS_VIOLATION:
7958 case EXCEPTION_IN_PAGE_ERROR:
7959 case EXCEPTION_STACK_OVERFLOW:
7960 case EXCEPTION_GUARD_PAGE:
7961 case EXCEPTION_PRIV_INSTRUCTION:
7962 case EXCEPTION_ILLEGAL_INSTRUCTION:
7963 case EXCEPTION_DATATYPE_MISALIGNMENT:
7964 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7965 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7968 return EXCEPTION_CONTINUE_SEARCH;
7973 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7976 /* Avoid a crash on POSIX systems. */
7979 /* A POSIX signal handler. */
7981 exception_handler (int sig)
7989 signal (SIGSEGV, exception_handler);
7992 signal (SIGBUS, exception_handler);
8006 char *name = realpath ("conftest.a", NULL);
8007 if (!(name && *name == '/'))
8012 char *name = realpath ("conftest.b/../conftest.a", NULL);
8018 char *name = realpath ("conftest.a/", NULL);
8024 char *name1 = realpath (".", NULL);
8025 char *name2 = realpath ("conftest.d//./..", NULL);
8026 if (! name1 || ! name2 || strcmp (name1, name2))
8038 if ac_fn_c_try_run
"$LINENO"; then :
8039 gl_cv_func_realpath_works
=yes
8041 gl_cv_func_realpath_works
=no
8043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8047 rm -rf conftest.a conftest.d
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
8051 $as_echo "$gl_cv_func_realpath_works" >&6; }
8052 case "$gl_cv_func_realpath_works" in
8055 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
8070 *) for ac_func
in getcwd
8072 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
8073 if test "x$ac_cv_func_getcwd" = xyes
; then :
8074 cat >>confdefs.h
<<_ACEOF
8075 #define HAVE_GETCWD 1
8092 GNULIB_COPY_FILE_RANGE
=0;
8097 GNULIB_EUIDACCESS
=0;
8112 GNULIB_GETDOMAINNAME
=0;
8113 GNULIB_GETDTABLESIZE
=0;
8114 GNULIB_GETENTROPY
=0;
8116 GNULIB_GETHOSTNAME
=0;
8118 GNULIB_GETLOGIN_R
=0;
8119 GNULIB_GETOPT_POSIX
=0;
8120 GNULIB_GETPAGESIZE
=0;
8122 GNULIB_GETUSERSHELL
=0;
8123 GNULIB_GROUP_MEMBER
=0;
8135 GNULIB_READLINKAT
=0;
8137 GNULIB_SETHOSTNAME
=0;
8143 GNULIB_UNISTD_H_NONBLOCKING
=0;
8144 GNULIB_UNISTD_H_SIGPIPE
=0;
8149 GNULIB_MDA_ACCESS
=1;
8155 GNULIB_MDA_EXECLE
=1;
8156 GNULIB_MDA_EXECLP
=1;
8158 GNULIB_MDA_EXECVE
=1;
8159 GNULIB_MDA_EXECVP
=1;
8160 GNULIB_MDA_EXECVPE
=1;
8161 GNULIB_MDA_GETCWD
=1;
8162 GNULIB_MDA_GETPID
=1;
8163 GNULIB_MDA_ISATTY
=1;
8168 GNULIB_MDA_UNLINK
=1;
8171 HAVE_COPY_FILE_RANGE
=1;
8181 HAVE_GETDTABLESIZE
=1;
8188 HAVE_GROUP_MEMBER
=1;
8204 HAVE_DECL_ENVIRON
=1;
8205 HAVE_DECL_EXECVPE
=1;
8207 HAVE_DECL_FDATASYNC
=1;
8208 HAVE_DECL_GETDOMAINNAME
=1;
8209 HAVE_DECL_GETLOGIN
=1;
8210 HAVE_DECL_GETLOGIN_R
=1;
8211 HAVE_DECL_GETPAGESIZE
=1;
8212 HAVE_DECL_GETUSERSHELL
=1;
8213 HAVE_DECL_SETHOSTNAME
=1;
8214 HAVE_DECL_TRUNCATE
=1;
8215 HAVE_DECL_TTYNAME_R
=1;
8230 REPLACE_FACCESSAT
=0;
8232 REPLACE_FTRUNCATE
=0;
8234 REPLACE_GETDOMAINNAME
=0;
8235 REPLACE_GETDTABLESIZE
=0;
8236 REPLACE_GETLOGIN_R
=0;
8237 REPLACE_GETGROUPS
=0;
8238 REPLACE_GETPAGESIZE
=0;
8249 REPLACE_READLINKAT
=0;
8253 REPLACE_SYMLINKAT
=0;
8255 REPLACE_TTYNAME_R
=0;
8260 UNISTD_H_HAVE_SYS_RANDOM_H
=0;
8261 UNISTD_H_HAVE_WINSOCK2_H
=0;
8262 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8274 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8275 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
8277 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8280 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
8300 HAVE_DECL_FDOPENDIR
=1;
8307 REPLACE_FDOPENDIR
=0;
8316 #if defined _WIN32 && !defined __CYGWIN__
8317 #define access _access
8318 #define chdir _chdir
8319 #define chmod _chmod
8320 #define close _close
8321 #define creat _creat
8325 #define execl _execl
8326 #define execle _execle
8327 #define execlp _execlp
8328 #define execv _execv
8329 #define execve _execve
8330 #define execvp _execvp
8331 #define execvpe _execvpe
8332 #define fcloseall _fcloseall
8334 #define fdopen _fdopen
8335 #define fileno _fileno
8337 #define getcwd _getcwd
8338 #define getpid _getpid
8340 #define isatty _isatty
8344 #define lfind _lfind
8345 #define lsearch _lsearch
8346 #define lseek _lseek
8347 #define memccpy _memccpy
8348 #define mkdir _mkdir
8349 #define mktemp _mktemp
8351 #define putenv _putenv
8354 #define rmdir _rmdir
8355 #define strdup _strdup
8357 #define tempnam _tempnam
8358 #define tzset _tzset
8359 #define umask _umask
8360 #define unlink _unlink
8361 #define utime _utime
8362 #define wcsdup _wcsdup
8363 #define write _write
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8378 $as_echo_n "checking if environ is properly declared... " >&6; }
8379 if ${gt_cv_var_environ_declaration+:} false
; then :
8380 $as_echo_n "(cached) " >&6
8382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8387 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8390 extern struct { int foo; } environ;
8399 if ac_fn_c_try_compile
"$LINENO"; then :
8400 gt_cv_var_environ_declaration
=no
8402 gt_cv_var_environ_declaration
=yes
8404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8407 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8408 if test $gt_cv_var_environ_declaration = yes; then
8410 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8415 if test $gt_cv_var_environ_declaration != yes; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8422 $as_echo_n "checking for complete errno.h... " >&6; }
8423 if ${gl_cv_header_errno_h_complete+:} false
; then :
8424 $as_echo_n "(cached) " >&6
8427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8431 #if !defined ETXTBSY
8440 #if !defined ENOLINK
8446 #if !defined EMULTIHOP
8449 #if !defined EBADMSG
8452 #if !defined EOVERFLOW
8455 #if !defined ENOTSUP
8458 #if !defined ENETRESET
8461 #if !defined ECONNABORTED
8470 #if !defined ECANCELED
8473 #if !defined EOWNERDEAD
8476 #if !defined ENOTRECOVERABLE
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "booboo" >/dev
/null
2>&1; then :
8486 gl_cv_header_errno_h_complete
=no
8488 gl_cv_header_errno_h_complete
=yes
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8495 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8496 if test $gl_cv_header_errno_h_complete = yes; then
8507 if test $gl_cv_have_include_next = yes; then
8508 gl_cv_next_errno_h
='<'errno.h
'>'
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8511 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8512 if ${gl_cv_next_errno_h+:} false
; then :
8513 $as_echo_n "(cached) " >&6
8518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8523 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8524 *) gl_absname_cpp
="$ac_cpp" ;;
8529 gl_dirsep_regex
='[/\\]'
8532 gl_dirsep_regex
='\/'
8535 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8536 gl_header_literal_regex
=`echo 'errno.h' \
8537 | sed -e "$gl_make_literal_regex_sed"`
8538 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8539 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8545 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8546 sed -n "$gl_absolute_header_sed"`
8548 gl_header
=$gl_cv_absolute_errno_h
8549 gl_cv_next_errno_h
='"'$gl_header'"'
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8554 $as_echo "$gl_cv_next_errno_h" >&6; }
8556 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8558 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8560 gl_next_as_first_directive
='<'errno.h
'>'
8562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8563 gl_next_as_first_directive
=$gl_cv_next_errno_h
8565 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8573 if test -n "$ERRNO_H"; then
8574 GL_GENERATE_ERRNO_H_TRUE
=
8575 GL_GENERATE_ERRNO_H_FALSE
='#'
8577 GL_GENERATE_ERRNO_H_TRUE
='#'
8578 GL_GENERATE_ERRNO_H_FALSE
=
8582 if test -n "$ERRNO_H"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8584 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8585 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8586 $as_echo_n "(cached) " >&6
8589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8599 $EGREP "yes" >/dev
/null
2>&1; then :
8600 gl_cv_header_errno_h_EMULTIHOP
=yes
8602 gl_cv_header_errno_h_EMULTIHOP
=no
8606 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8610 #define _XOPEN_SOURCE_EXTENDED 1
8617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8618 $EGREP "yes" >/dev
/null
2>&1; then :
8619 gl_cv_header_errno_h_EMULTIHOP
=hidden
8623 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8624 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8625 #define _XOPEN_SOURCE_EXTENDED 1
8627 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8639 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8640 case $gl_cv_header_errno_h_EMULTIHOP in
8642 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8645 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8653 if test -n "$ERRNO_H"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8655 $as_echo_n "checking for ENOLINK value... " >&6; }
8656 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8657 $as_echo_n "(cached) " >&6
8660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8670 $EGREP "yes" >/dev
/null
2>&1; then :
8671 gl_cv_header_errno_h_ENOLINK
=yes
8673 gl_cv_header_errno_h_ENOLINK
=no
8677 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8681 #define _XOPEN_SOURCE_EXTENDED 1
8688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8689 $EGREP "yes" >/dev
/null
2>&1; then :
8690 gl_cv_header_errno_h_ENOLINK
=hidden
8694 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8695 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8696 #define _XOPEN_SOURCE_EXTENDED 1
8698 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8710 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8711 case $gl_cv_header_errno_h_ENOLINK in
8713 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8716 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8724 if test -n "$ERRNO_H"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8726 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8727 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8728 $as_echo_n "(cached) " >&6
8731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8741 $EGREP "yes" >/dev
/null
2>&1; then :
8742 gl_cv_header_errno_h_EOVERFLOW
=yes
8744 gl_cv_header_errno_h_EOVERFLOW
=no
8748 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8752 #define _XOPEN_SOURCE_EXTENDED 1
8759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8760 $EGREP "yes" >/dev
/null
2>&1; then :
8761 gl_cv_header_errno_h_EOVERFLOW
=hidden
8765 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8766 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8767 #define _XOPEN_SOURCE_EXTENDED 1
8769 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8781 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8782 case $gl_cv_header_errno_h_EOVERFLOW in
8784 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8787 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8795 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8796 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8802 cat >>confdefs.h
<<_ACEOF
8803 #define HAVE_DECL_STRERROR_R $ac_have_decl
8806 for ac_func
in strerror_r
8808 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8809 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8810 cat >>confdefs.h
<<_ACEOF
8811 #define HAVE_STRERROR_R 1
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8818 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8819 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8820 $as_echo_n "(cached) " >&6
8823 ac_cv_func_strerror_r_char_p
=no
8824 if test $ac_cv_have_decl_strerror_r = yes; then
8825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 $ac_includes_default
8833 char x = *strerror_r (0, buf, sizeof buf);
8834 char *p = strerror_r (0, buf, sizeof buf);
8841 if ac_fn_c_try_compile
"$LINENO"; then :
8842 ac_cv_func_strerror_r_char_p
=yes
8844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8846 # strerror_r is not declared. Choose between
8847 # systems that have relatively inaccessible declarations for the
8848 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8849 # former has a strerror_r that returns char*, while the latter
8850 # has a strerror_r that returns `int'.
8851 # This test should segfault on the DEC system.
8852 if test "$cross_compiling" = yes; then :
8855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 $ac_includes_default
8858 extern char *strerror_r ();
8863 char x = *strerror_r (0, buf, sizeof buf);
8864 return ! isalpha (x);
8869 if ac_fn_c_try_run
"$LINENO"; then :
8870 ac_cv_func_strerror_r_char_p
=yes
8872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8880 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8881 if test $ac_cv_func_strerror_r_char_p = yes; then
8883 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8890 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8891 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8897 cat >>confdefs.h
<<_ACEOF
8898 #define HAVE_DECL_FCHDIR $ac_have_decl
8904 GNULIB_NONBLOCKING
=0;
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8926 $as_echo_n "checking for working fcntl.h... " >&6; }
8927 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8928 $as_echo_n "(cached) " >&6
8930 if test "$cross_compiling" = yes; then :
8932 # Guess 'no' on native Windows.
8933 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8934 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 #include <sys/types.h>
8941 #include <sys/stat.h>
8943 # include <unistd.h>
8944 #else /* on Windows with MSVC */
8946 # include <stdlib.h>
8947 # defined sleep(n) _sleep ((n) * 1000)
8958 #define O_NOFOLLOW 0
8960 static int const constants[] =
8962 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8963 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8970 int result = !constants;
8973 static char const sym[] = "conftest.sym";
8974 if (symlink ("/dev/null", sym) != 0)
8978 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8985 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8989 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9000 static char const file[] = "confdefs.h";
9001 int fd = open (file, O_RDONLY | O_NOATIME);
9007 if (fstat (fd, &st0) != 0)
9013 if (read (fd, &c, 1) != 1)
9017 if (close (fd) != 0)
9022 if (stat (file, &st1) != 0)
9025 if (st0.st_atime != st1.st_atime)
9037 if ac_fn_c_try_run
"$LINENO"; then :
9038 gl_cv_header_working_fcntl_h
=yes
9041 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
9042 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
9043 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9044 *) gl_cv_header_working_fcntl_h
='no';;
9047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9054 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9056 case $gl_cv_header_working_fcntl_h in #(
9057 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
9061 cat >>confdefs.h
<<_ACEOF
9062 #define HAVE_WORKING_O_NOATIME $ac_val
9066 case $gl_cv_header_working_fcntl_h in #(
9067 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
9071 cat >>confdefs.h
<<_ACEOF
9072 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9077 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9079 if test "x$ac_cv_type_pid_t" = xyes
; then :
9082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9085 #if defined _WIN64 && !defined __CYGWIN__
9098 if ac_fn_c_try_compile
"$LINENO"; then :
9101 gl_pid_type
='__int64'
9103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9105 cat >>confdefs.h
<<_ACEOF
9106 #define pid_t $gl_pid_type
9113 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9114 if test "x$ac_cv_type_mode_t" = xyes
; then :
9118 cat >>confdefs.h
<<_ACEOF
9148 if test $gl_cv_have_include_next = yes; then
9149 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
9152 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
9153 if ${gl_cv_next_fnmatch_h+:} false
; then :
9154 $as_echo_n "(cached) " >&6
9157 if test $ac_cv_header_fnmatch_h = yes; then
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <fnmatch.h>
9167 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9168 *) gl_absname_cpp
="$ac_cpp" ;;
9173 gl_dirsep_regex
='[/\\]'
9176 gl_dirsep_regex
='\/'
9179 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9180 gl_header_literal_regex
=`echo 'fnmatch.h' \
9181 | sed -e "$gl_make_literal_regex_sed"`
9182 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9189 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9190 sed -n "$gl_absolute_header_sed"`
9192 gl_header
=$gl_cv_absolute_fnmatch_h
9193 gl_cv_next_fnmatch_h
='"'$gl_header'"'
9195 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
9201 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
9203 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
9205 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9207 gl_next_as_first_directive
='<'fnmatch.h
'>'
9209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9210 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
9212 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
9220 if test $ac_cv_header_fnmatch_h = yes; then
9231 if test $ac_cv_header_fnmatch_h != yes; then
9237 if test -n "$FNMATCH_H"; then
9238 GL_GENERATE_FNMATCH_H_TRUE
=
9239 GL_GENERATE_FNMATCH_H_FALSE
='#'
9241 GL_GENERATE_FNMATCH_H_TRUE
='#'
9242 GL_GENERATE_FNMATCH_H_FALSE
=
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
9255 $as_echo_n "checking for mbstate_t... " >&6; }
9256 if ${ac_cv_type_mbstate_t+:} false
; then :
9257 $as_echo_n "(cached) " >&6
9259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 $ac_includes_default
9266 mbstate_t x; return sizeof x;
9271 if ac_fn_c_try_compile
"$LINENO"; then :
9272 ac_cv_type_mbstate_t
=yes
9274 ac_cv_type_mbstate_t
=no
9276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
9279 $as_echo "$ac_cv_type_mbstate_t" >&6; }
9280 if test $ac_cv_type_mbstate_t = yes; then
9282 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
9286 $as_echo "#define mbstate_t int" >>confdefs.h
9368 GNULIB_REMAINDERF
=0;
9369 GNULIB_REMAINDERL
=0;
9461 HAVE_DECL_COPYSIGNF
=1;
9478 HAVE_DECL_REMAINDER
=1;
9479 HAVE_DECL_REMAINDERL
=1;
9551 REPLACE_REMAINDER
=0;
9552 REPLACE_REMAINDERF
=0;
9553 REPLACE_REMAINDERL
=0;
9559 REPLACE_SIGNBIT_USING_BUILTINS
=0;
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9572 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9573 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9574 $as_echo_n "(cached) " >&6
9577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9584 int e; return frexp (x, &e) > 0;
9589 if ac_fn_c_try_link
"$LINENO"; then :
9590 gl_cv_func_frexp_no_libm
=yes
9592 gl_cv_func_frexp_no_libm
=no
9594 rm -f core conftest.err conftest.
$ac_objext \
9595 conftest
$ac_exeext conftest.
$ac_ext
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9599 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9601 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9602 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9608 cat >>confdefs.h
<<_ACEOF
9609 #define HAVE_DECL_ALARM $ac_have_decl
9616 if test $gl_cv_func_frexp_no_libm = no
; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9618 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9619 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9620 $as_echo_n "(cached) " >&6
9625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9632 int e; return frexp (x, &e) > 0;
9637 if ac_fn_c_try_link
"$LINENO"; then :
9638 gl_cv_func_frexp_in_libm
=yes
9640 gl_cv_func_frexp_in_libm
=no
9642 rm -f core conftest.err conftest.
$ac_objext \
9643 conftest
$ac_exeext conftest.
$ac_ext
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9648 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9649 if test $gl_cv_func_frexp_in_libm = yes; then
9653 if test $gl_cv_func_frexp_no_libm = yes \
9654 ||
test $gl_cv_func_frexp_in_libm = yes; then
9656 LIBS
="$LIBS $FREXP_LIBM"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9661 $as_echo_n "checking whether frexp works... " >&6; }
9662 if ${gl_cv_func_frexp_works+:} false
; then :
9663 $as_echo_n "(cached) " >&6
9666 if test "$cross_compiling" = yes; then :
9668 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9669 mingw
*) # Guess yes with MSVC, no with mingw.
9670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9679 $EGREP "Good" >/dev
/null
2>&1; then :
9680 gl_cv_func_frexp_works
="guessing yes"
9682 gl_cv_func_frexp_works
="guessing no"
9687 *) gl_cv_func_frexp_works
="guessing yes" ;;
9691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9698 # include <signal.h>
9699 # include <unistd.h>
9701 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9702 ICC 10.0 has a bug when optimizing the expression -zero.
9703 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9704 to PowerPC on Mac OS X 10.5. */
9705 #if defined __hpux || defined __sgi || defined __ICC
9707 compute_minus_zero (void)
9709 return -DBL_MIN * DBL_MIN;
9711 # define minus_zero compute_minus_zero ()
9713 double minus_zero = -0.0;
9722 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9723 number. Let the test fail in this case. */
9724 signal (SIGALRM, SIG_DFL);
9727 /* Test on denormalized numbers. */
9728 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9733 double y = frexp (x, &exp);
9734 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9735 On NetBSD: y = 0.75. Correct: y = 0.5. */
9739 /* Test on infinite numbers. */
9743 double y = frexp (x, &exp);
9747 /* Test on negative zero. */
9751 double y = frexp (x, &exp);
9752 if (memcmp (&y, &x, sizeof x))
9758 if ac_fn_c_try_run
"$LINENO"; then :
9759 gl_cv_func_frexp_works
=yes
9761 gl_cv_func_frexp_works
=no
9763 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9764 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9770 $as_echo "$gl_cv_func_frexp_works" >&6; }
9773 case "$gl_cv_func_frexp_works" in
9774 *yes) gl_func_frexp
=yes ;;
9775 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9780 if test $gl_func_frexp = yes; then
9782 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9789 $as_echo_n "checking whether long double and double are the same... " >&6; }
9790 if ${gl_cv_long_double_equals_double+:} false
; then :
9791 $as_echo_n "(cached) " >&6
9793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9799 typedef int check[sizeof (long double) == sizeof (double)
9800 && LDBL_MANT_DIG == DBL_MANT_DIG
9801 && LDBL_MAX_EXP == DBL_MAX_EXP
9802 && LDBL_MIN_EXP == DBL_MIN_EXP
9809 if ac_fn_c_try_compile
"$LINENO"; then :
9810 gl_cv_long_double_equals_double
=yes
9812 gl_cv_long_double_equals_double
=no
9814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9818 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9819 if test $gl_cv_long_double_equals_double = yes; then
9821 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9823 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9825 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9835 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9837 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9845 if test $HAVE_DECL_FREXPL = 1; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9848 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9849 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9850 $as_echo_n "(cached) " >&6
9853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9860 int e; return frexpl (x, &e) > 0;
9865 if ac_fn_c_try_link
"$LINENO"; then :
9866 gl_cv_func_frexpl_no_libm
=yes
9868 gl_cv_func_frexpl_no_libm
=no
9870 rm -f core conftest.err conftest.
$ac_objext \
9871 conftest
$ac_exeext conftest.
$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9875 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9877 if test $gl_cv_func_frexpl_no_libm = no
; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9879 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9880 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9881 $as_echo_n "(cached) " >&6
9886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9893 int e; return frexpl (x, &e) > 0;
9898 if ac_fn_c_try_link
"$LINENO"; then :
9899 gl_cv_func_frexpl_in_libm
=yes
9901 gl_cv_func_frexpl_in_libm
=no
9903 rm -f core conftest.err conftest.
$ac_objext \
9904 conftest
$ac_exeext conftest.
$ac_ext
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9909 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9910 if test $gl_cv_func_frexpl_in_libm = yes; then
9914 if test $gl_cv_func_frexpl_no_libm = yes \
9915 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9917 LIBS
="$LIBS $FREXPL_LIBM"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9921 $as_echo_n "checking whether frexpl works... " >&6; }
9922 if ${gl_cv_func_frexpl_works+:} false
; then :
9923 $as_echo_n "(cached) " >&6
9926 if test "$cross_compiling" = yes; then :
9929 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9930 gl_cv_func_frexpl_works
="guessing no";;
9931 *) gl_cv_func_frexpl_works
="guessing yes";;
9935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9940 /* Override the values of <float.h>, like done in float.in.h. */
9941 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9942 # undef LDBL_MIN_EXP
9943 # define LDBL_MIN_EXP (-16381)
9945 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9946 # undef LDBL_MIN_EXP
9947 # define LDBL_MIN_EXP (-16381)
9949 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9950 # undef LDBL_MIN_EXP
9951 # define LDBL_MIN_EXP DBL_MIN_EXP
9953 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9954 # if defined __GNUC__
9955 # undef LDBL_MIN_EXP
9956 # define LDBL_MIN_EXP DBL_MIN_EXP
9963 long double frexpl (long double, int *);
9964 long double zero = 0.0L;
9968 volatile long double x;
9969 /* Test on finite numbers that fails on AIX 5.1. */
9977 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9978 function returns an invalid (incorrectly normalized) value: it returns
9979 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9980 but the correct result is
9981 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9985 long double y = frexpl (x, &exp);
9986 if (!(exp == 1 && y == 0.505L))
9989 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9990 LDBL_MAX_EXP = 16384.
9991 In the loop end test, we test x against Infinity, rather than comparing
9992 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9995 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10006 /* Test on denormalized numbers. */
10009 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10014 long double y = frexpl (x, &exp);
10015 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10016 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10017 if (exp != LDBL_MIN_EXP - 1)
10021 /* Test on infinite numbers. */
10022 /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
10026 long double y = frexpl (x, &exp);
10033 if ac_fn_c_try_run
"$LINENO"; then :
10034 gl_cv_func_frexpl_works
=yes
10036 gl_cv_func_frexpl_works
=no
10038 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10039 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10045 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10048 case "$gl_cv_func_frexpl_works" in
10049 *yes) gl_func_frexpl
=yes ;;
10050 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
10055 if test $gl_func_frexpl = yes; then
10057 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10061 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
10062 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10064 FREXPL_LIBM
="$FREXP_LIBM"
10086 GNULIB_UTIMENSAT
=0;
10087 GNULIB_OVERRIDES_STRUCT_STAT
=0;
10088 GNULIB_MDA_CHMOD
=1;
10089 GNULIB_MDA_MKDIR
=1;
10090 GNULIB_MDA_UMASK
=1;
10103 REPLACE_FCHMODAT
=0;
10106 REPLACE_FUTIMENS
=0;
10110 REPLACE_MKFIFOAT
=0;
10114 REPLACE_UTIMENSAT
=0;
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10117 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10118 if ${ac_cv_header_stat_broken+:} false
; then :
10119 $as_echo_n "(cached) " >&6
10121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123 #include <sys/types.h>
10124 #include <sys/stat.h>
10126 #if defined S_ISBLK && defined S_IFDIR
10127 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10130 #if defined S_ISBLK && defined S_IFCHR
10131 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10134 #if defined S_ISLNK && defined S_IFREG
10135 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10138 #if defined S_ISSOCK && defined S_IFREG
10139 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10143 if ac_fn_c_try_compile
"$LINENO"; then :
10144 ac_cv_header_stat_broken
=no
10146 ac_cv_header_stat_broken
=yes
10148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10151 $as_echo "$ac_cv_header_stat_broken" >&6; }
10152 if test $ac_cv_header_stat_broken = yes; then
10154 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10165 $as_echo_n "checking for 64-bit off_t... " >&6; }
10166 if ${gl_cv_type_off_t_64+:} false
; then :
10167 $as_echo_n "(cached) " >&6
10169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 #include <sys/types.h>
10172 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10182 if ac_fn_c_try_compile
"$LINENO"; then :
10183 gl_cv_type_off_t_64
=yes
10185 gl_cv_type_off_t_64
=no
10187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10191 $as_echo "$gl_cv_type_off_t_64" >&6; }
10192 if test $gl_cv_type_off_t_64 = no
; then
10193 WINDOWS_64_BIT_OFF_T
=1
10195 WINDOWS_64_BIT_OFF_T
=0
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10198 $as_echo_n "checking for 64-bit st_size... " >&6; }
10199 if ${gl_cv_member_st_size_64+:} false
; then :
10200 $as_echo_n "(cached) " >&6
10202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 #include <sys/types.h>
10206 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10216 if ac_fn_c_try_compile
"$LINENO"; then :
10217 gl_cv_member_st_size_64
=yes
10219 gl_cv_member_st_size_64
=no
10221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10225 $as_echo "$gl_cv_member_st_size_64" >&6; }
10226 if test $gl_cv_member_st_size_64 = no
; then
10227 WINDOWS_64_BIT_ST_SIZE
=1
10229 WINDOWS_64_BIT_ST_SIZE
=0
10233 WINDOWS_64_BIT_OFF_T
=0
10234 WINDOWS_64_BIT_ST_SIZE
=0
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10239 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10240 if ${ac_cv_c_restrict+:} false
; then :
10241 $as_echo_n "(cached) " >&6
10243 ac_cv_c_restrict
=no
10244 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
10245 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
10246 # Put 'restrict' last, because C++ lacks it.
10247 for ac_kw
in __restrict__ __restrict _Restrict restrict
; do
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250 typedef int *int_ptr;
10251 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10252 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10253 int bar (int ip[$ac_kw]) { return ip[0]; }
10261 return foo (t) + bar (t);
10267 if ac_fn_c_try_compile
"$LINENO"; then :
10268 ac_cv_c_restrict
=$ac_kw
10270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10271 test "$ac_cv_c_restrict" != no
&& break
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10276 $as_echo "$ac_cv_c_restrict" >&6; }
10278 case $ac_cv_c_restrict in
10280 no
) $as_echo "#define restrict /**/" >>confdefs.h
10282 *) cat >>confdefs.h
<<_ACEOF
10283 #define restrict $ac_cv_c_restrict
10302 if test $gl_cv_have_include_next = yes; then
10303 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10306 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10307 if ${gl_cv_next_sys_stat_h+:} false
; then :
10308 $as_echo_n "(cached) " >&6
10311 if test $ac_cv_header_sys_stat_h = yes; then
10316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 #include <sys/stat.h>
10321 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10322 *) gl_absname_cpp
="$ac_cpp" ;;
10327 gl_dirsep_regex
='[/\\]'
10330 gl_dirsep_regex
='\/'
10333 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10334 gl_header_literal_regex
=`echo 'sys/stat.h' \
10335 | sed -e "$gl_make_literal_regex_sed"`
10336 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10337 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10343 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10344 sed -n "$gl_absolute_header_sed"`
10346 gl_header
=$gl_cv_absolute_sys_stat_h
10347 gl_cv_next_sys_stat_h
='"'$gl_header'"'
10349 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10355 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10357 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
10359 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10361 gl_next_as_first_directive
='<'sys
/stat.h
'>'
10363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10364 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
10366 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
10375 WINDOWS_STAT_TIMESPEC
=0
10384 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10385 #include <sys/stat.h>
10387 if test "x$ac_cv_type_nlink_t" = xyes
; then :
10391 $as_echo "#define nlink_t int" >>confdefs.h
10406 for ac_header
in sdkddkver.h
10408 ac_fn_c_check_header_mongrel
"$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
10409 if test "x$ac_cv_header_sdkddkver_h" = xyes
; then :
10410 cat >>confdefs.h
<<_ACEOF
10411 #define HAVE_SDKDDKVER_H 1
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10426 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
10427 if ${gl_cv_func_getcwd_null+:} false
; then :
10428 $as_echo_n "(cached) " >&6
10430 if test "$cross_compiling" = yes; then :
10432 # Guess yes on glibc systems.
10433 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
10434 # Guess yes on musl systems.
10435 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
10436 # Guess yes on Cygwin.
10437 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
10438 # If we don't know, obey --enable-cross-guesses.
10439 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
10443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10446 # include <stdlib.h>
10448 # include <unistd.h>
10449 # else /* on Windows with MSVC */
10450 # include <direct.h>
10464 #if defined _WIN32 && ! defined __CYGWIN__
10465 /* mingw cwd does not start with '/', but _getcwd does allocate.
10466 However, mingw fails to honor non-zero size. */
10468 if (chdir ("/") != 0)
10472 char *f = getcwd (NULL, 0);
10476 { free (f); return 3; }
10478 { free (f); return 4; }
10488 if ac_fn_c_try_run
"$LINENO"; then :
10489 gl_cv_func_getcwd_null
=yes
10491 gl_cv_func_getcwd_null
=no
10493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
10499 $as_echo "$gl_cv_func_getcwd_null" >&6; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
10503 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
10504 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
10505 $as_echo_n "(cached) " >&6
10507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #include <unistd.h>
10521 char *getcwd (char *, size_t);
10528 if ac_fn_c_try_compile
"$LINENO"; then :
10529 gl_cv_func_getcwd_posix_signature
=yes
10531 gl_cv_func_getcwd_posix_signature
=no
10533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
10537 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
10539 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
10540 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
10546 cat >>confdefs.h
<<_ACEOF
10547 #define HAVE_DECL_GETCWD $ac_have_decl
10552 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
10553 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
10559 cat >>confdefs.h
<<_ACEOF
10560 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
10563 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
10564 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10570 cat >>confdefs.h
<<_ACEOF
10571 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10576 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10577 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10583 cat >>confdefs.h
<<_ACEOF
10584 #define HAVE_DECL_GETLOGIN $ac_have_decl
10591 LIB_GETLOGIN
='-ladvapi32' ;;
10602 GNULIB_GETRANDOM
=0;
10604 REPLACE_GETRANDOM
=0;
10609 GNULIB_GETTIMEOFDAY
=0;
10610 HAVE_GETTIMEOFDAY
=1;
10611 HAVE_STRUCT_TIMEVAL
=1;
10613 REPLACE_GETTIMEOFDAY
=0;
10614 REPLACE_STRUCT_TIMEVAL
=0;
10631 if test $gl_cv_have_include_next = yes; then
10632 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10635 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10636 if ${gl_cv_next_sys_time_h+:} false
; then :
10637 $as_echo_n "(cached) " >&6
10640 if test $ac_cv_header_sys_time_h = yes; then
10645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 #include <sys/time.h>
10650 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10651 *) gl_absname_cpp
="$ac_cpp" ;;
10656 gl_dirsep_regex
='[/\\]'
10659 gl_dirsep_regex
='\/'
10662 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10663 gl_header_literal_regex
=`echo 'sys/time.h' \
10664 | sed -e "$gl_make_literal_regex_sed"`
10665 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10666 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10672 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10673 sed -n "$gl_absolute_header_sed"`
10675 gl_header
=$gl_cv_absolute_sys_time_h
10676 gl_cv_next_sys_time_h
='"'$gl_header'"'
10678 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10684 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10686 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10688 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10690 gl_next_as_first_directive
='<'sys
/time.h
'>'
10692 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10693 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10695 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10701 if test $ac_cv_header_sys_time_h != yes; then
10709 if test $ac_cv_header_sys_socket_h != yes; then
10710 for ac_header
in winsock2.h
10712 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10713 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10714 cat >>confdefs.h
<<_ACEOF
10715 #define HAVE_WINSOCK2_H 1
10723 if test "$ac_cv_header_winsock2_h" = yes; then
10725 UNISTD_H_HAVE_WINSOCK2_H
=1
10726 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10733 $as_echo_n "checking for struct timeval... " >&6; }
10734 if ${gl_cv_sys_struct_timeval+:} false
; then :
10735 $as_echo_n "(cached) " >&6
10737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #if HAVE_SYS_TIME_H
10740 #include <sys/time.h>
10743 #if HAVE_WINSOCK2_H
10744 # include <winsock2.h>
10750 static struct timeval x; x.tv_sec = x.tv_usec;
10755 if ac_fn_c_try_compile
"$LINENO"; then :
10756 gl_cv_sys_struct_timeval
=yes
10758 gl_cv_sys_struct_timeval
=no
10760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10764 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10765 if test $gl_cv_sys_struct_timeval != yes; then
10766 HAVE_STRUCT_TIMEVAL
=0
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10769 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10770 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10771 $as_echo_n "(cached) " >&6
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #if HAVE_SYS_TIME_H
10776 #include <sys/time.h>
10779 #if HAVE_WINSOCK2_H
10780 # include <winsock2.h>
10786 static struct timeval x;
10787 typedef int verify_tv_sec_type[
10788 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10795 if ac_fn_c_try_compile
"$LINENO"; then :
10796 gl_cv_sys_struct_timeval_tv_sec
=yes
10798 gl_cv_sys_struct_timeval_tv_sec
=no
10800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10804 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10805 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10806 REPLACE_STRUCT_TIMEVAL
=1
10822 HAVE_GLOB_PATTERN_P
=1;
10824 REPLACE_GLOB_PATTERN_P
=0;
10842 if test $gl_cv_have_include_next = yes; then
10843 gl_cv_next_glob_h
='<'glob.h
'>'
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10846 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10847 if ${gl_cv_next_glob_h+:} false
; then :
10848 $as_echo_n "(cached) " >&6
10851 if test $ac_cv_header_glob_h = yes; then
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10861 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10862 *) gl_absname_cpp
="$ac_cpp" ;;
10867 gl_dirsep_regex
='[/\\]'
10870 gl_dirsep_regex
='\/'
10873 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10874 gl_header_literal_regex
=`echo 'glob.h' \
10875 | sed -e "$gl_make_literal_regex_sed"`
10876 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10877 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10883 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10884 sed -n "$gl_absolute_header_sed"`
10886 gl_header
=$gl_cv_absolute_glob_h
10887 gl_cv_next_glob_h
='"'$gl_header'"'
10889 gl_cv_next_glob_h
='<'glob.h
'>'
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
10895 $as_echo "$gl_cv_next_glob_h" >&6; }
10897 NEXT_GLOB_H
=$gl_cv_next_glob_h
10899 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10901 gl_next_as_first_directive
='<'glob.h
'>'
10903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10904 gl_next_as_first_directive
=$gl_cv_next_glob_h
10906 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
10912 if test $ac_cv_header_glob_h = yes; then
10923 if test $ac_cv_header_glob_h != yes; then
10929 if test -n "$GLOB_H"; then
10930 GL_GENERATE_GLOB_H_TRUE
=
10931 GL_GENERATE_GLOB_H_FALSE
='#'
10933 GL_GENERATE_GLOB_H_TRUE
='#'
10934 GL_GENERATE_GLOB_H_FALSE
=
10952 if test -z "$gl_pthreadlib_body_done"; then
10956 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10957 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
10958 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10959 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10960 gl_have_pthread_h
=yes
10962 gl_have_pthread_h
=no
10966 if test "$gl_have_pthread_h" = yes; then
10967 # Other possible tests:
10968 # -lpthreads (FSU threads, PCthreads)
10970 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10971 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10972 # the second one only in libpthread, and lock.c needs it.
10974 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
10975 # needs -pthread for some reason. See:
10976 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
10978 for gl_pthread
in '' '-pthread'; do
10979 LIBS
="$LIBS $gl_pthread"
10980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 #include <pthread.h>
10984 pthread_mutexattr_t ma;
10989 pthread_mutex_lock (&m);
10990 pthread_mutexattr_init (&ma);
10995 if ac_fn_c_try_link
"$LINENO"; then :
10997 LIBPTHREAD
=$gl_pthread
10998 LIBPMULTITHREAD
=$gl_pthread
11000 rm -f core conftest.err conftest.
$ac_objext \
11001 conftest
$ac_exeext conftest.
$ac_ext
11003 test $gl_pthread_api = yes && break
11006 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11007 # since it is defined as a macro on OSF/1.)
11008 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
11009 # The program links fine without libpthread. But it may actually
11010 # need to link with libpthread in order to create multiple threads.
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11012 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11013 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11014 $as_echo_n "(cached) " >&6
11016 ac_check_lib_save_LIBS
=$LIBS
11017 LIBS
="-lpthread $LIBS"
11018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11027 char pthread_kill ();
11031 return pthread_kill ();
11036 if ac_fn_c_try_link
"$LINENO"; then :
11037 ac_cv_lib_pthread_pthread_kill
=yes
11039 ac_cv_lib_pthread_pthread_kill
=no
11041 rm -f core conftest.err conftest.
$ac_objext \
11042 conftest
$ac_exeext conftest.
$ac_ext
11043 LIBS
=$ac_check_lib_save_LIBS
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11046 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11047 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11048 LIBPMULTITHREAD
=-lpthread
11049 # On Solaris and HP-UX, most pthread functions exist also in libc.
11050 # Therefore pthread_in_use() needs to actually try to create a
11051 # thread: pthread_create from libc will fail, whereas
11052 # pthread_create will actually create a thread.
11053 # On Solaris 10 or newer, this test is no longer needed, because
11054 # libc contains the fully functional pthread functions.
11056 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
11058 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11064 elif test $gl_pthread_api != yes; then
11065 # Some library is needed. Try libpthread and libc_r.
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11067 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11068 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11069 $as_echo_n "(cached) " >&6
11071 ac_check_lib_save_LIBS
=$LIBS
11072 LIBS
="-lpthread $LIBS"
11073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11076 /* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11082 char pthread_kill ();
11086 return pthread_kill ();
11091 if ac_fn_c_try_link
"$LINENO"; then :
11092 ac_cv_lib_pthread_pthread_kill
=yes
11094 ac_cv_lib_pthread_pthread_kill
=no
11096 rm -f core conftest.err conftest.
$ac_objext \
11097 conftest
$ac_exeext conftest.
$ac_ext
11098 LIBS
=$ac_check_lib_save_LIBS
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11101 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11102 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11104 LIBPTHREAD
=-lpthread
11105 LIBPMULTITHREAD
=-lpthread
11108 if test $gl_pthread_api != yes; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11111 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11112 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
11113 $as_echo_n "(cached) " >&6
11115 ac_check_lib_save_LIBS
=$LIBS
11117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11120 /* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11126 char pthread_kill ();
11130 return pthread_kill ();
11135 if ac_fn_c_try_link
"$LINENO"; then :
11136 ac_cv_lib_c_r_pthread_kill
=yes
11138 ac_cv_lib_c_r_pthread_kill
=no
11140 rm -f core conftest.err conftest.
$ac_objext \
11141 conftest
$ac_exeext conftest.
$ac_ext
11142 LIBS
=$ac_check_lib_save_LIBS
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
11145 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11146 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
11149 LIBPMULTITHREAD
=-lc_r
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
11156 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
11158 $as_echo "$gl_pthread_api" >&6; }
11161 if test $gl_pthread_api = yes; then
11163 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
11167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11178 if ac_fn_c_try_link
"$LINENO"; then :
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
11183 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
11184 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_check_lib_save_LIBS
=$LIBS
11189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11198 char sched_yield ();
11202 return sched_yield ();
11207 if ac_fn_c_try_link
"$LINENO"; then :
11208 ac_cv_lib_rt_sched_yield
=yes
11210 ac_cv_lib_rt_sched_yield
=no
11212 rm -f core conftest.err conftest.
$ac_objext \
11213 conftest
$ac_exeext conftest.
$ac_ext
11214 LIBS
=$ac_check_lib_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
11217 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
11218 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
11219 LIB_SCHED_YIELD
=-lrt
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
11222 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
11223 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
11224 $as_echo_n "(cached) " >&6
11226 ac_check_lib_save_LIBS
=$LIBS
11227 LIBS
="-lposix4 $LIBS"
11228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11237 char sched_yield ();
11241 return sched_yield ();
11246 if ac_fn_c_try_link
"$LINENO"; then :
11247 ac_cv_lib_posix4_sched_yield
=yes
11249 ac_cv_lib_posix4_sched_yield
=no
11251 rm -f core conftest.err conftest.
$ac_objext \
11252 conftest
$ac_exeext conftest.
$ac_ext
11253 LIBS
=$ac_check_lib_save_LIBS
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
11256 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
11257 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
11258 LIB_SCHED_YIELD
=-lposix4
11265 rm -f core conftest.err conftest.
$ac_objext \
11266 conftest
$ac_exeext conftest.
$ac_ext
11269 gl_pthreadlib_body_done
=done
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
11281 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
11282 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
11283 $as_echo_n "(cached) " >&6
11286 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
11287 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
11288 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
11289 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
11290 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
11291 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
11292 # If we don't know, obey --enable-cross-guesses.
11294 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
11299 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
11303 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11304 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
11308 case "$gl_cv_func_setlocale_null_all_mtsafe" in
11309 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
11310 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
11313 cat >>confdefs.h
<<_ACEOF
11314 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
11319 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
11320 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
11321 $as_echo_n "(cached) " >&6
11324 # Guess no on OpenBSD, AIX.
11326 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
11327 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
11328 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
11329 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
11330 # If we don't know, obey --enable-cross-guesses.
11332 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
11337 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
11341 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11342 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
11346 case "$gl_cv_func_setlocale_null_one_mtsafe" in
11347 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
11348 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
11351 cat >>confdefs.h
<<_ACEOF
11352 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
11356 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
11358 mingw
*) LIB_SETLOCALE_NULL
= ;;
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11363 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11364 if ${gl_cv_have_weak+:} false
; then :
11365 $as_echo_n "(cached) " >&6
11368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370 extern void xyzzy ();
11380 if ac_fn_c_try_link
"$LINENO"; then :
11381 gl_cv_have_weak
=maybe
11383 rm -f core conftest.err conftest.
$ac_objext \
11384 conftest
$ac_exeext conftest.
$ac_ext
11385 if test $gl_cv_have_weak = maybe
; then
11386 if test "$cross_compiling" = yes; then :
11387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11390 Extensible Linking Format
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
11396 gl_cv_have_weak
="guessing yes"
11398 gl_cv_have_weak
="guessing no"
11404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11411 return (fputs == NULL);
11414 if ac_fn_c_try_run
"$LINENO"; then :
11415 gl_cv_have_weak
=yes
11419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11424 case " $LDFLAGS " in
11425 *" -static "*) gl_cv_have_weak
=no
;;
11427 case "$gl_cv_have_weak" in
11430 freebsd
* | dragonfly
*)
11432 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
11433 cat <<EOF > conftest2.c
11434 #include <pthread.h>
11435 #pragma weak pthread_mutexattr_gettype
11438 return (pthread_mutexattr_gettype != NULL);
11441 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
11442 || gl_cv_have_weak
=no
11443 rm -f conftest1.c libempty.so conftest2.c conftest
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11451 $as_echo "$gl_cv_have_weak" >&6; }
11452 case "$gl_cv_have_weak" in
11455 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11460 case "$gl_cv_have_weak" in
11461 *yes) LIB_SETLOCALE_NULL
= ;;
11462 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
11467 LIB_SETLOCALE_NULL
=
11478 GNULIB_GETPEERNAME
=0;
11479 GNULIB_GETSOCKNAME
=0;
11480 GNULIB_GETSOCKOPT
=0;
11486 GNULIB_SETSOCKOPT
=0;
11489 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
11490 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
11492 HAVE_SA_FAMILY_T
=1;
11502 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
11508 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
11509 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
11510 $as_echo_n "(cached) " >&6
11513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 #include <sys/socket.h>
11524 if ac_fn_c_try_compile
"$LINENO"; then :
11525 gl_cv_header_sys_socket_h_selfcontained
=yes
11527 gl_cv_header_sys_socket_h_selfcontained
=no
11529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
11533 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
11534 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
11535 for ac_func
in shutdown
11537 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
11538 if test "x$ac_cv_func_shutdown" = xyes
; then :
11539 cat >>confdefs.h
<<_ACEOF
11540 #define HAVE_SHUTDOWN 1
11546 if test $ac_cv_func_shutdown = yes; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
11548 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
11549 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
11550 $as_echo_n "(cached) " >&6
11553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <sys/socket.h>
11559 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
11564 if ac_fn_c_try_compile
"$LINENO"; then :
11565 gl_cv_header_sys_socket_h_shut
=yes
11567 gl_cv_header_sys_socket_h_shut
=no
11569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
11573 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
11574 if test $gl_cv_header_sys_socket_h_shut = no
; then
11575 SYS_SOCKET_H
='sys/socket.h'
11579 # We need to check for ws2tcpip.h now.
11591 if test $gl_cv_have_include_next = yes; then
11592 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
11595 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
11596 if ${gl_cv_next_sys_socket_h+:} false
; then :
11597 $as_echo_n "(cached) " >&6
11600 if test $ac_cv_header_sys_socket_h = yes; then
11605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #include <sys/socket.h>
11610 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11611 *) gl_absname_cpp
="$ac_cpp" ;;
11616 gl_dirsep_regex
='[/\\]'
11619 gl_dirsep_regex
='\/'
11622 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11623 gl_header_literal_regex
=`echo 'sys/socket.h' \
11624 | sed -e "$gl_make_literal_regex_sed"`
11625 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11626 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11632 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11633 sed -n "$gl_absolute_header_sed"`
11635 gl_header
=$gl_cv_absolute_sys_socket_h
11636 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11638 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11644 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11646 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11648 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11649 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11650 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11653 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11655 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11660 if test $ac_cv_header_sys_socket_h = yes; then
11661 HAVE_SYS_SOCKET_H
=1
11663 HAVE_SYS_SOCKET_H
=0
11668 if test $ac_cv_header_sys_socket_h = yes; then
11671 if test $ac_cv_header_ws2tcpip_h = yes; then
11680 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11681 /* sys/types.h is not needed according to POSIX, but the
11682 sys/socket.h in i386-unknown-freebsd4.10 and
11683 powerpc-apple-darwin5.5 required it. */
11684 #include <sys/types.h>
11685 #ifdef HAVE_SYS_SOCKET_H
11686 #include <sys/socket.h>
11688 #ifdef HAVE_WS2TCPIP_H
11689 #include <ws2tcpip.h>
11693 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11695 cat >>confdefs.h
<<_ACEOF
11696 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11701 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11702 /* sys/types.h is not needed according to POSIX, but the
11703 sys/socket.h in i386-unknown-freebsd4.10 and
11704 powerpc-apple-darwin5.5 required it. */
11705 #include <sys/types.h>
11706 #ifdef HAVE_SYS_SOCKET_H
11707 #include <sys/socket.h>
11709 #ifdef HAVE_WS2TCPIP_H
11710 #include <ws2tcpip.h>
11714 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11716 cat >>confdefs.h
<<_ACEOF
11717 #define HAVE_SA_FAMILY_T 1
11723 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11724 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11726 if test $ac_cv_type_sa_family_t = no
; then
11729 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11730 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11731 #ifdef HAVE_SYS_SOCKET_H
11732 #include <sys/socket.h>
11734 #ifdef HAVE_WS2TCPIP_H
11735 #include <ws2tcpip.h>
11739 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11741 cat >>confdefs.h
<<_ACEOF
11742 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11747 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11751 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11752 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11753 SYS_SOCKET_H
='sys/socket.h'
11759 if test $ac_cv_header_sys_socket_h != yes; then
11760 for ac_header
in winsock2.h
11762 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11763 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11764 cat >>confdefs.h
<<_ACEOF
11765 #define HAVE_WINSOCK2_H 1
11773 if test "$ac_cv_header_winsock2_h" = yes; then
11775 UNISTD_H_HAVE_WINSOCK2_H
=1
11776 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11796 $as_echo_n "checking for IPv4 sockets... " >&6; }
11797 if ${gl_cv_socket_ipv4+:} false
; then :
11798 $as_echo_n "(cached) " >&6
11800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 #include <sys/types.h>
11803 #ifdef HAVE_SYS_SOCKET_H
11804 #include <sys/socket.h>
11806 #ifdef HAVE_NETINET_IN_H
11807 #include <netinet/in.h>
11809 #ifdef HAVE_WINSOCK2_H
11810 #include <winsock2.h>
11815 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11816 if (&x && &y && &z) return 0;
11821 if ac_fn_c_try_compile
"$LINENO"; then :
11822 gl_cv_socket_ipv4
=yes
11824 gl_cv_socket_ipv4
=no
11826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11829 $as_echo "$gl_cv_socket_ipv4" >&6; }
11830 if test $gl_cv_socket_ipv4 = yes; then
11832 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11837 $as_echo_n "checking for IPv6 sockets... " >&6; }
11838 if ${gl_cv_socket_ipv6+:} false
; then :
11839 $as_echo_n "(cached) " >&6
11841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 #include <sys/types.h>
11844 #ifdef HAVE_SYS_SOCKET_H
11845 #include <sys/socket.h>
11847 #ifdef HAVE_NETINET_IN_H
11848 #include <netinet/in.h>
11850 #ifdef HAVE_WINSOCK2_H
11851 #include <winsock2.h>
11853 #ifdef HAVE_WS2TCPIP_H
11854 #include <ws2tcpip.h>
11859 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11860 if (&x && &y && &z) return 0;
11865 if ac_fn_c_try_compile
"$LINENO"; then :
11866 gl_cv_socket_ipv6
=yes
11868 gl_cv_socket_ipv6
=no
11870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
11873 $as_echo "$gl_cv_socket_ipv6" >&6; }
11874 if test $gl_cv_socket_ipv6 = yes; then
11876 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11892 if test $gl_cv_have_include_next = yes; then
11893 gl_cv_next_limits_h
='<'limits.h
'>'
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11896 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11897 if ${gl_cv_next_limits_h+:} false
; then :
11898 $as_echo_n "(cached) " >&6
11901 if test $ac_cv_header_limits_h = yes; then
11906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 #include <limits.h>
11911 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11912 *) gl_absname_cpp
="$ac_cpp" ;;
11917 gl_dirsep_regex
='[/\\]'
11920 gl_dirsep_regex
='\/'
11923 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11924 gl_header_literal_regex
=`echo 'limits.h' \
11925 | sed -e "$gl_make_literal_regex_sed"`
11926 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11927 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11933 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11934 sed -n "$gl_absolute_header_sed"`
11936 gl_header
=$gl_cv_absolute_limits_h
11937 gl_cv_next_limits_h
='"'$gl_header'"'
11939 gl_cv_next_limits_h
='<'limits.h
'>'
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11945 $as_echo "$gl_cv_next_limits_h" >&6; }
11947 NEXT_LIMITS_H
=$gl_cv_next_limits_h
11949 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11951 gl_next_as_first_directive
='<'limits.h
'>'
11953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11954 gl_next_as_first_directive
=$gl_cv_next_limits_h
11956 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11963 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11964 if ${gl_cv_header_limits_width+:} false
; then :
11965 $as_echo_n "(cached) " >&6
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11970 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11972 #include <limits.h>
11973 long long llm = LLONG_MAX;
11975 int ullw = ULLONG_WIDTH;
11985 if ac_fn_c_try_compile
"$LINENO"; then :
11986 gl_cv_header_limits_width
=yes
11988 gl_cv_header_limits_width
=no
11990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11993 $as_echo "$gl_cv_header_limits_width" >&6; }
11994 if test "$gl_cv_header_limits_width" = yes; then
12000 if test -n "$LIMITS_H"; then
12001 GL_GENERATE_LIMITS_H_TRUE
=
12002 GL_GENERATE_LIMITS_H_FALSE
='#'
12004 GL_GENERATE_LIMITS_H_TRUE
='#'
12005 GL_GENERATE_LIMITS_H_FALSE
=
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12011 $as_echo_n "checking for wint_t... " >&6; }
12012 if ${gt_cv_c_wint_t+:} false
; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 wint_t foo = (wchar_t)'\0';
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12035 $as_echo "$gt_cv_c_wint_t" >&6; }
12036 if test $gt_cv_c_wint_t = yes; then
12038 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12042 $as_echo_n "checking whether wint_t is large enough... " >&6; }
12043 if ${gl_cv_type_wint_t_large_enough+:} false
; then :
12044 $as_echo_n "(cached) " >&6
12046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12049 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12059 if ac_fn_c_try_compile
"$LINENO"; then :
12060 gl_cv_type_wint_t_large_enough
=yes
12062 gl_cv_type_wint_t_large_enough
=no
12064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12067 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
12068 if test $gl_cv_type_wint_t_large_enough = no
; then
12069 GNULIB_OVERRIDES_WINT_T
=1
12071 GNULIB_OVERRIDES_WINT_T
=0
12074 GNULIB_OVERRIDES_WINT_T
=0
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12086 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
12087 if ${gl_cv_c_multiarch+:} false
; then :
12088 $as_echo_n "(cached) " >&6
12090 gl_cv_c_multiarch
=no
12091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #ifndef __APPLE_CC__
12094 not a universal capable compiler
12099 if ac_fn_c_try_compile
"$LINENO"; then :
12103 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12104 if test -n "$prev"; then
12106 i?
86 | x86_64 | ppc | ppc64 | arm | arm64
)
12107 if test -z "$arch" ||
test "$arch" = "$word"; then
12110 gl_cv_c_multiarch
=yes
12116 if test "x$word" = "x-arch"; then
12123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12127 $as_echo "$gl_cv_c_multiarch" >&6; }
12128 if test $gl_cv_c_multiarch = yes; then
12129 APPLE_UNIVERSAL_BUILD
=1
12131 APPLE_UNIVERSAL_BUILD
=0
12141 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12144 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12148 if test $ac_cv_header_wchar_h = yes; then
12156 if test $ac_cv_header_inttypes_h = yes; then
12164 if test $ac_cv_header_sys_types_h = yes; then
12180 if test $gl_cv_have_include_next = yes; then
12181 gl_cv_next_stdint_h
='<'stdint.h
'>'
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12184 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12185 if ${gl_cv_next_stdint_h+:} false
; then :
12186 $as_echo_n "(cached) " >&6
12189 if test $ac_cv_header_stdint_h = yes; then
12194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196 #include <stdint.h>
12199 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12200 *) gl_absname_cpp
="$ac_cpp" ;;
12205 gl_dirsep_regex
='[/\\]'
12208 gl_dirsep_regex
='\/'
12211 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12212 gl_header_literal_regex
=`echo 'stdint.h' \
12213 | sed -e "$gl_make_literal_regex_sed"`
12214 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12215 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12221 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12222 sed -n "$gl_absolute_header_sed"`
12224 gl_header
=$gl_cv_absolute_stdint_h
12225 gl_cv_next_stdint_h
='"'$gl_header'"'
12227 gl_cv_next_stdint_h
='<'stdint.h
'>'
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12233 $as_echo "$gl_cv_next_stdint_h" >&6; }
12235 NEXT_STDINT_H
=$gl_cv_next_stdint_h
12237 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12239 gl_next_as_first_directive
='<'stdint.h
'>'
12241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12242 gl_next_as_first_directive
=$gl_cv_next_stdint_h
12244 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
12249 if test $ac_cv_header_stdint_h = yes; then
12256 if test $ac_cv_header_stdint_h = yes; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12258 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12259 if ${gl_cv_header_working_stdint_h+:} false
; then :
12260 $as_echo_n "(cached) " >&6
12262 gl_cv_header_working_stdint_h
=no
12263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12267 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12268 #define __STDC_CONSTANT_MACROS 1
12269 #define __STDC_LIMIT_MACROS 1
12270 #include <stdint.h>
12271 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12272 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12273 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12277 #include <stddef.h>
12278 #include <signal.h>
12280 # include <wchar.h>
12285 int8_t a1 = INT8_MAX;
12286 int8_t a1min = INT8_MIN;
12289 int16_t a2 = INT16_MAX;
12290 int16_t a2min = INT16_MIN;
12293 int32_t a3 = INT32_MAX;
12294 int32_t a3min = INT32_MIN;
12297 int64_t a4 = INT64_MAX;
12298 int64_t a4min = INT64_MIN;
12301 uint8_t b1 = UINT8_MAX;
12303 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12306 uint16_t b2 = UINT16_MAX;
12309 uint32_t b3 = UINT32_MAX;
12312 uint64_t b4 = UINT64_MAX;
12314 int_least8_t c1 = INT8_C (0x7f);
12315 int_least8_t c1max = INT_LEAST8_MAX;
12316 int_least8_t c1min = INT_LEAST8_MIN;
12317 int_least16_t c2 = INT16_C (0x7fff);
12318 int_least16_t c2max = INT_LEAST16_MAX;
12319 int_least16_t c2min = INT_LEAST16_MIN;
12320 int_least32_t c3 = INT32_C (0x7fffffff);
12321 int_least32_t c3max = INT_LEAST32_MAX;
12322 int_least32_t c3min = INT_LEAST32_MIN;
12323 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12324 int_least64_t c4max = INT_LEAST64_MAX;
12325 int_least64_t c4min = INT_LEAST64_MIN;
12326 uint_least8_t d1 = UINT8_C (0xff);
12327 uint_least8_t d1max = UINT_LEAST8_MAX;
12328 uint_least16_t d2 = UINT16_C (0xffff);
12329 uint_least16_t d2max = UINT_LEAST16_MAX;
12330 uint_least32_t d3 = UINT32_C (0xffffffff);
12331 uint_least32_t d3max = UINT_LEAST32_MAX;
12332 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12333 uint_least64_t d4max = UINT_LEAST64_MAX;
12334 int_fast8_t e1 = INT_FAST8_MAX;
12335 int_fast8_t e1min = INT_FAST8_MIN;
12336 int_fast16_t e2 = INT_FAST16_MAX;
12337 int_fast16_t e2min = INT_FAST16_MIN;
12338 int_fast32_t e3 = INT_FAST32_MAX;
12339 int_fast32_t e3min = INT_FAST32_MIN;
12340 int_fast64_t e4 = INT_FAST64_MAX;
12341 int_fast64_t e4min = INT_FAST64_MIN;
12342 uint_fast8_t f1 = UINT_FAST8_MAX;
12343 uint_fast16_t f2 = UINT_FAST16_MAX;
12344 uint_fast32_t f3 = UINT_FAST32_MAX;
12345 uint_fast64_t f4 = UINT_FAST64_MAX;
12347 intptr_t g = INTPTR_MAX;
12348 intptr_t gmin = INTPTR_MIN;
12351 uintptr_t h = UINTPTR_MAX;
12353 intmax_t i = INTMAX_MAX;
12354 uintmax_t j = UINTMAX_MAX;
12356 /* Check that SIZE_MAX has the correct type, if possible. */
12357 #if 201112 <= __STDC_VERSION__
12358 int k = _Generic (SIZE_MAX, size_t: 0);
12359 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
12360 || (0x5110 <= __SUNPRO_C && !__STDC__))
12362 extern __typeof__ (SIZE_MAX) k;
12365 #include <limits.h> /* for CHAR_BIT */
12366 #define TYPE_MINIMUM(t) \
12367 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12368 #define TYPE_MAXIMUM(t) \
12369 ((t) ((t) 0 < (t) -1 \
12371 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12374 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12375 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12377 /* Detect bug in FreeBSD 6.0 / ia64. */
12378 int check_SIG_ATOMIC:
12379 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12380 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12382 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12384 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12385 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12387 /* Detect bug in mingw. */
12389 WINT_MIN == TYPE_MINIMUM (wint_t)
12390 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12393 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12395 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12396 int check_UINT16_C:
12397 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12399 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12401 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12404 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12407 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12410 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12412 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12413 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12414 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12415 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12416 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12417 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12418 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12419 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12420 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12421 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12422 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12433 if ac_fn_c_try_compile
"$LINENO"; then :
12434 if test "$cross_compiling" = yes; then :
12436 # Guess yes on native Windows.
12437 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12438 # In general, assume it works.
12439 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12447 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12448 #define __STDC_CONSTANT_MACROS 1
12449 #define __STDC_LIMIT_MACROS 1
12450 #include <stdint.h>
12453 #include <stddef.h>
12454 #include <signal.h>
12456 # include <wchar.h>
12461 #include <string.h>
12462 #define MVAL(macro) MVAL1(macro)
12463 #define MVAL1(expression) #expression
12464 static const char *macro_values[] =
12498 for (mv = macro_values; *mv != NULL; mv++)
12500 const char *value = *mv;
12501 /* Test whether it looks like a cast expression. */
12502 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12503 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12504 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12505 || strncmp (value, "((int)"/*)*/, 6) == 0
12506 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12507 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12508 return mv - macro_values + 1;
12516 if ac_fn_c_try_run
"$LINENO"; then :
12517 gl_cv_header_working_stdint_h
=yes
12519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12529 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12532 HAVE_C99_STDINT_H
=0
12533 HAVE_SYS_BITYPES_H
=0
12534 HAVE_SYS_INTTYPES_H
=0
12536 case "$gl_cv_header_working_stdint_h" in
12538 HAVE_C99_STDINT_H
=1
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
12540 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
12541 if ${gl_cv_header_stdint_without_STDC_macros+:} false
; then :
12542 $as_echo_n "(cached) " >&6
12544 gl_cv_header_stdint_without_STDC_macros
=no
12545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12549 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12550 #include <stdint.h>
12553 #include <stddef.h>
12554 #include <signal.h>
12556 # include <wchar.h>
12560 intmax_t im = INTMAX_MAX;
12561 int32_t i32 = INT32_C (0x7fffffff);
12571 if ac_fn_c_try_compile
"$LINENO"; then :
12572 gl_cv_header_stdint_without_STDC_macros
=yes
12574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
12578 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
12580 if test $gl_cv_header_stdint_without_STDC_macros = no
; then
12582 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12585 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12589 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12590 if ${gl_cv_header_stdint_width+:} false
; then :
12591 $as_echo_n "(cached) " >&6
12593 gl_cv_header_stdint_width
=no
12594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12597 /* Work if build is not clean. */
12598 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12599 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12600 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12602 #include <stdint.h>
12604 #include <stddef.h>
12605 #include <signal.h>
12607 # include <wchar.h>
12610 int iw = UINTMAX_WIDTH;
12620 if ac_fn_c_try_compile
"$LINENO"; then :
12621 gl_cv_header_stdint_width
=yes
12623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12626 $as_echo "$gl_cv_header_stdint_width" >&6; }
12627 if test "$gl_cv_header_stdint_width" = yes; then
12632 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12634 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12635 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12636 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12637 cat >>confdefs.h
<<_ACEOF
12638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645 if test $ac_cv_header_sys_inttypes_h = yes; then
12646 HAVE_SYS_INTTYPES_H
=1
12648 if test $ac_cv_header_sys_bitypes_h = yes; then
12649 HAVE_SYS_BITYPES_H
=1
12653 if test $APPLE_UNIVERSAL_BUILD = 0; then
12656 for gltype
in ptrdiff_t size_t
; do
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12658 $as_echo_n "checking for bit size of $gltype... " >&6; }
12659 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12660 $as_echo_n "(cached) " >&6
12662 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12663 #include <stddef.h>
12664 #include <signal.h>
12666 # include <wchar.h>
12669 #include <limits.h>"; then :
12675 eval gl_cv_bitsizeof_
${gltype}=\
$result
12678 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12680 $as_echo "$ac_res" >&6; }
12681 eval result
=\
$gl_cv_bitsizeof_${gltype}
12682 if test $result = unknown
; then
12685 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12686 cat >>confdefs.h
<<_ACEOF
12687 #define BITSIZEOF_${GLTYPE} $result
12690 eval BITSIZEOF_
${GLTYPE}=\
$result
12697 for gltype
in sig_atomic_t wchar_t wint_t
; do
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12699 $as_echo_n "checking for bit size of $gltype... " >&6; }
12700 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12701 $as_echo_n "(cached) " >&6
12703 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12704 #include <stddef.h>
12705 #include <signal.h>
12707 # include <wchar.h>
12710 #include <limits.h>"; then :
12716 eval gl_cv_bitsizeof_
${gltype}=\
$result
12719 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12721 $as_echo "$ac_res" >&6; }
12722 eval result
=\
$gl_cv_bitsizeof_${gltype}
12723 if test $result = unknown
; then
12726 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12727 cat >>confdefs.h
<<_ACEOF
12728 #define BITSIZEOF_${GLTYPE} $result
12731 eval BITSIZEOF_
${GLTYPE}=\
$result
12737 for gltype
in sig_atomic_t wchar_t wint_t
; do
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12739 $as_echo_n "checking whether $gltype is signed... " >&6; }
12740 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12741 $as_echo_n "(cached) " >&6
12743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12746 #include <stddef.h>
12747 #include <signal.h>
12749 # include <wchar.h>
12752 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12761 if ac_fn_c_try_compile
"$LINENO"; then :
12766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12767 eval gl_cv_type_
${gltype}_signed
=\
$result
12770 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12772 $as_echo "$ac_res" >&6; }
12773 eval result
=\
$gl_cv_type_${gltype}_signed
12774 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12775 if test "$result" = yes; then
12776 cat >>confdefs.h
<<_ACEOF
12777 #define HAVE_SIGNED_${GLTYPE} 1
12780 eval HAVE_SIGNED_
${GLTYPE}=1
12782 eval HAVE_SIGNED_
${GLTYPE}=0
12787 gl_cv_type_ptrdiff_t_signed
=yes
12788 gl_cv_type_size_t_signed
=no
12789 if test $APPLE_UNIVERSAL_BUILD = 0; then
12792 for gltype
in ptrdiff_t size_t
; do
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12794 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12795 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12796 $as_echo_n "(cached) " >&6
12798 eval gl_cv_type_
${gltype}_suffix
=no
12799 eval result
=\
$gl_cv_type_${gltype}_signed
12800 if test "$result" = yes; then
12805 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12807 '') gltype1
='int';;
12808 l
) gltype1
='long int';;
12809 ll
) gltype1
='long long int';;
12810 i64
) gltype1
='__int64';;
12811 u
) gltype1
='unsigned int';;
12812 ul
) gltype1
='unsigned long int';;
12813 ull
) gltype1
='unsigned long long int';;
12814 ui64
)gltype1
='unsigned __int64';;
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12819 #include <stddef.h>
12820 #include <signal.h>
12822 # include <wchar.h>
12825 extern $gltype foo;
12826 extern $gltype1 foo;
12835 if ac_fn_c_try_compile
"$LINENO"; then :
12836 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12839 eval result
=\
$gl_cv_type_${gltype}_suffix
12840 test "$result" != no
&& break
12843 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12845 $as_echo "$ac_res" >&6; }
12846 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12847 eval result
=\
$gl_cv_type_${gltype}_suffix
12848 test "$result" = no
&& result
=
12849 eval ${GLTYPE}_SUFFIX
=\
$result
12850 cat >>confdefs.h
<<_ACEOF
12851 #define ${GLTYPE}_SUFFIX $result
12860 for gltype
in sig_atomic_t wchar_t wint_t
; do
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12862 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12863 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12864 $as_echo_n "(cached) " >&6
12866 eval gl_cv_type_
${gltype}_suffix
=no
12867 eval result
=\
$gl_cv_type_${gltype}_signed
12868 if test "$result" = yes; then
12873 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12875 '') gltype1
='int';;
12876 l
) gltype1
='long int';;
12877 ll
) gltype1
='long long int';;
12878 i64
) gltype1
='__int64';;
12879 u
) gltype1
='unsigned int';;
12880 ul
) gltype1
='unsigned long int';;
12881 ull
) gltype1
='unsigned long long int';;
12882 ui64
)gltype1
='unsigned __int64';;
12884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12887 #include <stddef.h>
12888 #include <signal.h>
12890 # include <wchar.h>
12893 extern $gltype foo;
12894 extern $gltype1 foo;
12903 if ac_fn_c_try_compile
"$LINENO"; then :
12904 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12907 eval result
=\
$gl_cv_type_${gltype}_suffix
12908 test "$result" != no
&& break
12911 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12913 $as_echo "$ac_res" >&6; }
12914 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12915 eval result
=\
$gl_cv_type_${gltype}_suffix
12916 test "$result" = no
&& result
=
12917 eval ${GLTYPE}_SUFFIX
=\
$result
12918 cat >>confdefs.h
<<_ACEOF
12919 #define ${GLTYPE}_SUFFIX $result
12926 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12927 BITSIZEOF_WINT_T
=32
12935 LIMITS_H
='limits.h'
12936 if test -n "$LIMITS_H"; then
12937 GL_GENERATE_LIMITS_H_TRUE
=
12938 GL_GENERATE_LIMITS_H_FALSE
='#'
12940 GL_GENERATE_LIMITS_H_TRUE
='#'
12941 GL_GENERATE_LIMITS_H_FALSE
=
12950 if test -n "$STDINT_H"; then
12951 GL_GENERATE_STDINT_H_TRUE
=
12952 GL_GENERATE_STDINT_H_FALSE
='#'
12954 GL_GENERATE_STDINT_H_TRUE
='#'
12955 GL_GENERATE_STDINT_H_FALSE
=
12962 GNULIB_STRTOIMAX
=0;
12963 GNULIB_STRTOUMAX
=0;
12964 HAVE_DECL_IMAXABS
=1;
12965 HAVE_DECL_IMAXDIV
=1;
12966 HAVE_DECL_STRTOIMAX
=1;
12967 HAVE_DECL_STRTOUMAX
=1;
12969 REPLACE_STRTOIMAX
=0;
12970 REPLACE_STRTOUMAX
=0;
12971 INT32_MAX_LT_INTMAX_MAX
=1;
12972 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
12973 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
12974 UINT32_MAX_LT_UINTMAX_MAX
=1;
12975 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
12991 if test $gl_cv_have_include_next = yes; then
12992 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12995 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12996 if ${gl_cv_next_inttypes_h+:} false
; then :
12997 $as_echo_n "(cached) " >&6
13000 if test $ac_cv_header_inttypes_h = yes; then
13005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #include <inttypes.h>
13010 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13011 *) gl_absname_cpp
="$ac_cpp" ;;
13016 gl_dirsep_regex
='[/\\]'
13019 gl_dirsep_regex
='\/'
13022 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13023 gl_header_literal_regex
=`echo 'inttypes.h' \
13024 | sed -e "$gl_make_literal_regex_sed"`
13025 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13026 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13032 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13033 sed -n "$gl_absolute_header_sed"`
13035 gl_header
=$gl_cv_absolute_inttypes_h
13036 gl_cv_next_inttypes_h
='"'$gl_header'"'
13038 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13044 $as_echo "$gl_cv_next_inttypes_h" >&6; }
13046 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
13048 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13050 gl_next_as_first_directive
='<'inttypes.h
'>'
13052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13053 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
13055 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13073 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13074 if ${gl_cv_cc_double_expbit0+:} false
; then :
13075 $as_echo_n "(cached) " >&6
13078 if test "$cross_compiling" = yes; then :
13080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13083 #if defined arm || defined __arm || defined __arm__
13088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13089 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
13090 gl_cv_cc_double_expbit0
="unknown"
13094 if ${ac_cv_c_bigendian+:} false
; then :
13095 $as_echo_n "(cached) " >&6
13097 ac_cv_c_bigendian
=unknown
13098 # See if we're dealing with a universal compiler.
13099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 #ifndef __APPLE_CC__
13102 not a universal capable compiler
13107 if ac_fn_c_try_compile
"$LINENO"; then :
13109 # Check for potential -arch flags. It is not universal unless
13110 # there are at least two -arch flags with different values.
13113 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13114 if test -n "$ac_prev"; then
13116 i?
86 | x86_64 | ppc | ppc64
)
13117 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13120 ac_cv_c_bigendian
=universal
13126 elif test "x$ac_word" = "x-arch"; then
13131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13132 if test $ac_cv_c_bigendian = unknown
; then
13133 # See if sys/param.h defines the BYTE_ORDER macro.
13134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <sys/types.h>
13137 #include <sys/param.h>
13142 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13143 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13145 bogus endian macros
13152 if ac_fn_c_try_compile
"$LINENO"; then :
13153 # It does; now see whether it defined to BIG_ENDIAN or not.
13154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <sys/types.h>
13157 #include <sys/param.h>
13162 #if BYTE_ORDER != BIG_ENDIAN
13170 if ac_fn_c_try_compile
"$LINENO"; then :
13171 ac_cv_c_bigendian
=yes
13173 ac_cv_c_bigendian
=no
13175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13179 if test $ac_cv_c_bigendian = unknown
; then
13180 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <limits.h>
13188 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13189 bogus endian macros
13196 if ac_fn_c_try_compile
"$LINENO"; then :
13197 # It does; now see whether it defined to _BIG_ENDIAN or not.
13198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <limits.h>
13205 #ifndef _BIG_ENDIAN
13213 if ac_fn_c_try_compile
"$LINENO"; then :
13214 ac_cv_c_bigendian
=yes
13216 ac_cv_c_bigendian
=no
13218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13222 if test $ac_cv_c_bigendian = unknown
; then
13223 # Compile a test program.
13224 if test "$cross_compiling" = yes; then :
13225 # Try to guess by grepping values from an object file.
13226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 short int ascii_mm[] =
13229 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13230 short int ascii_ii[] =
13231 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13232 int use_ascii (int i) {
13233 return ascii_mm[i] + ascii_ii[i];
13235 short int ebcdic_ii[] =
13236 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13237 short int ebcdic_mm[] =
13238 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13239 int use_ebcdic (int i) {
13240 return ebcdic_mm[i] + ebcdic_ii[i];
13247 return use_ascii (foo) == use_ebcdic (foo);
13252 if ac_fn_c_try_compile
"$LINENO"; then :
13253 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13254 ac_cv_c_bigendian
=yes
13256 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13257 if test "$ac_cv_c_bigendian" = unknown
; then
13258 ac_cv_c_bigendian
=no
13260 # finding both strings is unlikely to happen, but who knows?
13261 ac_cv_c_bigendian
=unknown
13265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 $ac_includes_default
13274 /* Are we little or big endian? From Harbison&Steele. */
13278 char c[sizeof (long int)];
13281 return u.c[sizeof (long int) - 1] == 1;
13287 if ac_fn_c_try_run
"$LINENO"; then :
13288 ac_cv_c_bigendian
=no
13290 ac_cv_c_bigendian
=yes
13292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13299 case $ac_cv_c_bigendian in #(
13301 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
13303 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
13306 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13310 gl_cv_cc_double_expbit0
="unknown" ;;
13319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13323 #include <stddef.h>
13325 #include <string.h>
13327 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13328 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
13329 static unsigned int ored_words[NWORDS];
13330 static unsigned int anded_words[NWORDS];
13331 static void add_to_ored_words (double x)
13335 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
13336 memset (&m, 0, sizeof (memory_double));
13338 for (i = 0; i < NWORDS; i++)
13340 ored_words[i] |= m.word[i];
13341 anded_words[i] &= m.word[i];
13347 FILE *fp = fopen ("conftest.out", "w");
13350 for (j = 0; j < NWORDS; j++)
13351 anded_words[j] = ~ (unsigned int) 0;
13352 add_to_ored_words (0.25);
13353 add_to_ored_words (0.5);
13354 add_to_ored_words (1.0);
13355 add_to_ored_words (2.0);
13356 add_to_ored_words (4.0);
13357 /* Remove bits that are common (e.g. if representation of the first mantissa
13358 bit is explicit). */
13359 for (j = 0; j < NWORDS; j++)
13360 ored_words[j] &= ~anded_words[j];
13361 /* Now find the nonzero word. */
13362 for (j = 0; j < NWORDS; j++)
13363 if (ored_words[j] != 0)
13368 for (i = j + 1; i < NWORDS; i++)
13369 if (ored_words[i] != 0)
13371 fprintf (fp, "unknown");
13372 return (fclose (fp) != 0);
13375 if ((ored_words[j] >> i) & 1)
13377 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13378 return (fclose (fp) != 0);
13381 fprintf (fp, "unknown");
13382 return (fclose (fp) != 0);
13386 if ac_fn_c_try_run
"$LINENO"; then :
13387 gl_cv_cc_double_expbit0
=`cat conftest.out`
13389 gl_cv_cc_double_expbit0
="unknown"
13391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13399 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13400 case "$gl_cv_cc_double_expbit0" in
13402 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13403 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13405 cat >>confdefs.h
<<_ACEOF
13406 #define DBL_EXPBIT0_WORD $word
13410 cat >>confdefs.h
<<_ACEOF
13411 #define DBL_EXPBIT0_BIT $bit
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13419 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13420 if ${ac_cv_c_bigendian+:} false
; then :
13421 $as_echo_n "(cached) " >&6
13423 ac_cv_c_bigendian
=unknown
13424 # See if we're dealing with a universal compiler.
13425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 #ifndef __APPLE_CC__
13428 not a universal capable compiler
13433 if ac_fn_c_try_compile
"$LINENO"; then :
13435 # Check for potential -arch flags. It is not universal unless
13436 # there are at least two -arch flags with different values.
13439 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13440 if test -n "$ac_prev"; then
13442 i?
86 | x86_64 | ppc | ppc64
)
13443 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13446 ac_cv_c_bigendian
=universal
13452 elif test "x$ac_word" = "x-arch"; then
13457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13458 if test $ac_cv_c_bigendian = unknown
; then
13459 # See if sys/param.h defines the BYTE_ORDER macro.
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #include <sys/types.h>
13463 #include <sys/param.h>
13468 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13469 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13471 bogus endian macros
13478 if ac_fn_c_try_compile
"$LINENO"; then :
13479 # It does; now see whether it defined to BIG_ENDIAN or not.
13480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13482 #include <sys/types.h>
13483 #include <sys/param.h>
13488 #if BYTE_ORDER != BIG_ENDIAN
13496 if ac_fn_c_try_compile
"$LINENO"; then :
13497 ac_cv_c_bigendian
=yes
13499 ac_cv_c_bigendian
=no
13501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13505 if test $ac_cv_c_bigendian = unknown
; then
13506 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509 #include <limits.h>
13514 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13515 bogus endian macros
13522 if ac_fn_c_try_compile
"$LINENO"; then :
13523 # It does; now see whether it defined to _BIG_ENDIAN or not.
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 #include <limits.h>
13531 #ifndef _BIG_ENDIAN
13539 if ac_fn_c_try_compile
"$LINENO"; then :
13540 ac_cv_c_bigendian
=yes
13542 ac_cv_c_bigendian
=no
13544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13548 if test $ac_cv_c_bigendian = unknown
; then
13549 # Compile a test program.
13550 if test "$cross_compiling" = yes; then :
13551 # Try to guess by grepping values from an object file.
13552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 short int ascii_mm[] =
13555 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13556 short int ascii_ii[] =
13557 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13558 int use_ascii (int i) {
13559 return ascii_mm[i] + ascii_ii[i];
13561 short int ebcdic_ii[] =
13562 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13563 short int ebcdic_mm[] =
13564 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13565 int use_ebcdic (int i) {
13566 return ebcdic_mm[i] + ebcdic_ii[i];
13573 return use_ascii (foo) == use_ebcdic (foo);
13578 if ac_fn_c_try_compile
"$LINENO"; then :
13579 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13580 ac_cv_c_bigendian
=yes
13582 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13583 if test "$ac_cv_c_bigendian" = unknown
; then
13584 ac_cv_c_bigendian
=no
13586 # finding both strings is unlikely to happen, but who knows?
13587 ac_cv_c_bigendian
=unknown
13591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 $ac_includes_default
13600 /* Are we little or big endian? From Harbison&Steele. */
13604 char c[sizeof (long int)];
13607 return u.c[sizeof (long int) - 1] == 1;
13613 if ac_fn_c_try_run
"$LINENO"; then :
13614 ac_cv_c_bigendian
=no
13616 ac_cv_c_bigendian
=yes
13618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13625 $as_echo "$ac_cv_c_bigendian" >&6; }
13626 case $ac_cv_c_bigendian in #(
13628 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13634 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13638 as_fn_error $?
"unknown endianness
13639 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13644 GNULIB_LOCALECONV
=0;
13645 GNULIB_SETLOCALE
=0;
13646 GNULIB_SETLOCALE_NULL
=0;
13647 GNULIB_DUPLOCALE
=0;
13648 GNULIB_LOCALENAME
=0;
13652 REPLACE_LOCALECONV
=0;
13653 REPLACE_SETLOCALE
=0;
13654 REPLACE_NEWLOCALE
=0;
13655 REPLACE_DUPLOCALE
=0;
13656 REPLACE_FREELOCALE
=0;
13657 REPLACE_STRUCT_LCONV
=0;
13661 HAVE_MAX_ALIGN_T
=1;
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13666 $as_echo_n "checking for wchar_t... " >&6; }
13667 if ${gt_cv_c_wchar_t+:} false
; then :
13668 $as_echo_n "(cached) " >&6
13670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 #include <stddef.h>
13673 wchar_t foo = (wchar_t)'\0';
13682 if ac_fn_c_try_compile
"$LINENO"; then :
13683 gt_cv_c_wchar_t
=yes
13687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13690 $as_echo "$gt_cv_c_wchar_t" >&6; }
13691 if test $gt_cv_c_wchar_t = yes; then
13693 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13706 $as_echo_n "checking for good max_align_t... " >&6; }
13707 if ${gl_cv_type_max_align_t+:} false
; then :
13708 $as_echo_n "(cached) " >&6
13710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 #include <stddef.h>
13713 unsigned int s = sizeof (max_align_t);
13714 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
13715 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13716 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13718 typedef struct { char a; max_align_t b; } max_helper;
13719 typedef struct { char a; long b; } long_helper;
13720 typedef struct { char a; double b; } double_helper;
13721 typedef struct { char a; long double b; } long_double_helper;
13722 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
13723 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
13724 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
13734 if ac_fn_c_try_compile
"$LINENO"; then :
13735 gl_cv_type_max_align_t
=yes
13737 gl_cv_type_max_align_t
=no
13739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13743 $as_echo "$gl_cv_type_max_align_t" >&6; }
13744 if test $gl_cv_type_max_align_t = no
; then
13749 if test $gt_cv_c_wchar_t = no
; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13755 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13756 if ${gl_cv_decl_null_works+:} false
; then :
13757 $as_echo_n "(cached) " >&6
13759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761 #include <stddef.h>
13762 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13772 if ac_fn_c_try_compile
"$LINENO"; then :
13773 gl_cv_decl_null_works
=yes
13775 gl_cv_decl_null_works
=no
13777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13780 $as_echo "$gl_cv_decl_null_works" >&6; }
13781 if test $gl_cv_decl_null_works = no
; then
13787 if test -n "$STDDEF_H"; then
13788 GL_GENERATE_STDDEF_H_TRUE
=
13789 GL_GENERATE_STDDEF_H_FALSE
='#'
13791 GL_GENERATE_STDDEF_H_TRUE
='#'
13792 GL_GENERATE_STDDEF_H_FALSE
=
13795 if test -n "$STDDEF_H"; then
13804 if test $gl_cv_have_include_next = yes; then
13805 gl_cv_next_stddef_h
='<'stddef.h
'>'
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13808 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13809 if ${gl_cv_next_stddef_h+:} false
; then :
13810 $as_echo_n "(cached) " >&6
13815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 #include <stddef.h>
13820 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13821 *) gl_absname_cpp
="$ac_cpp" ;;
13826 gl_dirsep_regex
='[/\\]'
13829 gl_dirsep_regex
='\/'
13832 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13833 gl_header_literal_regex
=`echo 'stddef.h' \
13834 | sed -e "$gl_make_literal_regex_sed"`
13835 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13836 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13842 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13843 sed -n "$gl_absolute_header_sed"`
13845 gl_header
=$gl_cv_absolute_stddef_h
13846 gl_cv_next_stddef_h
='"'$gl_header'"'
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13851 $as_echo "$gl_cv_next_stddef_h" >&6; }
13853 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13855 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13857 gl_next_as_first_directive
='<'stddef.h
'>'
13859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13860 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13862 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
13875 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
13876 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
13877 $as_echo_n "(cached) " >&6
13879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 #include <locale.h>
13891 if ac_fn_c_try_compile
"$LINENO"; then :
13892 gl_cv_header_locale_has_locale_t
=yes
13894 gl_cv_header_locale_has_locale_t
=no
13896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
13900 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
13903 if test $ac_cv_header_xlocale_h = yes; then
13905 if test $gl_cv_header_locale_has_locale_t = yes; then
13906 gl_cv_header_locale_h_needs_xlocale_h
=no
13908 gl_cv_header_locale_h_needs_xlocale_h
=yes
13913 gl_cv_header_locale_h_needs_xlocale_h
=no
13914 if test $gl_cv_header_locale_has_locale_t = yes; then
13924 gl_threads_api
=none
13929 if test "$gl_use_threads" != no
; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
13933 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13934 if ${gl_cv_have_weak+:} false
; then :
13935 $as_echo_n "(cached) " >&6
13938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 extern void xyzzy ();
13950 if ac_fn_c_try_link
"$LINENO"; then :
13951 gl_cv_have_weak
=maybe
13953 rm -f core conftest.err conftest.
$ac_objext \
13954 conftest
$ac_exeext conftest.
$ac_ext
13955 if test $gl_cv_have_weak = maybe
; then
13956 if test "$cross_compiling" = yes; then :
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 Extensible Linking Format
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
13966 gl_cv_have_weak
="guessing yes"
13968 gl_cv_have_weak
="guessing no"
13974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13981 return (fputs == NULL);
13984 if ac_fn_c_try_run
"$LINENO"; then :
13985 gl_cv_have_weak
=yes
13989 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13990 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13994 case " $LDFLAGS " in
13995 *" -static "*) gl_cv_have_weak
=no
;;
13997 case "$gl_cv_have_weak" in
14000 freebsd
* | dragonfly
*)
14002 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
14003 cat <<EOF > conftest2.c
14004 #include <pthread.h>
14005 #pragma weak pthread_mutexattr_gettype
14008 return (pthread_mutexattr_gettype != NULL);
14011 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
14012 || gl_cv_have_weak
=no
14013 rm -f conftest1.c libempty.so conftest2.c conftest
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
14021 $as_echo "$gl_cv_have_weak" >&6; }
14022 case "$gl_cv_have_weak" in
14025 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
14030 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14034 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
14036 gl_have_isoc_threads
="$ac_cv_header_threads_h"
14038 if test "$gl_use_threads" = yes \
14039 ||
test "$gl_use_threads" = posix \
14040 ||
test "$gl_use_threads" = isoc
+posix
; then
14043 if test -z "$gl_pthreadlib_body_done"; then
14047 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14048 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14049 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14050 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14051 gl_have_pthread_h
=yes
14053 gl_have_pthread_h
=no
14057 if test "$gl_have_pthread_h" = yes; then
14058 # Other possible tests:
14059 # -lpthreads (FSU threads, PCthreads)
14061 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14062 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14063 # the second one only in libpthread, and lock.c needs it.
14065 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14066 # needs -pthread for some reason. See:
14067 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14069 for gl_pthread
in '' '-pthread'; do
14070 LIBS
="$LIBS $gl_pthread"
14071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 #include <pthread.h>
14075 pthread_mutexattr_t ma;
14080 pthread_mutex_lock (&m);
14081 pthread_mutexattr_init (&ma);
14086 if ac_fn_c_try_link
"$LINENO"; then :
14088 LIBPTHREAD
=$gl_pthread
14089 LIBPMULTITHREAD
=$gl_pthread
14091 rm -f core conftest.err conftest.
$ac_objext \
14092 conftest
$ac_exeext conftest.
$ac_ext
14094 test $gl_pthread_api = yes && break
14097 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14098 # since it is defined as a macro on OSF/1.)
14099 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14100 # The program links fine without libpthread. But it may actually
14101 # need to link with libpthread in order to create multiple threads.
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14103 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14104 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14105 $as_echo_n "(cached) " >&6
14107 ac_check_lib_save_LIBS
=$LIBS
14108 LIBS
="-lpthread $LIBS"
14109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14118 char pthread_kill ();
14122 return pthread_kill ();
14127 if ac_fn_c_try_link
"$LINENO"; then :
14128 ac_cv_lib_pthread_pthread_kill
=yes
14130 ac_cv_lib_pthread_pthread_kill
=no
14132 rm -f core conftest.err conftest.
$ac_objext \
14133 conftest
$ac_exeext conftest.
$ac_ext
14134 LIBS
=$ac_check_lib_save_LIBS
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14137 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14138 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14139 LIBPMULTITHREAD
=-lpthread
14140 # On Solaris and HP-UX, most pthread functions exist also in libc.
14141 # Therefore pthread_in_use() needs to actually try to create a
14142 # thread: pthread_create from libc will fail, whereas
14143 # pthread_create will actually create a thread.
14144 # On Solaris 10 or newer, this test is no longer needed, because
14145 # libc contains the fully functional pthread functions.
14147 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14149 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14155 elif test $gl_pthread_api != yes; then
14156 # Some library is needed. Try libpthread and libc_r.
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14158 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14159 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14160 $as_echo_n "(cached) " >&6
14162 ac_check_lib_save_LIBS
=$LIBS
14163 LIBS
="-lpthread $LIBS"
14164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14167 /* Override any GCC internal prototype to avoid an error.
14168 Use char because int might match the return type of a GCC
14169 builtin and then its argument prototype would still apply. */
14173 char pthread_kill ();
14177 return pthread_kill ();
14182 if ac_fn_c_try_link
"$LINENO"; then :
14183 ac_cv_lib_pthread_pthread_kill
=yes
14185 ac_cv_lib_pthread_pthread_kill
=no
14187 rm -f core conftest.err conftest.
$ac_objext \
14188 conftest
$ac_exeext conftest.
$ac_ext
14189 LIBS
=$ac_check_lib_save_LIBS
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14192 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14193 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14195 LIBPTHREAD
=-lpthread
14196 LIBPMULTITHREAD
=-lpthread
14199 if test $gl_pthread_api != yes; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14202 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14203 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14204 $as_echo_n "(cached) " >&6
14206 ac_check_lib_save_LIBS
=$LIBS
14208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14217 char pthread_kill ();
14221 return pthread_kill ();
14226 if ac_fn_c_try_link
"$LINENO"; then :
14227 ac_cv_lib_c_r_pthread_kill
=yes
14229 ac_cv_lib_c_r_pthread_kill
=no
14231 rm -f core conftest.err conftest.
$ac_objext \
14232 conftest
$ac_exeext conftest.
$ac_ext
14233 LIBS
=$ac_check_lib_save_LIBS
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14236 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14237 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14240 LIBPMULTITHREAD
=-lc_r
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14247 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14249 $as_echo "$gl_pthread_api" >&6; }
14252 if test $gl_pthread_api = yes; then
14254 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14269 if ac_fn_c_try_link
"$LINENO"; then :
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14274 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14275 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14276 $as_echo_n "(cached) " >&6
14278 ac_check_lib_save_LIBS
=$LIBS
14280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14289 char sched_yield ();
14293 return sched_yield ();
14298 if ac_fn_c_try_link
"$LINENO"; then :
14299 ac_cv_lib_rt_sched_yield
=yes
14301 ac_cv_lib_rt_sched_yield
=no
14303 rm -f core conftest.err conftest.
$ac_objext \
14304 conftest
$ac_exeext conftest.
$ac_ext
14305 LIBS
=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14308 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14309 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14310 LIB_SCHED_YIELD
=-lrt
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14313 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14314 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14315 $as_echo_n "(cached) " >&6
14317 ac_check_lib_save_LIBS
=$LIBS
14318 LIBS
="-lposix4 $LIBS"
14319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14322 /* Override any GCC internal prototype to avoid an error.
14323 Use char because int might match the return type of a GCC
14324 builtin and then its argument prototype would still apply. */
14328 char sched_yield ();
14332 return sched_yield ();
14337 if ac_fn_c_try_link
"$LINENO"; then :
14338 ac_cv_lib_posix4_sched_yield
=yes
14340 ac_cv_lib_posix4_sched_yield
=no
14342 rm -f core conftest.err conftest.
$ac_objext \
14343 conftest
$ac_exeext conftest.
$ac_ext
14344 LIBS
=$ac_check_lib_save_LIBS
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14347 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14348 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14349 LIB_SCHED_YIELD
=-lposix4
14356 rm -f core conftest.err conftest.
$ac_objext \
14357 conftest
$ac_exeext conftest.
$ac_ext
14360 gl_pthreadlib_body_done
=done
14363 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14364 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14365 if test $gl_pthread_api = yes; then
14366 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14367 gl_threads_api
='isoc+posix'
14369 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14371 LIBTHREAD
= LTLIBTHREAD
=
14373 gl_threads_api
=posix
14375 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14377 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14378 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14380 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14382 LIBTHREAD
= LTLIBTHREAD
=
14385 freebsd
* | dragonfly
*)
14386 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
14388 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14398 if test $gl_threads_api = none
; then
14399 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14403 if test -z "$gl_stdthreadlib_body_done"; then
14413 if test -z "$gl_pthreadlib_body_done"; then
14417 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14418 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14419 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14421 gl_have_pthread_h
=yes
14423 gl_have_pthread_h
=no
14427 if test "$gl_have_pthread_h" = yes; then
14428 # Other possible tests:
14429 # -lpthreads (FSU threads, PCthreads)
14431 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14432 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14433 # the second one only in libpthread, and lock.c needs it.
14435 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14436 # needs -pthread for some reason. See:
14437 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14439 for gl_pthread
in '' '-pthread'; do
14440 LIBS
="$LIBS $gl_pthread"
14441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 #include <pthread.h>
14445 pthread_mutexattr_t ma;
14450 pthread_mutex_lock (&m);
14451 pthread_mutexattr_init (&ma);
14456 if ac_fn_c_try_link
"$LINENO"; then :
14458 LIBPTHREAD
=$gl_pthread
14459 LIBPMULTITHREAD
=$gl_pthread
14461 rm -f core conftest.err conftest.
$ac_objext \
14462 conftest
$ac_exeext conftest.
$ac_ext
14464 test $gl_pthread_api = yes && break
14467 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14468 # since it is defined as a macro on OSF/1.)
14469 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14470 # The program links fine without libpthread. But it may actually
14471 # need to link with libpthread in order to create multiple threads.
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14473 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14474 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14475 $as_echo_n "(cached) " >&6
14477 ac_check_lib_save_LIBS
=$LIBS
14478 LIBS
="-lpthread $LIBS"
14479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 /* Override any GCC internal prototype to avoid an error.
14483 Use char because int might match the return type of a GCC
14484 builtin and then its argument prototype would still apply. */
14488 char pthread_kill ();
14492 return pthread_kill ();
14497 if ac_fn_c_try_link
"$LINENO"; then :
14498 ac_cv_lib_pthread_pthread_kill
=yes
14500 ac_cv_lib_pthread_pthread_kill
=no
14502 rm -f core conftest.err conftest.
$ac_objext \
14503 conftest
$ac_exeext conftest.
$ac_ext
14504 LIBS
=$ac_check_lib_save_LIBS
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14507 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14508 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14509 LIBPMULTITHREAD
=-lpthread
14510 # On Solaris and HP-UX, most pthread functions exist also in libc.
14511 # Therefore pthread_in_use() needs to actually try to create a
14512 # thread: pthread_create from libc will fail, whereas
14513 # pthread_create will actually create a thread.
14514 # On Solaris 10 or newer, this test is no longer needed, because
14515 # libc contains the fully functional pthread functions.
14517 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14519 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14525 elif test $gl_pthread_api != yes; then
14526 # Some library is needed. Try libpthread and libc_r.
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14528 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14529 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14530 $as_echo_n "(cached) " >&6
14532 ac_check_lib_save_LIBS
=$LIBS
14533 LIBS
="-lpthread $LIBS"
14534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14543 char pthread_kill ();
14547 return pthread_kill ();
14552 if ac_fn_c_try_link
"$LINENO"; then :
14553 ac_cv_lib_pthread_pthread_kill
=yes
14555 ac_cv_lib_pthread_pthread_kill
=no
14557 rm -f core conftest.err conftest.
$ac_objext \
14558 conftest
$ac_exeext conftest.
$ac_ext
14559 LIBS
=$ac_check_lib_save_LIBS
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14562 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14563 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14565 LIBPTHREAD
=-lpthread
14566 LIBPMULTITHREAD
=-lpthread
14569 if test $gl_pthread_api != yes; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14572 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14573 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14574 $as_echo_n "(cached) " >&6
14576 ac_check_lib_save_LIBS
=$LIBS
14578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14581 /* Override any GCC internal prototype to avoid an error.
14582 Use char because int might match the return type of a GCC
14583 builtin and then its argument prototype would still apply. */
14587 char pthread_kill ();
14591 return pthread_kill ();
14596 if ac_fn_c_try_link
"$LINENO"; then :
14597 ac_cv_lib_c_r_pthread_kill
=yes
14599 ac_cv_lib_c_r_pthread_kill
=no
14601 rm -f core conftest.err conftest.
$ac_objext \
14602 conftest
$ac_exeext conftest.
$ac_ext
14603 LIBS
=$ac_check_lib_save_LIBS
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14606 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14607 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14610 LIBPMULTITHREAD
=-lc_r
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14617 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14619 $as_echo "$gl_pthread_api" >&6; }
14622 if test $gl_pthread_api = yes; then
14624 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14639 if ac_fn_c_try_link
"$LINENO"; then :
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14644 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14645 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14646 $as_echo_n "(cached) " >&6
14648 ac_check_lib_save_LIBS
=$LIBS
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14659 char sched_yield ();
14663 return sched_yield ();
14668 if ac_fn_c_try_link
"$LINENO"; then :
14669 ac_cv_lib_rt_sched_yield
=yes
14671 ac_cv_lib_rt_sched_yield
=no
14673 rm -f core conftest.err conftest.
$ac_objext \
14674 conftest
$ac_exeext conftest.
$ac_ext
14675 LIBS
=$ac_check_lib_save_LIBS
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14678 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14679 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14680 LIB_SCHED_YIELD
=-lrt
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14683 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14684 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14685 $as_echo_n "(cached) " >&6
14687 ac_check_lib_save_LIBS
=$LIBS
14688 LIBS
="-lposix4 $LIBS"
14689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14692 /* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
14698 char sched_yield ();
14702 return sched_yield ();
14707 if ac_fn_c_try_link
"$LINENO"; then :
14708 ac_cv_lib_posix4_sched_yield
=yes
14710 ac_cv_lib_posix4_sched_yield
=no
14712 rm -f core conftest.err conftest.
$ac_objext \
14713 conftest
$ac_exeext conftest.
$ac_ext
14714 LIBS
=$ac_check_lib_save_LIBS
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14717 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14718 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14719 LIB_SCHED_YIELD
=-lposix4
14726 rm -f core conftest.err conftest.
$ac_objext \
14727 conftest
$ac_exeext conftest.
$ac_ext
14730 gl_pthreadlib_body_done
=done
14733 if test $ac_cv_header_threads_h = yes; then
14734 for ac_func
in thrd_create
14736 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14737 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14738 cat >>confdefs.h
<<_ACEOF
14739 #define HAVE_THRD_CREATE 1
14745 if test $ac_cv_func_thrd_create = yes; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14749 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14750 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14751 $as_echo_n "(cached) " >&6
14753 ac_check_lib_save_LIBS
=$LIBS
14754 LIBS
="-lstdthreads $LIBS"
14755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14758 /* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14764 char thrd_create ();
14768 return thrd_create ();
14773 if ac_fn_c_try_link
"$LINENO"; then :
14774 ac_cv_lib_stdthreads_thrd_create
=yes
14776 ac_cv_lib_stdthreads_thrd_create
=no
14778 rm -f core conftest.err conftest.
$ac_objext \
14779 conftest
$ac_exeext conftest.
$ac_ext
14780 LIBS
=$ac_check_lib_save_LIBS
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14783 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14784 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14786 LIBSTDTHREAD
='-lstdthreads -lpthread'
14790 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14796 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14803 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14805 $as_echo "$ac_cv_header_threads_h" >&6; }
14806 gl_stdthreadlib_body_done
=done
14809 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14810 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14811 gl_threads_api
=isoc
14813 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14817 if test $gl_threads_api = none
; then
14818 case "$gl_use_threads" in
14819 yes | windows | win32
) # The 'win32' is for backward compatibility.
14820 if { case "$host_os" in
14825 gl_threads_api
=windows
14827 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14835 $as_echo_n "checking for multithread API to use... " >&6; }
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14837 $as_echo "$gl_threads_api" >&6; }
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14851 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14852 if ${gl_cv_func_malloc_posix+:} false
; then :
14853 $as_echo_n "(cached) " >&6
14856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14862 #if defined _WIN32 && ! defined __CYGWIN__
14870 if ac_fn_c_try_compile
"$LINENO"; then :
14871 gl_cv_func_malloc_posix
=yes
14873 gl_cv_func_malloc_posix
=no
14875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14879 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14884 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14885 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14886 $as_echo_n "(cached) " >&6
14888 if test "$cross_compiling" = yes; then :
14890 # Guess yes on platforms where we know the result.
14891 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
14892 | hpux
* | solaris
* | cygwin
* | mingw
*)
14893 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
14894 # If we don't know, obey --enable-cross-guesses.
14895 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
14899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 #include <stdlib.h>
14906 char *p = malloc (0);
14915 if ac_fn_c_try_run
"$LINENO"; then :
14916 ac_cv_func_malloc_0_nonnull
=yes
14918 ac_cv_func_malloc_0_nonnull
=no
14920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14927 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14928 case "$ac_cv_func_malloc_0_nonnull" in
14930 gl_cv_func_malloc_0_nonnull
=1
14933 gl_cv_func_malloc_0_nonnull
=0
14938 cat >>confdefs.h
<<_ACEOF
14939 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14953 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14954 if ${gt_cv_locale_ja+:} false
; then :
14955 $as_echo_n "(cached) " >&6
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14961 #include <locale.h>
14963 #if HAVE_LANGINFO_CODESET
14964 # include <langinfo.h>
14966 #include <stdlib.h>
14967 #include <string.h>
14972 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14973 imitates locale dependent behaviour by looking at the environment
14974 variables, and all locales use the UTF-8 encoding. */
14975 #if defined __BEOS__ || defined __HAIKU__
14978 /* Check whether the given locale name is recognized by the system. */
14979 # if defined _WIN32 && !defined __CYGWIN__
14980 /* On native Windows, setlocale(category, "") looks at the system settings,
14981 not at the environment variables. Also, when an encoding suffix such
14982 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14983 category of the locale to "C". */
14984 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14985 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14988 if (setlocale (LC_ALL, "") == NULL) return 1;
14990 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14991 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14992 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14993 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14994 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14995 some unit tests fail.
14996 On MirBSD 10, when an unsupported locale is specified, setlocale()
14997 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14998 # if HAVE_LANGINFO_CODESET
15000 const char *cs = nl_langinfo (CODESET);
15001 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15002 || strcmp (cs, "UTF-8") == 0)
15007 /* On Cygwin, avoid locale names without encoding suffix, because the
15008 locale_charset() function relies on the encoding suffix. Note that
15009 LC_ALL is set on the command line. */
15010 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15012 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
15013 on Cygwin 1.5.x. */
15014 if (MB_CUR_MAX == 1)
15016 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15017 This excludes the UTF-8 encoding (except on MirBSD). */
15020 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15021 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15022 for (p = buf; *p != '\0'; p++)
15023 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15032 (eval $ac_link) 2>&5
15034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15037 # Handle native Windows specially, because there setlocale() interprets
15038 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15039 # "fr" or "fra" as "French" or "French_France.1252",
15040 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15041 # "ja" as "Japanese" or "Japanese_Japan.932",
15044 # Note that on native Windows, the Japanese locale is
15045 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
15046 # cannot use it here.
15047 gt_cv_locale_ja
=none
15050 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15051 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15052 # configure script would override the LC_ALL setting. Likewise for
15053 # LC_CTYPE, which is also set at the beginning of the configure script.
15054 # Test for the AIX locale name.
15055 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15056 gt_cv_locale_ja
=ja_JP
15058 # Test for the locale name with explicit encoding suffix.
15059 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15060 gt_cv_locale_ja
=ja_JP.EUC-JP
15062 # Test for the HP-UX, OSF/1, NetBSD locale name.
15063 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15064 gt_cv_locale_ja
=ja_JP.eucJP
15066 # Test for the IRIX, FreeBSD locale name.
15067 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15068 gt_cv_locale_ja
=ja_JP.EUC
15070 # Test for the Solaris 7 locale name.
15071 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15074 # Special test for NetBSD 1.6.
15075 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
15076 gt_cv_locale_ja
=ja_JP.eucJP
15079 gt_cv_locale_ja
=none
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
15093 $as_echo "$gt_cv_locale_ja" >&6; }
15094 LOCALE_JA
=$gt_cv_locale_ja
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
15100 $as_echo_n "checking for a french Unicode locale... " >&6; }
15101 if ${gt_cv_locale_fr_utf8+:} false
; then :
15102 $as_echo_n "(cached) " >&6
15105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15108 #include <locale.h>
15110 #if HAVE_LANGINFO_CODESET
15111 # include <langinfo.h>
15113 #include <stdlib.h>
15114 #include <string.h>
15118 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15119 imitates locale dependent behaviour by looking at the environment
15120 variables, and all locales use the UTF-8 encoding. */
15121 #if !(defined __BEOS__ || defined __HAIKU__)
15122 /* Check whether the given locale name is recognized by the system. */
15123 # if defined _WIN32 && !defined __CYGWIN__
15124 /* On native Windows, setlocale(category, "") looks at the system settings,
15125 not at the environment variables. Also, when an encoding suffix such
15126 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15127 category of the locale to "C". */
15128 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15129 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15132 if (setlocale (LC_ALL, "") == NULL) return 1;
15134 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15135 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15136 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15137 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15138 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15139 some unit tests fail. */
15140 # if HAVE_LANGINFO_CODESET
15142 const char *cs = nl_langinfo (CODESET);
15143 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15148 /* On Cygwin, avoid locale names without encoding suffix, because the
15149 locale_charset() function relies on the encoding suffix. Note that
15150 LC_ALL is set on the command line. */
15151 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15153 /* Check whether in the abbreviation of the second month, the second
15154 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15155 two bytes long, with UTF-8 encoding. */
15156 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15157 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15158 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15161 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15162 /* Check whether the decimal separator is a comma.
15163 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15164 are nl_langinfo(RADIXCHAR) are both ".". */
15165 if (localeconv () ->decimal_point[0] != ',') return 1;
15171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15172 (eval $ac_link) 2>&5
15174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15177 # Handle native Windows specially, because there setlocale() interprets
15178 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15179 # "fr" or "fra" as "French" or "French_France.1252",
15180 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15181 # "ja" as "Japanese" or "Japanese_Japan.932",
15184 # Test for the hypothetical native Windows locale name.
15185 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15186 gt_cv_locale_fr_utf8
=French_France
.65001
15189 gt_cv_locale_fr_utf8
=none
15193 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15194 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15195 # configure script would override the LC_ALL setting. Likewise for
15196 # LC_CTYPE, which is also set at the beginning of the configure script.
15197 # Test for the usual locale name.
15198 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15199 gt_cv_locale_fr_utf8
=fr_FR
15201 # Test for the locale name with explicit encoding suffix.
15202 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15203 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
15205 # Test for the Solaris 7 locale name.
15206 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15207 gt_cv_locale_fr_utf8
=fr.UTF-8
15210 gt_cv_locale_fr_utf8
=none
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15221 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15222 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15229 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15230 if ${gt_cv_locale_zh_CN+:} false
; then :
15231 $as_echo_n "(cached) " >&6
15234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15237 #include <locale.h>
15238 #include <stdlib.h>
15240 #if HAVE_LANGINFO_CODESET
15241 # include <langinfo.h>
15243 #include <stdlib.h>
15244 #include <string.h>
15249 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15250 imitates locale dependent behaviour by looking at the environment
15251 variables, and all locales use the UTF-8 encoding. */
15252 #if defined __BEOS__ || defined __HAIKU__
15255 /* Check whether the given locale name is recognized by the system. */
15256 # if defined _WIN32 && !defined __CYGWIN__
15257 /* On native Windows, setlocale(category, "") looks at the system settings,
15258 not at the environment variables. Also, when an encoding suffix such
15259 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15260 category of the locale to "C". */
15261 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15262 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15265 if (setlocale (LC_ALL, "") == NULL) return 1;
15267 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15268 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15269 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15270 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15271 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15272 some unit tests fail.
15273 On MirBSD 10, when an unsupported locale is specified, setlocale()
15274 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15275 # if HAVE_LANGINFO_CODESET
15277 const char *cs = nl_langinfo (CODESET);
15278 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15279 || strcmp (cs, "UTF-8") == 0)
15284 /* On Cygwin, avoid locale names without encoding suffix, because the
15285 locale_charset() function relies on the encoding suffix. Note that
15286 LC_ALL is set on the command line. */
15287 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15289 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15290 This excludes the UTF-8 encoding (except on MirBSD). */
15293 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15294 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15295 for (p = buf; *p != '\0'; p++)
15296 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15299 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15300 single wide character. This excludes the GB2312 and GBK encodings. */
15301 if (mblen ("\203\062\332\066", 5) != 4)
15308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15309 (eval $ac_link) 2>&5
15311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15312 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15314 # Handle native Windows specially, because there setlocale() interprets
15315 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15316 # "fr" or "fra" as "French" or "French_France.1252",
15317 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15318 # "ja" as "Japanese" or "Japanese_Japan.932",
15321 # Test for the hypothetical native Windows locale name.
15322 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15323 gt_cv_locale_zh_CN
=Chinese_China
.54936
15326 gt_cv_locale_zh_CN
=none
15330 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15331 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15332 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15333 gt_cv_locale_zh_CN
=none
15336 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15337 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15338 # configure script would override the LC_ALL setting. Likewise for
15339 # LC_CTYPE, which is also set at the beginning of the configure script.
15340 # Test for the locale name without encoding suffix.
15341 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15342 gt_cv_locale_zh_CN
=zh_CN
15344 # Test for the locale name with explicit encoding suffix.
15345 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15346 gt_cv_locale_zh_CN
=zh_CN.GB18030
15349 gt_cv_locale_zh_CN
=none
15355 # If there was a link error, due to mblen(), the system is so old that
15356 # it certainly doesn't have a chinese locale.
15357 gt_cv_locale_zh_CN
=none
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15363 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15364 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15368 $as_echo_n "checking for inline... " >&6; }
15369 if ${ac_cv_c_inline+:} false
; then :
15370 $as_echo_n "(cached) " >&6
15373 for ac_kw
in inline __inline__ __inline
; do
15374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 #ifndef __cplusplus
15378 static $ac_kw foo_t static_foo () {return 0; }
15379 $ac_kw foo_t foo () {return 0; }
15383 if ac_fn_c_try_compile
"$LINENO"; then :
15384 ac_cv_c_inline
=$ac_kw
15386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15387 test "$ac_cv_c_inline" != no
&& break
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15392 $as_echo "$ac_cv_c_inline" >&6; }
15394 case $ac_cv_c_inline in
15397 case $ac_cv_c_inline in
15399 *) ac_val
=$ac_cv_c_inline;;
15401 cat >>confdefs.h
<<_ACEOF
15402 #ifndef __cplusplus
15403 #define inline $ac_val
15414 GNULIB_EXPLICIT_BZERO
=0;
15421 GNULIB_RAWMEMCHR
=0;
15424 GNULIB_STRCHRNUL
=0;
15432 GNULIB_STRCASESTR
=0;
15439 GNULIB_MBSCASECMP
=0;
15440 GNULIB_MBSNCASECMP
=0;
15441 GNULIB_MBSPCASECMP
=0;
15442 GNULIB_MBSCASESTR
=0;
15449 GNULIB_STRERROR_R
=0;
15450 GNULIB_STRERRORNAME_NP
=0;
15451 GNULIB_SIGABBREV_NP
=0;
15452 GNULIB_SIGDESCR_NP
=0;
15453 GNULIB_STRSIGNAL
=0;
15454 GNULIB_STRVERSCMP
=0;
15456 GNULIB_MDA_MEMCCPY
=1;
15457 GNULIB_MDA_STRDUP
=1;
15458 HAVE_EXPLICIT_BZERO
=1;
15461 HAVE_DECL_MEMMEM
=1;
15463 HAVE_DECL_MEMRCHR
=1;
15468 HAVE_DECL_STRDUP
=1;
15469 HAVE_DECL_STRNDUP
=1;
15470 HAVE_DECL_STRNLEN
=1;
15474 HAVE_DECL_STRTOK_R
=1;
15475 HAVE_DECL_STRERROR_R
=1;
15476 HAVE_STRERRORNAME_NP
=1;
15477 HAVE_SIGABBREV_NP
=1;
15478 HAVE_SIGDESCR_NP
=1;
15479 HAVE_DECL_STRSIGNAL
=1;
15485 REPLACE_STRCHRNUL
=0;
15491 REPLACE_STRCASESTR
=0;
15492 REPLACE_STRTOK_R
=0;
15493 REPLACE_STRERROR
=0;
15494 REPLACE_STRERROR_R
=0;
15495 REPLACE_STRERRORNAME_NP
=0;
15496 REPLACE_STRSIGNAL
=0;
15497 UNDEFINE_STRTOK_R
=0;
15504 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15505 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15506 # irrelevant for anonymous mappings.
15507 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15508 if test "x$ac_cv_func_mmap" = xyes
; then :
15515 # Try to allow MAP_ANONYMOUS.
15516 gl_have_mmap_anonymous
=no
15517 if test $gl_have_mmap = yes; then
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15519 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15523 #include <sys/mman.h>
15524 #ifdef MAP_ANONYMOUS
15525 I cannot identify this map
15529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15530 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15531 gl_have_mmap_anonymous
=yes
15535 if test $gl_have_mmap_anonymous != yes; then
15536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15539 #include <sys/mman.h>
15541 I cannot identify this map
15545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15546 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15548 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15550 gl_have_mmap_anonymous
=yes
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15556 $as_echo "$gl_have_mmap_anonymous" >&6; }
15557 if test $gl_have_mmap_anonymous = yes; then
15559 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15568 # Detect platform-specific bugs in some versions of glibc:
15569 # memchr should not dereference anything with length 0
15570 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15571 # memchr should not dereference overestimated length after a match
15572 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15573 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15574 # memchr should cast the second argument to 'unsigned char'.
15575 # This bug exists in Android 4.3.
15576 # Assume that memchr works on platforms that lack mprotect.
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15578 $as_echo_n "checking whether memchr works... " >&6; }
15579 if ${gl_cv_func_memchr_works+:} false
; then :
15580 $as_echo_n "(cached) " >&6
15582 if test "$cross_compiling" = yes; then :
15584 # Guess no on Android.
15585 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15586 # Guess yes on native Windows.
15587 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15588 # If we don't know, obey --enable-cross-guesses.
15589 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15596 #include <string.h>
15597 #if HAVE_SYS_MMAN_H
15598 # include <fcntl.h>
15599 # include <unistd.h>
15600 # include <sys/types.h>
15601 # include <sys/mman.h>
15603 # define MAP_FILE 0
15612 char *fence = NULL;
15613 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15614 # if HAVE_MAP_ANONYMOUS
15615 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15617 # else /* !HAVE_MAP_ANONYMOUS */
15618 const int flags = MAP_FILE | MAP_PRIVATE;
15619 int fd = open ("/dev/zero", O_RDONLY, 0666);
15623 int pagesize = getpagesize ();
15625 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15627 if (two_pages != (char *)(-1)
15628 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15629 fence = two_pages + pagesize;
15634 /* Test against bugs on glibc systems. */
15635 if (memchr (fence, 0, 0))
15637 strcpy (fence - 9, "12345678");
15638 if (memchr (fence - 9, 0, 79) != fence - 1)
15640 if (memchr (fence - 1, 0, 3) != fence - 1)
15642 /* Test against bug on AIX 7.2. */
15643 if (memchr (fence - 4, '6', 16) != fence - 4)
15646 /* Test against bug on Android 4.3. */
15652 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15661 if ac_fn_c_try_run
"$LINENO"; then :
15662 gl_cv_func_memchr_works
=yes
15664 gl_cv_func_memchr_works
=no
15666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15673 $as_echo "$gl_cv_func_memchr_works" >&6; }
15674 case "$gl_cv_func_memchr_works" in
15676 *) REPLACE_MEMCHR
=1 ;;
15679 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15680 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15686 cat >>confdefs.h
<<_ACEOF
15687 #define HAVE_DECL_MEMMEM $ac_have_decl
15694 for ac_func
in memmem
15696 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15697 if test "x$ac_cv_func_memmem" = xyes
; then :
15698 cat >>confdefs.h
<<_ACEOF
15699 #define HAVE_MEMMEM 1
15705 if test $ac_cv_func_memmem = yes; then
15711 if test $ac_cv_have_decl_memmem = no
; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15715 $as_echo_n "checking whether memmem works... " >&6; }
15716 if ${gl_cv_func_memmem_works_always+:} false
; then :
15717 $as_echo_n "(cached) " >&6
15719 if test "$cross_compiling" = yes; then :
15720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15723 #ifdef __GNU_LIBRARY__
15724 #include <features.h>
15725 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15726 || __GLIBC_MINOR__ > 12)) \
15727 || (__GLIBC__ > 2)) \
15728 || defined __UCLIBC__
15731 #elif defined __CYGWIN__
15732 #include <cygwin/version.h>
15733 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15742 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15743 gl_cv_func_memmem_works_always
="guessing yes"
15745 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15754 #include <string.h> /* for memmem */
15755 #define P "_EF_BF_BD"
15756 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15757 #define NEEDLE P P P P P
15764 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15766 /* Check for empty needle behavior. */
15768 const char *haystack = "AAA";
15769 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
15778 if ac_fn_c_try_run
"$LINENO"; then :
15779 gl_cv_func_memmem_works_always
=yes
15781 gl_cv_func_memmem_works_always
=no
15783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15784 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15790 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15791 case "$gl_cv_func_memmem_works_always" in
15800 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15801 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15807 cat >>confdefs.h
<<_ACEOF
15808 #define HAVE_DECL_MEMRCHR $ac_have_decl
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
15816 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
15817 if ${gl_cv_minmax_in_limits_h+:} false
; then :
15818 $as_echo_n "(cached) " >&6
15820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h. */
15822 #include <limits.h>
15823 int x = MIN (42, 17);
15832 if ac_fn_c_try_compile
"$LINENO"; then :
15833 gl_cv_minmax_in_limits_h
=yes
15835 gl_cv_minmax_in_limits_h
=no
15837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
15840 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
15841 if test $gl_cv_minmax_in_limits_h = yes; then
15843 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
15853 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
15854 if ${gl_cv_minmax_in_sys_param_h+:} false
; then :
15855 $as_echo_n "(cached) " >&6
15857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 #include <sys/param.h>
15860 int x = MIN (42, 17);
15869 if ac_fn_c_try_compile
"$LINENO"; then :
15870 gl_cv_minmax_in_sys_param_h
=yes
15872 gl_cv_minmax_in_sys_param_h
=no
15874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
15877 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
15878 if test $gl_cv_minmax_in_sys_param_h = yes; then
15880 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15894 $as_echo_n "checking for O_CLOEXEC... " >&6; }
15895 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
15896 $as_echo_n "(cached) " >&6
15898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15913 if ac_fn_c_try_compile
"$LINENO"; then :
15914 gl_cv_macro_O_CLOEXEC
=yes
15916 gl_cv_macro_O_CLOEXEC
=no
15918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
15921 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
15926 $as_echo_n "checking for promoted mode_t type... " >&6; }
15927 if ${gl_cv_promoted_mode_t+:} false
; then :
15928 $as_echo_n "(cached) " >&6
15931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15933 #include <sys/types.h>
15937 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
15942 if ac_fn_c_try_compile
"$LINENO"; then :
15943 gl_cv_promoted_mode_t
='int'
15945 gl_cv_promoted_mode_t
='mode_t'
15947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
15951 $as_echo "$gl_cv_promoted_mode_t" >&6; }
15953 cat >>confdefs.h
<<_ACEOF
15954 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
15973 GNULIB_FPRINTF_POSIX
=0;
15989 GNULIB_OBSTACK_PRINTF
=0;
15990 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15995 GNULIB_PRINTF_POSIX
=0;
16004 GNULIB_SPRINTF_POSIX
=0;
16005 GNULIB_STDIO_H_NONBLOCKING
=0;
16006 GNULIB_STDIO_H_SIGPIPE
=0;
16008 GNULIB_VASPRINTF
=0;
16013 GNULIB_VFPRINTF_POSIX
=0;
16015 GNULIB_VPRINTF_POSIX
=0;
16016 GNULIB_VSNPRINTF
=0;
16017 GNULIB_VSPRINTF_POSIX
=0;
16018 GNULIB_MDA_FCLOSEALL
=1;
16019 GNULIB_MDA_FDOPEN
=1;
16020 GNULIB_MDA_FILENO
=1;
16023 GNULIB_MDA_TEMPNAM
=1;
16024 HAVE_DECL_FCLOSEALL
=1;
16025 HAVE_DECL_FPURGE
=1;
16026 HAVE_DECL_FSEEKO
=1;
16027 HAVE_DECL_FTELLO
=1;
16028 HAVE_DECL_GETDELIM
=1;
16029 HAVE_DECL_GETLINE
=1;
16030 HAVE_DECL_OBSTACK_PRINTF
=1;
16031 HAVE_DECL_SNPRINTF
=1;
16032 HAVE_DECL_VSNPRINTF
=1;
16053 REPLACE_GETDELIM
=0;
16055 REPLACE_OBSTACK_PRINTF
=0;
16061 REPLACE_RENAMEAT
=0;
16062 REPLACE_SNPRINTF
=0;
16064 REPLACE_STDIO_READ_FUNCS
=0;
16065 REPLACE_STDIO_WRITE_FUNCS
=0;
16067 REPLACE_VASPRINTF
=0;
16068 REPLACE_VDPRINTF
=0;
16069 REPLACE_VFPRINTF
=0;
16071 REPLACE_VSNPRINTF
=0;
16072 REPLACE_VSPRINTF
=0;
16076 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
16077 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
16083 cat >>confdefs.h
<<_ACEOF
16084 #define HAVE_DECL_SETENV $ac_have_decl
16092 if test $ac_cv_have_decl_setenv = no
; then
16100 for ac_header
in search.h
16102 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
16103 if test "x$ac_cv_header_search_h" = xyes
; then :
16104 cat >>confdefs.h
<<_ACEOF
16105 #define HAVE_SEARCH_H 1
16112 for ac_func
in tsearch
16114 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
16115 if test "x$ac_cv_func_tsearch" = xyes
; then :
16116 cat >>confdefs.h
<<_ACEOF
16117 #define HAVE_TSEARCH 1
16126 GNULIB_PTHREAD_SIGMASK
=0;
16128 GNULIB_SIGNAL_H_SIGPIPE
=0;
16129 GNULIB_SIGPROCMASK
=0;
16130 GNULIB_SIGACTION
=0;
16131 HAVE_POSIX_SIGNALBLOCKING
=1;
16132 HAVE_PTHREAD_SIGMASK
=1;
16137 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
16139 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
16141 HAVE_SIGHANDLER_T
=1;
16142 REPLACE_PTHREAD_SIGMASK
=0;
16146 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
16147 #include <signal.h>
16148 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
16149 #include <sys/types.h>
16152 if test "x$ac_cv_type_sigset_t" = xyes
; then :
16154 cat >>confdefs.h
<<_ACEOF
16155 #define HAVE_SIGSET_T 1
16158 gl_cv_type_sigset_t
=yes
16160 gl_cv_type_sigset_t
=no
16163 if test $gl_cv_type_sigset_t != yes; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16168 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16169 if ${ac_cv_type_uid_t+:} false
; then :
16170 $as_echo_n "(cached) " >&6
16172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16174 #include <sys/types.h>
16177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16178 $EGREP "uid_t" >/dev
/null
2>&1; then :
16179 ac_cv_type_uid_t
=yes
16181 ac_cv_type_uid_t
=no
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16187 $as_echo "$ac_cv_type_uid_t" >&6; }
16188 if test $ac_cv_type_uid_t = no
; then
16190 $as_echo "#define uid_t int" >>confdefs.h
16193 $as_echo "#define gid_t int" >>confdefs.h
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16198 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16199 if ${ac_cv_header_stdbool_h+:} false
; then :
16200 $as_echo_n "(cached) " >&6
16202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16205 #include <stdbool.h>
16210 typedef _Bool Bool;
16212 "error: bool is not defined"
16215 "error: false is not defined"
16218 "error: false is not 0"
16221 "error: true is not defined"
16224 "error: true is not 1"
16228 #ifndef __bool_true_false_are_defined
16229 "error: __bool_true_false_are_defined is not defined"
16232 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
16234 char a[true == 1 ? 1 : -1];
16235 char b[false == 0 ? 1 : -1];
16236 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16237 char d[(bool) 0.5 == true ? 1 : -1];
16238 /* See body of main program for 'e'. */
16239 char f[(Bool) 0.0 == false ? 1 : -1];
16241 char h[sizeof (Bool)];
16242 char i[sizeof s.t];
16243 enum { j = false, k = true, l = false * true, m = true * 256 };
16244 /* The following fails for
16245 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16247 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16248 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16249 /* Catch a bug in an HP-UX C compiler. See
16250 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16251 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16262 *pq |= q; *pq |= ! q;
16263 *qq |= q; *qq |= ! q;
16264 /* Refer to every declared value, to avoid compiler optimizations. */
16265 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16266 + !m + !n + !o + !p + !q + !pq + !qq);
16272 if ac_fn_c_try_compile
"$LINENO"; then :
16273 ac_cv_header_stdbool_h
=yes
16275 ac_cv_header_stdbool_h
=no
16277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16280 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16281 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16282 if test "x$ac_cv_type__Bool" = xyes
; then :
16284 cat >>confdefs.h
<<_ACEOF
16285 #define HAVE__BOOL 1
16292 ac_fn_c_check_decl
"$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default"
16293 if test "x$ac_cv_have_decl_fcloseall" = xyes
; then :
16299 cat >>confdefs.h
<<_ACEOF
16300 #define HAVE_DECL_FCLOSEALL $ac_have_decl
16303 ac_fn_c_check_decl
"$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default"
16304 if test "x$ac_cv_have_decl_ecvt" = xyes
; then :
16310 cat >>confdefs.h
<<_ACEOF
16311 #define HAVE_DECL_ECVT $ac_have_decl
16314 ac_fn_c_check_decl
"$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default"
16315 if test "x$ac_cv_have_decl_fcvt" = xyes
; then :
16321 cat >>confdefs.h
<<_ACEOF
16322 #define HAVE_DECL_FCVT $ac_have_decl
16325 ac_fn_c_check_decl
"$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default"
16326 if test "x$ac_cv_have_decl_gcvt" = xyes
; then :
16332 cat >>confdefs.h
<<_ACEOF
16333 #define HAVE_DECL_GCVT $ac_have_decl
16336 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
16337 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
16343 cat >>confdefs.h
<<_ACEOF
16344 #define HAVE_DECL_STRDUP $ac_have_decl
16348 REPLACE_STRERROR_0
=0
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16350 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
16351 if ${gl_cv_func_strerror_0_works+:} false
; then :
16352 $as_echo_n "(cached) " >&6
16354 if test "$cross_compiling" = yes; then :
16356 # Guess yes on glibc systems.
16357 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16358 # Guess yes on musl systems.
16359 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16360 # Guess yes on native Windows.
16361 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16362 # If we don't know, obey --enable-cross-guesses.
16363 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
16367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 #include <string.h>
16378 str = strerror (0);
16379 if (!*str) result |= 1;
16380 if (errno) result |= 2;
16381 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16388 if ac_fn_c_try_run
"$LINENO"; then :
16389 gl_cv_func_strerror_0_works
=yes
16391 gl_cv_func_strerror_0_works
=no
16393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16400 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16401 case "$gl_cv_func_strerror_0_works" in
16404 REPLACE_STRERROR_0
=1
16406 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16420 if test $ac_cv_func_strerror_r = yes; then
16421 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16423 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16424 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16425 $as_echo_n "(cached) " >&6
16427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 #include <string.h>
16430 int strerror_r (int, char *, size_t);
16440 if ac_fn_c_try_compile
"$LINENO"; then :
16441 gl_cv_func_strerror_r_posix_signature
=yes
16443 gl_cv_func_strerror_r_posix_signature
=no
16445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16449 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16450 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16452 $as_echo_n "checking whether strerror_r works... " >&6; }
16453 if ${gl_cv_func_strerror_r_works+:} false
; then :
16454 $as_echo_n "(cached) " >&6
16456 if test "$cross_compiling" = yes; then :
16460 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16461 # Guess no on HP-UX.
16462 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16463 # Guess no on BSD variants.
16464 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16465 # Guess yes otherwise.
16466 *) gl_cv_func_strerror_r_works
="guessing yes";;
16470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16473 #include <string.h>
16480 if (strerror_r (EACCES, buf, 0) < 0)
16483 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16485 strcpy (buf, "Unknown");
16486 if (strerror_r (0, buf, sizeof buf) != 0)
16490 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16494 if (strerror_r (-3, buf, sizeof buf) < 0)
16506 if ac_fn_c_try_run
"$LINENO"; then :
16507 gl_cv_func_strerror_r_works
=yes
16509 gl_cv_func_strerror_r_works
=no
16511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16518 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16521 if test $ac_cv_func___xpg_strerror_r = yes; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16523 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16524 if ${gl_cv_func_strerror_r_works+:} false
; then :
16525 $as_echo_n "(cached) " >&6
16527 if test "$cross_compiling" = yes; then :
16528 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16534 #include <string.h>
16539 int __xpg_strerror_r(int, char *, size_t);
16545 char buf[256] = "^";
16547 char *str = strerror (-1);
16548 strcpy (copy, str);
16549 if (__xpg_strerror_r (-2, buf, 1) == 0)
16553 __xpg_strerror_r (-2, buf, 256);
16554 if (strcmp (str, copy))
16562 if ac_fn_c_try_run
"$LINENO"; then :
16563 gl_cv_func_strerror_r_works
=yes
16565 gl_cv_func_strerror_r_works
=no
16567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16574 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16580 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16581 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16587 cat >>confdefs.h
<<_ACEOF
16588 #define HAVE_DECL_STRERROR_R $ac_have_decl
16605 if test $gl_cv_have_include_next = yes; then
16606 gl_cv_next_string_h
='<'string.h
'>'
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16609 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16610 if ${gl_cv_next_string_h+:} false
; then :
16611 $as_echo_n "(cached) " >&6
16616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618 #include <string.h>
16621 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16622 *) gl_absname_cpp
="$ac_cpp" ;;
16627 gl_dirsep_regex
='[/\\]'
16630 gl_dirsep_regex
='\/'
16633 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16634 gl_header_literal_regex
=`echo 'string.h' \
16635 | sed -e "$gl_make_literal_regex_sed"`
16636 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16637 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16643 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16644 sed -n "$gl_absolute_header_sed"`
16646 gl_header
=$gl_cv_absolute_string_h
16647 gl_cv_next_string_h
='"'$gl_header'"'
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16652 $as_echo "$gl_cv_next_string_h" >&6; }
16654 NEXT_STRING_H
=$gl_cv_next_string_h
16656 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16658 gl_next_as_first_directive
='<'string.h
'>'
16660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16661 gl_next_as_first_directive
=$gl_cv_next_string_h
16663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16675 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16676 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16682 cat >>confdefs.h
<<_ACEOF
16683 #define HAVE_DECL_STRNLEN $ac_have_decl
16689 if test $REPLACE_MEMCHR = 1; then
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16693 $as_echo_n "checking whether strstr works... " >&6; }
16694 if ${gl_cv_func_strstr_works_always+:} false
; then :
16695 $as_echo_n "(cached) " >&6
16697 if test "$cross_compiling" = yes; then :
16698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16701 #ifdef __GNU_LIBRARY__
16702 #include <features.h>
16703 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16704 || defined __UCLIBC__
16707 #elif defined __CYGWIN__
16708 #include <cygwin/version.h>
16709 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16718 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16719 gl_cv_func_strstr_works_always
="guessing yes"
16721 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16730 #include <string.h> /* for strstr */
16731 #ifdef __GNU_LIBRARY__
16732 #include <features.h>
16733 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16737 #define P "_EF_BF_BD"
16738 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16739 #define NEEDLE P P P P P
16744 return !!strstr (HAYSTACK, NEEDLE);
16750 if ac_fn_c_try_run
"$LINENO"; then :
16751 gl_cv_func_strstr_works_always
=yes
16753 gl_cv_func_strstr_works_always
=no
16755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16762 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16763 case "$gl_cv_func_strstr_works_always" in
16771 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16772 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16778 cat >>confdefs.h
<<_ACEOF
16779 #define HAVE_DECL_STRTOK_R $ac_have_decl
16794 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16806 if test $gl_cv_have_include_next = yes; then
16807 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16810 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16811 if ${gl_cv_next_sys_types_h+:} false
; then :
16812 $as_echo_n "(cached) " >&6
16817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 #include <sys/types.h>
16822 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16823 *) gl_absname_cpp
="$ac_cpp" ;;
16828 gl_dirsep_regex
='[/\\]'
16831 gl_dirsep_regex
='\/'
16834 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16835 gl_header_literal_regex
=`echo 'sys/types.h' \
16836 | sed -e "$gl_make_literal_regex_sed"`
16837 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16838 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16844 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16845 sed -n "$gl_absolute_header_sed"`
16847 gl_header
=$gl_cv_absolute_sys_types_h
16848 gl_cv_next_sys_types_h
='"'$gl_header'"'
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16853 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16855 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16857 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16859 gl_next_as_first_directive
='<'sys
/types.h
'>'
16861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16862 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16864 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16877 WINDOWS_STAT_INODES
=0
16888 GNULIB_LOCALTIME
=0;
16889 GNULIB_NANOSLEEP
=0;
16893 GNULIB_TIMESPEC_GET
=0;
16897 GNULIB_MDA_TZSET
=1;
16898 HAVE_DECL_LOCALTIME_R
=1;
16902 HAVE_TIMESPEC_GET
=1;
16904 REPLACE_CTIME
=GNULIB_PORTCHECK
;
16905 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
16906 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
16907 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
16908 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
16909 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
16910 REPLACE_TZSET
=GNULIB_PORTCHECK
;
16912 : ${GNULIB_GETTIMEOFDAY=0};
16914 REPLACE_LOCALTIME
=0;
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16919 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16920 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
16921 $as_echo_n "(cached) " >&6
16923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h. */
16930 static struct timespec x; x.tv_sec = x.tv_nsec;
16935 if ac_fn_c_try_compile
"$LINENO"; then :
16936 gl_cv_sys_struct_timespec_in_time_h
=yes
16938 gl_cv_sys_struct_timespec_in_time_h
=no
16940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16943 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16945 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16946 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16947 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16948 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
16949 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16950 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16953 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16954 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
16955 $as_echo_n "(cached) " >&6
16957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16959 #include <sys/time.h>
16964 static struct timespec x; x.tv_sec = x.tv_nsec;
16969 if ac_fn_c_try_compile
"$LINENO"; then :
16970 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16972 gl_cv_sys_struct_timespec_in_sys_time_h
=no
16974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16977 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16978 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16979 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16982 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16983 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
16984 $as_echo_n "(cached) " >&6
16986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16988 #include <pthread.h>
16993 static struct timespec x; x.tv_sec = x.tv_nsec;
16998 if ac_fn_c_try_compile
"$LINENO"; then :
16999 gl_cv_sys_struct_timespec_in_pthread_h
=yes
17001 gl_cv_sys_struct_timespec_in_pthread_h
=no
17003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17006 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17007 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17008 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
17011 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
17012 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
17013 $as_echo_n "(cached) " >&6
17015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17017 #include <unistd.h>
17022 static struct timespec x; x.tv_sec = x.tv_nsec;
17027 if ac_fn_c_try_compile
"$LINENO"; then :
17028 gl_cv_sys_struct_timespec_in_unistd_h
=yes
17030 gl_cv_sys_struct_timespec_in_unistd_h
=no
17032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
17035 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
17036 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
17037 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
17058 if test $gl_cv_have_include_next = yes; then
17059 gl_cv_next_time_h
='<'time.h
'>'
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
17062 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17063 if ${gl_cv_next_time_h+:} false
; then :
17064 $as_echo_n "(cached) " >&6
17069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17074 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17075 *) gl_absname_cpp
="$ac_cpp" ;;
17080 gl_dirsep_regex
='[/\\]'
17083 gl_dirsep_regex
='\/'
17086 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17087 gl_header_literal_regex
=`echo 'time.h' \
17088 | sed -e "$gl_make_literal_regex_sed"`
17089 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17090 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17096 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17097 sed -n "$gl_absolute_header_sed"`
17099 gl_header
=$gl_cv_absolute_time_h
17100 gl_cv_next_time_h
='"'$gl_header'"'
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
17105 $as_echo "$gl_cv_next_time_h" >&6; }
17107 NEXT_TIME_H
=$gl_cv_next_time_h
17109 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17111 gl_next_as_first_directive
='<'time.h
'>'
17113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17114 gl_next_as_first_directive
=$gl_cv_next_time_h
17116 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
17126 $as_echo_n "checking for TIME_UTC in <time.h>... " >&6; }
17127 if ${gl_cv_time_h_has_TIME_UTC+:} false
; then :
17128 $as_echo_n "(cached) " >&6
17130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17137 static int x = TIME_UTC; x++;
17142 if ac_fn_c_try_compile
"$LINENO"; then :
17143 gl_cv_time_h_has_TIME_UTC
=yes
17145 gl_cv_time_h_has_TIME_UTC
=no
17147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
17150 $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; }
17151 if test $gl_cv_time_h_has_TIME_UTC = yes; then
17152 TIME_H_DEFINES_TIME_UTC
=1
17154 TIME_H_DEFINES_TIME_UTC
=0
17160 ac_fn_c_check_decl
"$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default"
17161 if test "x$ac_cv_have_decl_execvpe" = xyes
; then :
17167 cat >>confdefs.h
<<_ACEOF
17168 #define HAVE_DECL_EXECVPE $ac_have_decl
17171 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
17172 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
17178 cat >>confdefs.h
<<_ACEOF
17179 #define HAVE_DECL_UNSETENV $ac_have_decl
17186 if test $ac_cv_header_crtdefs_h = yes; then
17196 GNULIB_ISWXDIGIT
=0;
17200 GNULIB_TOWCTRANS
=0;
17204 REPLACE_ISWBLANK
=0;
17205 REPLACE_ISWDIGIT
=0;
17206 REPLACE_ISWXDIGIT
=0;
17216 GL_COND_LIBTOOL_TRUE
=
17217 GL_COND_LIBTOOL_FALSE
='#'
17219 GL_COND_LIBTOOL_TRUE
='#'
17220 GL_COND_LIBTOOL_FALSE
=
17223 gl_cond_libtool
=false
17226 gl_m4_base
='import/m4'
17237 gl_source_base
='import'
17240 if test $ac_cv_func_alloca_works = no
; then
17244 # Define an additional variable used in the Makefile substitution.
17245 if test $ac_cv_working_alloca_h = yes; then
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17247 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17248 if ${gl_cv_rpl_alloca+:} false
; then :
17249 $as_echo_n "(cached) " >&6
17252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17255 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17261 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
17262 gl_cv_rpl_alloca
=yes
17264 gl_cv_rpl_alloca
=no
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17271 $as_echo "$gl_cv_rpl_alloca" >&6; }
17272 if test $gl_cv_rpl_alloca = yes; then
17274 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17284 if test -n "$ALLOCA_H"; then
17285 GL_GENERATE_ALLOCA_H_TRUE
=
17286 GL_GENERATE_ALLOCA_H_FALSE
='#'
17288 GL_GENERATE_ALLOCA_H_TRUE
='#'
17289 GL_GENERATE_ALLOCA_H_FALSE
=
17293 if test $ac_cv_working_alloca_h = yes; then
17304 if test $ac_cv_header_arpa_inet_h = yes; then
17319 if test $gl_cv_have_include_next = yes; then
17320 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
17323 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
17324 if ${gl_cv_next_arpa_inet_h+:} false
; then :
17325 $as_echo_n "(cached) " >&6
17328 if test $ac_cv_header_arpa_inet_h = yes; then
17333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17335 #include <arpa/inet.h>
17338 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17339 *) gl_absname_cpp
="$ac_cpp" ;;
17344 gl_dirsep_regex
='[/\\]'
17347 gl_dirsep_regex
='\/'
17350 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17351 gl_header_literal_regex
=`echo 'arpa/inet.h' \
17352 | sed -e "$gl_make_literal_regex_sed"`
17353 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17360 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17361 sed -n "$gl_absolute_header_sed"`
17363 gl_header
=$gl_cv_absolute_arpa_inet_h
17364 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
17366 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
17372 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
17374 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
17376 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17378 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
17380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17381 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
17383 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17393 if test $ac_cv_header_sys_socket_h = yes; then
17396 if test $ac_cv_header_ws2tcpip_h = yes; then
17417 if test $ac_cv_func_btowc = no
; then
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17425 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17426 if ${gl_cv_func_btowc_nul+:} false
; then :
17427 $as_echo_n "(cached) " >&6
17430 if test "$cross_compiling" = yes; then :
17433 # Guess no on Cygwin.
17434 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17435 # Guess yes on native Windows.
17436 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
17437 # Guess yes otherwise.
17438 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17448 if (btowc ('\0') != 0)
17453 if ac_fn_c_try_run
"$LINENO"; then :
17454 gl_cv_func_btowc_nul
=yes
17456 gl_cv_func_btowc_nul
=no
17458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17465 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17468 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17469 if ${gl_cv_func_btowc_eof+:} false
; then :
17470 $as_echo_n "(cached) " >&6
17474 # Guess no on IRIX.
17475 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17476 # Guess yes on native Windows.
17477 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
17478 # Guess yes otherwise.
17479 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17481 if test $LOCALE_FR != none
; then
17482 if test "$cross_compiling" = yes; then :
17485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17488 #include <locale.h>
17493 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17495 if (btowc (EOF) != WEOF)
17501 if ac_fn_c_try_run
"$LINENO"; then :
17502 gl_cv_func_btowc_eof
=yes
17504 gl_cv_func_btowc_eof
=no
17506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17514 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17516 case "$gl_cv_func_btowc_nul" in
17518 *) REPLACE_BTOWC
=1 ;;
17520 case "$gl_cv_func_btowc_eof" in
17522 *) REPLACE_BTOWC
=1 ;;
17526 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17535 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17552 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17558 $as_echo_n "checking for __builtin_expect... " >&6; }
17559 if ${gl_cv___builtin_expect+:} false
; then :
17560 $as_echo_n "(cached) " >&6
17562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17566 main (int argc, char **argv)
17568 argc = __builtin_expect (argc, 100);
17569 return argv[argc != 100][0];
17572 if ac_fn_c_try_link
"$LINENO"; then :
17573 gl_cv___builtin_expect
=yes
17575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17578 #include <builtins.h>
17580 main (int argc, char **argv)
17582 argc = __builtin_expect (argc, 100);
17583 return argv[argc != 100][0];
17586 if ac_fn_c_try_link
"$LINENO"; then :
17587 gl_cv___builtin_expect
="in <builtins.h>"
17589 gl_cv___builtin_expect
=no
17591 rm -f core conftest.err conftest.
$ac_objext \
17592 conftest
$ac_exeext conftest.
$ac_ext
17594 rm -f core conftest.err conftest.
$ac_objext \
17595 conftest
$ac_exeext conftest.
$ac_ext
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17598 $as_echo "$gl_cv___builtin_expect" >&6; }
17599 if test "$gl_cv___builtin_expect" = yes; then
17600 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17602 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17603 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17611 if test $ac_cv_func_canonicalize_file_name = no
; then
17612 HAVE_CANONICALIZE_FILE_NAME
=0
17613 if test $ac_cv_func_realpath = no
; then
17616 case "$gl_cv_func_realpath_works" in
17618 *) REPLACE_REALPATH
=1 ;;
17622 case "$gl_cv_func_realpath_works" in
17626 REPLACE_CANONICALIZE_FILE_NAME
=1
17632 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17641 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17646 cat >>confdefs.h
<<_ACEOF
17647 #define GNULIB_CANONICALIZE_LGPL 1
17656 GNULIB_CANONICALIZE_FILE_NAME
=1
17662 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17677 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17692 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5
17699 $as_echo_n "checking whether this system supports file names of any length... " >&6; }
17700 if ${gl_cv_have_unlimited_file_name_length+:} false
; then :
17701 $as_echo_n "(cached) " >&6
17703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17706 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17708 # include <unistd.h>
17710 #include <limits.h>
17711 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17712 # include <sys/param.h>
17714 #if !defined PATH_MAX && defined MAXPATHLEN
17715 # define PATH_MAX MAXPATHLEN
17719 # define PATH_MAX 1024
17721 #if defined _WIN32 && ! defined __CYGWIN__
17723 # define PATH_MAX 260
17727 have_arbitrary_file_name_length_limit
17730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17731 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17732 gl_cv_have_unlimited_file_name_length
=no
17734 gl_cv_have_unlimited_file_name_length
=yes
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5
17740 $as_echo "$gl_cv_have_unlimited_file_name_length" >&6; }
17742 if test $gl_cv_have_unlimited_file_name_length = no
; then
17751 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17758 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17759 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17761 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
17762 # programs in the package would end up linked with that potentially-shared
17763 # library, inducing unnecessary run-time overhead.
17766 gl_saved_libs
=$LIBS
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17768 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17769 if ${ac_cv_search_clock_gettime+:} false
; then :
17770 $as_echo_n "(cached) " >&6
17772 ac_func_search_save_LIBS
=$LIBS
17773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17776 /* Override any GCC internal prototype to avoid an error.
17777 Use char because int might match the return type of a GCC
17778 builtin and then its argument prototype would still apply. */
17782 char clock_gettime ();
17786 return clock_gettime ();
17791 for ac_lib
in '' rt posix4
; do
17792 if test -z "$ac_lib"; then
17793 ac_res
="none required"
17796 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17798 if ac_fn_c_try_link
"$LINENO"; then :
17799 ac_cv_search_clock_gettime
=$ac_res
17801 rm -f core conftest.err conftest.
$ac_objext \
17803 if ${ac_cv_search_clock_gettime+:} false
; then :
17807 if ${ac_cv_search_clock_gettime+:} false
; then :
17810 ac_cv_search_clock_gettime
=no
17812 rm conftest.
$ac_ext
17813 LIBS
=$ac_func_search_save_LIBS
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17816 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17817 ac_res
=$ac_cv_search_clock_gettime
17818 if test "$ac_res" != no
; then :
17819 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17820 test "$ac_cv_search_clock_gettime" = "none required" ||
17821 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
17824 for ac_func
in clock_gettime clock_settime
17826 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17827 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17828 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17829 cat >>confdefs.h
<<_ACEOF
17830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17836 LIBS
=$gl_saved_libs
17840 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17847 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17856 if test $ac_cv_header_sys_socket_h != yes; then
17857 for ac_header
in winsock2.h
17859 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17860 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17861 cat >>confdefs.h
<<_ACEOF
17862 #define HAVE_WINSOCK2_H 1
17870 if test "$ac_cv_header_winsock2_h" = yes; then
17872 UNISTD_H_HAVE_WINSOCK2_H
=1
17873 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17879 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17884 if test $REPLACE_CLOSE = 0; then
17888 if test $ac_cv_func_fchdir = no
; then
17892 if test $HAVE_FCHDIR = 0; then
17898 if test $REPLACE_CLOSE = 1; then
17907 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
17921 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17928 for ac_func
in closedir
17930 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
17931 if test "x$ac_cv_func_closedir" = xyes
; then :
17932 cat >>confdefs.h
<<_ACEOF
17933 #define HAVE_CLOSEDIR 1
17939 if test $ac_cv_func_closedir = no
; then
17946 if test $ac_cv_func_fchdir = no
; then
17950 if test $HAVE_FCHDIR = 0; then
17951 if test $HAVE_CLOSEDIR = 1; then
17956 case $host_os,$HAVE_CLOSEDIR in
17958 REPLACE_CLOSEDIR
=1;;
17961 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
17970 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
17984 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
17999 if test $gl_cv_have_include_next = yes; then
18000 gl_cv_next_ctype_h
='<'ctype.h
'>'
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
18003 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
18004 if ${gl_cv_next_ctype_h+:} false
; then :
18005 $as_echo_n "(cached) " >&6
18010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18015 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18016 *) gl_absname_cpp
="$ac_cpp" ;;
18021 gl_dirsep_regex
='[/\\]'
18024 gl_dirsep_regex
='\/'
18027 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18028 gl_header_literal_regex
=`echo 'ctype.h' \
18029 | sed -e "$gl_make_literal_regex_sed"`
18030 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18031 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18037 gl_cv_absolute_ctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18038 sed -n "$gl_absolute_header_sed"`
18040 gl_header
=$gl_cv_absolute_ctype_h
18041 gl_cv_next_ctype_h
='"'$gl_header'"'
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
18046 $as_echo "$gl_cv_next_ctype_h" >&6; }
18048 NEXT_CTYPE_H
=$gl_cv_next_ctype_h
18050 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18052 gl_next_as_first_directive
='<'ctype.h
'>'
18054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18055 gl_next_as_first_directive
=$gl_cv_next_ctype_h
18057 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
=$gl_next_as_first_directive
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
18068 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
18069 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
18070 $as_echo_n "(cached) " >&6
18072 if test "$cross_compiling" = yes; then :
18074 # Guess yes on glibc systems with Linux kernel.
18075 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18076 # Guess yes on musl systems with Linux kernel.
18077 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18078 # Guess no on native Windows.
18079 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
18080 # If we don't know, obey --enable-cross-guesses.
18081 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
18085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087 #include <sys/types.h>
18088 #include <sys/stat.h>
18089 #include <dirent.h>
18094 DIR *dp = opendir (".");
18101 { closedir (dp); return 2; }
18102 if (lstat (e->d_name, &st) != 0)
18103 { closedir (dp); return 3; }
18104 if (e->d_ino != st.st_ino)
18105 { closedir (dp); return 4; }
18113 if ac_fn_c_try_run
"$LINENO"; then :
18114 gl_cv_struct_dirent_d_ino
=yes
18116 gl_cv_struct_dirent_d_ino
=no
18118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18119 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
18124 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
18125 case "$gl_cv_struct_dirent_d_ino" in
18128 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
18135 $as_echo_n "checking for d_type member in directory struct... " >&6; }
18136 if ${gl_cv_struct_dirent_d_type+:} false
; then :
18137 $as_echo_n "(cached) " >&6
18139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18142 #include <sys/types.h>
18143 #include <dirent.h>
18148 struct dirent dp; dp.d_type = 0;
18153 if ac_fn_c_try_link
"$LINENO"; then :
18154 gl_cv_struct_dirent_d_type
=yes
18156 gl_cv_struct_dirent_d_type
=no
18158 rm -f core conftest.err conftest.
$ac_objext \
18159 conftest
$ac_exeext conftest.
$ac_ext
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
18164 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
18165 if test $gl_cv_struct_dirent_d_type = yes; then
18167 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18184 if test $gl_cv_have_include_next = yes; then
18185 gl_cv_next_dirent_h
='<'dirent.h
'>'
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
18188 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
18189 if ${gl_cv_next_dirent_h+:} false
; then :
18190 $as_echo_n "(cached) " >&6
18193 if test $ac_cv_header_dirent_h = yes; then
18198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200 #include <dirent.h>
18203 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18204 *) gl_absname_cpp
="$ac_cpp" ;;
18209 gl_dirsep_regex
='[/\\]'
18212 gl_dirsep_regex
='\/'
18215 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18216 gl_header_literal_regex
=`echo 'dirent.h' \
18217 | sed -e "$gl_make_literal_regex_sed"`
18218 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18219 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18225 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18226 sed -n "$gl_absolute_header_sed"`
18228 gl_header
=$gl_cv_absolute_dirent_h
18229 gl_cv_next_dirent_h
='"'$gl_header'"'
18231 gl_cv_next_dirent_h
='<'dirent.h
'>'
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
18237 $as_echo "$gl_cv_next_dirent_h" >&6; }
18239 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
18241 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18243 gl_next_as_first_directive
='<'dirent.h
'>'
18245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18246 gl_next_as_first_directive
=$gl_cv_next_dirent_h
18248 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
18253 if test $ac_cv_header_dirent_h = yes; then
18269 for ac_func
in dirfd
18271 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
18272 if test "x$ac_cv_func_dirfd" = xyes
; then :
18273 cat >>confdefs.h
<<_ACEOF
18274 #define HAVE_DIRFD 1
18280 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
18281 #include <dirent.h>
18283 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
18289 cat >>confdefs.h
<<_ACEOF
18290 #define HAVE_DECL_DIRFD $ac_have_decl
18293 if test $ac_cv_have_decl_dirfd = no
; then
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
18298 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18299 if ${gl_cv_func_dirfd_macro+:} false
; then :
18300 $as_echo_n "(cached) " >&6
18302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18305 #include <sys/types.h>
18306 #include <dirent.h>
18308 dirent_header_defines_dirfd
18311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18312 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
18313 gl_cv_func_dirfd_macro
=yes
18315 gl_cv_func_dirfd_macro
=no
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
18321 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18323 # Use the replacement if we have no function or macro with that name,
18324 # or if OS/2 kLIBC whose dirfd() does not work.
18325 # Replace only if the system declares dirfd already.
18326 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
18327 no
,no
,*,yes |
*,*,os2
*,yes)
18330 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
18334 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
18335 ||
test $REPLACE_DIRFD = 1; then
18344 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
18348 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18349 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
18350 $as_echo_n "(cached) " >&6
18353 dirfd_save_CFLAGS
=$CFLAGS
18354 for ac_expr
in d_fd dd_fd
; do
18356 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18360 #include <sys/types.h>
18361 #include <dirent.h>
18365 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18370 if ac_fn_c_try_compile
"$LINENO"; then :
18374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18375 CFLAGS
=$dirfd_save_CFLAGS
18376 test "$dir_fd_found" = yes && break
18378 test "$dir_fd_found" = yes || ac_expr
=no_such_member
18380 gl_cv_sys_dir_fd_member_name
=$ac_expr
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
18385 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18386 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
18388 cat >>confdefs.h
<<_ACEOF
18389 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18407 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18414 $as_echo_n "checking whether // is distinct from /... " >&6; }
18415 if ${gl_cv_double_slash_root+:} false
; then :
18416 $as_echo_n "(cached) " >&6
18418 if test x
"$cross_compiling" = xyes
; then
18419 # When cross-compiling, there is no way to tell whether // is special
18420 # short of a list of hosts. However, the only known hosts to date
18421 # that have a distinct // are Apollo DomainOS (too old to port to),
18422 # Cygwin, and z/OS. If anyone knows of another system for which // has
18423 # special semantics and is distinct from /, please report it to
18424 # <bug-gnulib@gnu.org>.
18426 *-cygwin | i370-ibm-openedition
)
18427 gl_cv_double_slash_root
=yes ;;
18429 # Be optimistic and assume that / and // are the same when we
18431 gl_cv_double_slash_root
='unknown, assuming no' ;;
18434 set x
`ls -di / // 2>/dev/null`
18435 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
18436 gl_cv_double_slash_root
=no
18438 gl_cv_double_slash_root
=yes
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18443 $as_echo "$gl_cv_double_slash_root" >&6; }
18444 if test "$gl_cv_double_slash_root" = yes; then
18446 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18454 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18462 if test $ac_cv_func_fchdir = no
; then
18466 if test $HAVE_FCHDIR = 0; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
18471 $as_echo_n "checking whether dup works... " >&6; }
18472 if ${gl_cv_func_dup_works+:} false
; then :
18473 $as_echo_n "(cached) " >&6
18475 if test "$cross_compiling" = yes; then :
18477 # Guess no on native Windows.
18478 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
18479 *) gl_cv_func_dup_works
="guessing yes" ;;
18483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 #include <unistd.h>
18495 /* On OS/2 kLIBC, dup does not work on a directory fd. */
18496 int fd = open (".", O_RDONLY);
18497 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
18504 if ac_fn_c_try_run
"$LINENO"; then :
18505 gl_cv_func_dup_works
=yes
18507 gl_cv_func_dup_works
=no
18509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
18516 $as_echo "$gl_cv_func_dup_works" >&6; }
18517 case "$gl_cv_func_dup_works" in
18524 if test $REPLACE_DUP = 1; then
18533 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
18548 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18556 $as_echo_n "checking whether dup2 works... " >&6; }
18557 if ${gl_cv_func_dup2_works+:} false
; then :
18558 $as_echo_n "(cached) " >&6
18560 if test "$cross_compiling" = yes; then :
18562 mingw
*) # on this platform, dup2 always returns 0 for success
18563 gl_cv_func_dup2_works
="guessing no" ;;
18564 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18565 gl_cv_func_dup2_works
="guessing no" ;;
18567 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18569 gl_cv_func_dup2_works
="guessing no" ;;
18570 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18571 gl_cv_func_dup2_works
="guessing no" ;;
18572 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18573 gl_cv_func_dup2_works
="guessing no" ;;
18574 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
18575 gl_cv_func_dup2_works
="guessing no" ;;
18576 *) gl_cv_func_dup2_works
="guessing yes" ;;
18579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18584 #include <limits.h>
18585 #include <sys/resource.h>
18586 #include <unistd.h>
18591 #ifndef RLIM_SAVED_CUR
18592 # define RLIM_SAVED_CUR RLIM_INFINITY
18594 #ifndef RLIM_SAVED_MAX
18595 # define RLIM_SAVED_MAX RLIM_INFINITY
18602 int bad_fd = INT_MAX;
18603 struct rlimit rlim;
18604 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18605 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18606 && rlim.rlim_cur != RLIM_INFINITY
18607 && rlim.rlim_cur != RLIM_SAVED_MAX
18608 && rlim.rlim_cur != RLIM_SAVED_CUR)
18609 bad_fd = rlim.rlim_cur;
18611 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18614 if (dup2 (1, 1) != 1)
18617 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18621 if (dup2 (0, 0) != -1)
18623 /* Many gnulib modules require POSIX conformance of EBADF. */
18624 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18626 /* Flush out some cygwin core dumps. */
18627 if (dup2 (2, -1) != -1 || errno != EBADF)
18631 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
18633 int fd = open (".", O_RDONLY);
18636 else if (dup2 (fd, fd + 1) == -1)
18646 if ac_fn_c_try_run
"$LINENO"; then :
18647 gl_cv_func_dup2_works
=yes
18649 gl_cv_func_dup2_works
=no
18651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18658 $as_echo "$gl_cv_func_dup2_works" >&6; }
18659 case "$gl_cv_func_dup2_works" in
18663 for ac_func
in setdtablesize
18665 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18666 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
18667 cat >>confdefs.h
<<_ACEOF
18668 #define HAVE_SETDTABLESIZE 1
18680 if test $ac_cv_func_fchdir = no
; then
18684 if test $HAVE_FCHDIR = 0; then
18689 if test $REPLACE_DUP2 = 1; then
18698 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18713 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18729 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18736 $as_echo_n "checking for error_at_line... " >&6; }
18737 if ${ac_cv_lib_error_at_line+:} false
; then :
18738 $as_echo_n "(cached) " >&6
18740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18746 error_at_line (0, 0, "", 0, "an error occurred");
18751 if ac_fn_c_try_link
"$LINENO"; then :
18752 ac_cv_lib_error_at_line
=yes
18754 ac_cv_lib_error_at_line
=no
18756 rm -f core conftest.err conftest.
$ac_objext \
18757 conftest
$ac_exeext conftest.
$ac_ext
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18760 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18762 if test $ac_cv_lib_error_at_line = no
; then
18771 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18785 if test $ac_cv_have_decl_fchdir = no
; then
18790 if test $HAVE_FCHDIR = 0; then
18799 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18803 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18806 $as_echo_n "checking whether open can visit directories... " >&6; }
18807 if ${gl_cv_func_open_directory_works+:} false
; then :
18808 $as_echo_n "(cached) " >&6
18810 if test "$cross_compiling" = yes; then :
18812 # Guess yes on Linux systems.
18813 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18814 # Guess yes on glibc systems.
18815 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18816 # Guess no on native Windows.
18817 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18818 # If we don't know, obey --enable-cross-guesses.
18819 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18833 return open(".", O_RDONLY) < 0;
18838 if ac_fn_c_try_run
"$LINENO"; then :
18839 gl_cv_func_open_directory_works
=yes
18841 gl_cv_func_open_directory_works
=no
18843 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18844 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18849 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18850 case "$gl_cv_func_open_directory_works" in
18854 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18871 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18880 if test $ac_cv_func_fcntl = no
; then
18884 if test $ac_cv_func_fcntl = no
; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18892 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18893 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
18894 $as_echo_n "(cached) " >&6
18896 if test "$cross_compiling" = yes; then :
18898 aix
* | cygwin
* | haiku
*)
18899 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
18900 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
18903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18907 #include <limits.h>
18908 #include <sys/resource.h>
18909 #include <unistd.h>
18914 #ifndef RLIM_SAVED_CUR
18915 # define RLIM_SAVED_CUR RLIM_INFINITY
18917 #ifndef RLIM_SAVED_MAX
18918 # define RLIM_SAVED_MAX RLIM_INFINITY
18925 int bad_fd = INT_MAX;
18926 struct rlimit rlim;
18927 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18928 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18929 && rlim.rlim_cur != RLIM_INFINITY
18930 && rlim.rlim_cur != RLIM_SAVED_MAX
18931 && rlim.rlim_cur != RLIM_SAVED_CUR)
18932 bad_fd = rlim.rlim_cur;
18933 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18934 if (errno != EINVAL) result |= 2;
18935 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18936 if (errno != EINVAL) result |= 8;
18937 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18940 fd = open (".", O_RDONLY);
18943 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18953 if ac_fn_c_try_run
"$LINENO"; then :
18954 gl_cv_func_fcntl_f_dupfd_works
=yes
18956 gl_cv_func_fcntl_f_dupfd_works
=no
18958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18964 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18965 case $gl_cv_func_fcntl_f_dupfd_works in
18970 if test $ac_cv_func_fcntl = no
; then
18977 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
18982 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
18983 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
18984 $as_echo_n "(cached) " >&6
18986 if test "$cross_compiling" = yes; then :
18988 # Guess no on NetBSD.
18989 netbsd
*) gl_cv_func_fcntl_f_dupfd_cloexec
="guessing no" ;;
18990 *) gl_cv_func_fcntl_f_dupfd_cloexec
="$gl_cross_guess_normal" ;;
18994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18997 #include <unistd.h>
18998 int main (int argc, char *argv[])
19001 /* parent process */
19003 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
19005 return execl ("./conftest", "./conftest", "child", NULL);
19008 /* child process */
19009 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
19014 if ac_fn_c_try_run
"$LINENO"; then :
19015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19019 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
19020 it to support the semantics on older kernels that failed with EINVAL. */
19032 if ac_fn_c_try_compile
"$LINENO"; then :
19033 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
19035 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
19037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19040 gl_cv_func_fcntl_f_dupfd_cloexec
=no
19042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19043 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
19049 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
19050 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
19055 if test $ac_cv_func_fcntl = no
; then
19068 if test $ac_cv_func_fchdir = no
; then
19072 if test $HAVE_FCHDIR = 0; then
19076 if test $ac_cv_func_fcntl = no
; then
19085 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
19094 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
19108 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
19123 if test $gl_cv_have_include_next = yes; then
19124 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
19127 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19128 if ${gl_cv_next_fcntl_h+:} false
; then :
19129 $as_echo_n "(cached) " >&6
19134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19139 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19140 *) gl_absname_cpp
="$ac_cpp" ;;
19145 gl_dirsep_regex
='[/\\]'
19148 gl_dirsep_regex
='\/'
19151 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19152 gl_header_literal_regex
=`echo 'fcntl.h' \
19153 | sed -e "$gl_make_literal_regex_sed"`
19154 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19155 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19161 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19162 sed -n "$gl_absolute_header_sed"`
19164 gl_header
=$gl_cv_absolute_fcntl_h
19165 gl_cv_next_fcntl_h
='"'$gl_header'"'
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
19170 $as_echo "$gl_cv_next_fcntl_h" >&6; }
19172 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
19174 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19176 gl_next_as_first_directive
='<'fcntl.h
'>'
19178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19179 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
19181 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
19197 cat >>confdefs.h
<<_ACEOF
19198 #define GNULIB_FD_SAFER_FLAG 1
19207 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
19208 #include <dirent.h>
19211 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
19217 cat >>confdefs.h
<<_ACEOF
19218 #define HAVE_DECL_FDOPENDIR $ac_have_decl
19220 if test $ac_have_decl = 1; then :
19223 HAVE_DECL_FDOPENDIR
=0
19227 if test $ac_cv_func_fdopendir = no
; then
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
19231 $as_echo_n "checking whether fdopendir works... " >&6; }
19232 if ${gl_cv_func_fdopendir_works+:} false
; then :
19233 $as_echo_n "(cached) " >&6
19235 if test "$cross_compiling" = yes; then :
19237 # Guess yes on glibc systems.
19238 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19239 # Guess yes on musl systems.
19240 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19241 # If we don't know, obey --enable-cross-guesses.
19242 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
19246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19249 #include <dirent.h>
19251 #include <unistd.h>
19256 #if !HAVE_DECL_FDOPENDIR
19258 # ifdef __cplusplus
19261 DIR *fdopendir (int);
19268 int fd = open ("conftest.c", O_RDONLY);
19269 if (fd < 0) result |= 1;
19270 if (fdopendir (fd)) result |= 2;
19271 if (close (fd)) result |= 4;
19278 if ac_fn_c_try_run
"$LINENO"; then :
19279 gl_cv_func_fdopendir_works
=yes
19281 gl_cv_func_fdopendir_works
=no
19283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
19289 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
19290 case "$gl_cv_func_fdopendir_works" in
19293 REPLACE_FDOPENDIR
=1
19298 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
19307 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
19321 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
19327 cat >>confdefs.h
<<_ACEOF
19328 #define GNULIB_FDOPENDIR 1
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
19337 $as_echo_n "checking for flexible array member... " >&6; }
19338 if ${ac_cv_c_flexmember+:} false
; then :
19339 $as_echo_n "(cached) " >&6
19341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19343 #include <stdlib.h>
19345 #include <stddef.h>
19346 struct m { struct m *next, **list; char name[]; };
19347 struct s { struct s *p; struct m *m; int n; double d[]; };
19351 int m = getchar ();
19352 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
19353 nbytes += sizeof (struct s) - 1;
19354 nbytes -= nbytes % sizeof (struct s);
19355 struct s *p = malloc (nbytes);
19359 return p->d != (double *) NULL;
19364 if ac_fn_c_try_compile
"$LINENO"; then :
19365 ac_cv_c_flexmember
=yes
19367 ac_cv_c_flexmember
=no
19369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19372 $as_echo "$ac_cv_c_flexmember" >&6; }
19373 if test $ac_cv_c_flexmember = yes; then
19375 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19378 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19386 REPLACE_FLOAT_LDBL
=0
19388 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
19391 freebsd
* | dragonfly
*)
19392 case "$host_cpu" in
19397 # On x86_64 systems, the C compiler may still be generating
19399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19401 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
19408 if ac_fn_c_try_compile
"$LINENO"; then :
19413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19418 case "$host_cpu" in
19426 aix
* | freebsd
* | dragonfly
* | linux
*)
19427 if test -n "$FLOAT_H"; then
19428 REPLACE_FLOAT_LDBL
=1
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
19435 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
19436 if ${gl_cv_func_itold_works+:} false
; then :
19437 $as_echo_n "(cached) " >&6
19440 if test "$cross_compiling" = yes; then :
19443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19445 #if defined __LP64__ || defined __arch64__
19452 if ac_fn_c_try_compile
"$LINENO"; then :
19453 gl_cv_func_itold_works
="guessing no"
19455 gl_cv_func_itold_works
="guessing yes"
19457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19459 # Guess yes on native Windows.
19460 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
19461 *) gl_cv_func_itold_works
="guessing yes" ;;
19465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h. */
19469 volatile long double ld;
19478 if ac_fn_c_try_run
"$LINENO"; then :
19479 gl_cv_func_itold_works
=yes
19481 gl_cv_func_itold_works
=no
19483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
19490 $as_echo "$gl_cv_func_itold_works" >&6; }
19491 case "$gl_cv_func_itold_works" in
19498 if test -n "$FLOAT_H"; then
19507 if test $gl_cv_have_include_next = yes; then
19508 gl_cv_next_float_h
='<'float.h
'>'
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19511 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19512 if ${gl_cv_next_float_h+:} false
; then :
19513 $as_echo_n "(cached) " >&6
19518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19523 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19524 *) gl_absname_cpp
="$ac_cpp" ;;
19529 gl_dirsep_regex
='[/\\]'
19532 gl_dirsep_regex
='\/'
19535 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19536 gl_header_literal_regex
=`echo 'float.h' \
19537 | sed -e "$gl_make_literal_regex_sed"`
19538 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19539 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19545 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19546 sed -n "$gl_absolute_header_sed"`
19548 gl_header
=$gl_cv_absolute_float_h
19549 gl_cv_next_float_h
='"'$gl_header'"'
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19554 $as_echo "$gl_cv_next_float_h" >&6; }
19556 NEXT_FLOAT_H
=$gl_cv_next_float_h
19558 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19560 gl_next_as_first_directive
='<'float.h
'>'
19562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19563 gl_next_as_first_directive
=$gl_cv_next_float_h
19565 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
19572 if test -n "$FLOAT_H"; then
19573 GL_GENERATE_FLOAT_H_TRUE
=
19574 GL_GENERATE_FLOAT_H_FALSE
='#'
19576 GL_GENERATE_FLOAT_H_TRUE
='#'
19577 GL_GENERATE_FLOAT_H_FALSE
=
19582 if test $REPLACE_FLOAT_LDBL = 1; then
19591 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
19594 if test $REPLACE_ITOLD = 1; then
19603 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
19610 gl_fnmatch_required_lowercase
=`
19611 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19614 if test $ac_cv_func_fnmatch = no
; then
19617 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19619 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19620 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
19621 $as_echo_n "(cached) " >&6
19623 if test $gl_fnmatch_required = GNU
; then
19624 gl_fnmatch_gnu_start
=
19625 gl_fnmatch_gnu_end
=
19627 gl_fnmatch_gnu_start
='#if 0'
19628 gl_fnmatch_gnu_end
='#endif'
19630 if test "$cross_compiling" = yes; then :
19632 # Guess yes on musl systems.
19633 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
19634 # Guess no otherwise, even on glibc systems.
19635 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
19639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19641 #include <fnmatch.h>
19643 y (char const *pattern, char const *string, int flags)
19645 return fnmatch (pattern, string, flags) == 0;
19648 n (char const *pattern, char const *string, int flags)
19650 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19656 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19657 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19658 static char const A_1[] = { 'A' - 1, 0 };
19659 static char const A01[] = { 'A' + 1, 0 };
19660 static char const a_1[] = { 'a' - 1, 0 };
19661 static char const a01[] = { 'a' + 1, 0 };
19662 static char const bs_1[] = { '\\\\' - 1, 0 };
19663 static char const bs01[] = { '\\\\' + 1, 0 };
19665 if (!n ("a*", "", 0))
19667 if (!y ("a*", "abc", 0))
19669 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
19671 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
19673 if (!y ("a\\\\bc", "abc", 0))
19675 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
19677 if (!y ("*x", ".x", 0))
19679 if (!n ("*x", ".x", FNM_PERIOD))
19681 if (!y (Apat, "\\\\", 0))
19683 if (!y (Apat, "A", 0))
19685 if (!y (apat, "\\\\", 0))
19687 if (!y (apat, "a", 0))
19689 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
19691 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
19693 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
19695 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
19697 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
19699 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
19701 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
19703 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
19705 $gl_fnmatch_gnu_start
19706 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
19708 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
19710 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
19712 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
19714 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
19716 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
19718 $gl_fnmatch_gnu_end
19725 if ac_fn_c_try_run
"$LINENO"; then :
19726 eval "$gl_fnmatch_cache_var=yes"
19728 eval "$gl_fnmatch_cache_var=no"
19730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19736 eval ac_res
=\$
$gl_fnmatch_cache_var
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19738 $as_echo "$ac_res" >&6; }
19739 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19740 case "$gl_fnmatch_result" in
19742 *) REPLACE_FNMATCH
=1 ;;
19745 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19748 FNMATCH_H
='fnmatch.h'
19749 if test -n "$FNMATCH_H"; then
19750 GL_GENERATE_FNMATCH_H_TRUE
=
19751 GL_GENERATE_FNMATCH_H_FALSE
='#'
19753 GL_GENERATE_FNMATCH_H_TRUE
='#'
19754 GL_GENERATE_FNMATCH_H_FALSE
=
19760 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19769 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19787 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19796 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19805 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19814 cat >>confdefs.h
<<_ACEOF
19815 #define GNULIB_FNMATCH_GNU 1
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
19824 $as_echo_n "checking whether free is known to preserve errno... " >&6; }
19825 if ${gl_cv_func_free_preserves_errno+:} false
; then :
19826 $as_echo_n "(cached) " >&6
19828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #include <stdlib.h>
19835 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
19836 #elif defined __OpenBSD__
19837 #elif defined __sun
19839 #error "'free' is not known to preserve errno"
19846 if ac_fn_c_try_compile
"$LINENO"; then :
19847 gl_cv_func_free_preserves_errno
=yes
19849 gl_cv_func_free_preserves_errno
=no
19851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
19855 $as_echo "$gl_cv_func_free_preserves_errno" >&6; }
19857 case $gl_cv_func_free_preserves_errno in
19859 *) REPLACE_FREE
=1 ;;
19862 if test $REPLACE_FREE = 1; then
19871 gl_LIBOBJS
="$gl_LIBOBJS free.$ac_objext"
19880 GNULIB_FREE_POSIX
=1
19886 $as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
19891 if test $gl_func_frexp != yes; then
19900 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
19914 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
19919 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19928 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19942 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19960 if test $ac_cv_func_fchdir = no
; then
19964 if test $HAVE_FCHDIR = 0; then
19965 case "$gl_cv_func_open_directory_works" in
19974 if test $REPLACE_FSTAT = 1; then
19983 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19995 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
20016 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20027 if test $ac_cv_func_fstatat = no
; then
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
20031 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
20032 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
20033 $as_echo_n "(cached) " >&6
20035 if test "$cross_compiling" = yes; then :
20037 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
20038 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
20042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20043 /* end confdefs.h. */
20046 #include <sys/stat.h>
20051 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
20055 if ac_fn_c_try_run
"$LINENO"; then :
20056 gl_cv_func_fstatat_zero_flag
=yes
20058 gl_cv_func_fstatat_zero_flag
=no
20060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
20067 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
20069 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
20071 *) REPLACE_FSTATAT
=1 ;;
20076 REPLACE_FSTATAT
=1 ;;
20079 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
20082 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
20088 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
20097 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
20111 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
20123 gl_cv_func_getcwd_path_max
=yes
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
20132 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
20133 if ${gl_cv_func_getcwd_path_max+:} false
; then :
20134 $as_echo_n "(cached) " >&6
20136 # Arrange for deletion of the temporary directory this test creates.
20137 ac_clean_files
="$ac_clean_files confdir3"
20138 if test "$cross_compiling" = yes; then :
20139 # Cross-compilation guesses:
20141 aix
*) # On AIX, it has the AIX bug.
20142 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
20143 gnu
*) # On Hurd, it is 'yes'.
20144 gl_cv_func_getcwd_path_max
='guessing yes' ;;
20145 linux
* | kfreebsd
*)
20146 # On older Linux+glibc it's 'no, but it is partly working',
20147 # on newer Linux+glibc it's 'yes'.
20148 # On Linux+musl libc, it's 'no, but it is partly working'.
20149 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
20150 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
20151 *) # If we don't know, obey --enable-cross-guesses.
20152 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
20156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20160 #include <stdlib.h>
20162 # include <unistd.h>
20164 # include <direct.h>
20166 #include <string.h>
20167 #include <limits.h>
20168 #include <sys/stat.h>
20169 #include <sys/types.h>
20173 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20175 # include <unistd.h>
20177 #include <limits.h>
20178 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20179 # include <sys/param.h>
20181 #if !defined PATH_MAX && defined MAXPATHLEN
20182 # define PATH_MAX MAXPATHLEN
20186 # define PATH_MAX 1024
20188 #if defined _WIN32 && ! defined __CYGWIN__
20190 # define PATH_MAX 260
20195 # define AT_FDCWD 0
20197 #ifdef ENAMETOOLONG
20198 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20200 # define is_ENAMETOOLONG(x) 0
20203 /* Use the getcwd function, not any macro. */
20212 # define S_IRWXU 0700
20215 /* The length of this name must be 8. */
20216 #define DIR_NAME "confdir3"
20217 #define DIR_NAME_LEN 8
20218 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20220 /* The length of "../". */
20221 #define DOTDOTSLASH_LEN 3
20223 /* Leftover bytes in the buffer, to work around library or OS bugs. */
20224 #define BUF_SLOP 20
20230 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20231 at least not on a local file system. And if we were to start worrying
20232 about remote file systems, we'd have to enable the wrapper function
20233 all of the time, just to be safe. That's not worth the cost. */
20235 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20236 - DIR_NAME_SIZE - BUF_SLOP) \
20238 /* FIXME: Assuming there's a system for which this is true,
20239 this should be done in a compile test. */
20242 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20243 + DIR_NAME_SIZE + BUF_SLOP];
20244 char *cwd = getcwd (buf, PATH_MAX);
20245 size_t initial_cwd_len;
20248 size_t n_chdirs = 0;
20253 cwd_len = initial_cwd_len = strlen (cwd);
20257 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20260 cwd_len += DIR_NAME_SIZE;
20261 /* If mkdir or chdir fails, it could be that this system cannot create
20262 any file with an absolute name longer than PATH_MAX, such as cygwin.
20263 If so, leave fail as 0, because the current working directory can't
20264 be too long for getcwd if it can't even be created. On Linux with
20265 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
20266 too long; ignore this failure because the getcwd() system call
20267 produces good results whereas the gnulib substitute calls getdents64
20268 which fails with error EPROTO.
20269 For other errors, be pessimistic and consider that as a failure,
20271 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20273 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20275 if (! (errno == EINVAL))
20281 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20285 c = getcwd (buf, PATH_MAX);
20286 if (!c && errno == ENOENT)
20296 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20302 /* Our replacement needs to be able to stat() long ../../paths,
20303 so generate a path larger than PATH_MAX to check,
20304 avoiding the replacement if we can't stat(). */
20305 c = getcwd (buf, cwd_len + 1);
20306 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
20313 if (dotdot_max <= cwd_len - initial_cwd_len)
20315 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20317 c = getcwd (buf, cwd_len + 1);
20320 if (! (errno == ERANGE || errno == ENOENT
20321 || is_ENAMETOOLONG (errno)))
20326 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20334 if (c && strlen (c) != cwd_len)
20342 /* Leaving behind such a deep directory is not polite.
20343 So clean up here, right away, even though the driving
20344 shell script would also clean up. */
20348 /* Try rmdir first, in case the chdir failed. */
20350 for (i = 0; i <= n_chdirs; i++)
20352 if (chdir ("..") < 0)
20354 if (rmdir (DIR_NAME) != 0)
20364 if ac_fn_c_try_run
"$LINENO"; then :
20365 gl_cv_func_getcwd_path_max
=yes
20368 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
20369 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
20370 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
20371 *) gl_cv_func_getcwd_path_max
=no
;;
20374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
20381 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
20383 case "$gl_cv_func_getcwd_null" in
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
20392 $as_echo_n "checking for getpagesize... " >&6; }
20393 if ${gl_cv_func_getpagesize+:} false
; then :
20394 $as_echo_n "(cached) " >&6
20396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20398 #include <unistd.h>
20402 return getpagesize();
20408 if ac_fn_c_try_link
"$LINENO"; then :
20409 gl_cv_func_getpagesize
=yes
20411 gl_cv_func_getpagesize
=no
20413 rm -f core conftest.err conftest.
$ac_objext \
20414 conftest
$ac_exeext conftest.
$ac_ext
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
20418 $as_echo "$gl_cv_func_getpagesize" >&6; }
20420 if test $gl_cv_func_getpagesize = yes; then
20422 cat >>confdefs.h
<<_ACEOF
20423 #define HAVE_GETPAGESIZE 1
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5
20429 $as_echo_n "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; }
20430 if ${gl_cv_func_getcwd_succeeds_beyond_4k+:} false
; then :
20431 $as_echo_n "(cached) " >&6
20433 # Remove any remnants of a previous test.
20434 rm -rf confdir-14B---
20435 # Arrange for deletion of the temporary directory this test creates.
20436 ac_clean_files
="$ac_clean_files confdir-14B---"
20437 if test "$cross_compiling" = yes; then :
20439 # Guess yes on musl systems.
20440 *-musl*) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing yes" ;;
20441 # Guess no otherwise, even on glibc systems.
20442 *) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing no"
20446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h. */
20450 #include <stdlib.h>
20452 # include <unistd.h>
20453 #else /* on Windows with MSVC */
20454 # include <direct.h>
20456 #include <string.h>
20457 #include <sys/stat.h>
20460 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20462 # include <unistd.h>
20464 #include <limits.h>
20465 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20466 # include <sys/param.h>
20468 #if !defined PATH_MAX && defined MAXPATHLEN
20469 # define PATH_MAX MAXPATHLEN
20473 # define PATH_MAX 1024
20475 #if defined _WIN32 && ! defined __CYGWIN__
20477 # define PATH_MAX 260
20486 # define S_IRWXU 0700
20489 /* FIXME: skip the run-test altogether on systems without getpagesize. */
20490 #if ! HAVE_GETPAGESIZE
20491 # define getpagesize() 0
20494 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20495 the 16kB pagesize on ia64 linux. Those conditions make the code below
20496 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
20497 #define TARGET_LEN (5 * 1024)
20503 size_t initial_cwd_len;
20506 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20507 this relatively expensive and invasive test if that's not true. */
20509 int bug_possible = PATH_MAX < getpagesize ();
20511 int bug_possible = 0;
20513 if (! bug_possible)
20516 cwd = getcwd (NULL, 0);
20520 initial_cwd_len = strlen (cwd);
20525 static char const dir_name[] = "confdir-14B---";
20526 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20527 / sizeof dir_name);
20529 for (d = 0; d < desired_depth; d++)
20531 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20533 if (! (errno == ERANGE || errno == ENAMETOOLONG
20534 || errno == ENOENT))
20535 fail = 3; /* Unable to construct deep hierarchy. */
20540 /* If libc has the bug in question, this invocation of getcwd
20541 results in a failed assertion. */
20542 cwd = getcwd (NULL, 0);
20544 fail = 4; /* getcwd didn't assert, but it failed for a long name
20545 where the answer could have been learned. */
20548 /* Call rmdir first, in case the above chdir failed. */
20552 if (chdir ("..") < 0)
20565 if ac_fn_c_try_run
"$LINENO"; then :
20566 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20569 if test $ret -ge 128 ||
test $ret = 4; then
20570 gl_cv_func_getcwd_succeeds_beyond_4k
=no
20572 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5
20583 $as_echo "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; }
20584 case "$gl_cv_func_getcwd_succeeds_beyond_4k" in
20597 case "$gl_cv_func_getcwd_path_max" in
20598 *"no" |
*"no, it has the AIX bug") ;;
20601 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
20605 case "$gl_cv_func_getcwd_path_max" in
20606 *"no, but it is partly working")
20608 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
20611 *"yes, but with shorter paths")
20613 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
20618 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
20619 ||
test $gl_cv_func_getcwd_posix_signature != yes \
20620 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
20621 ||
test $gl_abort_bug = yes; then
20625 if test $REPLACE_GETCWD = 1; then
20634 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
20644 cat >>confdefs.h
<<_ACEOF
20645 #define GNULIB_GETCWD 1
20660 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20669 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
20676 if test $REPLACE_GETCWD = 1; then
20685 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
20699 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20708 if test $ac_cv_func_getdtablesize = yes &&
20709 test $ac_cv_have_decl_getdtablesize = yes; then
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
20711 $as_echo_n "checking whether getdtablesize works... " >&6; }
20712 if ${gl_cv_func_getdtablesize_works+:} false
; then :
20713 $as_echo_n "(cached) " >&6
20716 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
20718 if test "$cross_compiling" = yes; then :
20720 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
20721 gl_cv_func_getdtablesize_works
="guessing no" ;;
20722 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
20726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20729 #include <unistd.h>
20738 int size = getdtablesize();
20739 if (dup2 (0, getdtablesize()) != -1)
20741 if (size != getdtablesize())
20748 if ac_fn_c_try_run
"$LINENO"; then :
20749 gl_cv_func_getdtablesize_works
=yes
20751 gl_cv_func_getdtablesize_works
=no
20753 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20754 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
20762 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
20763 case "$gl_cv_func_getdtablesize_works" in
20764 *yes |
"no (limitation)") ;;
20765 *) REPLACE_GETDTABLESIZE
=1 ;;
20768 HAVE_GETDTABLESIZE
=0
20771 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20780 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20789 GNULIB_GETDTABLESIZE
=1
20795 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20805 if test $ac_cv_have_decl_getlogin_r = no
; then
20806 HAVE_DECL_GETLOGIN_R
=0
20810 if test $ac_cv_func_getlogin_r = no
; then
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20816 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20817 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20818 $as_echo_n "(cached) " >&6
20822 # Guess no on Mac OS X, OSF/1.
20823 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20824 # Guess yes otherwise.
20825 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20827 if test "$cross_compiling" = yes; then :
20830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h. */
20833 #include <stddef.h>
20834 #include <string.h>
20835 #include <unistd.h>
20836 #if !HAVE_DECL_GETLOGIN_R
20838 # ifdef __cplusplus
20841 int getlogin_r (char *, size_t);
20849 if (getlogin_r (buf, 0) == 0)
20851 if (getlogin_r (buf, 1) == 0)
20853 if (getlogin_r (buf, 100) == 0)
20855 size_t n = strlen (buf);
20856 if (getlogin_r (buf, n) == 0)
20862 if ac_fn_c_try_run
"$LINENO"; then :
20863 gl_cv_func_getlogin_r_works
=yes
20865 gl_cv_func_getlogin_r_works
=no
20867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20874 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20875 case "$gl_cv_func_getlogin_r_works" in
20877 *) REPLACE_GETLOGIN_R
=1 ;;
20881 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20890 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20901 GNULIB_GETLOGIN_R
=1
20907 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20916 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20918 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20924 cat >>confdefs.h
<<_ACEOF
20925 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20927 if test $ac_have_decl = 1; then :
20931 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20933 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20939 cat >>confdefs.h
<<_ACEOF
20940 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20942 if test $ac_have_decl = 1; then :
20946 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20948 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20954 cat >>confdefs.h
<<_ACEOF
20955 #define HAVE_DECL___ARGV $ac_have_decl
20957 if test $ac_have_decl = 1; then :
20962 # Incur the cost of this test only if none of the above worked.
20963 if test $ac_found = 0; then
20964 # On OpenBSD 5.1, using the global __progname variable appears to be
20965 # the only way to implement getprogname.
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20967 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20968 if ${gl_cv_var___progname+:} false
; then :
20969 $as_echo_n "(cached) " >&6
20972 gl_cv_var___progname
=
20973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20974 /* end confdefs.h. */
20975 extern char *__progname;
20979 return *__progname;
20985 if ac_fn_c_try_link
"$LINENO"; then :
20986 gl_cv_var___progname
=yes
20989 rm -f core conftest.err conftest.
$ac_objext \
20990 conftest
$ac_exeext conftest.
$ac_ext
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20995 $as_echo "$gl_cv_var___progname" >&6; }
20996 if test "$gl_cv_var___progname" = yes; then
20998 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
21007 if test "$ac_cv_func_getrandom" != yes; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
21011 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
21012 if ${gl_cv_func_getrandom_ok+:} false
; then :
21013 $as_echo_n "(cached) " >&6
21015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h. */
21017 /* Additional includes are needed before <sys/random.h> on uClibc
21019 #include <sys/types.h>
21020 #include <stdlib.h>
21021 #include <sys/random.h>
21022 ssize_t getrandom (void *, size_t, unsigned int);
21033 if ac_fn_c_try_compile
"$LINENO"; then :
21034 gl_cv_func_getrandom_ok
=yes
21036 gl_cv_func_getrandom_ok
=no
21038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
21042 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
21043 if test $gl_cv_func_getrandom_ok = no
; then
21044 REPLACE_GETRANDOM
=1
21050 for ac_header
in bcrypt.h
21052 ac_fn_c_check_header_compile
"$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
21055 if test "x$ac_cv_header_bcrypt_h" = xyes
; then :
21056 cat >>confdefs.h
<<_ACEOF
21057 #define HAVE_BCRYPT_H 1
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
21065 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
21066 if ${gl_cv_lib_assume_bcrypt+:} false
; then :
21067 $as_echo_n "(cached) " >&6
21069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h. */
21071 #include <windows.h>
21075 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
21084 if ac_fn_c_try_compile
"$LINENO"; then :
21085 gl_cv_lib_assume_bcrypt
=yes
21087 gl_cv_lib_assume_bcrypt
=no
21089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
21093 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
21094 if test $gl_cv_lib_assume_bcrypt = yes; then
21096 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
21098 LIB_GETRANDOM
='-lbcrypt'
21100 LIB_GETRANDOM
='-ladvapi32'
21108 if test $HAVE_GETRANDOM = 0 ||
test $REPLACE_GETRANDOM = 1; then
21117 gl_LIBOBJS
="$gl_LIBOBJS getrandom.$ac_objext"
21131 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
21144 gl_gettimeofday_timezone
=void
21145 if test $ac_cv_func_gettimeofday != yes; then
21146 HAVE_GETTIMEOFDAY
=0
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21149 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21150 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
21151 $as_echo_n "(cached) " >&6
21153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21154 /* end confdefs.h. */
21155 #include <sys/time.h>
21157 int gettimeofday (struct timeval *restrict, void *restrict);
21162 /* glibc uses struct timezone * rather than the POSIX void *
21163 if _GNU_SOURCE is defined. However, since the only portable
21164 use of gettimeofday uses NULL as the second parameter, and
21165 since the glibc definition is actually more typesafe, it is
21166 not worth wrapping this to get a compliant signature. */
21167 int (*f) (struct timeval *restrict, void *restrict)
21170 return !(x | c.tv_sec | c.tv_usec);
21176 if ac_fn_c_try_compile
"$LINENO"; then :
21177 gl_cv_func_gettimeofday_posix_signature
=yes
21179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21181 #include <sys/time.h>
21182 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21192 if ac_fn_c_try_compile
"$LINENO"; then :
21193 gl_cv_func_gettimeofday_posix_signature
=almost
21195 gl_cv_func_gettimeofday_posix_signature
=no
21197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21202 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21203 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21204 gl_gettimeofday_timezone
='struct timezone'
21205 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21206 REPLACE_GETTIMEOFDAY
=1
21208 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21209 REPLACE_GETTIMEOFDAY
=1
21212 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
21216 cat >>confdefs.h
<<_ACEOF
21217 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21221 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21230 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21239 GNULIB_GETTIMEOFDAY
=1
21245 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21253 if test $ac_cv_func_glob = no
; then
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
21258 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
21259 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
21260 $as_echo_n "(cached) " >&6
21262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21263 /* end confdefs.h. */
21264 #include <gnu-versions.h>
21265 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
21267 if ac_fn_c_try_compile
"$LINENO"; then :
21268 gl_cv_gnu_glob_interface_version_1_2
=yes
21270 gl_cv_gnu_glob_interface_version_1_2
=no
21272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
21275 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
21276 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
21280 if test $REPLACE_GLOB = 0; then
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
21282 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
21283 if ${gl_cv_glob_lists_symlinks+:} false
; then :
21284 $as_echo_n "(cached) " >&6
21286 if test $cross_compiling != yes; then
21287 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
21288 gl_cv_glob_lists_symlinks
=maybe
21290 # If we can't make a symlink, then we cannot test this issue. Be
21291 # pessimistic about this.
21292 gl_cv_glob_lists_symlinks
=no
21294 if test $gl_cv_glob_lists_symlinks = maybe
; then
21295 if test "$cross_compiling" = yes; then :
21299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h. */
21301 #include <stddef.h>
21307 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
21315 if ac_fn_c_try_run
"$LINENO"; then :
21316 gl_cv_glob_lists_symlinks
=yes
21318 gl_cv_glob_lists_symlinks
=no
21320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21325 rm -f conf$$
-globtest
21327 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
21332 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
21333 case "$gl_cv_glob_lists_symlinks" in
21335 *) REPLACE_GLOB
=1 ;;
21341 if test $ac_cv_func_glob_pattern_p = no
; then
21342 HAVE_GLOB_PATTERN_P
=0
21344 if test $REPLACE_GLOB = 1; then
21345 REPLACE_GLOB_PATTERN_P
=1
21349 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21353 if test -n "$GLOB_H"; then
21354 GL_GENERATE_GLOB_H_TRUE
=
21355 GL_GENERATE_GLOB_H_FALSE
='#'
21357 GL_GENERATE_GLOB_H_TRUE
='#'
21358 GL_GENERATE_GLOB_H_FALSE
=
21364 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21373 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
21383 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
21391 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
21400 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
21414 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
21420 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
21435 if test $ac_cv_header_sys_socket_h != yes; then
21436 for ac_header
in winsock2.h
21438 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21439 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21440 cat >>confdefs.h
<<_ACEOF
21441 #define HAVE_WINSOCK2_H 1
21449 if test "$ac_cv_header_winsock2_h" = yes; then
21451 UNISTD_H_HAVE_WINSOCK2_H
=1
21452 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21458 if test $HAVE_WINSOCK2_H = 1; then
21459 REPLACE_INET_NTOP
=1
21460 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
21462 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21468 cat >>confdefs.h
<<_ACEOF
21469 #define HAVE_DECL_INET_NTOP $ac_have_decl
21472 if test $ac_cv_have_decl_inet_ntop = yes; then
21473 INET_NTOP_LIB
="-lws2_32"
21475 HAVE_DECL_INET_NTOP
=0
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21480 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21481 if ${ac_cv_search_inet_ntop+:} false
; then :
21482 $as_echo_n "(cached) " >&6
21484 ac_func_search_save_LIBS
=$LIBS
21485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h. */
21488 /* Override any GCC internal prototype to avoid an error.
21489 Use char because int might match the return type of a GCC
21490 builtin and then its argument prototype would still apply. */
21498 return inet_ntop ();
21503 for ac_lib
in '' nsl resolv network
; do
21504 if test -z "$ac_lib"; then
21505 ac_res
="none required"
21508 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21510 if ac_fn_c_try_link
"$LINENO"; then :
21511 ac_cv_search_inet_ntop
=$ac_res
21513 rm -f core conftest.err conftest.
$ac_objext \
21515 if ${ac_cv_search_inet_ntop+:} false
; then :
21519 if ${ac_cv_search_inet_ntop+:} false
; then :
21522 ac_cv_search_inet_ntop
=no
21524 rm conftest.
$ac_ext
21525 LIBS
=$ac_func_search_save_LIBS
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21528 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21529 ac_res
=$ac_cv_search_inet_ntop
21530 if test "$ac_res" != no
; then :
21531 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21534 for ac_func
in inet_ntop
21536 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21537 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
21538 cat >>confdefs.h
<<_ACEOF
21539 #define HAVE_INET_NTOP 1
21545 if test $ac_cv_func_inet_ntop = no
; then
21553 if test "$ac_cv_search_inet_ntop" != "no" \
21554 && test "$ac_cv_search_inet_ntop" != "none required"; then
21555 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
21559 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
21561 # include <netdb.h>
21565 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21571 cat >>confdefs.h
<<_ACEOF
21572 #define HAVE_DECL_INET_NTOP $ac_have_decl
21575 if test $ac_cv_have_decl_inet_ntop = no
; then
21576 HAVE_DECL_INET_NTOP
=0
21581 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
21590 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
21610 if test -n "$STDINT_H"; then
21611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21612 /* end confdefs.h. */
21627 if ac_fn_c_try_compile
"$LINENO"; then :
21628 PRIPTR_PREFIX
='"l"'
21630 PRIPTR_PREFIX
='"ll"'
21632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21634 for glpfx
in '' l ll I64
; do
21636 '') gltype1
='int';;
21637 l
) gltype1
='long int';;
21638 ll
) gltype1
='long long int';;
21639 I64
) gltype1
='__int64';;
21641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h. */
21643 #include <stdint.h>
21644 extern intptr_t foo;
21645 extern $gltype1 foo;
21654 if ac_fn_c_try_compile
"$LINENO"; then :
21655 PRIPTR_PREFIX
='"'$glpfx'"'
21657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21658 test -n "$PRIPTR_PREFIX" && break
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
21665 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
21666 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
21667 $as_echo_n "(cached) " >&6
21669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21671 /* Work also in C++ mode. */
21672 #define __STDC_LIMIT_MACROS 1
21674 /* Work if build is not clean. */
21675 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21677 #include <limits.h>
21679 #include <stdint.h>
21682 #if defined INT32_MAX && defined INTMAX_MAX
21683 #define CONDITION (INT32_MAX < INTMAX_MAX)
21685 #define CONDITION (sizeof (int) < sizeof (long long int))
21687 int test[CONDITION ? 1 : -1];
21696 if ac_fn_c_try_compile
"$LINENO"; then :
21697 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
21699 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
21701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
21704 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
21705 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
21706 INT32_MAX_LT_INTMAX_MAX
=1;
21708 INT32_MAX_LT_INTMAX_MAX
=0;
21712 if test $APPLE_UNIVERSAL_BUILD = 0; then
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
21715 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
21716 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
21717 $as_echo_n "(cached) " >&6
21719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21720 /* end confdefs.h. */
21721 /* Work also in C++ mode. */
21722 #define __STDC_LIMIT_MACROS 1
21724 /* Work if build is not clean. */
21725 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21727 #include <limits.h>
21729 #include <stdint.h>
21732 #if defined INT64_MAX
21733 #define CONDITION (INT64_MAX == LONG_MAX)
21735 #define CONDITION (sizeof (long long int) == sizeof (long int))
21737 int test[CONDITION ? 1 : -1];
21746 if ac_fn_c_try_compile
"$LINENO"; then :
21747 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
21749 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
21751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
21754 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
21755 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
21756 INT64_MAX_EQ_LONG_MAX
=1;
21758 INT64_MAX_EQ_LONG_MAX
=0;
21763 INT64_MAX_EQ_LONG_MAX
=-1
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
21767 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
21768 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
21769 $as_echo_n "(cached) " >&6
21771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21772 /* end confdefs.h. */
21773 /* Work also in C++ mode. */
21774 #define __STDC_LIMIT_MACROS 1
21776 /* Work if build is not clean. */
21777 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21779 #include <limits.h>
21781 #include <stdint.h>
21784 #if defined UINT32_MAX && defined UINTMAX_MAX
21785 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
21787 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
21789 int test[CONDITION ? 1 : -1];
21798 if ac_fn_c_try_compile
"$LINENO"; then :
21799 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
21801 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
21803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
21806 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
21807 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
21808 UINT32_MAX_LT_UINTMAX_MAX
=1;
21810 UINT32_MAX_LT_UINTMAX_MAX
=0;
21814 if test $APPLE_UNIVERSAL_BUILD = 0; then
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
21817 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
21818 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
21819 $as_echo_n "(cached) " >&6
21821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h. */
21823 /* Work also in C++ mode. */
21824 #define __STDC_LIMIT_MACROS 1
21826 /* Work if build is not clean. */
21827 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21829 #include <limits.h>
21831 #include <stdint.h>
21834 #if defined UINT64_MAX
21835 #define CONDITION (UINT64_MAX == ULONG_MAX)
21837 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21839 int test[CONDITION ? 1 : -1];
21848 if ac_fn_c_try_compile
"$LINENO"; then :
21849 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21851 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21856 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21857 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21858 UINT64_MAX_EQ_ULONG_MAX
=1;
21860 UINT64_MAX_EQ_ULONG_MAX
=0;
21865 UINT64_MAX_EQ_ULONG_MAX
=-1
21875 if test $ac_cv_func_isblank = no
; then
21879 if test $HAVE_ISBLANK = 0; then
21888 gl_LIBOBJS
="$gl_LIBOBJS isblank.$ac_objext"
21893 cat >>confdefs.h
<<_ACEOF
21894 #define GNULIB_ISBLANK 1
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21911 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21912 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21913 $as_echo_n "(cached) " >&6
21916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h. */
21919 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
21921 # define isnand(x) __builtin_isnan ((double)(x))
21924 # define isnand(x) isnan ((double)(x))
21935 if ac_fn_c_try_link
"$LINENO"; then :
21936 gl_cv_func_isnand_no_libm
=yes
21938 gl_cv_func_isnand_no_libm
=no
21940 rm -f core conftest.err conftest.
$ac_objext \
21941 conftest
$ac_exeext conftest.
$ac_ext
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21945 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21947 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21948 if test $gl_cv_func_isnand_no_libm = yes; then
21950 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21954 if test $gl_func_isnand_no_libm != yes; then
21963 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21972 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21973 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21974 $as_echo_n "(cached) " >&6
21977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21980 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
21982 # define isnanl(x) __builtin_isnan ((long double)(x))
21983 #elif defined isnan
21985 # define isnanl(x) isnan ((long double)(x))
21996 if ac_fn_c_try_link
"$LINENO"; then :
21997 gl_cv_func_isnanl_no_libm
=yes
21999 gl_cv_func_isnanl_no_libm
=no
22001 rm -f core conftest.err conftest.
$ac_objext \
22002 conftest
$ac_exeext conftest.
$ac_ext
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
22006 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
22008 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
22009 if test $gl_func_isnanl_no_libm = yes; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
22015 $as_echo_n "checking whether isnanl works... " >&6; }
22016 if ${gl_cv_func_isnanl_works+:} false
; then :
22017 $as_echo_n "(cached) " >&6
22020 if test "$cross_compiling" = yes; then :
22022 mingw
*) # Guess yes on mingw, no on MSVC.
22023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h. */
22031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22032 $EGREP "Known" >/dev
/null
2>&1; then :
22033 gl_cv_func_isnanl_works
="guessing yes"
22035 gl_cv_func_isnanl_works
="guessing no"
22040 *) gl_cv_func_isnanl_works
="guessing yes" ;;
22044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22045 /* end confdefs.h. */
22048 #include <limits.h>
22050 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22052 # define isnanl(x) __builtin_isnan ((long double)(x))
22053 #elif defined isnan
22055 # define isnanl(x) isnan ((long double)(x))
22058 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22059 typedef union { unsigned int word[NWORDS]; long double value; }
22060 memory_long_double;
22061 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
22062 runtime type conversion. */
22064 static long double NaNl ()
22067 return zero / zero;
22070 # define NaNl() (0.0L / 0.0L)
22076 if (!isnanl (NaNl ()))
22080 memory_long_double m;
22083 /* The isnanl function should be immune against changes in the sign bit and
22084 in the mantissa bits. The xor operation twiddles a bit that can only be
22085 a sign bit or a mantissa bit (since the exponent never extends to
22088 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
22089 for (i = 0; i < NWORDS; i++)
22091 if (!isnanl (m.value))
22095 #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
22096 /* Representation of an 80-bit 'long double' as an initializer for a sequence
22097 of 'unsigned int' words. */
22098 # ifdef WORDS_BIGENDIAN
22099 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22100 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
22101 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
22102 (unsigned int) (mantlo) << 16 \
22105 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22106 { mantlo, manthi, exponent }
22109 static memory_long_double x =
22110 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
22111 if (!isnanl (x.value))
22115 /* Signalling NaN. */
22116 static memory_long_double x =
22117 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
22118 if (!isnanl (x.value))
22121 /* isnanl should return something even for noncanonical values. */
22122 { /* Pseudo-NaN. */
22123 static memory_long_double x =
22124 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
22125 if (isnanl (x.value) && !isnanl (x.value))
22128 { /* Pseudo-Infinity. */
22129 static memory_long_double x =
22130 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
22131 if (isnanl (x.value) && !isnanl (x.value))
22134 { /* Pseudo-Zero. */
22135 static memory_long_double x =
22136 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
22137 if (isnanl (x.value) && !isnanl (x.value))
22140 { /* Unnormalized number. */
22141 static memory_long_double x =
22142 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
22143 if (isnanl (x.value) && !isnanl (x.value))
22146 { /* Pseudo-Denormal. */
22147 static memory_long_double x =
22148 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
22149 if (isnanl (x.value) && !isnanl (x.value))
22157 if ac_fn_c_try_run
"$LINENO"; then :
22158 gl_cv_func_isnanl_works
=yes
22160 gl_cv_func_isnanl_works
=no
22162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22163 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
22169 $as_echo "$gl_cv_func_isnanl_works" >&6; }
22171 case "$gl_cv_func_isnanl_works" in
22173 *) gl_func_isnanl_no_libm
=no
;;
22176 if test $gl_func_isnanl_no_libm = yes; then
22178 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
22182 if test $gl_func_isnanl_no_libm != yes; then
22191 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
22197 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
22198 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
22199 $as_echo_n "(cached) " >&6
22202 if test "$cross_compiling" = yes; then :
22204 gl_cv_cc_long_double_expbit0
="unknown"
22206 mingw
*) # On native Windows (little-endian), we know the result
22207 # in two cases: mingw, MSVC.
22208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22217 $EGREP "Known" >/dev
/null
2>&1; then :
22218 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
22222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22231 $EGREP "Known" >/dev
/null
2>&1; then :
22232 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
22240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22244 #include <stddef.h>
22246 #include <string.h>
22248 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22249 typedef union { long double value; unsigned int word[NWORDS]; }
22250 memory_long_double;
22251 static unsigned int ored_words[NWORDS];
22252 static unsigned int anded_words[NWORDS];
22253 static void add_to_ored_words (long double *x)
22255 memory_long_double m;
22257 /* Clear it first, in case
22258 sizeof (long double) < sizeof (memory_long_double). */
22259 memset (&m, 0, sizeof (memory_long_double));
22261 for (i = 0; i < NWORDS; i++)
22263 ored_words[i] |= m.word[i];
22264 anded_words[i] &= m.word[i];
22269 static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
22271 FILE *fp = fopen ("conftest.out", "w");
22274 for (j = 0; j < NWORDS; j++)
22275 anded_words[j] = ~ (unsigned int) 0;
22276 for (j = 0; j < 5; j++)
22277 add_to_ored_words (&samples[j]);
22278 /* Remove bits that are common (e.g. if representation of the first mantissa
22279 bit is explicit). */
22280 for (j = 0; j < NWORDS; j++)
22281 ored_words[j] &= ~anded_words[j];
22282 /* Now find the nonzero word. */
22283 for (j = 0; j < NWORDS; j++)
22284 if (ored_words[j] != 0)
22289 for (i = j + 1; i < NWORDS; i++)
22290 if (ored_words[i] != 0)
22292 fprintf (fp, "unknown");
22293 return (fclose (fp) != 0);
22296 if ((ored_words[j] >> i) & 1)
22298 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22299 return (fclose (fp) != 0);
22302 fprintf (fp, "unknown");
22303 return (fclose (fp) != 0);
22307 if ac_fn_c_try_run
"$LINENO"; then :
22308 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
22310 gl_cv_cc_long_double_expbit0
="unknown"
22312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
22320 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
22321 case "$gl_cv_cc_long_double_expbit0" in
22323 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22324 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
22326 cat >>confdefs.h
<<_ACEOF
22327 #define LDBL_EXPBIT0_WORD $word
22331 cat >>confdefs.h
<<_ACEOF
22332 #define LDBL_EXPBIT0_BIT $bit
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
22344 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
22345 if ${gl_cv_c___inline+:} false
; then :
22346 $as_echo_n "(cached) " >&6
22348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h. */
22351 static __inline foo_t foo (void) { return 0; }
22360 if ac_fn_c_try_compile
"$LINENO"; then :
22361 gl_cv_c___inline
=yes
22363 gl_cv_c___inline
=no
22365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
22368 $as_echo "$gl_cv_c___inline" >&6; }
22369 if test $gl_cv_c___inline = yes; then
22371 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
22379 LOCALCHARSET_TESTS_ENVIRONMENT
=
22394 $as_echo "#define _LCONV_C99 1" >>confdefs.h
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
22400 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
22401 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
22402 $as_echo_n "(cached) " >&6
22404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h. */
22406 #include <locale.h>
22407 int x = LC_MESSAGES;
22408 int y = sizeof (((struct lconv *) 0)->decimal_point);
22417 if ac_fn_c_try_compile
"$LINENO"; then :
22418 gl_cv_header_locale_h_posix2001
=yes
22420 gl_cv_header_locale_h_posix2001
=no
22422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
22425 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
22428 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
22429 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
22430 $as_echo_n "(cached) " >&6
22432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22434 #include <locale.h>
22436 int x = sizeof (l.decimal_point);
22437 int y = sizeof (l.int_p_cs_precedes);
22446 if ac_fn_c_try_compile
"$LINENO"; then :
22447 gl_cv_sys_struct_lconv_ok
=yes
22449 gl_cv_sys_struct_lconv_ok
=no
22451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
22455 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
22456 if test $gl_cv_sys_struct_lconv_ok = no
; then
22459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22468 $EGREP "Special" >/dev
/null
2>&1; then :
22471 REPLACE_STRUCT_LCONV
=1
22476 *) REPLACE_STRUCT_LCONV
=1 ;;
22488 if test $gl_cv_have_include_next = yes; then
22489 gl_cv_next_locale_h
='<'locale.h
'>'
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
22492 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
22493 if ${gl_cv_next_locale_h+:} false
; then :
22494 $as_echo_n "(cached) " >&6
22499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22501 #include <locale.h>
22504 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22505 *) gl_absname_cpp
="$ac_cpp" ;;
22510 gl_dirsep_regex
='[/\\]'
22513 gl_dirsep_regex
='\/'
22516 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22517 gl_header_literal_regex
=`echo 'locale.h' \
22518 | sed -e "$gl_make_literal_regex_sed"`
22519 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22520 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22526 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22527 sed -n "$gl_absolute_header_sed"`
22529 gl_header
=$gl_cv_absolute_locale_h
22530 gl_cv_next_locale_h
='"'$gl_header'"'
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
22535 $as_echo "$gl_cv_next_locale_h" >&6; }
22537 NEXT_LOCALE_H
=$gl_cv_next_locale_h
22539 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22541 gl_next_as_first_directive
='<'locale.h
'>'
22543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22544 gl_next_as_first_directive
=$gl_cv_next_locale_h
22546 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
22558 if test "$gl_threads_api" = posix
; then
22559 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22560 # pthread_rwlock_* functions.
22562 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22564 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
22567 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22571 if $has_rwlock; then
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
22575 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
22576 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
22577 $as_echo_n "(cached) " >&6
22580 LIBS
="$LIBS $LIBMULTITHREAD"
22581 if test "$cross_compiling" = yes; then :
22583 # Guess no on glibc systems.
22584 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22585 # Guess no on musl systems.
22586 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22587 # Guess no on bionic systems.
22588 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22589 # Guess yes on native Windows with the mingw-w64 winpthreads library.
22590 # Guess no on native Windows with the gnulib windows-rwlock module.
22591 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
22592 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
22594 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
22597 # If we don't know, obey --enable-cross-guesses.
22598 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
22602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22603 /* end confdefs.h. */
22606 #include <pthread.h>
22607 #include <stdlib.h>
22608 #include <unistd.h>
22610 #define SUCCEED() exit (0)
22611 #define FAILURE() exit (1)
22612 #define UNEXPECTED(n) (exit (10 + (n)))
22614 /* The main thread creates the waiting writer and the requesting reader threads
22615 in the default way; this guarantees that they have the same priority.
22616 We can reuse the main thread as first reader thread. */
22618 static pthread_rwlock_t lock;
22619 static pthread_t reader1;
22620 static pthread_t writer;
22621 static pthread_t reader2;
22622 static pthread_t timer;
22623 /* Used to pass control from writer to reader2 and from reader2 to timer,
22624 as in a relay race.
22625 Passing control from one running thread to another running thread
22626 is most likely faster than to create the second thread. */
22627 static pthread_mutex_t baton;
22630 timer_func (void *ignored)
22632 /* Step 13 (can be before or after step 12):
22633 The timer thread takes the baton, then waits a moment to make sure
22634 it can tell whether the second reader thread is blocked at step 12. */
22635 if (pthread_mutex_lock (&baton))
22638 /* By the time we get here, it's clear that the second reader thread is
22639 blocked at step 12. This is the desired behaviour. */
22644 reader2_func (void *ignored)
22648 /* Step 8 (can be before or after step 7):
22649 The second reader thread takes the baton, then waits a moment to make sure
22650 the writer thread has reached step 7. */
22651 if (pthread_mutex_lock (&baton))
22654 /* Step 9: The second reader thread requests the lock. */
22655 err = pthread_rwlock_tryrdlock (&lock);
22658 else if (err != EBUSY)
22660 /* Step 10: Launch a timer, to test whether the next call blocks. */
22661 if (pthread_create (&timer, NULL, timer_func, NULL))
22663 /* Step 11: Release the baton. */
22664 if (pthread_mutex_unlock (&baton))
22666 /* Step 12: The second reader thread requests the lock. */
22667 err = pthread_rwlock_rdlock (&lock);
22675 writer_func (void *ignored)
22677 /* Step 4: Take the baton, so that the second reader thread does not go ahead
22679 if (pthread_mutex_lock (&baton))
22681 /* Step 5: Create the second reader thread. */
22682 if (pthread_create (&reader2, NULL, reader2_func, NULL))
22684 /* Step 6: Release the baton. */
22685 if (pthread_mutex_unlock (&baton))
22687 /* Step 7: The writer thread requests the lock. */
22688 if (pthread_rwlock_wrlock (&lock))
22696 reader1 = pthread_self ();
22698 /* Step 1: The main thread initializes the lock and the baton. */
22699 if (pthread_rwlock_init (&lock, NULL))
22701 if (pthread_mutex_init (&baton, NULL))
22703 /* Step 2: The main thread acquires the lock as a reader. */
22704 if (pthread_rwlock_rdlock (&lock))
22706 /* Step 3: Create the writer thread. */
22707 if (pthread_create (&writer, NULL, writer_func, NULL))
22709 /* Job done. Go to sleep. */
22717 if ac_fn_c_try_run
"$LINENO"; then :
22718 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
22720 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
22722 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22723 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
22730 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
22731 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
22734 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
22740 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22742 /* end confdefs.h. */
22744 #include <pthread.h>
22749 #if __FreeBSD__ == 4
22750 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22751 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22752 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22753 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22755 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22763 if ac_fn_c_try_compile
"$LINENO"; then :
22765 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22774 cat >>confdefs.h
<<_ACEOF
22775 #define GNULIB_LOCK 1
22783 if test $ac_cv_func_lstat = yes; then
22785 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
22794 if test $REPLACE_LSTAT = 1; then
22803 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22818 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22825 if test $gl_cv_func_malloc_posix = yes; then
22827 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22833 if test $REPLACE_MALLOC = 1; then
22842 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
22850 GNULIB_MALLOC_POSIX
=1
22856 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22874 if test $gl_cv_have_include_next = yes; then
22875 gl_cv_next_math_h
='<'math.h
'>'
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
22878 $as_echo_n "checking absolute name of <math.h>... " >&6; }
22879 if ${gl_cv_next_math_h+:} false
; then :
22880 $as_echo_n "(cached) " >&6
22883 if test $ac_cv_header_math_h = yes; then
22888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22889 /* end confdefs.h. */
22893 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22894 *) gl_absname_cpp
="$ac_cpp" ;;
22899 gl_dirsep_regex
='[/\\]'
22902 gl_dirsep_regex
='\/'
22905 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22906 gl_header_literal_regex
=`echo 'math.h' \
22907 | sed -e "$gl_make_literal_regex_sed"`
22908 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22909 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22915 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22916 sed -n "$gl_absolute_header_sed"`
22918 gl_header
=$gl_cv_absolute_math_h
22919 gl_cv_next_math_h
='"'$gl_header'"'
22921 gl_cv_next_math_h
='<'math.h
'>'
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
22927 $as_echo "$gl_cv_next_math_h" >&6; }
22929 NEXT_MATH_H
=$gl_cv_next_math_h
22931 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22933 gl_next_as_first_directive
='<'math.h
'>'
22935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22936 gl_next_as_first_directive
=$gl_cv_next_math_h
22938 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
22945 $as_echo_n "checking whether NAN macro works... " >&6; }
22946 if ${gl_cv_header_math_nan_works+:} false
; then :
22947 $as_echo_n "(cached) " >&6
22949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22950 /* end confdefs.h. */
22955 /* Solaris 10 has a broken definition of NAN. Other platforms
22956 fail to provide NAN, or provide it only in C99 mode; this
22957 test only needs to fail when NAN is provided but wrong. */
22967 if ac_fn_c_try_compile
"$LINENO"; then :
22968 gl_cv_header_math_nan_works
=yes
22970 gl_cv_header_math_nan_works
=no
22972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
22975 $as_echo "$gl_cv_header_math_nan_works" >&6; }
22976 if test $gl_cv_header_math_nan_works = no
; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
22980 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
22981 if ${gl_cv_header_math_huge_val_works+:} false
; then :
22982 $as_echo_n "(cached) " >&6
22984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22985 /* end confdefs.h. */
22990 /* Solaris 10 has a broken definition of HUGE_VAL. */
22991 double d = HUGE_VAL;
22997 if ac_fn_c_try_compile
"$LINENO"; then :
22998 gl_cv_header_math_huge_val_works
=yes
23000 gl_cv_header_math_huge_val_works
=no
23002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
23005 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
23006 if test $gl_cv_header_math_huge_val_works = no
; then
23027 if case "$host_os" in
23029 *) test $ac_cv_func_mbsinit = yes ;;
23031 && test $ac_cv_func_mbrtowc = yes; then
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23037 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23038 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23039 $as_echo_n "(cached) " >&6
23043 # Guess no on AIX and OSF/1.
23044 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23045 # Guess yes otherwise.
23046 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23048 if test $LOCALE_JA != none
; then
23049 if test "$cross_compiling" = yes; then :
23052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23053 /* end confdefs.h. */
23055 #include <locale.h>
23056 #include <string.h>
23060 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23062 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23066 memset (&state, '\0', sizeof (mbstate_t));
23067 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23068 if (mbsinit (&state))
23074 if ac_fn_c_try_run
"$LINENO"; then :
23075 gl_cv_func_mbrtowc_incomplete_state
=yes
23077 gl_cv_func_mbrtowc_incomplete_state
=no
23079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23084 if test $LOCALE_FR_UTF8 != none
; then
23085 if test "$cross_compiling" = yes; then :
23088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23091 #include <locale.h>
23092 #include <string.h>
23096 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23098 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23102 memset (&state, '\0', sizeof (mbstate_t));
23103 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23104 if (mbsinit (&state))
23110 if ac_fn_c_try_run
"$LINENO"; then :
23111 gl_cv_func_mbrtowc_incomplete_state
=yes
23113 gl_cv_func_mbrtowc_incomplete_state
=no
23115 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23116 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23124 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23130 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23131 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23132 $as_echo_n "(cached) " >&6
23136 # Guess no on Solaris 8.
23137 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23138 # Guess yes otherwise.
23139 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23141 if test $LOCALE_ZH_CN != none
; then
23142 if test "$cross_compiling" = yes; then :
23145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23146 /* end confdefs.h. */
23148 #include <locale.h>
23149 #include <stdlib.h>
23150 #include <string.h>
23154 /* This fails on Solaris 8:
23155 mbrtowc returns 2, and sets wc to 0x00F0.
23156 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23157 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23159 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23163 memset (&state, '\0', sizeof (mbstate_t));
23164 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23165 && mbtowc (&wc, input + 3, 6) == 4)
23171 if ac_fn_c_try_run
"$LINENO"; then :
23172 gl_cv_func_mbrtowc_sanitycheck
=yes
23174 gl_cv_func_mbrtowc_sanitycheck
=no
23176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23184 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23186 REPLACE_MBSTATE_T
=0
23187 case "$gl_cv_func_mbrtowc_incomplete_state" in
23189 *) REPLACE_MBSTATE_T
=1 ;;
23191 case "$gl_cv_func_mbrtowc_sanitycheck" in
23193 *) REPLACE_MBSTATE_T
=1 ;;
23196 REPLACE_MBSTATE_T
=1
23201 if test $ac_cv_func_mbrtowc = no
; then
23203 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
23207 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
23213 cat >>confdefs.h
<<_ACEOF
23214 #define HAVE_DECL_MBRTOWC $ac_have_decl
23217 if test $ac_cv_have_decl_mbrtowc = yes; then
23221 if test $REPLACE_MBSTATE_T = 1; then
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
23228 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
23229 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
23230 $as_echo_n "(cached) " >&6
23234 # Guess no on Solaris.
23235 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
23236 # Guess yes otherwise.
23237 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
23239 if test $LOCALE_FR_UTF8 != none
; then
23240 if test "$cross_compiling" = yes; then :
23243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23246 #include <locale.h>
23247 #include <stdlib.h>
23248 #include <string.h>
23254 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23256 char input[] = "\303\237er";
23261 memset (&state, '\0', sizeof (mbstate_t));
23262 wc = (wchar_t) 0xBADFACE;
23263 ret = mbrtowc (&wc, input, 5, &state);
23266 if (!mbsinit (&state))
23269 memset (&state, '\0', sizeof (mbstate_t));
23270 ret = mbrtowc (NULL, input, 5, &state);
23271 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
23273 if (!mbsinit (&state))
23279 if ac_fn_c_try_run
"$LINENO"; then :
23280 gl_cv_func_mbrtowc_null_arg1
=yes
23282 gl_cv_func_mbrtowc_null_arg1
=no
23284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
23292 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
23298 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
23299 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
23300 $as_echo_n "(cached) " >&6
23304 # Guess no on OSF/1.
23305 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
23306 # Guess yes otherwise.
23307 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
23309 if test $LOCALE_FR_UTF8 != none
; then
23310 if test "$cross_compiling" = yes; then :
23313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23316 #include <locale.h>
23317 #include <string.h>
23321 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23327 memset (&state, '\0', sizeof (mbstate_t));
23328 wc = (wchar_t) 0xBADFACE;
23329 mbrtowc (&wc, NULL, 5, &state);
23330 /* Check that wc was not modified. */
23331 if (wc != (wchar_t) 0xBADFACE)
23337 if ac_fn_c_try_run
"$LINENO"; then :
23338 gl_cv_func_mbrtowc_null_arg2
=yes
23340 gl_cv_func_mbrtowc_null_arg2
=no
23342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
23350 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
23358 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
23359 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
23360 $as_echo_n "(cached) " >&6
23364 # Guess no on HP-UX, Solaris, native Windows.
23365 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
23366 # Guess yes otherwise.
23367 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
23369 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
23370 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
23371 if test "$cross_compiling" = yes; then :
23374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23375 /* end confdefs.h. */
23377 #include <locale.h>
23378 #include <string.h>
23383 int found_some_locale = 0;
23384 /* This fails on Solaris. */
23385 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23387 char input[] = "B\303\274\303\237er"; /* "Büßer" */
23391 memset (&state, '\0', sizeof (mbstate_t));
23392 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23395 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
23398 found_some_locale = 1;
23400 /* This fails on HP-UX 11.11. */
23401 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23403 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23407 memset (&state, '\0', sizeof (mbstate_t));
23408 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23411 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
23414 found_some_locale = 1;
23416 /* This fails on native Windows. */
23417 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23419 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
23423 memset (&state, '\0', sizeof (mbstate_t));
23424 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23427 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23430 found_some_locale = 1;
23432 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23434 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
23438 memset (&state, '\0', sizeof (mbstate_t));
23439 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23442 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23445 found_some_locale = 1;
23447 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23449 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
23453 memset (&state, '\0', sizeof (mbstate_t));
23454 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23457 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23460 found_some_locale = 1;
23462 return (found_some_locale ? result : 77);
23465 if ac_fn_c_try_run
"$LINENO"; then :
23466 gl_cv_func_mbrtowc_retval
=yes
23468 if test $?
!= 77; then
23469 gl_cv_func_mbrtowc_retval
=no
23473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
23481 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
23487 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
23488 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
23489 $as_echo_n "(cached) " >&6
23493 # Guess no on Solaris 8 and 9.
23494 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
23495 # Guess yes otherwise.
23496 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
23498 if test $LOCALE_ZH_CN != none
; then
23499 if test "$cross_compiling" = yes; then :
23502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23505 #include <locale.h>
23506 #include <string.h>
23510 /* This fails on Solaris 8 and 9. */
23511 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23516 memset (&state, '\0', sizeof (mbstate_t));
23517 if (mbrtowc (&wc, "", 1, &state) != 0)
23523 if ac_fn_c_try_run
"$LINENO"; then :
23524 gl_cv_func_mbrtowc_nul_retval
=yes
23526 gl_cv_func_mbrtowc_nul_retval
=no
23528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
23536 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
23541 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
23542 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
23543 $as_echo_n "(cached) " >&6
23547 # Guess yes on native Windows.
23548 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
23549 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
23553 if test "$cross_compiling" = yes; then :
23556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23557 /* end confdefs.h. */
23559 #include <locale.h>
23560 #include <string.h>
23565 if (setlocale (LC_ALL, "French_France.65001") != NULL)
23567 wchar_t wc = (wchar_t) 0xBADFACE;
23570 memset (&state, '\0', sizeof (mbstate_t));
23571 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23572 && wc != (wchar_t) 0xBADFACE)
23575 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23577 wchar_t wc = (wchar_t) 0xBADFACE;
23580 memset (&state, '\0', sizeof (mbstate_t));
23581 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
23582 && wc != (wchar_t) 0xBADFACE)
23585 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23587 wchar_t wc = (wchar_t) 0xBADFACE;
23590 memset (&state, '\0', sizeof (mbstate_t));
23591 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
23592 && wc != (wchar_t) 0xBADFACE)
23595 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23597 wchar_t wc = (wchar_t) 0xBADFACE;
23600 memset (&state, '\0', sizeof (mbstate_t));
23601 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
23602 && wc != (wchar_t) 0xBADFACE)
23608 if ac_fn_c_try_run
"$LINENO"; then :
23609 gl_cv_func_mbrtowc_stores_incomplete
=no
23611 gl_cv_func_mbrtowc_stores_incomplete
=yes
23613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23620 if test $LOCALE_FR_UTF8 != none
; then
23621 if test "$cross_compiling" = yes; then :
23624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23625 /* end confdefs.h. */
23627 #include <locale.h>
23628 #include <string.h>
23632 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23634 wchar_t wc = (wchar_t) 0xBADFACE;
23637 memset (&state, '\0', sizeof (mbstate_t));
23638 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23639 && wc != (wchar_t) 0xBADFACE)
23645 if ac_fn_c_try_run
"$LINENO"; then :
23646 gl_cv_func_mbrtowc_stores_incomplete
=no
23648 gl_cv_func_mbrtowc_stores_incomplete
=yes
23650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23651 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
23660 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
23665 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
23666 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
23667 $as_echo_n "(cached) " >&6
23671 # Guess no on AIX and glibc systems.
23672 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
23673 # Guess yes on native Windows.
23674 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23675 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23677 if test "$cross_compiling" = yes; then :
23680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23681 /* end confdefs.h. */
23685 static mbstate_t mbs;
23689 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
23692 if ac_fn_c_try_run
"$LINENO"; then :
23693 gl_cv_func_mbrtowc_empty_input
=yes
23695 gl_cv_func_mbrtowc_empty_input
=no
23697 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23698 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
23704 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
23708 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
23709 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
23710 $as_echo_n "(cached) " >&6
23713 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
23715 if test "$cross_compiling" = yes; then :
23717 # Guess yes on native Windows.
23718 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
23722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23724 #include <limits.h>
23725 #include <locale.h>
23733 char *locale = setlocale (LC_ALL, "C");
23736 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
23740 mbstate_t mbs = { 0, };
23741 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
23751 if ac_fn_c_try_run
"$LINENO"; then :
23752 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
23754 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
23756 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23757 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
23763 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
23765 case "$gl_cv_func_mbrtowc_null_arg1" in
23768 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
23773 case "$gl_cv_func_mbrtowc_null_arg2" in
23776 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
23781 case "$gl_cv_func_mbrtowc_retval" in
23784 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
23789 case "$gl_cv_func_mbrtowc_nul_retval" in
23792 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
23797 case "$gl_cv_func_mbrtowc_stores_incomplete" in
23800 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
23805 case "$gl_cv_func_mbrtowc_empty_input" in
23808 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
23813 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
23816 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
23823 if test $REPLACE_MBSTATE_T = 1; then
23825 mingw
*) LIB_MBRTOWC
= ;;
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23830 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23831 if ${gl_cv_have_weak+:} false
; then :
23832 $as_echo_n "(cached) " >&6
23835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23836 /* end confdefs.h. */
23837 extern void xyzzy ();
23847 if ac_fn_c_try_link
"$LINENO"; then :
23848 gl_cv_have_weak
=maybe
23850 rm -f core conftest.err conftest.
$ac_objext \
23851 conftest
$ac_exeext conftest.
$ac_ext
23852 if test $gl_cv_have_weak = maybe
; then
23853 if test "$cross_compiling" = yes; then :
23854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23855 /* end confdefs.h. */
23857 Extensible Linking Format
23861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23862 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
23863 gl_cv_have_weak
="guessing yes"
23865 gl_cv_have_weak
="guessing no"
23871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23878 return (fputs == NULL);
23881 if ac_fn_c_try_run
"$LINENO"; then :
23882 gl_cv_have_weak
=yes
23886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23891 case " $LDFLAGS " in
23892 *" -static "*) gl_cv_have_weak
=no
;;
23894 case "$gl_cv_have_weak" in
23897 freebsd
* | dragonfly
*)
23899 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
23900 cat <<EOF > conftest2.c
23901 #include <pthread.h>
23902 #pragma weak pthread_mutexattr_gettype
23905 return (pthread_mutexattr_gettype != NULL);
23908 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
23909 || gl_cv_have_weak
=no
23910 rm -f conftest1.c libempty.so conftest2.c conftest
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23918 $as_echo "$gl_cv_have_weak" >&6; }
23919 case "$gl_cv_have_weak" in
23922 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
23927 case "$gl_cv_have_weak" in
23928 *yes) LIB_MBRTOWC
= ;;
23929 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
23938 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
23947 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
23949 if test $REPLACE_MBSTATE_T = 1; then
23958 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
23968 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
23975 if test -n "$GCC"; then
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
23977 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
23978 if ${gl_cv_cc_vis_werror+:} false
; then :
23979 $as_echo_n "(cached) " >&6
23981 gl_save_CFLAGS
="$CFLAGS"
23982 CFLAGS
="$CFLAGS -Werror"
23983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23994 if ac_fn_c_try_compile
"$LINENO"; then :
23995 gl_cv_cc_vis_werror
=yes
23997 gl_cv_cc_vis_werror
=no
23999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24000 CFLAGS
="$gl_save_CFLAGS"
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24004 $as_echo "$gl_cv_cc_vis_werror" >&6; }
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24006 $as_echo_n "checking for simple visibility declarations... " >&6; }
24007 if ${gl_cv_cc_visibility+:} false
; then :
24008 $as_echo_n "(cached) " >&6
24010 gl_save_CFLAGS
="$CFLAGS"
24011 CFLAGS
="$CFLAGS -fvisibility=hidden"
24012 if test $gl_cv_cc_vis_werror = yes; then
24013 CFLAGS
="$CFLAGS -Werror"
24015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h. */
24017 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24018 extern __attribute__((__visibility__("default"))) int exportedvar;
24019 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24020 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24021 void dummyfunc (void) {}
24031 if ac_fn_c_try_compile
"$LINENO"; then :
24032 gl_cv_cc_visibility
=yes
24034 gl_cv_cc_visibility
=no
24036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24037 CFLAGS
="$gl_save_CFLAGS"
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24041 $as_echo "$gl_cv_cc_visibility" >&6; }
24042 if test $gl_cv_cc_visibility = yes; then
24043 CFLAG_VISIBILITY
="-fvisibility=hidden"
24050 cat >>confdefs.h
<<_ACEOF
24051 #define HAVE_VISIBILITY $HAVE_VISIBILITY
24073 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
24089 if case "$host_os" in
24091 *) test $ac_cv_func_mbsinit = yes ;;
24093 && test $ac_cv_func_mbrtowc = yes; then
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24099 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24100 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24101 $as_echo_n "(cached) " >&6
24105 # Guess no on AIX and OSF/1.
24106 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24107 # Guess yes otherwise.
24108 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24110 if test $LOCALE_JA != none
; then
24111 if test "$cross_compiling" = yes; then :
24114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24115 /* end confdefs.h. */
24117 #include <locale.h>
24118 #include <string.h>
24122 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24124 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24128 memset (&state, '\0', sizeof (mbstate_t));
24129 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24130 if (mbsinit (&state))
24136 if ac_fn_c_try_run
"$LINENO"; then :
24137 gl_cv_func_mbrtowc_incomplete_state
=yes
24139 gl_cv_func_mbrtowc_incomplete_state
=no
24141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24146 if test $LOCALE_FR_UTF8 != none
; then
24147 if test "$cross_compiling" = yes; then :
24150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24151 /* end confdefs.h. */
24153 #include <locale.h>
24154 #include <string.h>
24158 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24160 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24164 memset (&state, '\0', sizeof (mbstate_t));
24165 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24166 if (mbsinit (&state))
24172 if ac_fn_c_try_run
"$LINENO"; then :
24173 gl_cv_func_mbrtowc_incomplete_state
=yes
24175 gl_cv_func_mbrtowc_incomplete_state
=no
24177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24186 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24192 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24193 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24194 $as_echo_n "(cached) " >&6
24198 # Guess no on Solaris 8.
24199 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24200 # Guess yes otherwise.
24201 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24203 if test $LOCALE_ZH_CN != none
; then
24204 if test "$cross_compiling" = yes; then :
24207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24210 #include <locale.h>
24211 #include <stdlib.h>
24212 #include <string.h>
24216 /* This fails on Solaris 8:
24217 mbrtowc returns 2, and sets wc to 0x00F0.
24218 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24219 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24221 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24225 memset (&state, '\0', sizeof (mbstate_t));
24226 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24227 && mbtowc (&wc, input + 3, 6) == 4)
24233 if ac_fn_c_try_run
"$LINENO"; then :
24234 gl_cv_func_mbrtowc_sanitycheck
=yes
24236 gl_cv_func_mbrtowc_sanitycheck
=no
24238 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24239 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24246 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24248 REPLACE_MBSTATE_T
=0
24249 case "$gl_cv_func_mbrtowc_incomplete_state" in
24251 *) REPLACE_MBSTATE_T
=1 ;;
24253 case "$gl_cv_func_mbrtowc_sanitycheck" in
24255 *) REPLACE_MBSTATE_T
=1 ;;
24258 REPLACE_MBSTATE_T
=1
24263 if test $ac_cv_func_mbsinit = no
; then
24265 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
24269 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
24275 cat >>confdefs.h
<<_ACEOF
24276 #define HAVE_DECL_MBSINIT $ac_have_decl
24279 if test $ac_cv_have_decl_mbsinit = yes; then
24283 if test $REPLACE_MBSTATE_T = 1; then
24287 mingw
*) REPLACE_MBSINIT
=1 ;;
24292 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
24301 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
24318 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
24333 if case "$host_os" in
24335 *) test $ac_cv_func_mbsinit = yes ;;
24337 && test $ac_cv_func_mbrtowc = yes; then
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24343 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24344 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24345 $as_echo_n "(cached) " >&6
24349 # Guess no on AIX and OSF/1.
24350 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24351 # Guess yes otherwise.
24352 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24354 if test $LOCALE_JA != none
; then
24355 if test "$cross_compiling" = yes; then :
24358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h. */
24361 #include <locale.h>
24362 #include <string.h>
24366 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24368 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24372 memset (&state, '\0', sizeof (mbstate_t));
24373 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24374 if (mbsinit (&state))
24380 if ac_fn_c_try_run
"$LINENO"; then :
24381 gl_cv_func_mbrtowc_incomplete_state
=yes
24383 gl_cv_func_mbrtowc_incomplete_state
=no
24385 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24386 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24390 if test $LOCALE_FR_UTF8 != none
; then
24391 if test "$cross_compiling" = yes; then :
24394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24395 /* end confdefs.h. */
24397 #include <locale.h>
24398 #include <string.h>
24402 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24404 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24408 memset (&state, '\0', sizeof (mbstate_t));
24409 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24410 if (mbsinit (&state))
24416 if ac_fn_c_try_run
"$LINENO"; then :
24417 gl_cv_func_mbrtowc_incomplete_state
=yes
24419 gl_cv_func_mbrtowc_incomplete_state
=no
24421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24430 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24436 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24437 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24438 $as_echo_n "(cached) " >&6
24442 # Guess no on Solaris 8.
24443 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24444 # Guess yes otherwise.
24445 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24447 if test $LOCALE_ZH_CN != none
; then
24448 if test "$cross_compiling" = yes; then :
24451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24452 /* end confdefs.h. */
24454 #include <locale.h>
24455 #include <stdlib.h>
24456 #include <string.h>
24460 /* This fails on Solaris 8:
24461 mbrtowc returns 2, and sets wc to 0x00F0.
24462 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24463 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24465 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24469 memset (&state, '\0', sizeof (mbstate_t));
24470 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24471 && mbtowc (&wc, input + 3, 6) == 4)
24477 if ac_fn_c_try_run
"$LINENO"; then :
24478 gl_cv_func_mbrtowc_sanitycheck
=yes
24480 gl_cv_func_mbrtowc_sanitycheck
=no
24482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24490 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24492 REPLACE_MBSTATE_T
=0
24493 case "$gl_cv_func_mbrtowc_incomplete_state" in
24495 *) REPLACE_MBSTATE_T
=1 ;;
24497 case "$gl_cv_func_mbrtowc_sanitycheck" in
24499 *) REPLACE_MBSTATE_T
=1 ;;
24502 REPLACE_MBSTATE_T
=1
24507 if test $ac_cv_func_mbsrtowcs = no
; then
24509 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
24513 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
24519 cat >>confdefs.h
<<_ACEOF
24520 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
24523 if test $ac_cv_have_decl_mbsrtowcs = yes; then
24524 REPLACE_MBSRTOWCS
=1
24527 if test $REPLACE_MBSTATE_T = 1; then
24528 REPLACE_MBSRTOWCS
=1
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
24537 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
24538 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
24539 $as_echo_n "(cached) " >&6
24543 # Guess no on HP-UX, Solaris, mingw.
24544 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
24545 # Guess yes otherwise.
24546 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
24548 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
24549 if test "$cross_compiling" = yes; then :
24552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h. */
24555 #include <locale.h>
24556 #include <string.h>
24561 /* Test whether the function supports a NULL destination argument.
24562 This fails on native Windows. */
24563 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24565 const char input[] = "\337er";
24566 const char *src = input;
24569 memset (&state, '\0', sizeof (mbstate_t));
24570 if (mbsrtowcs (NULL, &src, 1, &state) != 3
24574 /* Test whether the function works when started with a conversion state
24575 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
24576 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24578 const char input[] = "B\303\274\303\237er";
24581 memset (&state, '\0', sizeof (mbstate_t));
24582 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24583 if (!mbsinit (&state))
24585 const char *src = input + 2;
24586 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24590 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24592 const char input[] = "<\306\374\313\334\270\354>";
24595 memset (&state, '\0', sizeof (mbstate_t));
24596 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
24597 if (!mbsinit (&state))
24599 const char *src = input + 4;
24600 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
24604 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24606 const char input[] = "B\250\271\201\060\211\070er";
24609 memset (&state, '\0', sizeof (mbstate_t));
24610 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24611 if (!mbsinit (&state))
24613 const char *src = input + 2;
24614 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24621 if ac_fn_c_try_run
"$LINENO"; then :
24622 gl_cv_func_mbsrtowcs_works
=yes
24624 gl_cv_func_mbsrtowcs_works
=no
24626 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24627 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
24634 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
24636 case "$gl_cv_func_mbsrtowcs_works" in
24638 *) REPLACE_MBSRTOWCS
=1 ;;
24643 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
24652 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
24662 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
24679 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
24686 for ac_func
in mbtowc
24688 ac_fn_c_check_func
"$LINENO" "mbtowc" "ac_cv_func_mbtowc"
24689 if test "x$ac_cv_func_mbtowc" = xyes
; then :
24690 cat >>confdefs.h
<<_ACEOF
24691 #define HAVE_MBTOWC 1
24697 if test $ac_cv_func_mbtowc = no
; then
24705 if test $HAVE_MBTOWC = 0 ||
test $REPLACE_MBTOWC = 1; then
24714 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
24731 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
24736 if test $REPLACE_MEMCHR = 1; then
24745 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
24748 for ac_header
in bp-sym.h
24750 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24751 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
24752 cat >>confdefs.h
<<_ACEOF
24753 #define HAVE_BP_SYM_H 1
24773 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24779 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
24781 $as_echo_n "checking whether memmem works in linear time... " >&6; }
24782 if ${gl_cv_func_memmem_works_fast+:} false
; then :
24783 $as_echo_n "(cached) " >&6
24785 if test "$cross_compiling" = yes; then :
24786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24787 /* end confdefs.h. */
24789 #include <features.h>
24790 #ifdef __GNU_LIBRARY__
24791 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
24792 && !defined __UCLIBC__
24797 #include <cygwin/version.h>
24798 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24805 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24806 gl_cv_func_memmem_works_fast
="guessing yes"
24808 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
24814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h. */
24817 #include <signal.h> /* for signal */
24818 #include <string.h> /* for memmem */
24819 #include <stdlib.h> /* for malloc */
24820 #include <unistd.h> /* for alarm */
24821 static void quit (int sig) { _exit (sig + 128); }
24828 size_t m = 1000000;
24829 char *haystack = (char *) malloc (2 * m + 1);
24830 char *needle = (char *) malloc (m + 1);
24831 /* Failure to compile this test due to missing alarm is okay,
24832 since all such platforms (mingw) also lack memmem. */
24833 signal (SIGALRM, quit);
24835 /* Check for quadratic performance. */
24836 if (haystack && needle)
24838 memset (haystack, 'A', 2 * m);
24839 haystack[2 * m] = 'B';
24840 memset (needle, 'A', m);
24842 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
24845 /* Free allocated memory, in case some sanitizer is watching. */
24854 if ac_fn_c_try_run
"$LINENO"; then :
24855 gl_cv_func_memmem_works_fast
=yes
24857 gl_cv_func_memmem_works_fast
=no
24859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
24866 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
24867 case "$gl_cv_func_memmem_works_fast" in
24875 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24884 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24891 for ac_func
in memmem
24893 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
24894 if test "x$ac_cv_func_memmem" = xyes
; then :
24895 cat >>confdefs.h
<<_ACEOF
24896 #define HAVE_MEMMEM 1
24902 if test $ac_cv_func_memmem = yes; then
24908 if test $ac_cv_have_decl_memmem = no
; then
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
24912 $as_echo_n "checking whether memmem works... " >&6; }
24913 if ${gl_cv_func_memmem_works_always+:} false
; then :
24914 $as_echo_n "(cached) " >&6
24916 if test "$cross_compiling" = yes; then :
24917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24918 /* end confdefs.h. */
24920 #ifdef __GNU_LIBRARY__
24921 #include <features.h>
24922 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
24923 || __GLIBC_MINOR__ > 12)) \
24924 || (__GLIBC__ > 2)) \
24925 || defined __UCLIBC__
24928 #elif defined __CYGWIN__
24929 #include <cygwin/version.h>
24930 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24939 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24940 gl_cv_func_memmem_works_always
="guessing yes"
24942 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
24948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h. */
24951 #include <string.h> /* for memmem */
24952 #define P "_EF_BF_BD"
24953 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24954 #define NEEDLE P P P P P
24961 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
24963 /* Check for empty needle behavior. */
24965 const char *haystack = "AAA";
24966 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
24975 if ac_fn_c_try_run
"$LINENO"; then :
24976 gl_cv_func_memmem_works_always
=yes
24978 gl_cv_func_memmem_works_always
=no
24980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
24987 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
24988 case "$gl_cv_func_memmem_works_always" in
24997 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
25006 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
25020 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
25030 for ac_func
in mempcpy
25032 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
25033 if test "x$ac_cv_func_mempcpy" = xyes
; then :
25034 cat >>confdefs.h
<<_ACEOF
25035 #define HAVE_MEMPCPY 1
25041 if test $ac_cv_func_mempcpy = no
; then
25045 if test $HAVE_MEMPCPY = 0; then
25054 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
25071 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
25080 if test $ac_cv_have_decl_memrchr = no
; then
25081 HAVE_DECL_MEMRCHR
=0
25084 for ac_func
in memrchr
25086 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
25087 if test "x$ac_cv_func_memrchr" = xyes
; then :
25088 cat >>confdefs.h
<<_ACEOF
25089 #define HAVE_MEMRCHR 1
25096 if test $ac_cv_func_memrchr = no
; then
25105 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
25120 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
25130 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
25131 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
25132 $as_echo_n "(cached) " >&6
25134 rm -rf conftest.dir
25135 if test "$cross_compiling" = yes; then :
25137 # Guess yes on Linux systems.
25138 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25139 # Guess yes on glibc systems.
25140 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25141 # Guess yes on MSVC, no on mingw.
25142 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25151 $EGREP "Known" >/dev
/null
2>&1; then :
25152 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
25154 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
25159 # If we don't know, obey --enable-cross-guesses.
25160 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
25164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25165 /* end confdefs.h. */
25167 #include <sys/types.h>
25168 #include <sys/stat.h>
25176 return mkdir ("conftest.dir/", 0700);
25181 if ac_fn_c_try_run
"$LINENO"; then :
25182 gl_cv_func_mkdir_trailing_slash_works
=yes
25184 gl_cv_func_mkdir_trailing_slash_works
=no
25186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25190 rm -rf conftest.dir
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
25194 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
25195 case "$gl_cv_func_mkdir_trailing_slash_works" in
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
25203 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
25204 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
25205 $as_echo_n "(cached) " >&6
25207 rm -rf conftest.dir
25208 if test "$cross_compiling" = yes; then :
25210 # Guess yes on glibc systems.
25211 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25212 # Guess yes on musl systems.
25213 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25214 # Guess no on native Windows.
25215 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
25216 # If we don't know, obey --enable-cross-guesses.
25217 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
25221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25222 /* end confdefs.h. */
25224 #include <sys/types.h>
25225 #include <sys/stat.h>
25233 return !mkdir ("conftest.dir/./", 0700);
25238 if ac_fn_c_try_run
"$LINENO"; then :
25239 gl_cv_func_mkdir_trailing_dot_works
=yes
25241 gl_cv_func_mkdir_trailing_dot_works
=no
25243 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25244 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25247 rm -rf conftest.dir
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
25252 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
25253 case "$gl_cv_func_mkdir_trailing_dot_works" in
25258 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
25263 if test $REPLACE_MKDIR = 1; then
25272 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
25286 $as_echo "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
25292 for ac_func
in mkdtemp
25294 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
25295 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
25296 cat >>confdefs.h
<<_ACEOF
25297 #define HAVE_MKDTEMP 1
25303 if test $ac_cv_func_mkdtemp = no
; then
25307 if test $HAVE_MKDTEMP = 0; then
25316 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
25332 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
25342 if test $ac_cv_func_mkostemp != yes; then
25346 if test $HAVE_MKOSTEMP = 0; then
25355 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
25362 cat >>confdefs.h
<<_ACEOF
25363 #define GNULIB_MKOSTEMP 1
25378 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
25383 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25392 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
25396 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25405 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
25410 cat >>confdefs.h
<<_ACEOF
25411 #define GNULIB_MSVC_NOTHROW 1
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
25418 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25419 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
25420 $as_echo_n "(cached) " >&6
25423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h. */
25425 #include <netinet/in.h>
25434 if ac_fn_c_try_compile
"$LINENO"; then :
25435 gl_cv_header_netinet_in_h_selfcontained
=yes
25437 gl_cv_header_netinet_in_h_selfcontained
=no
25439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25443 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25444 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25447 NETINET_IN_H
='netinet/in.h'
25448 for ac_header
in netinet
/in.h
25450 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25451 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
25452 cat >>confdefs.h
<<_ACEOF
25453 #define HAVE_NETINET_IN_H 1
25469 if test $gl_cv_have_include_next = yes; then
25470 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
25473 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25474 if ${gl_cv_next_netinet_in_h+:} false
; then :
25475 $as_echo_n "(cached) " >&6
25478 if test $ac_cv_header_netinet_in_h = yes; then
25483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h. */
25485 #include <netinet/in.h>
25488 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25489 *) gl_absname_cpp
="$ac_cpp" ;;
25494 gl_dirsep_regex
='[/\\]'
25497 gl_dirsep_regex
='\/'
25500 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25501 gl_header_literal_regex
=`echo 'netinet/in.h' \
25502 | sed -e "$gl_make_literal_regex_sed"`
25503 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25504 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25510 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25511 sed -n "$gl_absolute_header_sed"`
25513 gl_header
=$gl_cv_absolute_netinet_in_h
25514 gl_cv_next_netinet_in_h
='"'$gl_header'"'
25516 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
25522 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25524 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
25526 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25528 gl_next_as_first_directive
='<'netinet
/in.h
'>'
25530 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25531 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
25533 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
25538 if test $ac_cv_header_netinet_in_h = yes; then
25539 HAVE_NETINET_IN_H
=1
25541 HAVE_NETINET_IN_H
=0
25546 if test -n "$NETINET_IN_H"; then
25547 GL_GENERATE_NETINET_IN_H_TRUE
=
25548 GL_GENERATE_NETINET_IN_H_FALSE
='#'
25550 GL_GENERATE_NETINET_IN_H_TRUE
='#'
25551 GL_GENERATE_NETINET_IN_H_FALSE
=
25565 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
25571 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
25572 if ${gl_cv_func_open_slash+:} false
; then :
25573 $as_echo_n "(cached) " >&6
25575 # Assume that if we have lstat, we can also check symlinks.
25576 if test $ac_cv_func_lstat = yes; then
25578 ln -s conftest.tmp conftest.lnk
25580 if test "$cross_compiling" = yes; then :
25583 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
25584 gl_cv_func_open_slash
="guessing no" ;;
25586 gl_cv_func_open_slash
="guessing yes" ;;
25590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25591 /* end confdefs.h. */
25595 # include <unistd.h>
25605 if (open ("conftest.lnk/", O_RDONLY) != -1)
25608 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
25613 if ac_fn_c_try_run
"$LINENO"; then :
25614 gl_cv_func_open_slash
=yes
25616 gl_cv_func_open_slash
=no
25618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25622 rm -f conftest.sl conftest.tmp conftest.lnk
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
25626 $as_echo "$gl_cv_func_open_slash" >&6; }
25627 case "$gl_cv_func_open_slash" in
25630 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25635 case "$gl_cv_func_open_slash" in
25643 if test $REPLACE_OPEN = 0; then
25647 if test $ac_cv_func_fchdir = no
; then
25651 if test $HAVE_FCHDIR = 0; then
25658 if test $REPLACE_OPEN = 1; then
25667 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
25685 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
25695 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
25699 # Solaris 10 lacks O_CLOEXEC.
25700 # Solaris 9 has *at functions, but uniformly mishandles trailing
25701 # slash in all of them.
25709 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
25718 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
25727 cat >>confdefs.h
<<_ACEOF
25728 #define GNULIB_OPENAT 1
25742 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
25749 for ac_func
in opendir
25751 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
25752 if test "x$ac_cv_func_opendir" = xyes
; then :
25753 cat >>confdefs.h
<<_ACEOF
25754 #define HAVE_OPENDIR 1
25760 if test $ac_cv_func_opendir = no
; then
25767 if test $ac_cv_func_fchdir = no
; then
25771 if test $HAVE_FCHDIR = 0; then
25772 if test $HAVE_OPENDIR = 1; then
25777 case $host_os,$HAVE_OPENDIR in
25779 REPLACE_OPENDIR
=1;;
25782 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
25791 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
25805 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
25816 if test $ac_cv_func_pipe != yes; then
25820 if test $HAVE_PIPE = 0; then
25829 gl_LIBOBJS
="$gl_LIBOBJS pipe.$ac_objext"
25843 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
25851 for ac_func
in rawmemchr
25853 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
25854 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
25855 cat >>confdefs.h
<<_ACEOF
25856 #define HAVE_RAWMEMCHR 1
25862 if test $ac_cv_func_rawmemchr = no
; then
25866 if test $HAVE_RAWMEMCHR = 0; then
25875 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
25890 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
25897 for ac_func
in readdir
25899 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
25900 if test "x$ac_cv_func_readdir" = xyes
; then :
25901 cat >>confdefs.h
<<_ACEOF
25902 #define HAVE_READDIR 1
25908 if test $ac_cv_func_readdir = no
; then
25912 if test $HAVE_READDIR = 0; then
25921 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
25935 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
25942 if test $ac_cv_func_readlink = no
; then
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25946 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25947 if ${gl_cv_decl_readlink_works+:} false
; then :
25948 $as_echo_n "(cached) " >&6
25950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h. */
25952 #include <unistd.h>
25953 /* Cause compilation failure if original declaration has wrong type. */
25954 ssize_t readlink (const char *, char *, size_t);
25963 if ac_fn_c_try_compile
"$LINENO"; then :
25964 gl_cv_decl_readlink_works
=yes
25966 gl_cv_decl_readlink_works
=no
25968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25971 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25973 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25974 if ${gl_cv_func_readlink_trailing_slash+:} false
; then :
25975 $as_echo_n "(cached) " >&6
25977 # We have readlink, so assume ln -s works.
25978 ln -s conftest.no-such conftest.link
25979 ln -s conftest.link conftest.lnk2
25980 if test "$cross_compiling" = yes; then :
25982 # Guess yes on Linux or glibc systems.
25983 linux-
* | linux |
*-gnu* | gnu
*)
25984 gl_cv_func_readlink_trailing_slash
="guessing yes" ;;
25985 # Guess no on AIX or HP-UX.
25987 gl_cv_func_readlink_trailing_slash
="guessing no" ;;
25988 # If we don't know, obey --enable-cross-guesses.
25990 gl_cv_func_readlink_trailing_slash
="$gl_cross_guess_normal" ;;
25994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h. */
25996 #include <unistd.h>
26002 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
26007 if ac_fn_c_try_run
"$LINENO"; then :
26008 gl_cv_func_readlink_trailing_slash
=yes
26010 gl_cv_func_readlink_trailing_slash
=no
26012 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26013 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26016 rm -f conftest.link conftest.lnk2
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
26019 $as_echo "$gl_cv_func_readlink_trailing_slash" >&6; }
26020 case "$gl_cv_func_readlink_trailing_slash" in
26022 if test "$gl_cv_decl_readlink_works" != yes; then
26028 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
26035 $as_echo_n "checking whether readlink truncates results correctly... " >&6; }
26036 if ${gl_cv_func_readlink_truncate+:} false
; then :
26037 $as_echo_n "(cached) " >&6
26039 # We have readlink, so assume ln -s works.
26040 ln -s ab conftest.link
26041 if test "$cross_compiling" = yes; then :
26043 # Guess yes on Linux or glibc systems.
26044 linux-
* | linux |
*-gnu* | gnu
*)
26045 gl_cv_func_readlink_truncate
="guessing yes" ;;
26046 # Guess no on AIX or HP-UX.
26048 gl_cv_func_readlink_truncate
="guessing no" ;;
26049 # If we don't know, obey --enable-cross-guesses.
26051 gl_cv_func_readlink_truncate
="$gl_cross_guess_normal" ;;
26055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h. */
26057 #include <unistd.h>
26063 return readlink ("conftest.link", &c, 1) != 1;
26068 if ac_fn_c_try_run
"$LINENO"; then :
26069 gl_cv_func_readlink_truncate
=yes
26071 gl_cv_func_readlink_truncate
=no
26073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26077 rm -f conftest.link conftest.lnk2
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
26080 $as_echo "$gl_cv_func_readlink_truncate" >&6; }
26081 case $gl_cv_func_readlink_truncate in
26083 if test "$gl_cv_decl_readlink_works" != yes; then
26089 $as_echo "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
26096 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26105 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
26122 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
26129 if test $gl_cv_func_malloc_posix = yes; then
26131 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
26137 if test $REPLACE_REALLOC = 1; then
26146 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
26154 GNULIB_REALLOC_POSIX
=1
26160 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
26170 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
26171 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
26172 $as_echo_n "(cached) " >&6
26174 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26175 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26176 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26177 # Assume that if we have lstat, we can also check symlinks.
26178 if test $ac_cv_func_lstat = yes; then
26179 ln -s conftest.f conftest.lnk
26181 if test "$cross_compiling" = yes; then :
26183 # Guess yes on Linux systems.
26184 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26185 # Guess yes on glibc systems.
26186 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26187 # Guess no on native Windows.
26188 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
26189 # If we don't know, obey --enable-cross-guesses.
26190 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
26194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26195 /* end confdefs.h. */
26197 # include <stdio.h>
26198 # include <stdlib.h>
26204 if (rename ("conftest.f1", "conftest.f2/") == 0)
26206 if (rename ("conftest.d1", "conftest.d2/") != 0)
26209 if (rename ("conftest.f", "conftest.lnk/") == 0)
26218 if ac_fn_c_try_run
"$LINENO"; then :
26219 gl_cv_func_rename_slash_dst_works
=yes
26221 gl_cv_func_rename_slash_dst_works
=no
26223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26227 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
26231 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
26232 case "$gl_cv_func_rename_slash_dst_works" in
26237 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
26243 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
26244 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
26245 $as_echo_n "(cached) " >&6
26247 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26248 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26249 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26250 # Assume that if we have lstat, we can also check symlinks.
26251 if test $ac_cv_func_lstat = yes; then
26252 ln -s conftest.f conftest.lnk
26254 if test "$cross_compiling" = yes; then :
26256 # Guess yes on Linux systems.
26257 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26258 # Guess yes on glibc systems.
26259 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26260 # Guess yes on native Windows.
26261 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26262 # If we don't know, obey --enable-cross-guesses.
26263 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
26267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26268 /* end confdefs.h. */
26270 # include <stdio.h>
26271 # include <stdlib.h>
26277 if (rename ("conftest.f1/", "conftest.d3") == 0)
26279 if (rename ("conftest.d1/", "conftest.d2") != 0)
26282 if (rename ("conftest.lnk/", "conftest.f") == 0)
26291 if ac_fn_c_try_run
"$LINENO"; then :
26292 gl_cv_func_rename_slash_src_works
=yes
26294 gl_cv_func_rename_slash_src_works
=no
26296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26300 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
26304 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
26305 case "$gl_cv_func_rename_slash_src_works" in
26310 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
26317 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
26318 if ${gl_cv_func_rename_link_works+:} false
; then :
26319 $as_echo_n "(cached) " >&6
26321 if test $ac_cv_func_link = yes; then
26322 if test $cross_compiling != yes; then
26323 rm -rf conftest.f conftest.f1 conftest.f2
26324 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
26325 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
26326 if test "$cross_compiling" = yes; then :
26330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26331 /* end confdefs.h. */
26333 # include <errno.h>
26334 # include <stdio.h>
26335 # include <stdlib.h>
26336 # include <unistd.h>
26345 if (rename ("conftest.f", "conftest.f1"))
26347 if (unlink ("conftest.f1"))
26350 /* Allow either the POSIX-required behavior, where the
26351 previous rename kept conftest.f, or the (better) NetBSD
26352 behavior, where it removed conftest.f. */
26353 if (rename ("conftest.f", "conftest.f") != 0
26354 && errno != ENOENT)
26357 if (rename ("conftest.f1", "conftest.f1") == 0)
26359 if (rename ("conftest.f2", "conftest.f2") != 0)
26367 if ac_fn_c_try_run
"$LINENO"; then :
26368 gl_cv_func_rename_link_works
=yes
26370 gl_cv_func_rename_link_works
=no
26372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26377 gl_cv_func_rename_link_works
="guessing no"
26379 rm -rf conftest.f conftest.f1 conftest.f2
26382 # Guess yes on Linux systems.
26383 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
26384 # Guess yes on glibc systems.
26385 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
26386 # Guess yes on native Windows.
26387 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
26388 # If we don't know, obey --enable-cross-guesses.
26389 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
26393 gl_cv_func_rename_link_works
=yes
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
26398 $as_echo "$gl_cv_func_rename_link_works" >&6; }
26399 case "$gl_cv_func_rename_link_works" in
26404 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
26410 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
26411 if ${gl_cv_func_rename_dest_works+:} false
; then :
26412 $as_echo_n "(cached) " >&6
26414 rm -rf conftest.f conftest.d1 conftest.d2
26415 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
26416 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26417 if test "$cross_compiling" = yes; then :
26419 # Guess yes on Linux systems.
26420 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
26421 # Guess yes on glibc systems.
26422 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
26423 # Guess no on native Windows.
26424 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
26425 # If we don't know, obey --enable-cross-guesses.
26426 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
26430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26431 /* end confdefs.h. */
26433 # include <stdio.h>
26434 # include <stdlib.h>
26440 if (rename ("conftest.d1", "conftest.d2") != 0)
26442 if (rename ("conftest.d2", "conftest.f") == 0)
26450 if ac_fn_c_try_run
"$LINENO"; then :
26451 gl_cv_func_rename_dest_works
=yes
26453 gl_cv_func_rename_dest_works
=no
26455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26456 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26459 rm -rf conftest.f conftest.d1 conftest.d2
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
26463 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
26464 case "$gl_cv_func_rename_dest_works" in
26469 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
26474 if test $REPLACE_RENAME = 1; then
26483 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
26497 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
26504 for ac_func
in rewinddir
26506 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
26507 if test "x$ac_cv_func_rewinddir" = xyes
; then :
26508 cat >>confdefs.h
<<_ACEOF
26509 #define HAVE_REWINDDIR 1
26515 if test $ac_cv_func_rewinddir = no
; then
26519 if test $HAVE_REWINDDIR = 0; then
26528 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
26542 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
26550 $as_echo_n "checking whether rmdir works... " >&6; }
26551 if ${gl_cv_func_rmdir_works+:} false
; then :
26552 $as_echo_n "(cached) " >&6
26555 touch conftest.
file
26556 if test "$cross_compiling" = yes; then :
26558 # Guess yes on Linux systems.
26559 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
26560 # Guess yes on glibc systems.
26561 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
26562 # Guess no on native Windows.
26563 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
26564 # If we don't know, obey --enable-cross-guesses.
26565 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
26569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26570 /* end confdefs.h. */
26574 # include <unistd.h>
26575 #else /* on Windows with MSVC */
26576 # include <direct.h>
26586 if (!rmdir ("conftest.file/"))
26588 else if (errno != ENOTDIR)
26590 if (!rmdir ("conftest.dir/./"))
26598 if ac_fn_c_try_run
"$LINENO"; then :
26599 gl_cv_func_rmdir_works
=yes
26601 gl_cv_func_rmdir_works
=no
26603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26607 rm -rf conftest.dir conftest.
file
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
26610 $as_echo "$gl_cv_func_rmdir_works" >&6; }
26611 case "$gl_cv_func_rmdir_works" in
26618 if test $REPLACE_RMDIR = 1; then
26627 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
26641 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
26650 if test $ac_cv_func_setenv = no
; then
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
26654 $as_echo_n "checking whether setenv validates arguments... " >&6; }
26655 if ${gl_cv_func_setenv_works+:} false
; then :
26656 $as_echo_n "(cached) " >&6
26658 if test "$cross_compiling" = yes; then :
26660 # Guess yes on glibc systems.
26661 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
26662 # Guess yes on musl systems.
26663 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
26664 # If we don't know, obey --enable-cross-guesses.
26665 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
26669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26670 /* end confdefs.h. */
26672 #include <stdlib.h>
26674 #include <string.h>
26682 if (setenv ("", "", 0) != -1)
26684 else if (errno != EINVAL)
26688 if (setenv ("a", "=", 1) != 0)
26690 else if (strcmp (getenv ("a"), "=") != 0)
26699 if ac_fn_c_try_run
"$LINENO"; then :
26700 gl_cv_func_setenv_works
=yes
26702 gl_cv_func_setenv_works
=no
26704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
26710 $as_echo "$gl_cv_func_setenv_works" >&6; }
26711 case "$gl_cv_func_setenv_works" in
26719 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
26728 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
26742 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
26752 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
26753 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
26754 $as_echo_n "(cached) " >&6
26757 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
26758 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
26759 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
26760 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
26761 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
26762 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
26763 # If we don't know, obey --enable-cross-guesses.
26765 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
26770 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
26774 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26775 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
26779 case "$gl_cv_func_setlocale_null_all_mtsafe" in
26780 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
26781 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
26784 cat >>confdefs.h
<<_ACEOF
26785 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
26790 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
26791 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
26792 $as_echo_n "(cached) " >&6
26795 # Guess no on OpenBSD, AIX.
26797 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
26798 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
26799 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
26800 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
26801 # If we don't know, obey --enable-cross-guesses.
26803 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
26808 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
26812 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26813 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
26817 case "$gl_cv_func_setlocale_null_one_mtsafe" in
26818 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
26819 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
26822 cat >>confdefs.h
<<_ACEOF
26823 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
26827 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26829 mingw
*) LIB_SETLOCALE_NULL
= ;;
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
26834 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
26835 if ${gl_cv_have_weak+:} false
; then :
26836 $as_echo_n "(cached) " >&6
26839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26840 /* end confdefs.h. */
26841 extern void xyzzy ();
26851 if ac_fn_c_try_link
"$LINENO"; then :
26852 gl_cv_have_weak
=maybe
26854 rm -f core conftest.err conftest.
$ac_objext \
26855 conftest
$ac_exeext conftest.
$ac_ext
26856 if test $gl_cv_have_weak = maybe
; then
26857 if test "$cross_compiling" = yes; then :
26858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26859 /* end confdefs.h. */
26861 Extensible Linking Format
26865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26866 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
26867 gl_cv_have_weak
="guessing yes"
26869 gl_cv_have_weak
="guessing no"
26875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h. */
26882 return (fputs == NULL);
26885 if ac_fn_c_try_run
"$LINENO"; then :
26886 gl_cv_have_weak
=yes
26890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26895 case " $LDFLAGS " in
26896 *" -static "*) gl_cv_have_weak
=no
;;
26898 case "$gl_cv_have_weak" in
26901 freebsd
* | dragonfly
*)
26903 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
26904 cat <<EOF > conftest2.c
26905 #include <pthread.h>
26906 #pragma weak pthread_mutexattr_gettype
26909 return (pthread_mutexattr_gettype != NULL);
26912 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
26913 || gl_cv_have_weak
=no
26914 rm -f conftest1.c libempty.so conftest2.c conftest
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
26922 $as_echo "$gl_cv_have_weak" >&6; }
26923 case "$gl_cv_have_weak" in
26926 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
26931 case "$gl_cv_have_weak" in
26932 *yes) LIB_SETLOCALE_NULL
= ;;
26933 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
26938 LIB_SETLOCALE_NULL
=
26942 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26951 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
26958 if test -n "$GCC"; then
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
26960 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
26961 if ${gl_cv_cc_vis_werror+:} false
; then :
26962 $as_echo_n "(cached) " >&6
26964 gl_save_CFLAGS
="$CFLAGS"
26965 CFLAGS
="$CFLAGS -Werror"
26966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26967 /* end confdefs.h. */
26977 if ac_fn_c_try_compile
"$LINENO"; then :
26978 gl_cv_cc_vis_werror
=yes
26980 gl_cv_cc_vis_werror
=no
26982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26983 CFLAGS
="$gl_save_CFLAGS"
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
26987 $as_echo "$gl_cv_cc_vis_werror" >&6; }
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
26989 $as_echo_n "checking for simple visibility declarations... " >&6; }
26990 if ${gl_cv_cc_visibility+:} false
; then :
26991 $as_echo_n "(cached) " >&6
26993 gl_save_CFLAGS
="$CFLAGS"
26994 CFLAGS
="$CFLAGS -fvisibility=hidden"
26995 if test $gl_cv_cc_vis_werror = yes; then
26996 CFLAGS
="$CFLAGS -Werror"
26998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26999 /* end confdefs.h. */
27000 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
27001 extern __attribute__((__visibility__("default"))) int exportedvar;
27002 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
27003 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
27004 void dummyfunc (void) {}
27014 if ac_fn_c_try_compile
"$LINENO"; then :
27015 gl_cv_cc_visibility
=yes
27017 gl_cv_cc_visibility
=no
27019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27020 CFLAGS
="$gl_save_CFLAGS"
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
27024 $as_echo "$gl_cv_cc_visibility" >&6; }
27025 if test $gl_cv_cc_visibility = yes; then
27026 CFLAG_VISIBILITY
="-fvisibility=hidden"
27033 cat >>confdefs.h
<<_ACEOF
27034 #define HAVE_VISIBILITY $HAVE_VISIBILITY
27045 GNULIB_SETLOCALE_NULL
=1
27051 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
27066 if test $gl_cv_have_include_next = yes; then
27067 gl_cv_next_signal_h
='<'signal.h
'>'
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
27070 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
27071 if ${gl_cv_next_signal_h+:} false
; then :
27072 $as_echo_n "(cached) " >&6
27077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27079 #include <signal.h>
27082 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27083 *) gl_absname_cpp
="$ac_cpp" ;;
27088 gl_dirsep_regex
='[/\\]'
27091 gl_dirsep_regex
='\/'
27094 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27095 gl_header_literal_regex
=`echo 'signal.h' \
27096 | sed -e "$gl_make_literal_regex_sed"`
27097 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27098 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27104 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27105 sed -n "$gl_absolute_header_sed"`
27107 gl_header
=$gl_cv_absolute_signal_h
27108 gl_cv_next_signal_h
='"'$gl_header'"'
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
27113 $as_echo "$gl_cv_next_signal_h" >&6; }
27115 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
27117 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27119 gl_next_as_first_directive
='<'signal.h
'>'
27121 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27122 gl_next_as_first_directive
=$gl_cv_next_signal_h
27124 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
27130 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
27131 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
27132 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
27133 #include <signal.h>
27136 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
27139 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
27148 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
27149 #include <signal.h>
27152 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
27155 HAVE_SIGHANDLER_T
=0
27165 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27166 /* <sys/types.h> is not needed according to POSIX, but the
27167 <sys/socket.h> in i386-unknown-freebsd4.10 and
27168 powerpc-apple-darwin5.5 required it. */
27169 #include <sys/types.h>
27170 #if HAVE_SYS_SOCKET_H
27171 # include <sys/socket.h>
27172 #elif HAVE_WS2TCPIP_H
27173 # include <ws2tcpip.h>
27177 if test "x$ac_cv_type_socklen_t" = xyes
; then :
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
27181 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27182 if ${gl_cv_socklen_t_equiv+:} false
; then :
27183 $as_echo_n "(cached) " >&6
27185 # Systems have either "struct sockaddr *" or
27186 # "void *" as the second argument to getpeername
27187 gl_cv_socklen_t_equiv
=
27188 for arg2
in "struct sockaddr" void
; do
27189 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
27190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27191 /* end confdefs.h. */
27192 #include <sys/types.h>
27193 #include <sys/socket.h>
27195 int getpeername (int, $arg2 *, $t *);
27200 getpeername (0, 0, &len);
27205 if ac_fn_c_try_compile
"$LINENO"; then :
27206 gl_cv_socklen_t_equiv
="$t"
27208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27209 test "$gl_cv_socklen_t_equiv" != "" && break
27211 test "$gl_cv_socklen_t_equiv" != "" && break
27213 if test "$gl_cv_socklen_t_equiv" = ""; then
27214 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
27219 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27221 cat >>confdefs.h
<<_ACEOF
27222 #define socklen_t $gl_cv_socklen_t_equiv
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27229 $as_echo_n "checking for ssize_t... " >&6; }
27230 if ${gt_cv_ssize_t+:} false
; then :
27231 $as_echo_n "(cached) " >&6
27233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27234 /* end confdefs.h. */
27235 #include <sys/types.h>
27239 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27245 if ac_fn_c_try_compile
"$LINENO"; then :
27250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27253 $as_echo "$gt_cv_ssize_t" >&6; }
27254 if test $gt_cv_ssize_t = no
; then
27256 $as_echo "#define ssize_t int" >>confdefs.h
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27269 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
27270 if ${gl_cv_func_stat_file_slash+:} false
; then :
27271 $as_echo_n "(cached) " >&6
27274 # Assume that if we have lstat, we can also check symlinks.
27275 if test $ac_cv_func_lstat = yes; then
27276 ln -s conftest.tmp conftest.lnk
27278 if test "$cross_compiling" = yes; then :
27280 # Guess yes on Linux systems.
27281 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
27282 # Guess yes on glibc systems.
27283 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
27284 # If we don't know, obey --enable-cross-guesses.
27285 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
27289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27290 /* end confdefs.h. */
27291 #include <sys/stat.h>
27298 if (!stat ("conftest.tmp/", &st))
27301 if (!stat ("conftest.lnk/", &st))
27310 if ac_fn_c_try_run
"$LINENO"; then :
27311 gl_cv_func_stat_file_slash
=yes
27313 gl_cv_func_stat_file_slash
=no
27315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27316 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27319 rm -f conftest.tmp conftest.lnk
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27322 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
27323 case $gl_cv_func_stat_file_slash in
27327 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27337 if test $REPLACE_STAT = 1; then
27346 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27358 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
27379 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
27387 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>
27388 #include <sys/stat.h>
27390 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
27392 cat >>confdefs.h
<<_ACEOF
27393 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27397 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27398 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
27399 $as_echo_n "(cached) " >&6
27401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27402 /* end confdefs.h. */
27404 #include <sys/types.h>
27405 #include <sys/stat.h>
27406 #if HAVE_SYS_TIME_H
27407 # include <sys/time.h>
27410 struct timespec ts;
27423 if ac_fn_c_try_compile
"$LINENO"; then :
27424 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
27426 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
27428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27431 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27432 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27434 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27438 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>
27439 #include <sys/stat.h>
27441 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
27443 cat >>confdefs.h
<<_ACEOF
27444 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27449 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27450 #include <sys/stat.h>
27452 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
27454 cat >>confdefs.h
<<_ACEOF
27455 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27460 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>
27461 #include <sys/stat.h>
27463 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
27465 cat >>confdefs.h
<<_ACEOF
27466 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27482 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>
27483 #include <sys/stat.h>
27485 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
27487 cat >>confdefs.h
<<_ACEOF
27488 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27493 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27494 #include <sys/stat.h>
27496 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
27498 cat >>confdefs.h
<<_ACEOF
27499 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27504 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>
27505 #include <sys/stat.h>
27507 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
27509 cat >>confdefs.h
<<_ACEOF
27510 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
27523 $as_echo_n "checking for working stdalign.h... " >&6; }
27524 if ${gl_cv_header_working_stdalign_h+:} false
; then :
27525 $as_echo_n "(cached) " >&6
27527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27528 /* end confdefs.h. */
27529 #include <stdalign.h>
27530 #include <stddef.h>
27532 /* Test that alignof yields a result consistent with offsetof.
27533 This catches GCC bug 52023
27534 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
27536 template <class t> struct alignof_helper { char a; t b; };
27537 # define ao(type) offsetof (alignof_helper<type>, b)
27539 # define ao(type) offsetof (struct { char a; type b; }, b)
27541 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
27542 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
27543 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
27545 /* Test _Alignas only on platforms where gnulib can help. */
27547 ((defined __cplusplus && 201103 <= __cplusplus) \
27548 || (defined __APPLE__ && defined __MACH__ \
27549 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
27551 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
27552 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
27553 || 1300 <= _MSC_VER)
27554 struct alignas_test { char c; char alignas (8) alignas_8; };
27555 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
27567 if ac_fn_c_try_compile
"$LINENO"; then :
27568 gl_cv_header_working_stdalign_h
=yes
27570 gl_cv_header_working_stdalign_h
=no
27572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
27575 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
27577 if test $gl_cv_header_working_stdalign_h = yes; then
27580 STDALIGN_H
='stdalign.h'
27584 if test -n "$STDALIGN_H"; then
27585 GL_GENERATE_STDALIGN_H_TRUE
=
27586 GL_GENERATE_STDALIGN_H_FALSE
='#'
27588 GL_GENERATE_STDALIGN_H_TRUE
='#'
27589 GL_GENERATE_STDALIGN_H_FALSE
=
27597 if test "$ac_cv_header_stdbool_h" = yes; then
27600 if test -z "$GCC"; then
27601 STDBOOL_H
='stdbool.h'
27611 STDBOOL_H
='stdbool.h'
27614 if test -n "$STDBOOL_H"; then
27615 GL_GENERATE_STDBOOL_H_TRUE
=
27616 GL_GENERATE_STDBOOL_H_FALSE
='#'
27618 GL_GENERATE_STDBOOL_H_TRUE
='#'
27619 GL_GENERATE_STDBOOL_H_FALSE
=
27623 if test "$ac_cv_type__Bool" = yes; then
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27639 $as_echo_n "checking for good max_align_t... " >&6; }
27640 if ${gl_cv_type_max_align_t+:} false
; then :
27641 $as_echo_n "(cached) " >&6
27643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27644 /* end confdefs.h. */
27645 #include <stddef.h>
27646 unsigned int s = sizeof (max_align_t);
27647 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
27648 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27649 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27651 typedef struct { char a; max_align_t b; } max_helper;
27652 typedef struct { char a; long b; } long_helper;
27653 typedef struct { char a; double b; } double_helper;
27654 typedef struct { char a; long double b; } long_double_helper;
27655 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
27656 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
27657 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
27667 if ac_fn_c_try_compile
"$LINENO"; then :
27668 gl_cv_type_max_align_t
=yes
27670 gl_cv_type_max_align_t
=no
27672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27676 $as_echo "$gl_cv_type_max_align_t" >&6; }
27677 if test $gl_cv_type_max_align_t = no
; then
27682 if test $gt_cv_c_wchar_t = no
; then
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27688 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
27689 if ${gl_cv_decl_null_works+:} false
; then :
27690 $as_echo_n "(cached) " >&6
27692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27693 /* end confdefs.h. */
27694 #include <stddef.h>
27695 int test[2 * (sizeof NULL == sizeof (void *)) -1];
27705 if ac_fn_c_try_compile
"$LINENO"; then :
27706 gl_cv_decl_null_works
=yes
27708 gl_cv_decl_null_works
=no
27710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27713 $as_echo "$gl_cv_decl_null_works" >&6; }
27714 if test $gl_cv_decl_null_works = no
; then
27720 if test -n "$STDDEF_H"; then
27721 GL_GENERATE_STDDEF_H_TRUE
=
27722 GL_GENERATE_STDDEF_H_FALSE
='#'
27724 GL_GENERATE_STDDEF_H_TRUE
='#'
27725 GL_GENERATE_STDDEF_H_FALSE
=
27728 if test -n "$STDDEF_H"; then
27737 if test $gl_cv_have_include_next = yes; then
27738 gl_cv_next_stddef_h
='<'stddef.h
'>'
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27741 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
27742 if ${gl_cv_next_stddef_h+:} false
; then :
27743 $as_echo_n "(cached) " >&6
27748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27749 /* end confdefs.h. */
27750 #include <stddef.h>
27753 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27754 *) gl_absname_cpp
="$ac_cpp" ;;
27759 gl_dirsep_regex
='[/\\]'
27762 gl_dirsep_regex
='\/'
27765 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27766 gl_header_literal_regex
=`echo 'stddef.h' \
27767 | sed -e "$gl_make_literal_regex_sed"`
27768 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27769 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27775 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27776 sed -n "$gl_absolute_header_sed"`
27778 gl_header
=$gl_cv_absolute_stddef_h
27779 gl_cv_next_stddef_h
='"'$gl_header'"'
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27784 $as_echo "$gl_cv_next_stddef_h" >&6; }
27786 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
27788 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27790 gl_next_as_first_directive
='<'stddef.h
'>'
27792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27793 gl_next_as_first_directive
=$gl_cv_next_stddef_h
27795 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
27805 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27816 if test $gl_cv_have_include_next = yes; then
27817 gl_cv_next_stdio_h
='<'stdio.h
'>'
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27820 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
27821 if ${gl_cv_next_stdio_h+:} false
; then :
27822 $as_echo_n "(cached) " >&6
27827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27828 /* end confdefs.h. */
27832 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27833 *) gl_absname_cpp
="$ac_cpp" ;;
27838 gl_dirsep_regex
='[/\\]'
27841 gl_dirsep_regex
='\/'
27844 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27845 gl_header_literal_regex
=`echo 'stdio.h' \
27846 | sed -e "$gl_make_literal_regex_sed"`
27847 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27848 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27854 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27855 sed -n "$gl_absolute_header_sed"`
27857 gl_header
=$gl_cv_absolute_stdio_h
27858 gl_cv_next_stdio_h
='"'$gl_header'"'
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27863 $as_echo "$gl_cv_next_stdio_h" >&6; }
27865 NEXT_STDIO_H
=$gl_cv_next_stdio_h
27867 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27869 gl_next_as_first_directive
='<'stdio.h
'>'
27871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27872 gl_next_as_first_directive
=$gl_cv_next_stdio_h
27874 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27881 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27882 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
27883 $as_echo_n "(cached) " >&6
27885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27886 /* end confdefs.h. */
27888 #define __STDC_FORMAT_MACROS 1
27890 #include <inttypes.h>
27891 /* For non-mingw systems, compilation will trivially succeed.
27892 For mingw, compilation will succeed for older mingw (system
27893 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27894 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27895 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27896 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27907 if ac_fn_c_try_compile
"$LINENO"; then :
27908 gl_cv_func_printf_attribute_flavor
=system
27910 gl_cv_func_printf_attribute_flavor
=gnu
27912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27915 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
27916 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
27918 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27925 cat >>confdefs.h
<<_ACEOF
27926 #define GNULIB_FSCANF 1
27933 cat >>confdefs.h
<<_ACEOF
27934 #define GNULIB_SCANF 1
27965 if test $ac_cv_have_decl_fcloseall = no
; then
27966 HAVE_DECL_FCLOSEALL
=0
27979 if test $gl_cv_have_include_next = yes; then
27980 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27983 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
27984 if ${gl_cv_next_stdlib_h+:} false
; then :
27985 $as_echo_n "(cached) " >&6
27990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27991 /* end confdefs.h. */
27992 #include <stdlib.h>
27995 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27996 *) gl_absname_cpp
="$ac_cpp" ;;
28001 gl_dirsep_regex
='[/\\]'
28004 gl_dirsep_regex
='\/'
28007 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28008 gl_header_literal_regex
=`echo 'stdlib.h' \
28009 | sed -e "$gl_make_literal_regex_sed"`
28010 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28011 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28017 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28018 sed -n "$gl_absolute_header_sed"`
28020 gl_header
=$gl_cv_absolute_stdlib_h
28021 gl_cv_next_stdlib_h
='"'$gl_header'"'
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
28026 $as_echo "$gl_cv_next_stdlib_h" >&6; }
28028 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
28030 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28032 gl_next_as_first_directive
='<'stdlib.h
'>'
28034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28035 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
28037 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
28050 if test $ac_cv_have_decl_ecvt = no
; then
28054 if test $ac_cv_have_decl_fcvt = no
; then
28058 if test $ac_cv_have_decl_gcvt = no
; then
28066 for ac_func
in strchrnul
28068 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
28069 if test "x$ac_cv_func_strchrnul" = xyes
; then :
28070 cat >>confdefs.h
<<_ACEOF
28071 #define HAVE_STRCHRNUL 1
28077 if test $ac_cv_func_strchrnul = no
; then
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
28081 $as_echo_n "checking whether strchrnul works... " >&6; }
28082 if ${gl_cv_func_strchrnul_works+:} false
; then :
28083 $as_echo_n "(cached) " >&6
28085 if test "$cross_compiling" = yes; then :
28086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28087 /* end confdefs.h. */
28089 #if defined __CYGWIN__
28090 #include <cygwin/version.h>
28091 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
28099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28100 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28101 gl_cv_func_strchrnul_works
="guessing yes"
28103 gl_cv_func_strchrnul_works
="guessing no"
28109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28110 /* end confdefs.h. */
28112 #include <string.h> /* for strchrnul */
28117 const char *buf = "a";
28118 return strchrnul (buf, 'b') != buf + 1;
28124 if ac_fn_c_try_run
"$LINENO"; then :
28125 gl_cv_func_strchrnul_works
=yes
28127 gl_cv_func_strchrnul_works
=no
28129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
28136 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
28137 case "$gl_cv_func_strchrnul_works" in
28139 *) REPLACE_STRCHRNUL
=1 ;;
28143 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
28152 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
28167 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
28174 if test $gl_cv_func_malloc_posix != yes; then
28178 if test $ac_cv_have_decl_strdup = no
; then
28182 if test $REPLACE_STRDUP = 1; then
28191 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
28206 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
28217 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
28219 $as_echo_n "checking for working strerror function... " >&6; }
28220 if ${gl_cv_func_working_strerror+:} false
; then :
28221 $as_echo_n "(cached) " >&6
28223 if test "$cross_compiling" = yes; then :
28225 # Guess yes on glibc systems.
28226 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
28227 # Guess yes on musl systems.
28228 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
28229 # If we don't know, obey --enable-cross-guesses.
28230 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
28234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28236 #include <string.h>
28241 if (!*strerror (-2)) return 1;
28246 if ac_fn_c_try_run
"$LINENO"; then :
28247 gl_cv_func_working_strerror
=yes
28249 gl_cv_func_working_strerror
=no
28251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
28258 $as_echo "$gl_cv_func_working_strerror" >&6; }
28259 case "$gl_cv_func_working_strerror" in
28266 case "$gl_cv_func_strerror_r_works" in
28267 *no
) REPLACE_STRERROR
=1 ;;
28274 if test $REPLACE_STRERROR = 1; then
28283 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
28288 cat >>confdefs.h
<<_ACEOF
28289 #define GNULIB_STRERROR 1
28304 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28310 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
28319 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
28325 if test $ac_cv_header_sys_socket_h != yes; then
28326 for ac_header
in winsock2.h
28328 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28329 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
28330 cat >>confdefs.h
<<_ACEOF
28331 #define HAVE_WINSOCK2_H 1
28339 if test "$ac_cv_header_winsock2_h" = yes; then
28341 UNISTD_H_HAVE_WINSOCK2_H
=1
28342 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
28356 if test $ac_cv_have_decl_strerror_r = no
; then
28357 HAVE_DECL_STRERROR_R
=0
28360 if test $ac_cv_func_strerror_r = yes; then
28361 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28362 if test $gl_cv_func_strerror_r_posix_signature = yes; then
28363 case "$gl_cv_func_strerror_r_works" in
28364 *no
) REPLACE_STRERROR_R
=1 ;;
28367 REPLACE_STRERROR_R
=1
28370 REPLACE_STRERROR_R
=1
28374 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
28383 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
28396 GNULIB_STRERROR_R
=1
28402 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
28408 cat >>confdefs.h
<<_ACEOF
28409 #define GNULIB_STRERROR_R_POSIX 1
28422 if test $ac_cv_have_decl_strnlen = no
; then
28423 HAVE_DECL_STRNLEN
=0
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28427 $as_echo_n "checking for working strnlen... " >&6; }
28428 if ${ac_cv_func_strnlen_working+:} false
; then :
28429 $as_echo_n "(cached) " >&6
28431 if test "$cross_compiling" = yes; then :
28432 # Guess no on AIX systems, yes otherwise.
28434 aix
*) ac_cv_func_strnlen_working
=no
;;
28435 *) ac_cv_func_strnlen_working
=yes;;
28438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28439 /* end confdefs.h. */
28440 $ac_includes_default
28446 #define S_LEN (sizeof S - 1)
28448 /* At least one implementation is buggy: that of AIX 4.3 would
28449 give strnlen (S, 1) == 3. */
28452 for (i = 0; i < S_LEN + 1; ++i)
28454 int expected = i <= S_LEN ? i : S_LEN;
28455 if (strnlen (S, i) != expected)
28464 if ac_fn_c_try_run
"$LINENO"; then :
28465 ac_cv_func_strnlen_working
=yes
28467 ac_cv_func_strnlen_working
=no
28469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28475 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28476 test $ac_cv_func_strnlen_working = no
&& :
28479 if test $ac_cv_func_strnlen_working = no
; then
28484 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
28493 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
28508 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28514 if test $REPLACE_STRSTR = 0; then
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
28516 $as_echo_n "checking whether strstr works in linear time... " >&6; }
28517 if ${gl_cv_func_strstr_linear+:} false
; then :
28518 $as_echo_n "(cached) " >&6
28520 if test "$cross_compiling" = yes; then :
28521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h. */
28524 #include <features.h>
28525 #ifdef __GNU_LIBRARY__
28526 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28527 && !(defined __i386__ || defined __x86_64__) \
28528 && !defined __UCLIBC__
28533 #include <cygwin/version.h>
28534 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28541 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28542 gl_cv_func_strstr_linear
="guessing yes"
28544 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
28550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h. */
28554 /* z/OS does not deliver signals while strstr() is running (thanks to
28555 restrictions on its LE runtime), which prevents us from limiting the
28556 running time of this test. */
28557 # error "This test does not work properly on z/OS"
28559 #include <signal.h> /* for signal */
28560 #include <string.h> /* for strstr */
28561 #include <stdlib.h> /* for malloc */
28562 #include <unistd.h> /* for alarm */
28563 static void quit (int sig) { _exit (sig + 128); }
28570 size_t m = 1000000;
28571 char *haystack = (char *) malloc (2 * m + 2);
28572 char *needle = (char *) malloc (m + 2);
28573 /* Failure to compile this test due to missing alarm is okay,
28574 since all such platforms (mingw) also have quadratic strstr. */
28575 signal (SIGALRM, quit);
28577 /* Check for quadratic performance. */
28578 if (haystack && needle)
28580 memset (haystack, 'A', 2 * m);
28581 haystack[2 * m] = 'B';
28582 haystack[2 * m + 1] = 0;
28583 memset (needle, 'A', m);
28586 if (!strstr (haystack, needle))
28589 /* Free allocated memory, in case some sanitizer is watching. */
28598 if ac_fn_c_try_run
"$LINENO"; then :
28599 gl_cv_func_strstr_linear
=yes
28601 gl_cv_func_strstr_linear
=no
28603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
28610 $as_echo "$gl_cv_func_strstr_linear" >&6; }
28611 case "$gl_cv_func_strstr_linear" in
28619 if test $REPLACE_STRSTR = 1; then
28628 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28634 if test $REPLACE_MEMCHR = 1; then
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
28638 $as_echo_n "checking whether strstr works... " >&6; }
28639 if ${gl_cv_func_strstr_works_always+:} false
; then :
28640 $as_echo_n "(cached) " >&6
28642 if test "$cross_compiling" = yes; then :
28643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28644 /* end confdefs.h. */
28646 #ifdef __GNU_LIBRARY__
28647 #include <features.h>
28648 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28649 || defined __UCLIBC__
28652 #elif defined __CYGWIN__
28653 #include <cygwin/version.h>
28654 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28663 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28664 gl_cv_func_strstr_works_always
="guessing yes"
28666 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
28672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28673 /* end confdefs.h. */
28675 #include <string.h> /* for strstr */
28676 #ifdef __GNU_LIBRARY__
28677 #include <features.h>
28678 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
28682 #define P "_EF_BF_BD"
28683 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
28684 #define NEEDLE P P P P P
28689 return !!strstr (HAYSTACK, NEEDLE);
28695 if ac_fn_c_try_run
"$LINENO"; then :
28696 gl_cv_func_strstr_works_always
=yes
28698 gl_cv_func_strstr_works_always
=no
28700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28701 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
28707 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
28708 case "$gl_cv_func_strstr_works_always" in
28716 if test $REPLACE_STRSTR = 1; then
28725 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28739 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
28747 for ac_func
in strtok_r
28749 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
28750 if test "x$ac_cv_func_strtok_r" = xyes
; then :
28751 cat >>confdefs.h
<<_ACEOF
28752 #define HAVE_STRTOK_R 1
28758 if test $ac_cv_func_strtok_r = yes; then
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
28761 $as_echo_n "checking whether strtok_r works... " >&6; }
28762 if ${gl_cv_func_strtok_r_works+:} false
; then :
28763 $as_echo_n "(cached) " >&6
28765 if test "$cross_compiling" = yes; then :
28767 # Guess no on glibc systems.
28768 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
28769 # Guess yes on native Windows.
28770 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
28771 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
28775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28776 /* end confdefs.h. */
28778 #ifndef __OPTIMIZE__
28779 # define __OPTIMIZE__ 1
28781 #undef __OPTIMIZE_SIZE__
28782 #undef __NO_INLINE__
28783 #include <stdlib.h>
28784 #include <string.h>
28789 static const char dummy[] = "\177\01a";
28790 char delimiters[] = "xxxxxxxx";
28791 char *save_ptr = (char *) dummy;
28792 strtok_r (delimiters, "x", &save_ptr);
28793 strtok_r (NULL, "x", &save_ptr);
28801 if ac_fn_c_try_run
"$LINENO"; then :
28802 gl_cv_func_strtok_r_works
=yes
28804 gl_cv_func_strtok_r_works
=no
28806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
28813 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
28814 case "$gl_cv_func_strtok_r_works" in
28816 UNDEFINE_STRTOK_R
=1
28823 if test $ac_cv_have_decl_strtok_r = no
; then
28824 HAVE_DECL_STRTOK_R
=0
28827 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
28836 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
28853 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
28868 if test $gl_cv_have_include_next = yes; then
28869 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
28872 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
28873 if ${gl_cv_next_sys_random_h+:} false
; then :
28874 $as_echo_n "(cached) " >&6
28877 if test $ac_cv_header_sys_random_h = yes; then
28882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28883 /* end confdefs.h. */
28884 #include <sys/random.h>
28887 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28888 *) gl_absname_cpp
="$ac_cpp" ;;
28893 gl_dirsep_regex
='[/\\]'
28896 gl_dirsep_regex
='\/'
28899 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28900 gl_header_literal_regex
=`echo 'sys/random.h' \
28901 | sed -e "$gl_make_literal_regex_sed"`
28902 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28903 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28909 gl_cv_absolute_sys_random_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28910 sed -n "$gl_absolute_header_sed"`
28912 gl_header
=$gl_cv_absolute_sys_random_h
28913 gl_cv_next_sys_random_h
='"'$gl_header'"'
28915 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
28921 $as_echo "$gl_cv_next_sys_random_h" >&6; }
28923 NEXT_SYS_RANDOM_H
=$gl_cv_next_sys_random_h
28925 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28927 gl_next_as_first_directive
='<'sys
/random.h
'>'
28929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28930 gl_next_as_first_directive
=$gl_cv_next_sys_random_h
28932 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
=$gl_next_as_first_directive
28937 if test $ac_cv_header_sys_random_h = yes; then
28938 HAVE_SYS_RANDOM_H
=1
28940 HAVE_SYS_RANDOM_H
=0
28945 if test $ac_cv_header_sys_random_h = yes; then
28946 UNISTD_H_HAVE_SYS_RANDOM_H
=1
28970 if test $gl_cv_have_include_next = yes; then
28971 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28974 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
28975 if ${gl_cv_next_sys_stat_h+:} false
; then :
28976 $as_echo_n "(cached) " >&6
28979 if test $ac_cv_header_sys_stat_h = yes; then
28984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28985 /* end confdefs.h. */
28986 #include <sys/stat.h>
28989 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28990 *) gl_absname_cpp
="$ac_cpp" ;;
28995 gl_dirsep_regex
='[/\\]'
28998 gl_dirsep_regex
='\/'
29001 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29002 gl_header_literal_regex
=`echo 'sys/stat.h' \
29003 | sed -e "$gl_make_literal_regex_sed"`
29004 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29005 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29011 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29012 sed -n "$gl_absolute_header_sed"`
29014 gl_header
=$gl_cv_absolute_sys_stat_h
29015 gl_cv_next_sys_stat_h
='"'$gl_header'"'
29017 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
29023 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
29025 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
29027 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29029 gl_next_as_first_directive
='<'sys
/stat.h
'>'
29031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29032 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
29034 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
29043 WINDOWS_STAT_TIMESPEC
=0
29052 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
29053 #include <sys/stat.h>
29055 if test "x$ac_cv_type_nlink_t" = xyes
; then :
29059 $as_echo "#define nlink_t int" >>confdefs.h
29088 if test $gl_cv_have_include_next = yes; then
29089 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
29092 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
29093 if ${gl_cv_next_sys_uio_h+:} false
; then :
29094 $as_echo_n "(cached) " >&6
29097 if test $ac_cv_header_sys_uio_h = yes; then
29102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29103 /* end confdefs.h. */
29104 #include <sys/uio.h>
29107 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29108 *) gl_absname_cpp
="$ac_cpp" ;;
29113 gl_dirsep_regex
='[/\\]'
29116 gl_dirsep_regex
='\/'
29119 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29120 gl_header_literal_regex
=`echo 'sys/uio.h' \
29121 | sed -e "$gl_make_literal_regex_sed"`
29122 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29123 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29129 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29130 sed -n "$gl_absolute_header_sed"`
29132 gl_header
=$gl_cv_absolute_sys_uio_h
29133 gl_cv_next_sys_uio_h
='"'$gl_header'"'
29135 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
29141 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
29143 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
29145 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29147 gl_next_as_first_directive
='<'sys
/uio.h
'>'
29149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29150 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
29152 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
29157 if test $ac_cv_header_sys_uio_h = yes; then
29172 cat >>confdefs.h
<<_ACEOF
29173 #define GNULIB_TEMPNAME 1
29187 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,
29188 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29189 been included before. */
29190 #if defined __MINGW32__
29191 # include <unistd.h>
29196 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
29202 cat >>confdefs.h
<<_ACEOF
29203 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
29206 if test $ac_cv_have_decl_localtime_r = no
; then
29207 HAVE_DECL_LOCALTIME_R
=0
29211 if test $ac_cv_func_localtime_r = yes; then
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
29214 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
29215 if ${gl_cv_time_r_posix+:} false
; then :
29216 $as_echo_n "(cached) " >&6
29218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29219 /* end confdefs.h. */
29220 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29221 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29222 been included before. */
29223 #if defined __MINGW32__
29224 # include <unistd.h>
29231 /* We don't need to append 'restrict's to the argument types,
29232 even though the POSIX signature has the 'restrict's,
29233 since C99 says they can't affect type compatibility. */
29234 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
29236 /* Check the return type is a pointer.
29237 On HP-UX 10 it is 'int'. */
29238 *localtime_r (0, 0);
29244 if ac_fn_c_try_compile
"$LINENO"; then :
29245 gl_cv_time_r_posix
=yes
29247 gl_cv_time_r_posix
=no
29249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
29253 $as_echo "$gl_cv_time_r_posix" >&6; }
29254 if test $gl_cv_time_r_posix = yes; then
29255 REPLACE_LOCALTIME_R
=0
29257 REPLACE_LOCALTIME_R
=1
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
29262 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
29263 if ${gl_cv_func_localtime_r_inline+:} false
; then :
29264 $as_echo_n "(cached) " >&6
29266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29267 /* end confdefs.h. */
29268 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29269 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29270 been included before. */
29271 #if defined __MINGW32__
29272 # include <unistd.h>
29281 localtime_r (&a, &r);
29288 if ac_fn_c_try_link
"$LINENO"; then :
29289 gl_cv_func_localtime_r_inline
=yes
29291 gl_cv_func_localtime_r_inline
=no
29293 rm -f core conftest.err conftest.
$ac_objext \
29294 conftest
$ac_exeext conftest.
$ac_ext
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
29298 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
29299 if test $gl_cv_func_localtime_r_inline = yes; then
29300 REPLACE_LOCALTIME_R
=1
29304 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
29313 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
29330 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
29346 if test $gl_cv_have_include_next = yes; then
29347 gl_cv_next_unistd_h
='<'unistd.h
'>'
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29350 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
29351 if ${gl_cv_next_unistd_h+:} false
; then :
29352 $as_echo_n "(cached) " >&6
29355 if test $ac_cv_header_unistd_h = yes; then
29360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29361 /* end confdefs.h. */
29362 #include <unistd.h>
29365 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29366 *) gl_absname_cpp
="$ac_cpp" ;;
29371 gl_dirsep_regex
='[/\\]'
29374 gl_dirsep_regex
='\/'
29377 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29378 gl_header_literal_regex
=`echo 'unistd.h' \
29379 | sed -e "$gl_make_literal_regex_sed"`
29380 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29381 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29387 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29388 sed -n "$gl_absolute_header_sed"`
29390 gl_header
=$gl_cv_absolute_unistd_h
29391 gl_cv_next_unistd_h
='"'$gl_header'"'
29393 gl_cv_next_unistd_h
='<'unistd.h
'>'
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29399 $as_echo "$gl_cv_next_unistd_h" >&6; }
29401 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
29403 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29404 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29405 gl_next_as_first_directive
='<'unistd.h
'>'
29407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29408 gl_next_as_first_directive
=$gl_cv_next_unistd_h
29410 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
29415 if test $ac_cv_header_unistd_h = yes; then
29433 if test $ac_cv_have_decl_execvpe = no
; then
29434 HAVE_DECL_EXECVPE
=0
29443 if test $ac_cv_have_decl_unsetenv = no
; then
29444 HAVE_DECL_UNSETENV
=0
29446 for ac_func
in unsetenv
29448 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
29449 if test "x$ac_cv_func_unsetenv" = xyes
; then :
29450 cat >>confdefs.h
<<_ACEOF
29451 #define HAVE_UNSETENV 1
29457 if test $ac_cv_func_unsetenv = no
; then
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
29462 $as_echo_n "checking for unsetenv() return type... " >&6; }
29463 if ${gt_cv_func_unsetenv_ret+:} false
; then :
29464 $as_echo_n "(cached) " >&6
29466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29467 /* end confdefs.h. */
29470 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
29471 #include <stdlib.h>
29476 int unsetenv (const char *name);
29486 if ac_fn_c_try_compile
"$LINENO"; then :
29487 gt_cv_func_unsetenv_ret
='int'
29489 gt_cv_func_unsetenv_ret
='void'
29491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
29494 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
29495 if test $gt_cv_func_unsetenv_ret = 'void'; then
29497 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
29503 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
29504 if ${gl_cv_func_unsetenv_works+:} false
; then :
29505 $as_echo_n "(cached) " >&6
29507 if test "$cross_compiling" = yes; then :
29509 # Guess yes on glibc systems.
29510 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
29511 # If we don't know, obey --enable-cross-guesses.
29512 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
29516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29517 /* end confdefs.h. */
29519 #include <stdlib.h>
29521 extern char **environ;
29530 char entry1[] = "a=1";
29531 char entry2[] = "b=2";
29532 char *env[] = { entry1, entry2, NULL };
29533 if (putenv ((char *) "a=1")) return 1;
29534 if (putenv (entry2)) return 2;
29537 if (getenv ("a")) return 3;
29538 if (!unsetenv ("") || errno != EINVAL) return 4;
29541 if (!getenv ("a")) return 5;
29544 if (getenv ("a")) return 6;
29550 if ac_fn_c_try_run
"$LINENO"; then :
29551 gl_cv_func_unsetenv_works
=yes
29553 gl_cv_func_unsetenv_works
=no
29555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
29562 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
29563 case "$gl_cv_func_unsetenv_works" in
29571 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
29580 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
29598 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
29614 if test $gl_cv_have_include_next = yes; then
29615 gl_cv_next_wchar_h
='<'wchar.h
'>'
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29618 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
29619 if ${gl_cv_next_wchar_h+:} false
; then :
29620 $as_echo_n "(cached) " >&6
29623 if test $ac_cv_header_wchar_h = yes; then
29628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29629 /* end confdefs.h. */
29633 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29634 *) gl_absname_cpp
="$ac_cpp" ;;
29639 gl_dirsep_regex
='[/\\]'
29642 gl_dirsep_regex
='\/'
29645 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29646 gl_header_literal_regex
=`echo 'wchar.h' \
29647 | sed -e "$gl_make_literal_regex_sed"`
29648 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29649 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29655 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29656 sed -n "$gl_absolute_header_sed"`
29658 gl_header
=$gl_cv_absolute_wchar_h
29659 gl_cv_next_wchar_h
='"'$gl_header'"'
29661 gl_cv_next_wchar_h
='<'wchar.h
'>'
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29667 $as_echo "$gl_cv_next_wchar_h" >&6; }
29669 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
29671 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29673 gl_next_as_first_directive
='<'wchar.h
'>'
29675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29676 gl_next_as_first_directive
=$gl_cv_next_wchar_h
29678 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
29683 if test $ac_cv_header_wchar_h = yes; then
29693 if test $gt_cv_c_wint_t = yes; then
29708 ac_fn_c_check_decl
"$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
29712 if test "x$ac_cv_have_decl_wcsdup" = xyes
; then :
29718 cat >>confdefs.h
<<_ACEOF
29719 #define HAVE_DECL_WCSDUP $ac_have_decl
29722 if test $ac_cv_have_decl_wcsdup = no
; then
29731 if test $ac_cv_func_iswcntrl = yes; then
29739 if test $gt_cv_c_wint_t = yes; then
29757 if test $gl_cv_have_include_next = yes; then
29758 gl_cv_next_wctype_h
='<'wctype.h
'>'
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29761 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
29762 if ${gl_cv_next_wctype_h+:} false
; then :
29763 $as_echo_n "(cached) " >&6
29766 if test $ac_cv_header_wctype_h = yes; then
29771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29772 /* end confdefs.h. */
29773 #include <wctype.h>
29776 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29777 *) gl_absname_cpp
="$ac_cpp" ;;
29782 gl_dirsep_regex
='[/\\]'
29785 gl_dirsep_regex
='\/'
29788 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29789 gl_header_literal_regex
=`echo 'wctype.h' \
29790 | sed -e "$gl_make_literal_regex_sed"`
29791 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29792 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29798 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29799 sed -n "$gl_absolute_header_sed"`
29801 gl_header
=$gl_cv_absolute_wctype_h
29802 gl_cv_next_wctype_h
='"'$gl_header'"'
29804 gl_cv_next_wctype_h
='<'wctype.h
'>'
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29810 $as_echo "$gl_cv_next_wctype_h" >&6; }
29812 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
29814 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29815 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29816 gl_next_as_first_directive
='<'wctype.h
'>'
29818 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29819 gl_next_as_first_directive
=$gl_cv_next_wctype_h
29821 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
29826 if test $ac_cv_header_wctype_h = yes; then
29827 if test $ac_cv_func_iswcntrl = yes; then
29828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29829 $as_echo_n "checking whether iswcntrl works... " >&6; }
29830 if ${gl_cv_func_iswcntrl_works+:} false
; then :
29831 $as_echo_n "(cached) " >&6
29834 if test "$cross_compiling" = yes; then :
29835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29836 /* end confdefs.h. */
29837 #include <stdlib.h>
29838 #if __GNU_LIBRARY__ == 1
29839 Linux libc5 i18n is broken.
29849 if ac_fn_c_try_compile
"$LINENO"; then :
29850 gl_cv_func_iswcntrl_works
="guessing yes"
29852 gl_cv_func_iswcntrl_works
="guessing no"
29854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29858 /* end confdefs.h. */
29861 #include <wctype.h>
29862 int main () { return iswprint ('x') == 0; }
29865 if ac_fn_c_try_run
"$LINENO"; then :
29866 gl_cv_func_iswcntrl_works
=yes
29868 gl_cv_func_iswcntrl_works
=no
29870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29877 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
29885 if test $GNULIB_OVERRIDES_WINT_T = 1; then
29888 case "$gl_cv_func_iswcntrl_works" in
29889 *yes) REPLACE_ISWCNTRL
=0 ;;
29890 *) REPLACE_ISWCNTRL
=1 ;;
29895 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
29899 if test $REPLACE_ISWCNTRL = 1; then
29902 for ac_func
in towlower
29904 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
29905 if test "x$ac_cv_func_towlower" = xyes
; then :
29906 cat >>confdefs.h
<<_ACEOF
29907 #define HAVE_TOWLOWER 1
29913 if test $ac_cv_func_towlower = yes; then
29916 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
29918 # include <wctype.h>
29922 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
29928 cat >>confdefs.h
<<_ACEOF
29929 #define HAVE_DECL_TOWLOWER $ac_have_decl
29932 if test $ac_cv_have_decl_towlower = yes; then
29941 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29946 $as_echo_n "checking for wctype_t... " >&6; }
29947 if ${gl_cv_type_wctype_t+:} false
; then :
29948 $as_echo_n "(cached) " >&6
29950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29951 /* end confdefs.h. */
29954 # include <wctype.h>
29966 if ac_fn_c_try_compile
"$LINENO"; then :
29967 gl_cv_type_wctype_t
=yes
29969 gl_cv_type_wctype_t
=no
29971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29975 $as_echo "$gl_cv_type_wctype_t" >&6; }
29976 if test $gl_cv_type_wctype_t = no
; then
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29981 $as_echo_n "checking for wctrans_t... " >&6; }
29982 if ${gl_cv_type_wctrans_t+:} false
; then :
29983 $as_echo_n "(cached) " >&6
29985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29986 /* end confdefs.h. */
29988 #include <wctype.h>
29999 if ac_fn_c_try_compile
"$LINENO"; then :
30000 gl_cv_type_wctrans_t
=yes
30002 gl_cv_type_wctrans_t
=no
30004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
30008 $as_echo "$gl_cv_type_wctrans_t" >&6; }
30009 if test $gl_cv_type_wctrans_t = no
; then
30028 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
30043 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
30058 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
30073 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
30080 $as_echo_n "checking for wmemchr... " >&6; }
30081 if ${gl_cv_func_wmemchr+:} false
; then :
30082 $as_echo_n "(cached) " >&6
30084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30085 /* end confdefs.h. */
30091 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
30097 if ac_fn_c_try_link
"$LINENO"; then :
30098 gl_cv_func_wmemchr
=yes
30100 gl_cv_func_wmemchr
=no
30102 rm -f core conftest.err conftest.
$ac_objext \
30103 conftest
$ac_exeext conftest.
$ac_ext
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
30107 $as_echo "$gl_cv_func_wmemchr" >&6; }
30108 if test $gl_cv_func_wmemchr = no
; then
30112 if test $HAVE_WMEMCHR = 0; then
30121 gl_LIBOBJS
="$gl_LIBOBJS wmemchr.$ac_objext"
30135 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
30147 if test $ac_cv_func_wmempcpy = no
; then
30151 if test $HAVE_WMEMPCPY = 0; then
30160 gl_LIBOBJS
="$gl_LIBOBJS wmempcpy.$ac_objext"
30174 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
30178 # End of code from modules
30200 gl_source_base
='tests'
30201 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
30203 gl_module_indicator_condition
=$gltests_WITNESS
30213 LIBGNU_LIBDEPS
="$gl_libdeps"
30215 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
30219 am__api_version
='1.15'
30221 # Find a good install program. We prefer a C program (faster),
30222 # so one script is as good as another. But avoid the broken or
30223 # incompatible versions:
30224 # SysV /etc/install, /usr/sbin/install
30225 # SunOS /usr/etc/install
30226 # IRIX /sbin/install
30228 # AmigaOS /C/install, which installs bootblocks on floppy discs
30229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
30230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
30231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
30232 # OS/2's system install, which has a completely different semantic
30233 # ./install, which can be erroneously created by make from ./install.sh.
30234 # Reject install programs that cannot install multiple files.
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
30236 $as_echo_n "checking for a BSD-compatible install... " >&6; }
30237 if test -z "$INSTALL"; then
30238 if ${ac_cv_path_install+:} false
; then :
30239 $as_echo_n "(cached) " >&6
30241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30242 for as_dir
in $PATH
30245 test -z "$as_dir" && as_dir
=.
30246 # Account for people who put trailing slashes in PATH elements.
30247 case $as_dir/ in #((
30248 .
/ | .
// |
/[cC
]/* | \
30249 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
30250 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
30253 # OSF1 and SCO ODT 3.0 have their own names for install.
30254 # Don't use installbsd from OSF since it installs stuff as root
30256 for ac_prog
in ginstall scoinst
install; do
30257 for ac_exec_ext
in '' $ac_executable_extensions; do
30258 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
30259 if test $ac_prog = install &&
30260 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30261 # AIX install. It has an incompatible calling convention.
30263 elif test $ac_prog = install &&
30264 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30265 # program-specific install script used by HP pwplus--don't use.
30268 rm -rf conftest.one conftest.two conftest.dir
30269 echo one
> conftest.one
30270 echo two
> conftest.two
30272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
30273 test -s conftest.one
&& test -s conftest.two
&&
30274 test -s conftest.dir
/conftest.one
&&
30275 test -s conftest.dir
/conftest.two
30277 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
30290 rm -rf conftest.one conftest.two conftest.dir
30293 if test "${ac_cv_path_install+set}" = set; then
30294 INSTALL
=$ac_cv_path_install
30296 # As a last resort, use the slow shell script. Don't cache a
30297 # value for INSTALL within a source directory, because that will
30298 # break other packages using the cache if that directory is
30299 # removed, or if the value is a relative name.
30300 INSTALL
=$ac_install_sh
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
30304 $as_echo "$INSTALL" >&6; }
30306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
30307 # It thinks the first close brace ends the variable substitution.
30308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
30310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
30312 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
30315 $as_echo_n "checking whether build environment is sane... " >&6; }
30316 # Reject unsafe characters in $srcdir or the absolute working directory
30317 # name. Accept space and tab only in the latter.
30321 *[\\\"\
#\$\&\'\`$am_lf]*)
30322 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
30325 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
30326 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
30329 # Do 'set' in a subshell so we don't clobber the current shell's
30330 # arguments. Must try -L first in case configure is actually a
30331 # symlink; some systems play weird games with the mod time of symlinks
30332 # (eg FreeBSD returns the mod time of the symlink's containing
30336 for am_try
in 1 2; do
30337 echo "timestamp, slept: $am_has_slept" > conftest.
file
30338 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
30339 if test "$*" = "X"; then
30341 set X
`ls -t "$srcdir/configure" conftest.file`
30343 if test "$*" != "X $srcdir/configure conftest.file" \
30344 && test "$*" != "X conftest.file $srcdir/configure"; then
30346 # If neither matched, then we have a broken ls. This can happen
30347 # if, for instance, CONFIG_SHELL is bash and it inherits a
30348 # broken ls alias from the environment. This has actually
30349 # happened. Such a system could not be considered "sane".
30350 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
30351 alias in your environment" "$LINENO" 5
30353 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
30360 test "$2" = conftest.
file
30366 as_fn_error $?
"newly created file is older than distributed files!
30367 Check your system clock" "$LINENO" 5
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30370 $as_echo "yes" >&6; }
30371 # If we didn't sleep, we still need to ensure time stamps of config.status and
30372 # generated files are strictly newer.
30374 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
30379 rm -f conftest.
file
30381 test "$program_prefix" != NONE
&&
30382 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
30383 # Use a double $ so make ignores it.
30384 test "$program_suffix" != NONE
&&
30385 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
30386 # Double any \ or $.
30387 # By default was `s,x,x', remove it if useless.
30388 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
30389 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
30391 # Expand $ac_aux_dir to an absolute path.
30392 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
30394 if test x
"${MISSING+set}" != xset
; then
30395 case $am_aux_dir in
30397 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
30399 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
30402 # Use eval to expand $SHELL
30403 if eval "$MISSING --is-lightweight"; then
30404 am_missing_run
="$MISSING "
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
30408 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
30411 if test x
"${install_sh+set}" != xset
; then
30412 case $am_aux_dir in
30414 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
30416 install_sh
="\${SHELL} $am_aux_dir/install-sh"
30420 # Installed binaries are usually stripped using 'strip' when the user
30421 # run "make install-strip". However 'strip' might not be the right
30422 # tool to use in cross-compilation environments, therefore Automake
30423 # will honor the 'STRIP' environment variable to overrule this program.
30424 if test "$cross_compiling" != no
; then
30425 if test -n "$ac_tool_prefix"; then
30426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30427 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30429 $as_echo_n "checking for $ac_word... " >&6; }
30430 if ${ac_cv_prog_STRIP+:} false
; then :
30431 $as_echo_n "(cached) " >&6
30433 if test -n "$STRIP"; then
30434 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
30436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30437 for as_dir
in $PATH
30440 test -z "$as_dir" && as_dir
=.
30441 for ac_exec_ext
in '' $ac_executable_extensions; do
30442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30443 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
30444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30453 STRIP
=$ac_cv_prog_STRIP
30454 if test -n "$STRIP"; then
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30456 $as_echo "$STRIP" >&6; }
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30459 $as_echo "no" >&6; }
30464 if test -z "$ac_cv_prog_STRIP"; then
30466 # Extract the first word of "strip", so it can be a program name with args.
30467 set dummy strip
; ac_word
=$2
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30469 $as_echo_n "checking for $ac_word... " >&6; }
30470 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
30471 $as_echo_n "(cached) " >&6
30473 if test -n "$ac_ct_STRIP"; then
30474 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
30476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30477 for as_dir
in $PATH
30480 test -z "$as_dir" && as_dir
=.
30481 for ac_exec_ext
in '' $ac_executable_extensions; do
30482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30483 ac_cv_prog_ac_ct_STRIP
="strip"
30484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30493 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
30494 if test -n "$ac_ct_STRIP"; then
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30496 $as_echo "$ac_ct_STRIP" >&6; }
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30499 $as_echo "no" >&6; }
30502 if test "x$ac_ct_STRIP" = x
; then
30505 case $cross_compiling:$ac_tool_warned in
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30509 ac_tool_warned
=yes ;;
30514 STRIP
="$ac_cv_prog_STRIP"
30518 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
30520 for ac_prog
in gawk mawk nawk
awk
30522 # Extract the first word of "$ac_prog", so it can be a program name with args.
30523 set dummy
$ac_prog; ac_word
=$2
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30525 $as_echo_n "checking for $ac_word... " >&6; }
30526 if ${ac_cv_prog_AWK+:} false
; then :
30527 $as_echo_n "(cached) " >&6
30529 if test -n "$AWK"; then
30530 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
30532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30533 for as_dir
in $PATH
30536 test -z "$as_dir" && as_dir
=.
30537 for ac_exec_ext
in '' $ac_executable_extensions; do
30538 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30539 ac_cv_prog_AWK
="$ac_prog"
30540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30549 AWK
=$ac_cv_prog_AWK
30550 if test -n "$AWK"; then
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
30552 $as_echo "$AWK" >&6; }
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30555 $as_echo "no" >&6; }
30559 test -n "$AWK" && break
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
30563 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
30565 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
30566 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
30567 $as_echo_n "(cached) " >&6
30569 cat >conftest.
make <<\_ACEOF
30572 @
echo '@@@%%%=$(MAKE)=@@@%%%'
30574 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
30576 *@@@
%%%=?
*=@@@
%%%*)
30577 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
30579 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
30581 rm -f conftest.
make
30583 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30585 $as_echo "yes" >&6; }
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30589 $as_echo "no" >&6; }
30590 SET_MAKE
="MAKE=${MAKE-make}"
30593 rm -rf .tst
2>/dev
/null
30594 mkdir .tst
2>/dev
/null
30595 if test -d .tst
; then
30600 rmdir .tst
2>/dev
/null
30602 DEPDIR
="${am__leading_dot}deps"
30604 ac_config_commands
="$ac_config_commands depfiles"
30607 am_make
=${MAKE-make}
30608 cat > confinc
<< 'END'
30610 @
echo this is the am__doit target
30613 # If we don't find an include directive, just comment out the code.
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30615 $as_echo_n "checking for style of include used by $am_make... " >&6; }
30619 # First try GNU make style include.
30620 echo "include confinc" > confmf
30621 # Ignore all kinds of additional output from 'make'.
30622 case `$am_make -s -f confmf 2> /dev/null` in #(
30623 *the\ am__doit\ target
*)
30624 am__include
=include
30629 # Now try BSD make style include.
30630 if test "$am__include" = "#"; then
30631 echo '.include "confinc"' > confmf
30632 case `$am_make -s -f confmf 2> /dev/null` in #(
30633 *the\ am__doit\ target
*)
30634 am__include
=.include
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30643 $as_echo "$_am_result" >&6; }
30644 rm -f confinc confmf
30646 # Check whether --enable-dependency-tracking was given.
30647 if test "${enable_dependency_tracking+set}" = set; then :
30648 enableval
=$enable_dependency_tracking;
30651 if test "x$enable_dependency_tracking" != xno
; then
30652 am_depcomp
="$ac_aux_dir/depcomp"
30656 if test "x$enable_dependency_tracking" != xno; then
30665 # Check whether --enable-silent-rules was given.
30666 if test "${enable_silent_rules+set}" = set; then :
30667 enableval
=$enable_silent_rules;
30670 case $enable_silent_rules in # (((
30671 yes) AM_DEFAULT_VERBOSITY
=0;;
30672 no
) AM_DEFAULT_VERBOSITY
=1;;
30673 *) AM_DEFAULT_VERBOSITY
=1;;
30675 am_make
=${MAKE-make}
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30677 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30678 if ${am_cv_make_support_nested_variables+:} false
; then :
30679 $as_echo_n "(cached) " >&6
30681 if $as_echo 'TRUE=$(BAR$(V))
30687 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
30688 am_cv_make_support_nested_variables
=yes
30690 am_cv_make_support_nested_variables
=no
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
30694 $as_echo "$am_cv_make_support_nested_variables" >&6; }
30695 if test $am_cv_make_support_nested_variables = yes; then
30697 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
30699 AM_V
=$AM_DEFAULT_VERBOSITY
30700 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
30704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
30705 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
30706 # is not polluted with repeated "-I."
30707 am__isrc
=' -I$(srcdir)'
30708 # test to see if srcdir already configured
30709 if test -f $srcdir/config.status
; then
30710 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
30714 # test whether we have cygpath
30715 if test -z "$CYGPATH_W"; then
30716 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
30717 CYGPATH_W
='cygpath -w'
30724 # Define the identity of the package.
30726 VERSION
='UNUSED-VERSION'
30729 # Some tools Automake needs.
30731 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30734 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
30737 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30740 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
30743 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
30745 # For better backward compatibility. To be removed once Automake 1.9.x
30746 # dies out for good. For more background, see:
30747 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
30748 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30749 mkdir_p
='$(MKDIR_P)'
30751 # We need awk for the "check" target (and possibly the TAP driver). The
30752 # system "awk" is bad on some platforms.
30753 # Always define AMTAR for backward compatibility. Yes, it's still used
30754 # in the wild :-( We should find a proper way to deprecate it ...
30755 AMTAR
='$${TAR-tar}'
30758 # We'll loop over all known methods to create a tar archive until one works.
30759 _am_tools
='gnutar pax cpio none'
30761 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
30767 depcc
="$CC" am_compiler_list
=
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30770 $as_echo_n "checking dependency style of $depcc... " >&6; }
30771 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
30772 $as_echo_n "(cached) " >&6
30774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30775 # We make a subdir and do the tests there. Otherwise we can end up
30776 # making bogus files that we don't know about and never remove. For
30777 # instance it was reported that on HP-UX the gcc test will end up
30778 # making a dummy file named 'D' -- because '-MD' means "put the output
30780 rm -rf conftest.dir
30782 # Copy depcomp to subdir because otherwise we won't find it if we're
30783 # using a relative directory.
30784 cp "$am_depcomp" conftest.dir
30786 # We will build objects and dependencies in a subdirectory because
30787 # it helps to detect inapplicable dependency modes. For instance
30788 # both Tru64's cc and ICC support -MD to output dependencies as a
30789 # side effect of compilation, but ICC will put the dependencies in
30790 # the current directory while Tru64 will put them in the object
30794 am_cv_CC_dependencies_compiler_type
=none
30795 if test "$am_compiler_list" = ""; then
30796 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30798 am__universal
=false
30799 case " $depcc " in #(
30800 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
30803 for depmode
in $am_compiler_list; do
30804 # Setup a source with many dependencies, because some compilers
30805 # like to wrap large dependency lists on column 80 (with \), and
30806 # we should not choose a depcomp mode which is confused by this.
30808 # We need to recreate these files for each test, as the compiler may
30809 # overwrite some of them when testing with obscure command lines.
30810 # This happens at least with the AIX C compiler.
30812 for i
in 1 2 3 4 5 6; do
30813 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
30814 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30815 # Solaris 10 /bin/sh.
30816 echo '/* dummy */' > sub
/conftst
$i.h
30818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30820 # We check with '-c' and '-o' for the sake of the "dashmstdout"
30821 # mode. It turns out that the SunPro C++ compiler does not properly
30822 # handle '-M -o', and we need to detect this. Also, some Intel
30823 # versions had trouble with output in subdirs.
30824 am__obj
=sub
/conftest.
${OBJEXT-o}
30825 am__minus_obj
="-o $am__obj"
30828 # This depmode causes a compiler race in universal mode.
30829 test "$am__universal" = false ||
continue
30832 # After this tag, mechanisms are not by side-effect, so they'll
30833 # only be used when explicitly requested.
30834 if test "x$enable_dependency_tracking" = xyes
; then
30840 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
30841 # This compiler won't grok '-c -o', but also, the minuso test has
30842 # not run yet. These depmodes are late enough in the game, and
30843 # so weak that their functioning should not be impacted.
30844 am__obj
=conftest.
${OBJEXT-o}
30849 if depmode
=$depmode \
30850 source=sub
/conftest.c object
=$am__obj \
30851 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
30852 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
30853 >/dev
/null
2>conftest.err
&&
30854 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
30855 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
30856 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
30857 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
30858 # icc doesn't choke on unknown options, it will just issue warnings
30859 # or remarks (even with -Werror). So we grep stderr for any message
30860 # that says an option was ignored or not supported.
30861 # When given -MP, icc 7.0 and 7.1 complain thusly:
30862 # icc: Command line warning: ignoring option '-M'; no argument required
30863 # The diagnosis changed in icc 8.0:
30864 # icc: Command line remark: option '-MP' not supported
30865 if (grep 'ignoring option' conftest.err ||
30866 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
30867 am_cv_CC_dependencies_compiler_type
=$depmode
30874 rm -rf conftest.dir
30876 am_cv_CC_dependencies_compiler_type
=none
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
30881 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
30882 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
30885 test "x$enable_dependency_tracking" != xno \
30886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
30887 am__fastdepCC_TRUE
=
30888 am__fastdepCC_FALSE
='#'
30890 am__fastdepCC_TRUE
='#'
30891 am__fastdepCC_FALSE
=
30896 # POSIX will say in a future version that running "rm -f" with no argument
30897 # is OK; and we want to be able to make that assumption in our Makefile
30898 # recipes. So use an aggressive probe to check that the usage we want is
30899 # actually supported "in the wild" to an acceptable degree.
30900 # See automake bug#10828.
30901 # To make any issue more visible, cause the running configure to be aborted
30902 # by default if the 'rm' program in use doesn't match our expectations; the
30903 # user can still override this though.
30904 if rm -f && rm -fr && rm -rf; then : OK
; else
30908 Your 'rm' program seems unable to run without file operands specified
30909 on the command line, even when the '-f' option is present. This is contrary
30910 to the behaviour of most rm programs out there, and not conforming with
30911 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
30913 Please tell bug-automake@gnu.org about your system, including the value
30914 of your $PATH and any error possibly output before this message. This
30915 can help us improve future automake versions.
30918 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
30919 echo 'Configuration will proceed anyway, since you have set the' >&2
30920 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
30924 Aborting the configuration process, to ensure you take notice of the issue.
30926 You can download and install GNU coreutils to get an 'rm' implementation
30927 that behaves properly: <http://www.gnu.org/software/coreutils/>.
30929 If you want to complete the configuration process using your problematic
30930 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30931 to "yes", and re-run configure.
30934 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
30939 # Check whether --enable-silent-rules was given.
30940 if test "${enable_silent_rules+set}" = set; then :
30941 enableval
=$enable_silent_rules;
30944 case $enable_silent_rules in # (((
30945 yes) AM_DEFAULT_VERBOSITY
=0;;
30946 no
) AM_DEFAULT_VERBOSITY
=1;;
30947 *) AM_DEFAULT_VERBOSITY
=0;;
30949 am_make
=${MAKE-make}
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30951 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30952 if ${am_cv_make_support_nested_variables+:} false
; then :
30953 $as_echo_n "(cached) " >&6
30955 if $as_echo 'TRUE=$(BAR$(V))
30961 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
30962 am_cv_make_support_nested_variables
=yes
30964 am_cv_make_support_nested_variables
=no
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
30968 $as_echo "$am_cv_make_support_nested_variables" >&6; }
30969 if test $am_cv_make_support_nested_variables = yes; then
30971 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
30973 AM_V
=$AM_DEFAULT_VERBOSITY
30974 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
30979 # --------------------- #
30980 # Checks for programs. #
30981 # --------------------- #
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30985 $as_echo_n "checking whether ln -s works... " >&6; }
30987 if test "$LN_S" = "ln -s"; then
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30989 $as_echo "yes" >&6; }
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30992 $as_echo "no, using $LN_S" >&6; }
30995 if test -n "$ac_tool_prefix"; then
30996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30999 $as_echo_n "checking for $ac_word... " >&6; }
31000 if ${ac_cv_prog_RANLIB+:} false; then :
31001 $as_echo_n "(cached) " >&6
31003 if test -n "$RANLIB"; then
31004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31007 for as_dir in $PATH
31010 test -z "$as_dir" && as_dir=.
31011 for ac_exec_ext in '' $ac_executable_extensions; do
31012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31023 RANLIB=$ac_cv_prog_RANLIB
31024 if test -n "$RANLIB"; then
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31026 $as_echo "$RANLIB" >&6; }
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31029 $as_echo "no" >&6; }
31034 if test -z "$ac_cv_prog_RANLIB"; then
31035 ac_ct_RANLIB=$RANLIB
31036 # Extract the first word of "ranlib", so it can be a program name with args.
31037 set dummy ranlib; ac_word=$2
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31039 $as_echo_n "checking for $ac_word... " >&6; }
31040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31041 $as_echo_n "(cached) " >&6
31043 if test -n "$ac_ct_RANLIB"; then
31044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31047 for as_dir in $PATH
31050 test -z "$as_dir" && as_dir=.
31051 for ac_exec_ext in '' $ac_executable_extensions; do
31052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31053 ac_cv_prog_ac_ct_RANLIB="ranlib"
31054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31064 if test -n "$ac_ct_RANLIB"; then
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31066 $as_echo "$ac_ct_RANLIB" >&6; }
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31069 $as_echo "no" >&6; }
31072 if test "x$ac_ct_RANLIB" = x; then
31075 case $cross_compiling:$ac_tool_warned in
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31079 ac_tool_warned=yes ;;
31081 RANLIB=$ac_ct_RANLIB
31084 RANLIB="$ac_cv_prog_RANLIB"
31088 if test -n "$ac_tool_prefix"; then
31089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
31090 set dummy ${ac_tool_prefix}ar; ac_word=$2
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31092 $as_echo_n "checking for $ac_word... " >&6; }
31093 if ${ac_cv_prog_AR+:} false; then :
31094 $as_echo_n "(cached) " >&6
31096 if test -n "$AR"; then
31097 ac_cv_prog_AR="$AR" # Let the user override the test.
31099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31100 for as_dir in $PATH
31103 test -z "$as_dir" && as_dir=.
31104 for ac_exec_ext in '' $ac_executable_extensions; do
31105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31106 ac_cv_prog_AR="${ac_tool_prefix}ar"
31107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31117 if test -n "$AR"; then
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31119 $as_echo "$AR" >&6; }
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31122 $as_echo "no" >&6; }
31127 if test -z "$ac_cv_prog_AR"; then
31129 # Extract the first word of "ar", so it can be a program name with args.
31130 set dummy ar; ac_word=$2
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31132 $as_echo_n "checking for $ac_word... " >&6; }
31133 if ${ac_cv_prog_ac_ct_AR+:} false; then :
31134 $as_echo_n "(cached) " >&6
31136 if test -n "$ac_ct_AR"; then
31137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
31139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31140 for as_dir in $PATH
31143 test -z "$as_dir" && as_dir=.
31144 for ac_exec_ext in '' $ac_executable_extensions; do
31145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31146 ac_cv_prog_ac_ct_AR="ar"
31147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
31157 if test -n "$ac_ct_AR"; then
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
31159 $as_echo "$ac_ct_AR" >&6; }
31161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31162 $as_echo "no" >&6; }
31165 if test "x$ac_ct_AR" = x; then
31168 case $cross_compiling:$ac_tool_warned in
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31172 ac_tool_warned=yes ;;
31177 AR="$ac_cv_prog_AR"
31181 # ---------------------- #
31182 # Checks for libraries. #
31183 # ---------------------- #
31185 ac_config_files="$ac_config_files Makefile.gnulib.inc"
31188 ac_config_files="$ac_config_files Makefile import/Makefile"
31190 ac_config_commands="$ac_config_commands default"
31192 cat >confcache <<\_ACEOF
31193 # This file is a shell script that caches the results of configure
31194 # tests run on this system so they can be shared between configure
31195 # scripts and configure runs, see configure's option
--config-cache.
31196 # It is not useful on other systems. If it contains results you don't
31197 # want to keep, you may remove or edit it.
31199 # config.status only pays attention to the cache file if you give it
31200 # the --recheck option to rerun configure.
31202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31204 # following values.
31208 # The following way of writing the cache mishandles newlines in values,
31209 # but we know of no workaround that is simple, portable, and efficient.
31210 # So, we kill variables containing newlines.
31211 # Ultrix sh set writes to stderr and can't be redirected directly,
31212 # and sets the high bit in the cache file unless we assign to the vars.
31214 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31215 eval ac_val
=\$
$ac_var
31219 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31223 _ | IFS | as_nl
) ;; #(
31224 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31225 *) { eval $ac_var=; unset $ac_var;} ;;
31231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31232 *${as_nl}ac_space
=\
*)
31233 # `set' does not quote correctly, so add quotes: double-quote
31234 # substitution turns \\\\ into \\, and sed turns \\ into \.
31237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31240 # `set' quotes correctly as required by POSIX, so do not add quotes.
31241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31254 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31255 if test -w "$cache_file"; then
31256 if test "x$cache_file" != "x/dev/null"; then
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31258 $as_echo "$as_me: updating cache $cache_file" >&6;}
31259 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31260 cat confcache
>"$cache_file"
31262 case $cache_file in #(
31264 mv -f confcache
"$cache_file"$$
&&
31265 mv -f "$cache_file"$$
"$cache_file" ;; #(
31267 mv -f confcache
"$cache_file" ;;
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31273 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31278 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31279 # Let make expand exec_prefix.
31280 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31282 DEFS
=-DHAVE_CONFIG_H
31286 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31287 # 1. Remove the extension, and $U if already installed.
31288 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31289 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31291 # will be set to the directory where LIBOBJS objects are built.
31292 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31293 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31295 LIBOBJS
=$ac_libobjs
31297 LTLIBOBJS
=$ac_ltlibobjs
31300 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31301 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
31302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31304 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
31305 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
31306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31308 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
31309 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
31310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31312 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
31313 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
31314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31316 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
31317 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
31318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31320 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31321 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31324 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31325 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31328 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31329 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31332 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31333 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31336 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31337 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31340 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31341 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31344 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
31345 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
31346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31350 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31351 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31354 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
31355 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
31356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31358 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
31359 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
31360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31362 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
31363 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
31364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31366 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31367 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31373 if test -n "$gl_LIBOBJS"; then
31374 # Remove the extension.
31375 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31376 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31377 gl_libobjs
="$gl_libobjs $i.$ac_objext"
31378 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
31381 gl_LIBOBJS
=$gl_libobjs
31383 gl_LTLIBOBJS
=$gl_ltlibobjs
31389 if test -n "$gltests_LIBOBJS"; then
31390 # Remove the extension.
31391 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31392 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31393 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
31394 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
31397 gltests_LIBOBJS
=$gltests_libobjs
31399 gltests_LTLIBOBJS
=$gltests_ltlibobjs
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31403 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31404 if test -n "$am_sleep_pid"; then
31405 # Hide warnings about reused PIDs.
31406 wait $am_sleep_pid 2>/dev
/null
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31409 $as_echo "done" >&6; }
31410 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31411 as_fn_error $?
"conditional \"AMDEP\" was never defined.
31412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31414 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31415 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
31416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31418 if test -n "$EXEEXT"; then
31420 am__EXEEXT_FALSE
='#'
31422 am__EXEEXT_TRUE
='#'
31427 : "${CONFIG_STATUS=./config.status}"
31429 ac_clean_files_save
=$ac_clean_files
31430 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31432 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31434 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31436 # Generated by $as_me.
31437 # Run this file to recreate the current configuration.
31438 # Compiler output produced by configure, useful for debugging
31439 # configure, is in config.log if it exists.
31442 ac_cs_recheck=false
31445 SHELL=\${CONFIG_SHELL-$SHELL}
31448 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31449 ## -------------------- ##
31450 ## M4sh Initialization. ##
31451 ## -------------------- ##
31453 # Be more Bourne compatible
31454 DUALCASE
=1; export DUALCASE
# for MKS sh
31455 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31458 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31459 # is contrary to our usage. Disable this feature.
31460 alias -g '${1+"$@"}'='"$@"'
31461 setopt NO_GLOB_SUBST
31463 case `(set -o) 2>/dev/null` in #(
31475 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31476 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31477 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31478 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31479 # Prefer a ksh shell builtin over an external printf program on Solaris,
31480 # but without wasting forks for bash or zsh.
31481 if test -z "$BASH_VERSION$ZSH_VERSION" \
31482 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31483 as_echo='print
-r --'
31484 as_echo_n='print
-rn --'
31485 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31486 as_echo='printf %s
\n'
31487 as_echo_n='printf %s
'
31489 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31490 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31491 as_echo_n='/usr
/ucb
/echo -n'
31493 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31494 as_echo_n_body='eval
31498 expr "X$arg" : "X\\(.*\\)$as_nl";
31499 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31501 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31503 export as_echo_n_body
31504 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31506 export as_echo_body
31507 as_echo='sh
-c $as_echo_body as_echo
'
31510 # The user is always right.
31511 if test "${PATH_SEPARATOR+set}" != set; then
31513 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31514 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31521 # We need space, tab and new line, in precisely that order. Quoting is
31522 # there to prevent editors from complaining about space-tab.
31523 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31524 # splitting by setting IFS to empty value.)
31527 # Find who we are. Look in the path if we contain no directory separator.
31530 *[\\/]* ) as_myself=$0 ;;
31531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31532 for as_dir in $PATH
31535 test -z "$as_dir" && as_dir=.
31536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31542 # We did not find ourselves, most probably we were run as `sh COMMAND'
31543 # in which case we are not to be found in the path.
31544 if test "x$as_myself" = x
; then
31547 if test ! -f "$as_myself"; then
31548 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31552 # Unset variables that we do not need and which cause bugs (e.g. in
31553 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31554 # suppresses any "Segmentation fault" message there. '((' could
31555 # trigger a bug in pdksh 5.2.14.
31556 for as_var
in BASH_ENV ENV MAIL MAILPATH
31557 do eval test x\
${$as_var+set} = xset \
31558 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31571 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31574 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31575 # ----------------------------------------
31576 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31577 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31578 # script with STATUS, using 1 if that was 0.
31581 as_status
=$1; test $as_status -eq 0 && as_status
=1
31583 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31584 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31586 $as_echo "$as_me: error: $2" >&2
31587 as_fn_exit
$as_status
31591 # as_fn_set_status STATUS
31592 # -----------------------
31593 # Set $? to STATUS, without forking.
31594 as_fn_set_status
()
31597 } # as_fn_set_status
31599 # as_fn_exit STATUS
31600 # -----------------
31601 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31605 as_fn_set_status
$1
31611 # Portably unset VAR.
31614 { eval $1=; unset $1;}
31616 as_unset
=as_fn_unset
31617 # as_fn_append VAR VALUE
31618 # ----------------------
31619 # Append the text in VALUE to the end of the definition contained in VAR. Take
31620 # advantage of any shell optimizations that allow amortized linear growth over
31621 # repeated appends, instead of the typical quadratic growth present in naive
31623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31624 eval 'as_fn_append ()
31635 # as_fn_arith ARG...
31636 # ------------------
31637 # Perform arithmetic evaluation on the ARGs, and store the result in the
31638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31639 # must be portable across $(()) and expr.
31640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31641 eval 'as_fn_arith ()
31648 as_val
=`expr "$@" || test $? -eq 1`
31653 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31654 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31660 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31661 as_basename
=basename
31666 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31672 as_me
=`$as_basename -- "$0" ||
31673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31674 X"$0" : 'X\(//\)$' \| \
31675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31677 sed '/^.*\/\([^/][^/]*\)\/*$/{
31691 # Avoid depending upon Character Ranges.
31692 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31693 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31694 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31695 as_cr_digits
='0123456789'
31696 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31698 ECHO_C
= ECHO_N
= ECHO_T
=
31699 case `echo -n x` in #(((((
31701 case `echo 'xy\c'` in
31702 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31704 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31711 rm -f conf$$ conf$$.exe conf$$.
file
31712 if test -d conf$$.dir
; then
31713 rm -f conf$$.dir
/conf$$.
file
31716 mkdir conf$$.dir
2>/dev
/null
31718 if (echo >conf$$.
file) 2>/dev
/null
; then
31719 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31721 # ... but there are two gotchas:
31722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31724 # In both cases, we have to default to `cp -pR'.
31725 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31727 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31735 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31736 rmdir conf$$.dir
2>/dev
/null
31741 # Create "$as_dir" as a directory, including parents if necessary.
31746 -*) as_dir
=.
/$as_dir;;
31748 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31752 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31753 *) as_qdir
=$as_dir;;
31755 as_dirs
="'$as_qdir' $as_dirs"
31756 as_dir
=`$as_dirname -- "$as_dir" ||
31757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31758 X"$as_dir" : 'X\(//\)[^/]' \| \
31759 X"$as_dir" : 'X\(//\)$' \| \
31760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31761 $as_echo X"$as_dir" |
31762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31766 /^X\(\/\/\)[^/].*/{
31779 test -d "$as_dir" && break
31781 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31782 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31786 if mkdir
-p .
2>/dev
/null
; then
31787 as_mkdir_p
='mkdir -p "$as_dir"'
31789 test -d .
/-p && rmdir .
/-p
31794 # as_fn_executable_p FILE
31795 # -----------------------
31796 # Test if FILE is an executable regular file.
31797 as_fn_executable_p
()
31799 test -f "$1" && test -x "$1"
31800 } # as_fn_executable_p
31801 as_test_x
='test -x'
31802 as_executable_p
=as_fn_executable_p
31804 # Sed expression to map a string onto a valid CPP name.
31805 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31807 # Sed expression to map a string onto a valid variable name.
31808 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31812 ## ----------------------------------- ##
31813 ## Main body of $CONFIG_STATUS script. ##
31814 ## ----------------------------------- ##
31816 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31819 # Save the log message, to keep $0 and so on meaningful, and to
31820 # report actual input values of CONFIG_FILES etc. instead of their
31821 # values after options handling.
31823 This file was extended by libgnu $as_me UNUSED-VERSION, which was
31824 generated by GNU Autoconf 2.69. Invocation command line was
31826 CONFIG_FILES = $CONFIG_FILES
31827 CONFIG_HEADERS = $CONFIG_HEADERS
31828 CONFIG_LINKS = $CONFIG_LINKS
31829 CONFIG_COMMANDS = $CONFIG_COMMANDS
31832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31837 case $ac_config_files in *"
31838 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31841 case $ac_config_headers in *"
31842 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31847 # Files that config.status was made for.
31848 config_files="$ac_config_files"
31849 config_headers="$ac_config_headers"
31850 config_commands="$ac_config_commands"
31854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31856 \`$as_me' instantiates files and other configuration actions
31857 from templates according to the current configuration. Unless the files
31858 and actions are specified as TAGs, all are instantiated by default.
31860 Usage: $0 [OPTION]... [TAG]...
31862 -h, --help print this help, then exit
31863 -V, --version print version number and configuration settings, then exit
31864 --config print configuration, then exit
31865 -q, --quiet, --silent
31866 do not print progress messages
31867 -d, --debug don't remove temporary files
31868 --recheck update $as_me by reconfiguring in the same conditions
31869 --file=FILE[:TEMPLATE]
31870 instantiate the configuration file FILE
31871 --header=FILE[:TEMPLATE]
31872 instantiate the configuration header FILE
31874 Configuration files:
31877 Configuration headers:
31880 Configuration commands:
31883 Report bugs to the package provider."
31886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31887 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31889 libgnu config.status UNUSED-VERSION
31890 configured by $0, generated by GNU Autoconf 2.69,
31891 with options \\"\$ac_cs_config\\"
31893 Copyright (C) 2012 Free Software Foundation, Inc.
31894 This config.status script is free software; the Free Software Foundation
31895 gives unlimited permission to copy, distribute and modify it."
31902 test -n "\$AWK" || AWK=awk
31905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31906 # The default lists apply if the user does not specify any file.
31912 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31913 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31917 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31929 # Handling of the options.
31930 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31932 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31933 $as_echo "$ac_cs_version"; exit ;;
31934 --config |
--confi |
--conf |
--con |
--co |
--c )
31935 $as_echo "$ac_cs_config"; exit ;;
31936 --debug |
--debu |
--deb |
--de |
--d |
-d )
31938 --file |
--fil |
--fi |
--f )
31941 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31942 '') as_fn_error $?
"missing file argument" ;;
31944 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31945 ac_need_defaults
=false
;;
31946 --header |
--heade |
--head |
--hea )
31949 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31951 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31952 ac_need_defaults
=false
;;
31954 # Conflict between --help and --header
31955 as_fn_error $?
"ambiguous option: \`$1'
31956 Try \`$0 --help' for more information.";;
31957 --help |
--hel |
-h )
31958 $as_echo "$ac_cs_usage"; exit ;;
31959 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31960 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31963 # This is an error.
31964 -*) as_fn_error $?
"unrecognized option: \`$1'
31965 Try \`$0 --help' for more information." ;;
31967 *) as_fn_append ac_config_targets
" $1"
31968 ac_need_defaults
=false
;;
31974 ac_configure_extra_args
=
31976 if $ac_cs_silent; then
31978 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31983 if \$ac_cs_recheck; then
31984 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31986 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31987 CONFIG_SHELL='$SHELL'
31988 export CONFIG_SHELL
31993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31998 ## Running $as_me. ##
32004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32014 # Handling of arguments.
32015 for ac_config_target
in $ac_config_targets
32017 case $ac_config_target in
32018 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
32019 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
32020 "Makefile.gnulib.inc") CONFIG_FILES
="$CONFIG_FILES Makefile.gnulib.inc" ;;
32021 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32022 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
32023 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32025 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32030 # If the user did not use the arguments to specify the items to instantiate,
32031 # then the envvar interface is used. Set only those that are not.
32032 # We use the long form for the default assignment because of an extremely
32033 # bizarre bug on SunOS 4.1.3.
32034 if $ac_need_defaults; then
32035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32040 # Have a temporary directory for convenience. Make it in the build tree
32041 # simply because there is no reason against having it here, and in addition,
32042 # creating and moving files from /tmp can sometimes cause problems.
32043 # Hook for its removal unless debugging.
32044 # Note that there is a small window in which the directory will not be cleaned:
32045 # after its creation but before its name has been assigned to `$tmp'.
32049 trap 'exit_status=$?
32050 : "${ac_tmp:=$tmp}"
32051 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32053 trap 'as_fn_exit 1' 1 2 13 15
32055 # Create a (secure) tmp directory for tmp files.
32058 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32062 tmp
=.
/conf$$
-$RANDOM
32063 (umask 077 && mkdir
"$tmp")
32064 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32067 # Set up the scripts for CONFIG_FILES section.
32068 # No need to generate them if there are no CONFIG_FILES.
32069 # This happens for instance with `./config.status config.h'.
32070 if test -n "$CONFIG_FILES"; then
32073 ac_cr
=`echo X | tr X '\015'`
32074 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32075 # But we know of no other shell where ac_cr would be empty at this
32076 # point, so we can use a bashism as a fallback.
32077 if test "x$ac_cr" = x
; then
32078 eval ac_cr
=\$
\'\\r
\'
32080 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32081 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32084 ac_cs_awk_cr
=$ac_cr
32087 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32092 echo "cat >conf$$subs.awk <<_ACEOF" &&
32093 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32095 } >conf$$subs.sh ||
32096 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32099 for ac_last_try in false false false false false :; do
32100 . ./conf$$subs.sh ||
32101 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32103 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32104 if test $ac_delim_n = $ac_delim_num; then
32106 elif $ac_last_try; then
32107 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32109 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32112 rm -f conf$$subs.sh
32114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32115 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32119 s/^/S["/; s
/!.
*/"]=/
32129 s/\(.\{148\}\)..*/\1/
32131 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32136 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32143 s/\(.\{148\}\)..*/\1/
32145 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32149 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32154 ' <conf$$subs.awk | sed '
32159 ' >>$CONFIG_STATUS || ac_write_fail=1
32160 rm -f conf$$subs.awk
32161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32163 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32164 for (key in S) S_is_set[key] = 1
32170 nfields = split(line, field, "@
")
32172 len = length(field[1])
32173 for (i = 2; i < nfields; i++) {
32175 keylen = length(key)
32176 if (S_is_set[key]) {
32178 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32179 len += length(value) + length(field[++i])
32190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32191 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32192 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32195 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32196 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32199 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32200 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32201 # trailing colons and then remove the whole line if VPATH becomes empty
32202 # (actually we leave an empty line to preserve line numbers).
32203 if test "x
$srcdir" = x.; then
32204 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32223 fi # test -n "$CONFIG_FILES"
32225 # Set up the scripts for CONFIG_HEADERS section.
32226 # No need to generate them if there are no CONFIG_HEADERS.
32227 # This happens for instance with `./config.status Makefile'.
32228 if test -n "$CONFIG_HEADERS"; then
32229 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32233 # Transform confdefs.h into an awk script `defines.awk', embedded as
32234 # here-document in config.status, that substitutes the proper values into
32235 # config.h.in to produce config.h.
32237 # Create a delimiter string that does not exist in confdefs.h, to ease
32238 # handling of long lines.
32240 for ac_last_try in false false :; do
32241 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32242 if test -z "$ac_tt"; then
32244 elif $ac_last_try; then
32245 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32247 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32251 # For the awk script, D is an array of macro values keyed by name,
32252 # likewise P contains macro parameters if any. Preserve backslash
32253 # newline sequences.
32255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32257 s/.\{148\}/&'"$ac_delim"'/g
32260 s/^[ ]*#[ ]*define[ ][ ]*/ /
32267 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32269 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32274 D["\
1"]=" \
3\\\\\\n
"\\/p
32276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32281 s/.\{148\}/&'"$ac_delim"'/g
32286 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32289 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32291 ' <confdefs.h | sed '
32292 s/'"$ac_delim"'/"\\\
32293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32296 for (key in D) D_is_set[key] = 1
32299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32301 split(line, arg, " ")
32302 if (arg[1] == "#") {
32306 defundef
= substr
(arg
[1], 2)
32309 split(mac1
, mac2
, "(") #)
32311 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32312 if (D_is_set
[macro
]) {
32313 # Preserve the white space surrounding the "#".
32314 print prefix
"define", macro P
[macro
] D
[macro
]
32317 # Replace #undef with comments. This is necessary, for example,
32318 # in the case of _POSIX_SOURCE, which is predefined and required
32319 # on some systems where configure will not decide to define it.
32320 if (defundef
== "undef") {
32321 print
"/*", prefix defundef
, macro
, "*/"
32329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32330 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32331 fi # test -n "$CONFIG_HEADERS"
32334 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32339 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32341 case $ac_mode$ac_tag in
32343 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32344 :[FH
]-) ac_tag
=-:-;;
32345 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32362 -) ac_f
="$ac_tmp/stdin";;
32363 *) # Look for the file first in the build tree, then in the source tree
32364 # (if the path is not absolute). The absolute path cannot be DOS-style,
32365 # because $ac_f cannot contain `:'.
32369 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32371 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32373 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32374 as_fn_append ac_file_inputs
" '$ac_f'"
32377 # Let's still pretend it is `configure' which instantiates (i.e., don't
32378 # use $as_me), people would be surprised to read:
32379 # /* config.h. Generated by config.status. */
32380 configure_input
='Generated from '`
32381 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32383 if test x
"$ac_file" != x-
; then
32384 configure_input
="$ac_file. $configure_input"
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32386 $as_echo "$as_me: creating $ac_file" >&6;}
32388 # Neutralize special characters interpreted by sed in replacement strings.
32389 case $configure_input in #(
32390 *\
&* |
*\|
* |
*\\* )
32391 ac_sed_conf_input
=`$as_echo "$configure_input" |
32392 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32393 *) ac_sed_conf_input
=$configure_input;;
32397 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32398 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32403 ac_dir
=`$as_dirname -- "$ac_file" ||
32404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32405 X"$ac_file" : 'X\(//\)[^/]' \| \
32406 X"$ac_file" : 'X\(//\)$' \| \
32407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32408 $as_echo X"$ac_file" |
32409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32413 /^X\(\/\/\)[^/].*/{
32426 as_dir
="$ac_dir"; as_fn_mkdir_p
32430 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32432 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32433 # A ".." for each directory in $ac_dir_suffix.
32434 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32435 case $ac_top_builddir_sub in
32436 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32437 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32440 ac_abs_top_builddir
=$ac_pwd
32441 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32442 # for backward compatibility:
32443 ac_top_builddir
=$ac_top_build_prefix
32446 .
) # We are building in place.
32448 ac_top_srcdir
=$ac_top_builddir_sub
32449 ac_abs_top_srcdir
=$ac_pwd ;;
32450 [\\/]* | ?
:[\\/]* ) # Absolute name.
32451 ac_srcdir
=$srcdir$ac_dir_suffix;
32452 ac_top_srcdir
=$srcdir
32453 ac_abs_top_srcdir
=$srcdir ;;
32454 *) # Relative name.
32455 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32456 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32457 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32459 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32469 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32470 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32472 ac_MKDIR_P
=$MKDIR_P
32474 [\\/$
]* | ?
:[\\/]* ) ;;
32475 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32480 # If the template does not know about datarootdir, expand it.
32481 # FIXME: This hack should be removed a few years after 2.60.
32482 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32493 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32494 *datarootdir
*) ac_datarootdir_seen
=yes;;
32495 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32497 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32500 ac_datarootdir_hack='
32501 s&@datadir@&$datadir&g
32502 s&@docdir@&$docdir&g
32503 s&@infodir@&$infodir&g
32504 s&@localedir@&$localedir&g
32505 s&@mandir@&$mandir&g
32506 s&\\\${datarootdir}&$datarootdir&g' ;;
32510 # Neutralize VPATH when `$srcdir' = `.'.
32511 # Shell code in configure.ac might set extrasub.
32512 # FIXME: do we really want to maintain this feature?
32513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32514 ac_sed_extra="$ac_vpsub
32517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32519 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32520 s|@configure_input@|
$ac_sed_conf_input|
;t t
32521 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32522 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32523 s
&@srcdir@
&$ac_srcdir&;t t
32524 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32525 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32526 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32527 s
&@builddir@
&$ac_builddir&;t t
32528 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32529 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32530 s
&@INSTALL@
&$ac_INSTALL&;t t
32531 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32532 $ac_datarootdir_hack
32534 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
32535 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32537 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32538 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32540 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32542 which seems to be undefined. Please make sure it is defined" >&5
32543 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32544 which seems to be undefined. Please make sure it is defined" >&2;}
32546 rm -f "$ac_tmp/stdin"
32548 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32549 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32557 if test x"$ac_file" != x-; then
32559 $as_echo "/* $configure_input */" \
32560 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32561 } >"$ac_tmp/config.h" \
32562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32563 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32564 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32565 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32568 mv "$ac_tmp/config.h" "$ac_file" \
32569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32572 $as_echo "/* $configure_input */" \
32573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32574 || as_fn_error $? "could not create -" "$LINENO" 5
32576 # Compute "$ac_file"'s index
in $config_headers.
32579 for _am_header
in $config_headers :; do
32580 case $_am_header in
32581 $_am_arg |
$_am_arg:* )
32584 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
32587 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32588 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32589 X"$_am_arg" : 'X\(//\)[^/]' \| \
32590 X"$_am_arg" : 'X\(//\)$' \| \
32591 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32592 $as_echo X"$_am_arg" |
32593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32597 /^X\(\/\/\)[^/].*/{
32609 s/.*/./; q'`/stamp-h
$_am_stamp_count
32612 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32613 $as_echo "$as_me: executing $ac_file commands" >&6;}
32618 case $ac_file$ac_mode in
32619 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
32620 # Older Autoconf quotes --file arguments for eval, but not when files
32621 # are listed without --file. Let's play safe and only enable the eval
32622 # if we detect the quoting.
32623 case $CONFIG_FILES in
32624 *\'*) eval set x
"$CONFIG_FILES" ;;
32625 *) set x
$CONFIG_FILES ;;
32630 # Strip MF so we end up with the name of the file.
32631 mf
=`echo "$mf" | sed -e 's/:.*$//'`
32632 # Check whether this is an Automake generated Makefile or not.
32633 # We used to match only the files named 'Makefile.in', but
32634 # some people rename them; so instead we look at the file content.
32635 # Grep'ing the first line is not enough: some people post-process
32636 # each Makefile.in and add a new line on top of each file to say so.
32637 # Grep'ing the whole file is not good either: AIX grep has a line
32638 # limit of 2048, but all sed's we know have understand at least 4000.
32639 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
32640 dirpart
=`$as_dirname -- "$mf" ||
32641 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32642 X"$mf" : 'X\(//\)[^/]' \| \
32643 X"$mf" : 'X\(//\)$' \| \
32644 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32650 /^X\(\/\/\)[^/].*/{
32666 # Extract the definition of DEPDIR, am__include, and am__quote
32667 # from the Makefile without running 'make'.
32668 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
32669 test -z "$DEPDIR" && continue
32670 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
32671 test -z "$am__include" && continue
32672 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
32673 # Find all dependency output files, they are included files with
32674 # $(DEPDIR) in their names. We invoke sed twice because it is the
32675 # simplest approach to changing $(DEPDIR) to its actual value in the
32677 for file in `sed -n "
32678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32680 # Make sure the directory exists.
32681 test -f "$dirpart/$file" && continue
32682 fdir
=`$as_dirname -- "$file" ||
32683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32684 X"$file" : 'X\(//\)[^/]' \| \
32685 X"$file" : 'X\(//\)$' \| \
32686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32687 $as_echo X"$file" |
32688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32692 /^X\(\/\/\)[^/].*/{
32705 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
32706 # echo "creating $dirpart/$file"
32707 echo '# dummy' > "$dirpart/$file"
32713 case x
$CONFIG_HEADERS in
32714 xconfig.h
:config.
in)
32725 ac_clean_files
=$ac_clean_files_save
32727 test $ac_write_fail = 0 ||
32728 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
32731 # configure is writing to config.log, and then calls config.status.
32732 # config.status does its own redirection, appending to config.log.
32733 # Unfortunately, on DOS this fails, as config.log is still kept open
32734 # by configure, so config.status won't be able to write to it; its
32735 # output is simply discarded. So we exec the FD to /dev/null,
32736 # effectively closing config.log, so it can be properly (re)opened and
32737 # appended to by config.status. When coming back to configure, we
32738 # need to make the FD available again.
32739 if test "$no_create" != yes; then
32741 ac_config_status_args
=
32742 test "$silent" = yes &&
32743 ac_config_status_args
="$ac_config_status_args --quiet"
32745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32748 # would make configure fail if this is the last instruction.
32749 $ac_cs_success || as_fn_exit
1
32751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}