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
776 GL_GENERATE_NETINET_IN_H_FALSE
777 GL_GENERATE_NETINET_IN_H_TRUE
780 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
784 REPLACE_STRERRORNAME_NP
829 GNULIB_STRERRORNAME_NP
865 GNULIB_EXPLICIT_BZERO
872 NEXT_AS_FIRST_DIRECTIVE_MATH_H
879 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
882 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
884 GL_GENERATE_STDDEF_H_FALSE
885 GL_GENERATE_STDDEF_H_TRUE
901 GNULIB_SETLOCALE_NULL
904 LOCALCHARSET_TESTS_ENVIRONMENT
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
923 GL_GENERATE_STDINT_H_FALSE
924 GL_GENERATE_STDINT_H_TRUE
936 HAVE_SIGNED_SIG_ATOMIC_T
939 BITSIZEOF_SIG_ATOMIC_T
942 APPLE_UNIVERSAL_BUILD
944 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
949 GNULIB_OVERRIDES_WINT_T
950 GL_GENERATE_LIMITS_H_FALSE
951 GL_GENERATE_LIMITS_H_TRUE
953 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
956 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
960 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
961 HAVE_STRUCT_SOCKADDR_STORAGE
983 GL_GENERATE_GLOB_H_FALSE
984 GL_GENERATE_GLOB_H_TRUE
987 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
989 REPLACE_GLOB_PATTERN_P
994 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
996 REPLACE_STRUCT_TIMEVAL
1016 REPLACE_STDIO_WRITE_FUNCS
1017 REPLACE_STDIO_READ_FUNCS
1026 REPLACE_OBSTACK_PRINTF
1051 HAVE_DECL_OBSTACK_PRINTF
1063 GNULIB_MDA_FCLOSEALL
1064 GNULIB_VSPRINTF_POSIX
1066 GNULIB_VPRINTF_POSIX
1068 GNULIB_VFPRINTF_POSIX
1075 GNULIB_STDIO_H_SIGPIPE
1076 GNULIB_STDIO_H_NONBLOCKING
1077 GNULIB_SPRINTF_POSIX
1091 GNULIB_OBSTACK_PRINTF_POSIX
1092 GNULIB_OBSTACK_PRINTF
1108 GNULIB_FPRINTF_POSIX
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
" getdelim"
3735 as_fn_append ac_func_list
" getdtablesize"
3736 as_fn_append ac_func_list
" getlogin_r"
3737 as_fn_append ac_func_list
" getprogname"
3738 as_fn_append ac_func_list
" getexecname"
3739 as_fn_append ac_func_list
" getrandom"
3740 as_fn_append ac_header_list
" sys/time.h"
3741 as_fn_append ac_func_list
" gettimeofday"
3742 as_fn_append ac_header_list
" glob.h"
3743 as_fn_append ac_func_list
" glob"
3744 as_fn_append ac_func_list
" glob_pattern_p"
3745 as_fn_append ac_func_list
" getpwnam_r"
3746 as_fn_append ac_header_list
" threads.h"
3747 as_fn_append ac_header_list
" netdb.h"
3748 as_fn_append ac_header_list
" netinet/in.h"
3749 as_fn_append ac_header_list
" limits.h"
3750 as_fn_append ac_header_list
" inttypes.h"
3751 as_fn_append ac_header_list
" sys/types.h"
3752 as_fn_append ac_header_list
" stdint.h"
3753 as_fn_append ac_func_list
" isblank"
3754 as_fn_append ac_header_list
" xlocale.h"
3755 as_fn_append ac_func_list
" lstat"
3756 as_fn_append ac_header_list
" math.h"
3757 as_fn_append ac_func_list
" mbsinit"
3758 as_fn_append ac_func_list
" mbrtowc"
3759 as_fn_append ac_header_list
" sys/mman.h"
3760 as_fn_append ac_func_list
" mprotect"
3761 as_fn_append ac_func_list
" mkostemp"
3762 as_fn_append ac_func_list
" openat"
3763 as_fn_append ac_func_list
" pipe"
3764 as_fn_append ac_func_list
" readlink"
3765 as_fn_append ac_func_list
" link"
3766 as_fn_append ac_func_list
" setenv"
3767 as_fn_append ac_func_list
" strerror_r"
3768 as_fn_append ac_func_list
" __xpg_strerror_r"
3769 as_fn_append ac_func_list
" catgets"
3770 as_fn_append ac_func_list
" snprintf"
3771 as_fn_append ac_header_list
" sys/random.h"
3772 as_fn_append ac_header_list
" sys/uio.h"
3773 as_fn_append ac_func_list
" localtime_r"
3774 as_fn_append ac_header_list
" crtdefs.h"
3775 as_fn_append ac_func_list
" iswcntrl"
3776 as_fn_append ac_header_list
" wctype.h"
3777 as_fn_append ac_func_list
" wmempcpy"
3778 # Check that the precious variables saved in the cache have kept the same
3780 ac_cache_corrupted
=false
3781 for ac_var
in $ac_precious_vars; do
3782 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3783 eval ac_new_set
=\
$ac_env_${ac_var}_set
3784 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3785 eval ac_new_val
=\
$ac_env_${ac_var}_value
3786 case $ac_old_set,$ac_new_set in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3789 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3790 ac_cache_corrupted
=: ;;
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3793 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3794 ac_cache_corrupted
=: ;;
3797 if test "x$ac_old_val" != "x$ac_new_val"; then
3798 # differences in whitespace do not lead to failure.
3799 ac_old_val_w
=`echo x $ac_old_val`
3800 ac_new_val_w
=`echo x $ac_new_val`
3801 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3803 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3804 ac_cache_corrupted
=:
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3807 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3808 eval $ac_var=\
$ac_old_val
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3811 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3813 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3816 # Pass precious variables to config.status.
3817 if test "$ac_new_set" = set; then
3819 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3820 *) ac_arg
=$ac_var=$ac_new_val ;;
3822 case " $ac_configure_args " in
3823 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3824 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3828 if $ac_cache_corrupted; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3832 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3833 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3835 ## -------------------- ##
3836 ## Main body of script. ##
3837 ## -------------------- ##
3840 ac_cpp
='$CPP $CPPFLAGS'
3841 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3850 ac_config_headers
="$ac_config_headers config.h:config.in"
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3856 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3857 # Check whether --enable-maintainer-mode was given.
3858 if test "${enable_maintainer_mode+set}" = set; then :
3859 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3861 USE_MAINTAINER_MODE
=no
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3865 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3866 if test $USE_MAINTAINER_MODE = yes; then
3867 MAINTAINER_MODE_TRUE
=
3868 MAINTAINER_MODE_FALSE
='#'
3870 MAINTAINER_MODE_TRUE
='#'
3871 MAINTAINER_MODE_FALSE
=
3874 MAINT
=$MAINTAINER_MODE_TRUE
3879 ac_cpp
='$CPP $CPPFLAGS'
3880 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3885 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_prog_CC+:} false
; then :
3889 $as_echo_n "(cached) " >&6
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC
="$CC" # Let the user override the test.
3894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir
=.
3899 for ac_exec_ext
in '' $ac_executable_extensions; do
3900 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 if test -n "$CC"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3914 $as_echo "$CC" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3922 if test -z "$ac_cv_prog_CC"; then
3924 # Extract the first word of "gcc", so it can be a program name with args.
3925 set dummy gcc
; ac_word
=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -n "$ac_ct_CC"; then
3932 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3938 test -z "$as_dir" && as_dir
=.
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_ac_ct_CC
="gcc"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3952 if test -n "$ac_ct_CC"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3954 $as_echo "$ac_ct_CC" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3960 if test "x$ac_ct_CC" = x
; then
3963 case $cross_compiling:$ac_tool_warned in
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967 ac_tool_warned
=yes ;;
3975 if test -z "$CC"; then
3976 if test -n "$ac_tool_prefix"; then
3977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3978 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_CC+:} false
; then :
3982 $as_echo_n "(cached) " >&6
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC
="$CC" # Let the user override the test.
3987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir
=.
3992 for ac_exec_ext
in '' $ac_executable_extensions; do
3993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4016 if test -z "$CC"; then
4017 # Extract the first word of "cc", so it can be a program name with args.
4018 set dummy cc
; ac_word
=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_CC+:} false
; then :
4022 $as_echo_n "(cached) " >&6
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC
="$CC" # Let the user override the test.
4028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir
=.
4033 for ac_exec_ext
in '' $ac_executable_extensions; do
4034 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4036 ac_prog_rejected
=yes
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 if test $ac_prog_rejected = yes; then
4048 # We found a bogon in the path, so make sure we never use it.
4049 set dummy
$ac_cv_prog_CC
4051 if test $# != 0; then
4052 # We chose a different compiler from the bogus one.
4053 # However, it has the same basename, so the bogon will be chosen
4054 # first if we set CC to just the basename; use the full file name.
4056 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4062 if test -n "$CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064 $as_echo "$CC" >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4072 if test -z "$CC"; then
4073 if test -n "$ac_tool_prefix"; then
4074 for ac_prog
in cl.exe
4076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4077 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if ${ac_cv_prog_CC+:} false
; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC
="$CC" # Let the user override the test.
4086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir
=.
4091 for ac_exec_ext
in '' $ac_executable_extensions; do
4092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 if test -n "$CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 test -n "$CC" && break
4116 if test -z "$CC"; then
4118 for ac_prog
in cl.exe
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy
$ac_prog; ac_word
=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir
=.
4135 for ac_exec_ext
in '' $ac_executable_extensions; do
4136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC
="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4150 $as_echo "$ac_ct_CC" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$ac_ct_CC" && break
4160 if test "x$ac_ct_CC" = x
; then
4163 case $cross_compiling:$ac_tool_warned in
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167 ac_tool_warned
=yes ;;
4174 if test -z "$CC"; then
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4177 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_prog_CC+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC
="$CC" # Let the user override the test.
4186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir
=.
4191 for ac_exec_ext
in '' $ac_executable_extensions; do
4192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test -n "$CC"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4214 if test -z "$ac_cv_prog_CC"; then
4216 # Extract the first word of "clang", so it can be a program name with args.
4217 set dummy clang
; ac_word
=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4221 $as_echo_n "(cached) " >&6
4223 if test -n "$ac_ct_CC"; then
4224 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir
=.
4231 for ac_exec_ext
in '' $ac_executable_extensions; do
4232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_ac_ct_CC
="clang"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4244 if test -n "$ac_ct_CC"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4246 $as_echo "$ac_ct_CC" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4252 if test "x$ac_ct_CC" = x
; then
4255 case $cross_compiling:$ac_tool_warned in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4259 ac_tool_warned
=yes ;;
4270 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4272 as_fn_error $?
"no acceptable C compiler found in \$PATH
4273 See \`config.log' for more details" "$LINENO" 5; }
4275 # Provide some information about the compiler.
4276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4279 for ac_option
in --version -v -V -qversion -version; do
4280 { { ac_try
="$ac_compiler $ac_option >&5"
4282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4289 if test -s conftest.err; then
4291 ... rest of stderr output deleted ...
4292 10q' conftest.err >conftest.er1
4293 cat conftest.er1 >&5
4295 rm -f conftest.er1 conftest.err
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4311 ac_clean_files_save=$ac_clean_files
4312 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4313 # Try to create an executable without -o first, disregard a.out.
4314 # It will help us diagnose broken compilers, and finding out an intuition
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4317 $as_echo_n "checking whether the C compiler works... " >&6; }
4318 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4320 # The possible output files:
4321 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4324 for ac_file in $ac_files
4327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4328 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4333 if { { ac_try="$ac_link_default"
4335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4336 *) ac_try_echo
=$ac_try;;
4338 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_link_default") 2>&5
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }; then :
4344 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4345 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4346 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4347 # so that the user can short-circuit this test for compilers unknown to
4349 for ac_file
in $ac_files ''
4351 test -f "$ac_file" ||
continue
4353 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4356 # We found the default executable, but exeext='' is most
4360 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4362 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4364 # We set ac_cv_exeext here because the later test for it is not
4365 # safe: cross compilers may not add the suffix if given an `-o'
4366 # argument, so we may need to know it at that point already.
4367 # Even if this section looks crufty: it has the advantage of
4374 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4379 if test -z "$ac_file"; then :
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 $as_echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.
$ac_ext >&5
4385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error
77 "C compiler cannot create executables
4388 See \`config.log' for more details" "$LINENO" 5; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4394 $as_echo_n "checking for C compiler default output file name... " >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4396 $as_echo "$ac_file" >&6; }
4397 ac_exeext
=$ac_cv_exeext
4399 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4400 ac_clean_files
=$ac_clean_files_save
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4402 $as_echo_n "checking for suffix of executables... " >&6; }
4403 if { { ac_try
="$ac_link"
4405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_link") 2>&5
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }; then :
4414 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4415 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4416 # work properly (i.e., refer to `conftest.exe'), while it won't with
4418 for ac_file
in conftest.exe conftest conftest.
*; do
4419 test -f "$ac_file" ||
continue
4421 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4422 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4430 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4431 See \`config.log' for more details" "$LINENO" 5; }
4433 rm -f conftest conftest
$ac_cv_exeext
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4435 $as_echo "$ac_cv_exeext" >&6; }
4437 rm -f conftest.
$ac_ext
4438 EXEEXT
=$ac_cv_exeext
4440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4446 FILE *f = fopen ("conftest.out", "w");
4447 return ferror (f) || fclose (f) != 0;
4453 ac_clean_files
="$ac_clean_files conftest.out"
4454 # Check that the compiler produces executables we can run. If not, either
4455 # the compiler is broken, or we cross compile.
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4457 $as_echo_n "checking whether we are cross compiling... " >&6; }
4458 if test "$cross_compiling" != yes; then
4459 { { ac_try
="$ac_link"
4461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466 (eval "$ac_link") 2>&5
4468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469 test $ac_status = 0; }
4470 if { ac_try='./conftest$ac_cv_exeext'
4471 { { case "(($ac_try" in
4472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4473 *) ac_try_echo
=$ac_try;;
4475 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476 $as_echo "$ac_try_echo"; } >&5
4477 (eval "$ac_try") 2>&5
4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }; }; then
4483 if test "$cross_compiling" = maybe
; then
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error $?
"cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details" "$LINENO" 5; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4495 $as_echo "$cross_compiling" >&6; }
4497 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4498 ac_clean_files
=$ac_clean_files_save
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4500 $as_echo_n "checking for suffix of object files... " >&6; }
4501 if ${ac_cv_objext+:} false
; then :
4502 $as_echo_n "(cached) " >&6
4504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4515 rm -f conftest.o conftest.obj
4516 if { { ac_try
="$ac_compile"
4518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522 $as_echo "$ac_try_echo"; } >&5
4523 (eval "$ac_compile") 2>&5
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }; then :
4527 for ac_file in conftest.o conftest.obj conftest.*; do
4528 test -f "$ac_file" || continue;
4530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4542 See \
`config.log' for more details" "$LINENO" 5; }
4544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4547 $as_echo "$ac_cv_objext" >&6; }
4548 OBJEXT=$ac_cv_objext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4551 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4552 if ${ac_cv_c_compiler_gnu+:} false; then :
4553 $as_echo_n "(cached) " >&6
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4569 if ac_fn_c_try_compile "$LINENO"; then :
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4580 if test $ac_compiler_gnu = yes; then
4585 ac_test_CFLAGS=${CFLAGS+set}
4586 ac_save_CFLAGS=$CFLAGS
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4589 if ${ac_cv_prog_cc_g+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 ac_save_c_werror_flag=$ac_c_werror_flag
4593 ac_c_werror_flag=yes
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_c_try_compile "$LINENO"; then :
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4622 if ac_fn_c_try_compile "$LINENO"; then :
4625 ac_c_werror_flag=$ac_save_c_werror_flag
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4638 if ac_fn_c_try_compile "$LINENO"; then :
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_c_werror_flag=$ac_save_c_werror_flag
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4649 $as_echo "$ac_cv_prog_cc_g" >&6; }
4650 if test "$ac_test_CFLAGS" = set; then
4651 CFLAGS=$ac_save_CFLAGS
4652 elif test $ac_cv_prog_cc_g = yes; then
4653 if test "$GCC" = yes; then
4659 if test "$GCC" = yes; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4666 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4667 if ${ac_cv_prog_cc_c11+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 ac_cv_prog_cc_c11=no
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4675 #include <stdbool.h>
4681 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4682 #define debug(...) fprintf (stderr, __VA_ARGS__)
4683 #define showlist(...) puts (#__VA_ARGS__)
4684 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4686 test_varargs_macros (void)
4691 debug ("X = %d\n", x);
4692 showlist (The first, second, and third items.);
4693 report (x>y, "x is %d but y is %d", x, y);
4696 // Check long long types.
4697 #define BIG64 18446744073709551615ull
4698 #define BIG32 4294967295ul
4699 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4701 your preprocessor is broken;
4705 your preprocessor is broken;
4707 static long long int bignum = -9223372036854775807LL;
4708 static unsigned long long int ubignum = BIG64;
4710 struct incomplete_array
4718 const wchar_t *name;
4722 typedef const char *ccp;
4725 test_restrict (ccp restrict text)
4727 // See if C++-style comments work.
4728 // Iterate through items via the restricted pointer.
4729 // Also check for declarations in for loops.
4730 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4735 // Check varargs and va_copy.
4737 test_varargs (const char *format, ...)
4740 va_start (args, format);
4742 va_copy (args_copy, args);
4744 const char *str = "";
4753 str = va_arg (args_copy, const char *);
4756 number = va_arg (args_copy, int);
4759 fnumber = va_arg (args_copy, double);
4768 return *str && number && fnumber;
4771 char _Alignas (double) aligned_as_double;
4772 char _Alignas (0) no_special_alignment;
4773 extern char aligned_as_int;
4774 char _Alignas (0) _Alignas (int) aligned_as_int;
4779 int_alignment = _Alignof (int),
4780 int_array_alignment = _Alignof (int[100]),
4781 char_alignment = _Alignof (char)
4783 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4786 int _Noreturn does_not_return (void) { for (;;) continue; }
4788 // Check _Static_assert.
4789 struct test_static_assert
4792 _Static_assert (sizeof (int) <= sizeof (long int),
4793 "_Static_assert does not work in struct");
4797 // Check UTF-8 literals.
4798 #define u8 syntax error!
4799 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4801 // Check duplicate typedefs.
4802 typedef long *long_ptr;
4803 typedef long int *long_ptr;
4804 typedef long_ptr long_ptr;
4806 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4810 struct { int i; int j; };
4811 struct { int k; long int l; } w;
4821 _Bool success = false;
4824 if (test_restrict ("String literal") == 0)
4826 char *restrict newvar = "Another string";
4829 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4830 test_varargs_macros ();
4832 // Check flexible array members.
4833 struct incomplete_array *ia =
4834 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4836 for (int i = 0; i < ia->datasize; ++i)
4837 ia->data[i] = i * 1.234;
4839 // Check named initializers.
4840 struct named_init ni = {
4842 .name = L"Test wide string",
4843 .average = 543.34343,
4848 int dynamic_array[ni.number];
4849 dynamic_array[ni.number - 1] = 543;
4851 // work around unused variable warnings
4852 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4853 || dynamic_array[ni.number - 1] != 543);
4857 _Static_assert ((offsetof (struct anonymous, i)
4858 == offsetof (struct anonymous, w.k)),
4859 "Anonymous union alignment botch");
4865 for ac_arg in '' -std=gnu11
4867 CC="$ac_save_CC $ac_arg"
4868 if ac_fn_c_try_compile "$LINENO"; then :
4869 ac_cv_prog_cc_c11=$ac_arg
4871 rm -f core conftest.err conftest.$ac_objext
4872 test "x$ac_cv_prog_cc_c11" != "xno" && break
4874 rm -f conftest.$ac_ext
4879 ac_prog_cc_stdc_options=
4880 case "x$ac_cv_prog_cc_c11" in
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4883 $as_echo "none needed" >&6; } ;;
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4886 $as_echo "unsupported" >&6; } ;;
4888 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4889 CC=$CC$ac_prog_cc_stdc_options
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4891 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4893 if test "x$ac_cv_prog_cc_c11" != xno; then :
4895 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4898 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4899 if ${ac_cv_prog_cc_c99+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 ac_cv_prog_cc_c99=no
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4907 #include <stdbool.h>
4913 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4914 #define debug(...) fprintf (stderr, __VA_ARGS__)
4915 #define showlist(...) puts (#__VA_ARGS__)
4916 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4918 test_varargs_macros (void)
4923 debug ("X = %d\n", x);
4924 showlist (The first, second, and third items.);
4925 report (x>y, "x is %d but y is %d", x, y);
4928 // Check long long types.
4929 #define BIG64 18446744073709551615ull
4930 #define BIG32 4294967295ul
4931 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4933 your preprocessor is broken;
4937 your preprocessor is broken;
4939 static long long int bignum = -9223372036854775807LL;
4940 static unsigned long long int ubignum = BIG64;
4942 struct incomplete_array
4950 const wchar_t *name;
4954 typedef const char *ccp;
4957 test_restrict (ccp restrict text)
4959 // See if C++-style comments work.
4960 // Iterate through items via the restricted pointer.
4961 // Also check for declarations in for loops.
4962 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4967 // Check varargs and va_copy.
4969 test_varargs (const char *format, ...)
4972 va_start (args, format);
4974 va_copy (args_copy, args);
4976 const char *str = "";
4985 str = va_arg (args_copy, const char *);
4988 number = va_arg (args_copy, int);
4991 fnumber = va_arg (args_copy, double);
5000 return *str && number && fnumber;
5007 _Bool success = false;
5010 if (test_restrict ("String literal") == 0)
5012 char *restrict newvar = "Another string";
5015 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5016 test_varargs_macros ();
5018 // Check flexible array members.
5019 struct incomplete_array *ia =
5020 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5022 for (int i = 0; i < ia->datasize; ++i)
5023 ia->data[i] = i * 1.234;
5025 // Check named initializers.
5026 struct named_init ni = {
5028 .name = L"Test wide string",
5029 .average = 543.34343,
5034 int dynamic_array[ni.number];
5035 dynamic_array[ni.number - 1] = 543;
5037 // work around unused variable warnings
5038 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5039 || dynamic_array[ni.number - 1] != 543);
5045 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5047 CC="$ac_save_CC $ac_arg"
5048 if ac_fn_c_try_compile "$LINENO"; then :
5049 ac_cv_prog_cc_c99=$ac_arg
5051 rm -f core conftest.err conftest.$ac_objext
5052 test "x$ac_cv_prog_cc_c99" != "xno" && break
5054 rm -f conftest.$ac_ext
5059 ac_prog_cc_stdc_options=
5060 case "x$ac_cv_prog_cc_c99" in
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5063 $as_echo "none needed" >&6; } ;;
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066 $as_echo "unsupported" >&6; } ;;
5068 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5069 CC=$CC$ac_prog_cc_stdc_options
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5071 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5073 if test "x$ac_cv_prog_cc_c99" != xno; then :
5075 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5078 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5079 if ${ac_cv_prog_cc_c89+:} false; then :
5080 $as_echo_n "(cached) " >&6
5082 ac_cv_prog_cc_c89=no
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5090 struct buf { int x; };
5091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5092 static char *e (p, i)
5098 static char *f (char * (*g) (char **, int), char **p, ...)
5103 s = g (p, va_arg (v,int));
5108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5109 function prototypes and stuff, but not '\xHH' hex character constants.
5110 These don't provoke an error unfortunately, instead are silently treated
5111 as 'x'. The following induces an error, until -std is added to get
5112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5113 array size at least. It's necessary to write '\x00'==0 to get something
5114 that's true only with -std. */
5115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5118 inside strings and character constants. */
5120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5122 int test (int i, double x);
5123 struct s1 {int (*f) (int a);};
5124 struct s2 {int (*f) (double a);};
5125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5139 CC="$ac_save_CC $ac_arg"
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_prog_cc_c89=$ac_arg
5143 rm -f core conftest.err conftest.$ac_objext
5144 test "x$ac_cv_prog_cc_c89" != "xno" && break
5146 rm -f conftest.$ac_ext
5151 ac_prog_cc_stdc_options=
5152 case "x$ac_cv_prog_cc_c89" in
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5155 $as_echo "none needed" >&6; } ;;
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5158 $as_echo "unsupported" >&6; } ;;
5160 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5161 CC=$CC$ac_prog_cc_stdc_options
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5165 if test "x$ac_cv_prog_cc_c89" != xno; then :
5167 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5170 ac_cv_prog_cc_stdc=no
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5185 $as_echo_n "checking whether the compiler is clang... " >&6; }
5186 if ${gl_cv_compiler_clang+:} false; then :
5187 $as_echo_n "(cached) " >&6
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 gl_cv_compiler_clang=no
5208 gl_cv_compiler_clang=yes
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5214 $as_echo "$gl_cv_compiler_clang" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5218 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5219 if ${gl_cv_compiler_check_decl_option+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 if test $gl_cv_compiler_clang = yes; then
5223 save_ac_compile="$ac_compile"
5224 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5239 gl_cv_compiler_check_decl_option=none
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_compile="$save_ac_compile"
5244 gl_cv_compiler_check_decl_option=none
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5249 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5250 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5251 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5253 ac_compile_for_check_decl="$ac_compile"
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5265 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5266 # On Suns, sometimes $CPP names a directory.
5267 if test -n "$CPP" && test -d "$CPP"; then
5270 if test -z "$CPP"; then
5271 if ${ac_cv_prog_CPP+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 # Double quotes because CPP needs to be expanded
5275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5278 for ac_c_preproc_warn_flag in '' yes
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5289 # include <limits.h>
5291 # include <assert.h>
5295 if ac_fn_c_try_cpp "$LINENO"; then :
5298 # Broken: fails on valid input.
5301 rm -f conftest.err conftest.i conftest.$ac_ext
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 #include <ac_nonexistent.h>
5309 if ac_fn_c_try_cpp "$LINENO"; then :
5310 # Broken: success on invalid input.
5313 # Passes both tests.
5317 rm -f conftest.err conftest.i conftest.$ac_ext
5320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5321 rm -f conftest.i conftest.err conftest.
$ac_ext
5322 if $ac_preproc_ok; then :
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5335 $as_echo "$CPP" >&6; }
5337 for ac_c_preproc_warn_flag
in '' yes
5339 # Use a header file that comes with gcc, so configuring glibc
5340 # with a fresh cross-compiler works.
5341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5342 # <limits.h> exists even on freestanding compilers.
5343 # On the NeXT, cc -E runs the code through the compiler's parser,
5344 # not just through cpp. "Syntax error" is here to catch this case.
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5348 # include <limits.h>
5350 # include <assert.h>
5354 if ac_fn_c_try_cpp
"$LINENO"; then :
5357 # Broken: fails on valid input.
5360 rm -f conftest.err conftest.i conftest.
$ac_ext
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <ac_nonexistent.h>
5368 if ac_fn_c_try_cpp
"$LINENO"; then :
5369 # Broken: success on invalid input.
5372 # Passes both tests.
5376 rm -f conftest.err conftest.i conftest.
$ac_ext
5379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5380 rm -f conftest.i conftest.err conftest.
$ac_ext
5381 if $ac_preproc_ok; then :
5384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5386 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5387 See \`config.log' for more details" "$LINENO" 5; }
5391 ac_cpp
='$CPP $CPPFLAGS'
5392 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5398 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5399 if ${ac_cv_path_GREP+:} false
; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -z "$GREP"; then
5403 ac_path_GREP_found
=false
5404 # Loop through the user's path and test for each of PROGNAME-LIST
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5406 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_prog
in grep ggrep
; do
5411 for ac_exec_ext
in '' $ac_executable_extensions; do
5412 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5413 as_fn_executable_p
"$ac_path_GREP" ||
continue
5414 # Check for GNU ac_path_GREP and select it if it is found.
5415 # Check for GNU $ac_path_GREP
5416 case `"$ac_path_GREP" --version 2>&1` in
5418 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5421 $as_echo_n 0123456789 >"conftest.in"
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 $as_echo 'GREP' >> "conftest.nl"
5428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5429 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5430 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5431 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_GREP
="$ac_path_GREP"
5434 ac_path_GREP_max
=$ac_count
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5439 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5442 $ac_path_GREP_found && break 3
5447 if test -z "$ac_cv_path_GREP"; then
5448 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5451 ac_cv_path_GREP
=$GREP
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5456 $as_echo "$ac_cv_path_GREP" >&6; }
5457 GREP
="$ac_cv_path_GREP"
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5461 $as_echo_n "checking for egrep... " >&6; }
5462 if ${ac_cv_path_EGREP+:} false
; then :
5463 $as_echo_n "(cached) " >&6
5465 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5466 then ac_cv_path_EGREP
="$GREP -E"
5468 if test -z "$EGREP"; then
5469 ac_path_EGREP_found
=false
5470 # Loop through the user's path and test for each of PROGNAME-LIST
5471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5472 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5475 test -z "$as_dir" && as_dir
=.
5476 for ac_prog
in egrep; do
5477 for ac_exec_ext
in '' $ac_executable_extensions; do
5478 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5479 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5480 # Check for GNU ac_path_EGREP and select it if it is found.
5481 # Check for GNU $ac_path_EGREP
5482 case `"$ac_path_EGREP" --version 2>&1` in
5484 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5487 $as_echo_n 0123456789 >"conftest.in"
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 $as_echo 'EGREP' >> "conftest.nl"
5494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5495 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5496 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_EGREP
="$ac_path_EGREP"
5500 ac_path_EGREP_max
=$ac_count
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5505 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5508 $ac_path_EGREP_found && break 3
5513 if test -z "$ac_cv_path_EGREP"; then
5514 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5517 ac_cv_path_EGREP
=$EGREP
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5523 $as_echo "$ac_cv_path_EGREP" >&6; }
5524 EGREP
="$ac_cv_path_EGREP"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5528 $as_echo_n "checking for ANSI C header files... " >&6; }
5529 if ${ac_cv_header_stdc+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5547 if ac_fn_c_try_compile
"$LINENO"; then :
5548 ac_cv_header_stdc
=yes
5550 ac_cv_header_stdc
=no
5552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 if test $ac_cv_header_stdc = yes; then
5555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "memchr" >/dev
/null
2>&1; then :
5565 ac_cv_header_stdc
=no
5571 if test $ac_cv_header_stdc = yes; then
5572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579 $EGREP "free" >/dev
/null
2>&1; then :
5582 ac_cv_header_stdc
=no
5588 if test $ac_cv_header_stdc = yes; then
5589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5590 if test "$cross_compiling" = yes; then :
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5597 #if ((' ' & 0x0FF) == 0x020)
5598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5601 # define ISLOWER(c) \
5602 (('a' <= (c) && (c) <= 'i') \
5603 || ('j' <= (c) && (c) <= 'r') \
5604 || ('s' <= (c) && (c) <= 'z'))
5605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5613 for (i = 0; i < 256; i++)
5614 if (XOR (islower (i), ISLOWER (i))
5615 || toupper (i) != TOUPPER (i))
5620 if ac_fn_c_try_run
"$LINENO"; then :
5623 ac_cv_header_stdc
=no
5625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5632 $as_echo "$ac_cv_header_stdc" >&6; }
5633 if test $ac_cv_header_stdc = yes; then
5635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5640 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5641 inttypes.h stdint.h unistd.h
5643 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5646 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5647 cat >>confdefs.h
<<_ACEOF
5648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5659 for ac_header
in $ac_header_list
5661 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5664 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5665 cat >>confdefs.h
<<_ACEOF
5666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5682 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5683 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5684 $as_echo_n "(cached) " >&6
5686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5689 # define __EXTENSIONS__ 1
5690 $ac_includes_default
5699 if ac_fn_c_try_compile
"$LINENO"; then :
5700 ac_cv_safe_to_define___extensions__
=yes
5702 ac_cv_safe_to_define___extensions__
=no
5704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5707 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5710 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5711 if ${ac_cv_should_define__xopen_source+:} false
; then :
5712 $as_echo_n "(cached) " >&6
5714 ac_cv_should_define__xopen_source
=no
5715 if test $ac_cv_header_wchar_h = yes; then :
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5729 if ac_fn_c_try_compile
"$LINENO"; then :
5732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5735 #define _XOPEN_SOURCE 500
5746 if ac_fn_c_try_compile
"$LINENO"; then :
5747 ac_cv_should_define__xopen_source
=yes
5749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5755 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5757 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5759 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5761 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5763 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5765 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5767 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5769 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5771 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5773 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5775 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5777 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5779 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5781 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5783 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5785 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5787 if test $ac_cv_header_minix_config_h = yes; then :
5789 $as_echo "#define _MINIX 1" >>confdefs.h
5791 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5793 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5798 if test $ac_cv_safe_to_define___extensions__ = yes; then :
5799 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5802 if test $ac_cv_should_define__xopen_source = yes; then :
5803 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5807 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5810 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5811 if test -f "$ac_dir/install-sh"; then
5813 ac_install_sh
="$ac_aux_dir/install-sh -c"
5815 elif test -f "$ac_dir/install.sh"; then
5817 ac_install_sh
="$ac_aux_dir/install.sh -c"
5819 elif test -f "$ac_dir/shtool"; then
5821 ac_install_sh
="$ac_aux_dir/shtool install -c"
5825 if test -z "$ac_aux_dir"; then
5826 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5829 # These three variables are undocumented and unsupported,
5830 # and are intended to be withdrawn in a future Autoconf release.
5831 # They can cause serious problems if a builder's source tree is in a directory
5832 # whose full name contains unusual characters.
5833 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5834 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5835 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5838 # Make sure we can run config.sub.
5839 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5840 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5843 $as_echo_n "checking build system type... " >&6; }
5844 if ${ac_cv_build+:} false
; then :
5845 $as_echo_n "(cached) " >&6
5847 ac_build_alias
=$build_alias
5848 test "x$ac_build_alias" = x
&&
5849 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5850 test "x$ac_build_alias" = x
&&
5851 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5852 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5853 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5857 $as_echo "$ac_cv_build" >&6; }
5858 case $ac_cv_build in
5860 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5863 ac_save_IFS
=$IFS; IFS
='-'
5869 # Remember, the first character of IFS is used to create $*,
5870 # except with old shells:
5873 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5877 $as_echo_n "checking host system type... " >&6; }
5878 if ${ac_cv_host+:} false
; then :
5879 $as_echo_n "(cached) " >&6
5881 if test "x$host_alias" = x
; then
5882 ac_cv_host
=$ac_cv_build
5884 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5885 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5890 $as_echo "$ac_cv_host" >&6; }
5893 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5896 ac_save_IFS
=$IFS; IFS
='-'
5902 # Remember, the first character of IFS is used to create $*,
5903 # except with old shells:
5906 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5910 $as_echo_n "checking target system type... " >&6; }
5911 if ${ac_cv_target+:} false
; then :
5912 $as_echo_n "(cached) " >&6
5914 if test "x$target_alias" = x
; then
5915 ac_cv_target
=$ac_cv_host
5917 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5918 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5923 $as_echo "$ac_cv_target" >&6; }
5924 case $ac_cv_target in
5926 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5928 target
=$ac_cv_target
5929 ac_save_IFS
=$IFS; IFS
='-'
5935 # Remember, the first character of IFS is used to create $*,
5936 # except with old shells:
5939 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5942 # The aliases save the names the user supplied, while $host etc.
5943 # will get canonicalized.
5944 test -n "$target_alias" &&
5945 test "$program_prefix$program_suffix$program_transform_name" = \
5947 program_prefix
=${target_alias}-
5949 # The tests for host and target for $enable_largefile require
5954 # As the $enable_largefile decision depends on --enable-plugins we must set it
5955 # even in directories otherwise not depending on the $plugins option.
5959 for ac_header
in dlfcn.h
5961 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5963 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5964 cat >>confdefs.h
<<_ACEOF
5965 #define HAVE_DLFCN_H 1
5972 for ac_header
in windows.h
5974 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5976 if test "x$ac_cv_header_windows_h" = xyes
; then :
5977 cat >>confdefs.h
<<_ACEOF
5978 #define HAVE_WINDOWS_H 1
5986 # Check whether --enable-plugins was given.
5987 if test "${enable_plugins+set}" = set; then :
5988 enableval
=$enable_plugins; case "${enableval}" in
5991 if test "$maybe_plugins" != "yes" ; then
5992 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5996 plugins
=$maybe_plugins
6000 if test "$plugins" = "yes"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6002 $as_echo_n "checking for library containing dlsym... " >&6; }
6003 if ${ac_cv_search_dlsym+:} false
; then :
6004 $as_echo_n "(cached) " >&6
6006 ac_func_search_save_LIBS
=$LIBS
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 /* Override any GCC internal prototype to avoid an error.
6011 Use char because int might match the return type of a GCC
6012 builtin and then its argument prototype would still apply. */
6025 for ac_lib
in '' dl
; do
6026 if test -z "$ac_lib"; then
6027 ac_res
="none required"
6030 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6032 if ac_fn_c_try_link
"$LINENO"; then :
6033 ac_cv_search_dlsym
=$ac_res
6035 rm -f core conftest.err conftest.
$ac_objext \
6037 if ${ac_cv_search_dlsym+:} false
; then :
6041 if ${ac_cv_search_dlsym+:} false
; then :
6044 ac_cv_search_dlsym
=no
6047 LIBS
=$ac_func_search_save_LIBS
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6050 $as_echo "$ac_cv_search_dlsym" >&6; }
6051 ac_res
=$ac_cv_search_dlsym
6052 if test "$ac_res" != no
; then :
6053 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6061 sparc-
*-solaris*|i?
86-*-solaris*)
6062 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
6063 # were mutually exclusive until Solaris 11.3. Without procfs support,
6064 # the bfd/ elf module cannot provide certain routines such as
6065 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
6066 # explicitly requested large-file support through the
6067 # --enable-largefile switch, disable large-file support in favor of
6070 # Check if <sys/procfs.h> is incompatible with large-file support.
6071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #define _FILE_OFFSET_BITS 64
6074 #define _STRUCTURED_PROC 1
6075 #include <sys/procfs.h>
6084 if ac_fn_c_try_compile
"$LINENO"; then :
6085 acx_cv_procfs_lfs
=yes
6087 acx_cv_procfs_lfs
=no
6089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6091 # Forcefully disable large-file support only if necessary, gdb is in
6093 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
6094 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
6095 : ${enable_largefile="no"}
6096 if test "$plugins" = yes; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
6098 plugin support disabled; require large-file support which is incompatible with GDB." >&5
6099 $as_echo "$as_me: WARNING:
6100 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
6105 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
6106 # benefit of g++ 9+ which predefines it on Solaris.
6107 if test "$enable_largefile" = no
; then
6108 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
6114 # Check whether --enable-largefile was given.
6115 if test "${enable_largefile+set}" = set; then :
6116 enableval
=$enable_largefile;
6119 if test "$enable_largefile" != no
; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6122 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6123 if ${ac_cv_sys_largefile_CC+:} false
; then :
6124 $as_echo_n "(cached) " >&6
6126 ac_cv_sys_largefile_CC
=no
6127 if test "$GCC" != yes; then
6130 # IRIX 6.2 and later do not support large files by default,
6131 # so use the C compiler's -n32 option if that helps.
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <sys/types.h>
6135 /* Check that off_t can represent 2**63 - 1 correctly.
6136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6137 since some C++ compilers masquerading as C compilers
6138 incorrectly reject 9223372036854775807. */
6139 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6141 && LARGE_OFF_T % 2147483647 == 1)
6151 if ac_fn_c_try_compile
"$LINENO"; then :
6154 rm -f core conftest.err conftest.
$ac_objext
6156 if ac_fn_c_try_compile
"$LINENO"; then :
6157 ac_cv_sys_largefile_CC
=' -n32'; break
6159 rm -f core conftest.err conftest.
$ac_objext
6163 rm -f conftest.
$ac_ext
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6167 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6168 if test "$ac_cv_sys_largefile_CC" != no
; then
6169 CC
=$CC$ac_cv_sys_largefile_CC
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6173 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6174 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6175 $as_echo_n "(cached) " >&6
6178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 #include <sys/types.h>
6181 /* Check that off_t can represent 2**63 - 1 correctly.
6182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6183 since some C++ compilers masquerading as C compilers
6184 incorrectly reject 9223372036854775807. */
6185 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6187 && LARGE_OFF_T % 2147483647 == 1)
6197 if ac_fn_c_try_compile
"$LINENO"; then :
6198 ac_cv_sys_file_offset_bits
=no
; break
6200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #define _FILE_OFFSET_BITS 64
6204 #include <sys/types.h>
6205 /* Check that off_t can represent 2**63 - 1 correctly.
6206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6207 since some C++ compilers masquerading as C compilers
6208 incorrectly reject 9223372036854775807. */
6209 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6211 && LARGE_OFF_T % 2147483647 == 1)
6221 if ac_fn_c_try_compile
"$LINENO"; then :
6222 ac_cv_sys_file_offset_bits
=64; break
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6225 ac_cv_sys_file_offset_bits
=unknown
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6230 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6231 case $ac_cv_sys_file_offset_bits in #(
6234 cat >>confdefs.h
<<_ACEOF
6235 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6240 if test $ac_cv_sys_file_offset_bits = unknown
; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6242 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6243 if ${ac_cv_sys_large_files+:} false
; then :
6244 $as_echo_n "(cached) " >&6
6247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 #include <sys/types.h>
6250 /* Check that off_t can represent 2**63 - 1 correctly.
6251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6252 since some C++ compilers masquerading as C compilers
6253 incorrectly reject 9223372036854775807. */
6254 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6256 && LARGE_OFF_T % 2147483647 == 1)
6266 if ac_fn_c_try_compile
"$LINENO"; then :
6267 ac_cv_sys_large_files
=no
; break
6269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 #define _LARGE_FILES 1
6273 #include <sys/types.h>
6274 /* Check that off_t can represent 2**63 - 1 correctly.
6275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6276 since some C++ compilers masquerading as C compilers
6277 incorrectly reject 9223372036854775807. */
6278 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6280 && LARGE_OFF_T % 2147483647 == 1)
6290 if ac_fn_c_try_compile
"$LINENO"; then :
6291 ac_cv_sys_large_files
=1; break
6293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 ac_cv_sys_large_files
=unknown
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6299 $as_echo "$ac_cv_sys_large_files" >&6; }
6300 case $ac_cv_sys_large_files in #(
6303 cat >>confdefs.h
<<_ACEOF
6304 #define _LARGE_FILES $ac_cv_sys_large_files
6320 $as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6329 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6330 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6331 $as_echo_n "(cached) " >&6
6334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6344 gl_cv_c_amsterdam_compiler
=yes
6346 gl_cv_c_amsterdam_compiler
=no
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6353 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6355 if test $gl_cv_c_amsterdam_compiler = yes; then
6356 if test -z "$AR"; then
6359 if test -z "$ARFLAGS"; then
6366 if test -n "$ac_tool_prefix"; then
6367 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6368 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_AR+:} false
; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$AR"; then
6375 ac_cv_prog_AR
="$AR" # Let the user override the test.
6377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir
=.
6382 for ac_exec_ext
in '' $ac_executable_extensions; do
6383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 if test -n "$AR"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6397 $as_echo "$AR" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6405 if test -z "$ac_cv_prog_AR"; then
6407 # Extract the first word of "ar", so it can be a program name with args.
6408 set dummy
ar; ac_word
=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6412 $as_echo_n "(cached) " >&6
6414 if test -n "$ac_ct_AR"; then
6415 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir
=.
6422 for ac_exec_ext
in '' $ac_executable_extensions; do
6423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_ac_ct_AR
="ar"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6435 if test -n "$ac_ct_AR"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6437 $as_echo "$ac_ct_AR" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6443 if test "x$ac_ct_AR" = x
; then
6446 case $cross_compiling:$ac_tool_warned in
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned
=yes ;;
6458 if test -z "$ARFLAGS"; then
6464 if test -z "$RANLIB"; then
6465 if test $gl_cv_c_amsterdam_compiler = yes; then
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6470 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_RANLIB+:} false
; then :
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$RANLIB"; then
6477 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir
=.
6484 for ac_exec_ext
in '' $ac_executable_extensions; do
6485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 RANLIB
=$ac_cv_prog_RANLIB
6497 if test -n "$RANLIB"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6499 $as_echo "$RANLIB" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6507 if test -z "$ac_cv_prog_RANLIB"; then
6508 ac_ct_RANLIB
=$RANLIB
6509 # Extract the first word of "ranlib", so it can be a program name with args.
6510 set dummy ranlib
; ac_word
=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6514 $as_echo_n "(cached) " >&6
6516 if test -n "$ac_ct_RANLIB"; then
6517 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir
=.
6524 for ac_exec_ext
in '' $ac_executable_extensions; do
6525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6537 if test -n "$ac_ct_RANLIB"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6539 $as_echo "$ac_ct_RANLIB" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6545 if test "x$ac_ct_RANLIB" = x
; then
6548 case $cross_compiling:$ac_tool_warned in
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned
=yes ;;
6554 RANLIB
=$ac_ct_RANLIB
6557 RANLIB
="$ac_cv_prog_RANLIB"
6568 # IEEE behaviour is the default on all CPUs except Alpha and SH
6569 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6570 # and the GCC 4.1.2 manual).
6573 # On Alpha systems, a compiler option provides the behaviour.
6574 # See the ieee(3) manual page, also available at
6575 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6576 if test -n "$GCC"; then
6577 # GCC has the option -mieee.
6578 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6579 CPPFLAGS
="$CPPFLAGS -mieee"
6581 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6582 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6583 CPPFLAGS
="$CPPFLAGS -ieee"
6587 if test -n "$GCC"; then
6588 # GCC has the option -mieee.
6589 CPPFLAGS
="$CPPFLAGS -mieee"
6600 # Check whether --enable-threads was given.
6601 if test "${enable_threads+set}" = set; then :
6602 enableval
=$enable_threads; gl_use_threads
=$enableval
6604 if test -n "$gl_use_threads_default"; then
6605 gl_use_threads
="$gl_use_threads_default"
6608 osf
*) gl_use_threads
=no
;;
6611 1.
[0-5].
*) gl_use_threads
=no
;;
6612 *) gl_use_threads
=yes ;;
6616 case "$gl_use_winpthreads_default" in
6617 yes) gl_use_threads
=posix
;;
6618 no
) gl_use_threads
=windows
;;
6619 *) gl_use_threads
=yes ;;
6622 *) gl_use_threads
=yes ;;
6628 if test "$gl_use_threads" = yes \
6629 ||
test "$gl_use_threads" = isoc \
6630 ||
test "$gl_use_threads" = posix \
6631 ||
test "$gl_use_threads" = isoc
+posix
; then
6632 # For using <threads.h> or <pthread.h>:
6635 if test -z "$gl_anythreadlib_early_done"; then
6638 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6639 # groks <pthread.h>. cc also understands the flag -pthread, but
6640 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6641 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6642 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6643 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6644 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6647 # Some systems optimize for single-threaded programs by default, and
6648 # need special flags to disable these optimizations. For example, the
6649 # definition of 'errno' in <errno.h>.
6651 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6652 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6654 gl_anythreadlib_early_done
=done
6661 # Pre-early section.
6666 # Code from module absolute-header:
6667 # Code from module alloca:
6668 # Code from module alloca-opt:
6669 # Code from module arpa_inet:
6670 # Code from module assure:
6671 # Code from module at-internal:
6672 # Code from module attribute:
6673 # Code from module basename-lgpl:
6674 # Code from module btowc:
6675 # Code from module builtin-expect:
6676 # Code from module c99:
6677 # Code from module canonicalize-lgpl:
6678 # Code from module chdir:
6679 # Code from module chdir-long:
6680 # Code from module clock-time:
6681 # Code from module cloexec:
6682 # Code from module close:
6683 # Code from module closedir:
6684 # Code from module count-one-bits:
6685 # Code from module ctype:
6686 # Code from module d-ino:
6687 # Code from module d-type:
6688 # Code from module dirent:
6689 # Code from module dirfd:
6690 # Code from module dirname-lgpl:
6691 # Code from module double-slash-root:
6692 # Code from module dup:
6693 # Code from module dup2:
6694 # Code from module eloop-threshold:
6695 # Code from module environ:
6696 # Code from module errno:
6697 # Code from module error:
6698 # Code from module exitfail:
6699 # Code from module extensions:
6700 # Code from module extern-inline:
6701 # Code from module fchdir:
6702 # Code from module fcntl:
6703 # Code from module fcntl-h:
6704 # Code from module fd-hook:
6705 # Code from module fd-safer-flag:
6706 # Code from module fdopendir:
6707 # Code from module filename:
6708 # Code from module filenamecat-lgpl:
6709 # Code from module flexmember:
6710 # Code from module float:
6711 # Code from module fnmatch:
6712 # Code from module fnmatch-gnu:
6713 # Code from module fnmatch-h:
6714 # Code from module fpieee:
6716 # Code from module fpucw:
6717 # Code from module free-posix:
6718 # Code from module frexp:
6719 # Code from module frexpl:
6720 # Code from module fstat:
6721 # Code from module fstatat:
6722 # Code from module getcwd:
6723 # Code from module getcwd-lgpl:
6724 # Code from module getdelim:
6725 # Code from module getdtablesize:
6726 # Code from module getline:
6727 # Code from module getlogin_r:
6728 # Code from module getprogname:
6729 # Code from module getrandom:
6730 # Code from module gettext-h:
6731 # Code from module gettimeofday:
6732 # Code from module gitlog-to-changelog:
6733 # Code from module glob:
6734 # Code from module glob-h:
6735 # Code from module hard-locale:
6736 # Code from module idx:
6737 # Code from module include_next:
6738 # Code from module inet_ntop:
6739 # Code from module intprops:
6740 # Code from module inttypes:
6741 # Code from module inttypes-incomplete:
6742 # Code from module isblank:
6743 # Code from module isnand-nolibm:
6744 # Code from module isnanl-nolibm:
6745 # Code from module largefile:
6747 # Code from module libc-config:
6748 # Code from module limits-h:
6749 # Code from module localcharset:
6750 # Code from module locale:
6751 # Code from module lock:
6752 # Code from module lstat:
6753 # Code from module malloc-posix:
6754 # Code from module malloca:
6755 # Code from module math:
6756 # Code from module mbrtowc:
6757 # Code from module mbsinit:
6758 # Code from module mbsrtowcs:
6759 # Code from module mbtowc:
6760 # Code from module memchr:
6761 # Code from module memmem:
6762 # Code from module memmem-simple:
6763 # Code from module mempcpy:
6764 # Code from module memrchr:
6765 # Code from module minmax:
6766 # Code from module mkdir:
6767 # Code from module mkdtemp:
6768 # Code from module mkostemp:
6769 # Code from module msvc-inval:
6770 # Code from module msvc-nothrow:
6771 # Code from module multiarch:
6772 # Code from module netinet_in:
6773 # Code from module nocrash:
6774 # Code from module open:
6775 # Code from module openat:
6776 # Code from module openat-die:
6777 # Code from module openat-h:
6778 # Code from module opendir:
6779 # Code from module pathmax:
6780 # Code from module pipe-posix:
6781 # Code from module rawmemchr:
6782 # Code from module readdir:
6783 # Code from module readlink:
6784 # Code from module realloc-posix:
6785 # Code from module rename:
6786 # Code from module rewinddir:
6787 # Code from module rmdir:
6788 # Code from module same-inode:
6789 # Code from module save-cwd:
6790 # Code from module scratch_buffer:
6791 # Code from module setenv:
6792 # Code from module setlocale-null:
6793 # Code from module signal-h:
6794 # Code from module snippet/_Noreturn:
6795 # Code from module snippet/arg-nonnull:
6796 # Code from module snippet/c++defs:
6797 # Code from module snippet/warn-on-use:
6798 # Code from module socklen:
6799 # Code from module ssize_t:
6800 # Code from module stat:
6801 # Code from module stat-time:
6802 # Code from module std-gnu11:
6803 # Code from module stdalign:
6804 # Code from module stdbool:
6805 # Code from module stddef:
6806 # Code from module stdint:
6807 # Code from module stdio:
6808 # Code from module stdlib:
6809 # Code from module strchrnul:
6810 # Code from module strdup-posix:
6811 # Code from module streq:
6812 # Code from module strerror:
6813 # Code from module strerror-override:
6814 # Code from module strerror_r-posix:
6815 # Code from module string:
6816 # Code from module strnlen:
6817 # Code from module strnlen1:
6818 # Code from module strstr:
6819 # Code from module strstr-simple:
6820 # Code from module strtok_r:
6821 # Code from module sys_random:
6822 # Code from module sys_socket:
6823 # Code from module sys_stat:
6824 # Code from module sys_time:
6825 # Code from module sys_types:
6826 # Code from module sys_uio:
6827 # Code from module tempname:
6828 # Code from module threadlib:
6832 # Code from module time:
6833 # Code from module time_r:
6834 # Code from module unistd:
6835 # Code from module unistd-safer:
6836 # Code from module unsetenv:
6837 # Code from module update-copyright:
6838 # Code from module verify:
6839 # Code from module wchar:
6840 # Code from module wctype-h:
6841 # Code from module windows-mutex:
6842 # Code from module windows-once:
6843 # Code from module windows-recmutex:
6844 # Code from module windows-rwlock:
6845 # Code from module wmemchr:
6846 # Code from module wmempcpy:
6847 # Code from module xalloc-oversized:
6850 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6854 for ac_dir
in ..
"$srcdir"/..
; do
6855 if test -f "$ac_dir/install-sh"; then
6857 ac_install_sh
="$ac_aux_dir/install-sh -c"
6859 elif test -f "$ac_dir/install.sh"; then
6861 ac_install_sh
="$ac_aux_dir/install.sh -c"
6863 elif test -f "$ac_dir/shtool"; then
6865 ac_install_sh
="$ac_aux_dir/shtool install -c"
6869 if test -z "$ac_aux_dir"; then
6870 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6873 # These three variables are undocumented and unsupported,
6874 # and are intended to be withdrawn in a future Autoconf release.
6875 # They can cause serious problems if a builder's source tree is in a directory
6876 # whose full name contains unusual characters.
6877 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6878 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6879 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6892 # Check whether --enable-cross-guesses was given.
6893 if test "${enable_cross_guesses+set}" = set; then :
6894 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6896 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6897 enableval
=conservative
6899 gl_cross_guesses
="$enableval"
6901 gl_cross_guesses
=conservative
6904 if test $gl_cross_guesses = risky
; then
6905 gl_cross_guess_normal
="guessing yes"
6906 gl_cross_guess_inverted
="guessing no"
6908 gl_cross_guess_normal
="guessing no"
6909 gl_cross_guess_inverted
="guessing yes"
6911 LIBC_FATAL_STDERR_
=1
6912 export LIBC_FATAL_STDERR_
6915 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6916 if test "x$ac_cv_type_size_t" = xyes
; then :
6920 cat >>confdefs.h
<<_ACEOF
6921 #define size_t unsigned int
6926 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6927 # for constant arguments. Useless!
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6929 $as_echo_n "checking for working alloca.h... " >&6; }
6930 if ${ac_cv_working_alloca_h+:} false
; then :
6931 $as_echo_n "(cached) " >&6
6933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6939 char *p = (char *) alloca (2 * sizeof (int));
6945 if ac_fn_c_try_link
"$LINENO"; then :
6946 ac_cv_working_alloca_h
=yes
6948 ac_cv_working_alloca_h
=no
6950 rm -f core conftest.err conftest.
$ac_objext \
6951 conftest
$ac_exeext conftest.
$ac_ext
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6954 $as_echo "$ac_cv_working_alloca_h" >&6; }
6955 if test $ac_cv_working_alloca_h = yes; then
6957 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6962 $as_echo_n "checking for alloca... " >&6; }
6963 if ${ac_cv_func_alloca_works+:} false
; then :
6964 $as_echo_n "(cached) " >&6
6966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 # define alloca __builtin_alloca
6972 # include <malloc.h>
6973 # define alloca _alloca
6975 # ifdef HAVE_ALLOCA_H
6976 # include <alloca.h>
6981 # ifndef alloca /* predefined by HP cc +Olibcalls */
6982 void *alloca (size_t);
6992 char *p = (char *) alloca (1);
6998 if ac_fn_c_try_link
"$LINENO"; then :
6999 ac_cv_func_alloca_works
=yes
7001 ac_cv_func_alloca_works
=no
7003 rm -f core conftest.err conftest.
$ac_objext \
7004 conftest
$ac_exeext conftest.
$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7007 $as_echo "$ac_cv_func_alloca_works" >&6; }
7009 if test $ac_cv_func_alloca_works = yes; then
7011 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7014 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7015 # that cause trouble. Some versions do not even contain alloca or
7016 # contain a buggy version. If you still want to use their alloca,
7017 # use ar to extract alloca.o from them instead of compiling alloca.c.
7023 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7025 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7029 $as_echo_n "checking stack direction for C alloca... " >&6; }
7030 if ${ac_cv_c_stack_direction+:} false
; then :
7031 $as_echo_n "(cached) " >&6
7033 if test "$cross_compiling" = yes; then :
7034 ac_cv_c_stack_direction
=0
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 $ac_includes_default
7040 find_stack_direction (int *addr, int depth)
7045 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7046 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7051 main (int argc, char **argv)
7053 return find_stack_direction (0, argc + !argv + 20) < 0;
7056 if ac_fn_c_try_run
"$LINENO"; then :
7057 ac_cv_c_stack_direction
=1
7059 ac_cv_c_stack_direction
=-1
7061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7067 $as_echo "$ac_cv_c_stack_direction" >&6; }
7068 cat >>confdefs.h
<<_ACEOF
7069 #define STACK_DIRECTION $ac_cv_c_stack_direction
7078 HAVE_DECL_INET_NTOP
=1;
7079 HAVE_DECL_INET_PTON
=1;
7080 REPLACE_INET_NTOP
=0;
7081 REPLACE_INET_PTON
=0;
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7088 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7089 if ${gl_cv_have_include_next+:} false
; then :
7090 $as_echo_n "(cached) " >&6
7092 rm -rf conftestd1a conftestd1b conftestd2
7093 mkdir conftestd1a conftestd1b conftestd2
7094 cat <<EOF > conftestd1a/conftest.h
7095 #define DEFINED_IN_CONFTESTD1
7096 #include_next <conftest.h>
7097 #ifdef DEFINED_IN_CONFTESTD2
7100 #error "include_next doesn't work"
7103 cat <<EOF > conftestd1b/conftest.h
7104 #define DEFINED_IN_CONFTESTD1
7106 #include_next <conftest.h>
7107 #ifdef DEFINED_IN_CONFTESTD2
7110 #error "include_next doesn't work"
7113 cat <<EOF > conftestd2/conftest.h
7114 #ifndef DEFINED_IN_CONFTESTD1
7115 #error "include_next test doesn't work"
7117 #define DEFINED_IN_CONFTESTD2
7119 gl_save_CPPFLAGS
="$CPPFLAGS"
7120 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #include <conftest.h>
7125 if ac_fn_c_try_compile
"$LINENO"; then :
7126 gl_cv_have_include_next
=yes
7128 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <conftest.h>
7133 if ac_fn_c_try_compile
"$LINENO"; then :
7134 gl_cv_have_include_next
=buggy
7136 gl_cv_have_include_next
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 CPPFLAGS
="$gl_save_CPPFLAGS"
7143 rm -rf conftestd1a conftestd1b conftestd2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7147 $as_echo "$gl_cv_have_include_next" >&6; }
7148 PRAGMA_SYSTEM_HEADER
=
7149 if test $gl_cv_have_include_next = yes; then
7150 INCLUDE_NEXT
=include_next
7151 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7152 if test -n "$GCC"; then
7153 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7156 if test $gl_cv_have_include_next = buggy
; then
7157 INCLUDE_NEXT
=include
7158 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7160 INCLUDE_NEXT
=include
7161 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
7169 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
7170 if ${gl_cv_source_line_length_unlimited+:} false
; then :
7171 $as_echo_n "(cached) " >&6
7173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "choke me" >/dev
/null
2>&1; then :
7183 gl_cv_source_line_length_unlimited
=no
7185 gl_cv_source_line_length_unlimited
=yes
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
7192 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
7193 if test $gl_cv_source_line_length_unlimited = no
; then
7194 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7204 if test $ac_cv_header_features_h = yes; then
7214 if test $ac_cv_header_sys_socket_h = no
; then
7215 for ac_header
in ws2tcpip.h
7217 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7218 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7219 cat >>confdefs.h
<<_ACEOF
7220 #define HAVE_WS2TCPIP_H 1
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7230 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7231 if test -z "$MKDIR_P"; then
7232 if ${ac_cv_path_mkdir+:} false
; then :
7233 $as_echo_n "(cached) " >&6
7235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7236 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7239 test -z "$as_dir" && as_dir
=.
7240 for ac_prog
in mkdir gmkdir
; do
7241 for ac_exec_ext
in '' $ac_executable_extensions; do
7242 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7243 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7244 'mkdir (GNU coreutils) '* | \
7245 'mkdir (coreutils) '* | \
7246 'mkdir (fileutils) '4.1*)
7247 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7257 test -d .
/--version && rmdir .
/--version
7258 if test "${ac_cv_path_mkdir+set}" = set; then
7259 MKDIR_P
="$ac_cv_path_mkdir -p"
7261 # As a last resort, use the slow shell script. Don't cache a
7262 # value for MKDIR_P within a source directory, because that will
7263 # break other packages using the cache if that directory is
7264 # removed, or if the value is a relative name.
7265 MKDIR_P
="$ac_install_sh -d"
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7269 $as_echo "$MKDIR_P" >&6; }
7278 GNULIB_MBSNRTOWCS
=0;
7281 GNULIB_WCSNRTOMBS
=0;
7299 GNULIB_WCSCASECMP
=0;
7300 GNULIB_WCSNCASECMP
=0;
7313 GNULIB_MDA_WCSDUP
=1;
7355 HAVE_DECL_WCWIDTH
=1;
7356 REPLACE_MBSTATE_T
=0;
7362 REPLACE_MBSRTOWCS
=0;
7363 REPLACE_MBSNRTOWCS
=0;
7365 REPLACE_WCSRTOMBS
=0;
7366 REPLACE_WCSNRTOMBS
=0;
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7375 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7376 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
7377 $as_echo_n "(cached) " >&6
7379 gl_cv_header_wchar_h_correct_inline
=yes
7382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7386 #define wcstod renamed_wcstod
7388 extern int zero (void);
7389 int main () { return zero(); }
7392 save_ac_compile
="$ac_compile"
7393 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
7394 if echo '#include "conftest.c"' >conftest1.c \
7395 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7404 #define wcstod renamed_wcstod
7406 int zero (void) { return 0; }
7409 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
7410 if echo '#include "conftest.c"' >conftest2.c \
7411 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7412 (eval $ac_compile) 2>&5
7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; }; then
7416 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
7419 gl_cv_header_wchar_h_correct_inline
=no
7423 ac_compile
="$save_ac_compile"
7424 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7430 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7431 if test $gl_cv_header_wchar_h_correct_inline = no
; then
7432 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7433 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7434 C99 mode. You have four options:
7435 - Add the flag -fgnu89-inline to CC and reconfigure, or
7436 - Fix your include files, using parts of
7437 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7438 - Use a gcc version older than 4.3, or
7439 - Don't use the flags -std=c99 or -std=gnu99.
7440 Configuration aborted." "$LINENO" 5
7446 for ac_func
in $ac_func_list
7448 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7449 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7450 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7451 cat >>confdefs.h
<<_ACEOF
7452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7462 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7463 if ${am_cv_langinfo_codeset+:} false
; then :
7464 $as_echo_n "(cached) " >&6
7466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #include <langinfo.h>
7472 char* cs = nl_langinfo(CODESET); return !cs;
7477 if ac_fn_c_try_link
"$LINENO"; then :
7478 am_cv_langinfo_codeset
=yes
7480 am_cv_langinfo_codeset
=no
7482 rm -f core conftest.err conftest.
$ac_objext \
7483 conftest
$ac_exeext conftest.
$ac_ext
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7487 $as_echo "$am_cv_langinfo_codeset" >&6; }
7488 if test $am_cv_langinfo_codeset = yes; then
7490 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7498 $as_echo_n "checking for a traditional french locale... " >&6; }
7499 if ${gt_cv_locale_fr+:} false
; then :
7500 $as_echo_n "(cached) " >&6
7503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7508 #if HAVE_LANGINFO_CODESET
7509 # include <langinfo.h>
7516 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7517 imitates locale dependent behaviour by looking at the environment
7518 variables, and all locales use the UTF-8 encoding. */
7519 #if defined __BEOS__ || defined __HAIKU__
7522 /* Check whether the given locale name is recognized by the system. */
7523 # if defined _WIN32 && !defined __CYGWIN__
7524 /* On native Windows, setlocale(category, "") looks at the system settings,
7525 not at the environment variables. Also, when an encoding suffix such
7526 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7527 category of the locale to "C". */
7528 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7529 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7532 if (setlocale (LC_ALL, "") == NULL) return 1;
7534 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7535 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7536 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7537 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7538 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7539 some unit tests fail.
7540 On MirBSD 10, when an unsupported locale is specified, setlocale()
7541 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7542 # if HAVE_LANGINFO_CODESET
7544 const char *cs = nl_langinfo (CODESET);
7545 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7546 || strcmp (cs, "UTF-8") == 0)
7551 /* On Cygwin, avoid locale names without encoding suffix, because the
7552 locale_charset() function relies on the encoding suffix. Note that
7553 LC_ALL is set on the command line. */
7554 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7556 /* Check whether in the abbreviation of the second month, the second
7557 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7558 one byte long. This excludes the UTF-8 encoding. */
7559 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7560 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7561 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7562 /* Check whether the decimal separator is a comma.
7563 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7564 are nl_langinfo(RADIXCHAR) are both ".". */
7565 if (localeconv () ->decimal_point[0] != ',') return 1;
7572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7573 (eval $ac_link) 2>&5
7575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7578 # Handle native Windows specially, because there setlocale() interprets
7579 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7580 # "fr" or "fra" as "French" or "French_France.1252",
7581 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7582 # "ja" as "Japanese" or "Japanese_Japan.932",
7585 # Test for the native Windows locale name.
7586 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7587 gt_cv_locale_fr
=French_France
.1252
7590 gt_cv_locale_fr
=none
7594 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7595 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7596 # configure script would override the LC_ALL setting. Likewise for
7597 # LC_CTYPE, which is also set at the beginning of the configure script.
7598 # Test for the usual locale name.
7599 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7600 gt_cv_locale_fr
=fr_FR
7602 # Test for the locale name with explicit encoding suffix.
7603 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7604 gt_cv_locale_fr
=fr_FR.ISO-8859-1
7606 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7607 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7608 gt_cv_locale_fr
=fr_FR.ISO8859-1
7610 # Test for the HP-UX locale name.
7611 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7612 gt_cv_locale_fr
=fr_FR.iso88591
7614 # Test for the Solaris 7 locale name.
7615 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7619 gt_cv_locale_fr
=none
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7632 $as_echo "$gt_cv_locale_fr" >&6; }
7633 LOCALE_FR
=$gt_cv_locale_fr
7638 GNULIB_ALIGNED_ALLOC
=0;
7640 GNULIB_CALLOC_POSIX
=0;
7641 GNULIB_CANONICALIZE_FILE_NAME
=0;
7642 GNULIB_FREE_POSIX
=0;
7643 GNULIB_GETLOADAVG
=0;
7646 GNULIB_MALLOC_POSIX
=0;
7653 GNULIB_POSIX_MEMALIGN
=0;
7654 GNULIB_POSIX_OPENPT
=0;
7661 GNULIB_REALLOCARRAY
=0;
7662 GNULIB_REALLOC_POSIX
=0;
7665 GNULIB_SECURE_GETENV
=0;
7671 GNULIB_SYSTEM_POSIX
=0;
7678 GNULIB_MDA_MKTEMP
=1;
7679 GNULIB_MDA_PUTENV
=1;
7681 HAVE_ALIGNED_ALLOC
=1;
7683 HAVE_CANONICALIZE_FILE_NAME
=1;
7687 HAVE_DECL_GETLOADAVG
=1;
7691 HAVE_DECL_INITSTATE
=1;
7698 HAVE_POSIX_MEMALIGN
=1;
7699 HAVE_POSIX_OPENPT
=1;
7706 HAVE_REALLOCARRAY
=1;
7709 HAVE_SECURE_GETENV
=1;
7713 HAVE_DECL_SETSTATE
=1;
7718 HAVE_STRUCT_RANDOM_DATA
=1;
7719 HAVE_SYS_LOADAVG_H
=0;
7721 HAVE_DECL_UNSETENV
=1;
7722 REPLACE_ALIGNED_ALLOC
=0;
7724 REPLACE_CANONICALIZE_FILE_NAME
=0;
7726 REPLACE_INITSTATE
=0;
7730 REPLACE_POSIX_MEMALIGN
=0;
7732 REPLACE_PTSNAME_R
=0;
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
7748 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7749 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7752 rm -f conftest.sym conftest.
file
7754 if test "$cross_compiling" = yes; then :
7757 # Guess yes on Linux systems.
7758 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7760 # Guess yes on glibc systems.
7761 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7763 # Guess no on native Windows.
7764 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
7766 # If we don't know, obey --enable-cross-guesses.
7767 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
7771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 $ac_includes_default
7778 if (symlink ("conftest.file", "conftest.sym") != 0)
7780 /* Linux will dereference the symlink and fail, as required by
7781 POSIX. That is better in the sense that it means we will not
7782 have to compile and use the lstat wrapper. */
7783 return lstat ("conftest.sym/", &sbuf) == 0;
7789 if ac_fn_c_try_run
"$LINENO"; then :
7790 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
7792 gl_cv_func_lstat_dereferences_slashed_symlink
=no
7794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7798 rm -f conftest.sym conftest.
file
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
7802 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7803 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
7806 cat >>confdefs.h
<<_ACEOF
7807 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7820 $as_echo_n "checking whether // is distinct from /... " >&6; }
7821 if ${gl_cv_double_slash_root+:} false
; then :
7822 $as_echo_n "(cached) " >&6
7824 if test x
"$cross_compiling" = xyes
; then
7825 # When cross-compiling, there is no way to tell whether // is special
7826 # short of a list of hosts. However, the only known hosts to date
7827 # that have a distinct // are Apollo DomainOS (too old to port to),
7828 # Cygwin, and z/OS. If anyone knows of another system for which // has
7829 # special semantics and is distinct from /, please report it to
7830 # <bug-gnulib@gnu.org>.
7832 *-cygwin | i370-ibm-openedition
)
7833 gl_cv_double_slash_root
=yes ;;
7835 # Be optimistic and assume that / and // are the same when we
7837 gl_cv_double_slash_root
='unknown, assuming no' ;;
7840 set x
`ls -di / // 2>/dev/null`
7841 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7842 gl_cv_double_slash_root
=no
7844 gl_cv_double_slash_root
=yes
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7849 $as_echo "$gl_cv_double_slash_root" >&6; }
7850 if test "$gl_cv_double_slash_root" = yes; then
7852 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7861 $as_echo_n "checking whether realpath works... " >&6; }
7862 if ${gl_cv_func_realpath_works+:} false
; then :
7863 $as_echo_n "(cached) " >&6
7866 rm -rf conftest.a conftest.d
7869 if test "$cross_compiling" = yes; then :
7871 # Guess yes on glibc systems.
7872 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7873 # Guess yes on musl systems.
7874 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7875 # Guess no on native Windows.
7876 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7877 # If we don't know, obey --enable-cross-guesses.
7878 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7888 #if defined __MACH__ && defined __APPLE__
7889 /* Avoid a crash on Mac OS X. */
7890 #include <mach/mach.h>
7891 #include <mach/mach_error.h>
7892 #include <mach/thread_status.h>
7893 #include <mach/exception.h>
7894 #include <mach/task.h>
7895 #include <pthread.h>
7896 /* The exception port on which our thread listens. */
7897 static mach_port_t our_exception_port;
7898 /* The main function of the thread listening for exceptions of type
7901 mach_exception_thread (void *arg)
7903 /* Buffer for a message to be received. */
7905 mach_msg_header_t head;
7906 mach_msg_body_t msgh_body;
7909 mach_msg_return_t retval;
7910 /* Wait for a message on the exception port. */
7911 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7912 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7913 if (retval != MACH_MSG_SUCCESS)
7920 mach_port_t self = mach_task_self ();
7921 /* Allocate a port on which the thread shall listen for exceptions. */
7922 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7924 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7925 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7926 MACH_MSG_TYPE_MAKE_SEND)
7928 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7930 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7931 /* Create the thread listening on the exception port. */
7932 pthread_attr_t attr;
7934 if (pthread_attr_init (&attr) == 0
7935 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7936 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7937 pthread_attr_destroy (&attr);
7938 /* Replace the exception port info for these exceptions with our own.
7939 Note that we replace the exception port for the entire task, not only
7940 for a particular thread. This has the effect that when our exception
7941 port gets the message, the thread specific exception port has already
7942 been asked, and we don't need to bother about it.
7943 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7944 task_set_exception_ports (self, mask, our_exception_port,
7945 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7950 #elif defined _WIN32 && ! defined __CYGWIN__
7951 /* Avoid a crash on native Windows. */
7952 #define WIN32_LEAN_AND_MEAN
7953 #include <windows.h>
7954 #include <winerror.h>
7956 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7958 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7960 case EXCEPTION_ACCESS_VIOLATION:
7961 case EXCEPTION_IN_PAGE_ERROR:
7962 case EXCEPTION_STACK_OVERFLOW:
7963 case EXCEPTION_GUARD_PAGE:
7964 case EXCEPTION_PRIV_INSTRUCTION:
7965 case EXCEPTION_ILLEGAL_INSTRUCTION:
7966 case EXCEPTION_DATATYPE_MISALIGNMENT:
7967 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7968 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7971 return EXCEPTION_CONTINUE_SEARCH;
7976 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7979 /* Avoid a crash on POSIX systems. */
7982 /* A POSIX signal handler. */
7984 exception_handler (int sig)
7992 signal (SIGSEGV, exception_handler);
7995 signal (SIGBUS, exception_handler);
8009 char *name = realpath ("conftest.a", NULL);
8010 if (!(name && *name == '/'))
8015 char *name = realpath ("conftest.b/../conftest.a", NULL);
8021 char *name = realpath ("conftest.a/", NULL);
8027 char *name1 = realpath (".", NULL);
8028 char *name2 = realpath ("conftest.d//./..", NULL);
8029 if (! name1 || ! name2 || strcmp (name1, name2))
8041 if ac_fn_c_try_run
"$LINENO"; then :
8042 gl_cv_func_realpath_works
=yes
8044 gl_cv_func_realpath_works
=no
8046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8050 rm -rf conftest.a conftest.d
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
8054 $as_echo "$gl_cv_func_realpath_works" >&6; }
8055 case "$gl_cv_func_realpath_works" in
8058 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
8073 *) for ac_func
in getcwd
8075 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
8076 if test "x$ac_cv_func_getcwd" = xyes
; then :
8077 cat >>confdefs.h
<<_ACEOF
8078 #define HAVE_GETCWD 1
8095 GNULIB_COPY_FILE_RANGE
=0;
8100 GNULIB_EUIDACCESS
=0;
8115 GNULIB_GETDOMAINNAME
=0;
8116 GNULIB_GETDTABLESIZE
=0;
8117 GNULIB_GETENTROPY
=0;
8119 GNULIB_GETHOSTNAME
=0;
8121 GNULIB_GETLOGIN_R
=0;
8122 GNULIB_GETOPT_POSIX
=0;
8123 GNULIB_GETPAGESIZE
=0;
8125 GNULIB_GETUSERSHELL
=0;
8126 GNULIB_GROUP_MEMBER
=0;
8138 GNULIB_READLINKAT
=0;
8140 GNULIB_SETHOSTNAME
=0;
8146 GNULIB_UNISTD_H_NONBLOCKING
=0;
8147 GNULIB_UNISTD_H_SIGPIPE
=0;
8152 GNULIB_MDA_ACCESS
=1;
8158 GNULIB_MDA_EXECLE
=1;
8159 GNULIB_MDA_EXECLP
=1;
8161 GNULIB_MDA_EXECVE
=1;
8162 GNULIB_MDA_EXECVP
=1;
8163 GNULIB_MDA_EXECVPE
=1;
8164 GNULIB_MDA_GETCWD
=1;
8165 GNULIB_MDA_GETPID
=1;
8166 GNULIB_MDA_ISATTY
=1;
8171 GNULIB_MDA_UNLINK
=1;
8174 HAVE_COPY_FILE_RANGE
=1;
8184 HAVE_GETDTABLESIZE
=1;
8191 HAVE_GROUP_MEMBER
=1;
8207 HAVE_DECL_ENVIRON
=1;
8208 HAVE_DECL_EXECVPE
=1;
8210 HAVE_DECL_FDATASYNC
=1;
8211 HAVE_DECL_GETDOMAINNAME
=1;
8212 HAVE_DECL_GETLOGIN
=1;
8213 HAVE_DECL_GETLOGIN_R
=1;
8214 HAVE_DECL_GETPAGESIZE
=1;
8215 HAVE_DECL_GETUSERSHELL
=1;
8216 HAVE_DECL_SETHOSTNAME
=1;
8217 HAVE_DECL_TRUNCATE
=1;
8218 HAVE_DECL_TTYNAME_R
=1;
8233 REPLACE_FACCESSAT
=0;
8235 REPLACE_FTRUNCATE
=0;
8237 REPLACE_GETDOMAINNAME
=0;
8238 REPLACE_GETDTABLESIZE
=0;
8239 REPLACE_GETLOGIN_R
=0;
8240 REPLACE_GETGROUPS
=0;
8241 REPLACE_GETPAGESIZE
=0;
8252 REPLACE_READLINKAT
=0;
8256 REPLACE_SYMLINKAT
=0;
8258 REPLACE_TTYNAME_R
=0;
8263 UNISTD_H_HAVE_SYS_RANDOM_H
=0;
8264 UNISTD_H_HAVE_WINSOCK2_H
=0;
8265 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8277 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8278 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
8280 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8283 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
8303 HAVE_DECL_FDOPENDIR
=1;
8310 REPLACE_FDOPENDIR
=0;
8319 #if defined _WIN32 && !defined __CYGWIN__
8320 #define access _access
8321 #define chdir _chdir
8322 #define chmod _chmod
8323 #define close _close
8324 #define creat _creat
8328 #define execl _execl
8329 #define execle _execle
8330 #define execlp _execlp
8331 #define execv _execv
8332 #define execve _execve
8333 #define execvp _execvp
8334 #define execvpe _execvpe
8335 #define fcloseall _fcloseall
8337 #define fdopen _fdopen
8338 #define fileno _fileno
8340 #define getcwd _getcwd
8341 #define getpid _getpid
8343 #define isatty _isatty
8347 #define lfind _lfind
8348 #define lsearch _lsearch
8349 #define lseek _lseek
8350 #define memccpy _memccpy
8351 #define mkdir _mkdir
8352 #define mktemp _mktemp
8354 #define putenv _putenv
8357 #define rmdir _rmdir
8358 #define strdup _strdup
8360 #define tempnam _tempnam
8361 #define tzset _tzset
8362 #define umask _umask
8363 #define unlink _unlink
8364 #define utime _utime
8365 #define wcsdup _wcsdup
8366 #define write _write
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8381 $as_echo_n "checking if environ is properly declared... " >&6; }
8382 if ${gt_cv_var_environ_declaration+:} false
; then :
8383 $as_echo_n "(cached) " >&6
8385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8390 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8393 extern struct { int foo; } environ;
8402 if ac_fn_c_try_compile
"$LINENO"; then :
8403 gt_cv_var_environ_declaration
=no
8405 gt_cv_var_environ_declaration
=yes
8407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8410 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8411 if test $gt_cv_var_environ_declaration = yes; then
8413 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8418 if test $gt_cv_var_environ_declaration != yes; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8425 $as_echo_n "checking for complete errno.h... " >&6; }
8426 if ${gl_cv_header_errno_h_complete+:} false
; then :
8427 $as_echo_n "(cached) " >&6
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8434 #if !defined ETXTBSY
8443 #if !defined ENOLINK
8449 #if !defined EMULTIHOP
8452 #if !defined EBADMSG
8455 #if !defined EOVERFLOW
8458 #if !defined ENOTSUP
8461 #if !defined ENETRESET
8464 #if !defined ECONNABORTED
8473 #if !defined ECANCELED
8476 #if !defined EOWNERDEAD
8479 #if !defined ENOTRECOVERABLE
8487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8488 $EGREP "booboo" >/dev
/null
2>&1; then :
8489 gl_cv_header_errno_h_complete
=no
8491 gl_cv_header_errno_h_complete
=yes
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8498 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8499 if test $gl_cv_header_errno_h_complete = yes; then
8510 if test $gl_cv_have_include_next = yes; then
8511 gl_cv_next_errno_h
='<'errno.h
'>'
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8514 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8515 if ${gl_cv_next_errno_h+:} false
; then :
8516 $as_echo_n "(cached) " >&6
8521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8526 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8527 *) gl_absname_cpp
="$ac_cpp" ;;
8532 gl_dirsep_regex
='[/\\]'
8535 gl_dirsep_regex
='\/'
8538 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8539 gl_header_literal_regex
=`echo 'errno.h' \
8540 | sed -e "$gl_make_literal_regex_sed"`
8541 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8542 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8548 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8549 sed -n "$gl_absolute_header_sed"`
8551 gl_header
=$gl_cv_absolute_errno_h
8552 gl_cv_next_errno_h
='"'$gl_header'"'
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8557 $as_echo "$gl_cv_next_errno_h" >&6; }
8559 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8561 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8563 gl_next_as_first_directive
='<'errno.h
'>'
8565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8566 gl_next_as_first_directive
=$gl_cv_next_errno_h
8568 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8576 if test -n "$ERRNO_H"; then
8577 GL_GENERATE_ERRNO_H_TRUE
=
8578 GL_GENERATE_ERRNO_H_FALSE
='#'
8580 GL_GENERATE_ERRNO_H_TRUE
='#'
8581 GL_GENERATE_ERRNO_H_FALSE
=
8585 if test -n "$ERRNO_H"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8587 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8588 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8589 $as_echo_n "(cached) " >&6
8592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602 $EGREP "yes" >/dev
/null
2>&1; then :
8603 gl_cv_header_errno_h_EMULTIHOP
=yes
8605 gl_cv_header_errno_h_EMULTIHOP
=no
8609 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8613 #define _XOPEN_SOURCE_EXTENDED 1
8620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8621 $EGREP "yes" >/dev
/null
2>&1; then :
8622 gl_cv_header_errno_h_EMULTIHOP
=hidden
8626 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8627 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8628 #define _XOPEN_SOURCE_EXTENDED 1
8630 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8642 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8643 case $gl_cv_header_errno_h_EMULTIHOP in
8645 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8648 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8656 if test -n "$ERRNO_H"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8658 $as_echo_n "checking for ENOLINK value... " >&6; }
8659 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8660 $as_echo_n "(cached) " >&6
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8673 $EGREP "yes" >/dev
/null
2>&1; then :
8674 gl_cv_header_errno_h_ENOLINK
=yes
8676 gl_cv_header_errno_h_ENOLINK
=no
8680 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8684 #define _XOPEN_SOURCE_EXTENDED 1
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "yes" >/dev
/null
2>&1; then :
8693 gl_cv_header_errno_h_ENOLINK
=hidden
8697 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8698 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8699 #define _XOPEN_SOURCE_EXTENDED 1
8701 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8713 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8714 case $gl_cv_header_errno_h_ENOLINK in
8716 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8719 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8727 if test -n "$ERRNO_H"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8729 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8730 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8731 $as_echo_n "(cached) " >&6
8734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744 $EGREP "yes" >/dev
/null
2>&1; then :
8745 gl_cv_header_errno_h_EOVERFLOW
=yes
8747 gl_cv_header_errno_h_EOVERFLOW
=no
8751 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8755 #define _XOPEN_SOURCE_EXTENDED 1
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "yes" >/dev
/null
2>&1; then :
8764 gl_cv_header_errno_h_EOVERFLOW
=hidden
8768 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8769 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8770 #define _XOPEN_SOURCE_EXTENDED 1
8772 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8784 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8785 case $gl_cv_header_errno_h_EOVERFLOW in
8787 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8790 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8798 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8799 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8805 cat >>confdefs.h
<<_ACEOF
8806 #define HAVE_DECL_STRERROR_R $ac_have_decl
8809 for ac_func
in strerror_r
8811 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8812 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8813 cat >>confdefs.h
<<_ACEOF
8814 #define HAVE_STRERROR_R 1
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8821 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8822 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8823 $as_echo_n "(cached) " >&6
8826 ac_cv_func_strerror_r_char_p
=no
8827 if test $ac_cv_have_decl_strerror_r = yes; then
8828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 $ac_includes_default
8836 char x = *strerror_r (0, buf, sizeof buf);
8837 char *p = strerror_r (0, buf, sizeof buf);
8844 if ac_fn_c_try_compile
"$LINENO"; then :
8845 ac_cv_func_strerror_r_char_p
=yes
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8849 # strerror_r is not declared. Choose between
8850 # systems that have relatively inaccessible declarations for the
8851 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8852 # former has a strerror_r that returns char*, while the latter
8853 # has a strerror_r that returns `int'.
8854 # This test should segfault on the DEC system.
8855 if test "$cross_compiling" = yes; then :
8858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 $ac_includes_default
8861 extern char *strerror_r ();
8866 char x = *strerror_r (0, buf, sizeof buf);
8867 return ! isalpha (x);
8872 if ac_fn_c_try_run
"$LINENO"; then :
8873 ac_cv_func_strerror_r_char_p
=yes
8875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8883 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8884 if test $ac_cv_func_strerror_r_char_p = yes; then
8886 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8893 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8894 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8900 cat >>confdefs.h
<<_ACEOF
8901 #define HAVE_DECL_FCHDIR $ac_have_decl
8907 GNULIB_NONBLOCKING
=0;
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8929 $as_echo_n "checking for working fcntl.h... " >&6; }
8930 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8931 $as_echo_n "(cached) " >&6
8933 if test "$cross_compiling" = yes; then :
8935 # Guess 'no' on native Windows.
8936 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8937 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <sys/types.h>
8944 #include <sys/stat.h>
8946 # include <unistd.h>
8947 #else /* on Windows with MSVC */
8949 # include <stdlib.h>
8950 # defined sleep(n) _sleep ((n) * 1000)
8961 #define O_NOFOLLOW 0
8963 static int const constants[] =
8965 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8966 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8973 int result = !constants;
8976 static char const sym[] = "conftest.sym";
8977 if (symlink ("/dev/null", sym) != 0)
8981 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8988 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8992 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9003 static char const file[] = "confdefs.h";
9004 int fd = open (file, O_RDONLY | O_NOATIME);
9010 if (fstat (fd, &st0) != 0)
9016 if (read (fd, &c, 1) != 1)
9020 if (close (fd) != 0)
9025 if (stat (file, &st1) != 0)
9028 if (st0.st_atime != st1.st_atime)
9040 if ac_fn_c_try_run
"$LINENO"; then :
9041 gl_cv_header_working_fcntl_h
=yes
9044 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
9045 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
9046 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9047 *) gl_cv_header_working_fcntl_h
='no';;
9050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9057 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9059 case $gl_cv_header_working_fcntl_h in #(
9060 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
9064 cat >>confdefs.h
<<_ACEOF
9065 #define HAVE_WORKING_O_NOATIME $ac_val
9069 case $gl_cv_header_working_fcntl_h in #(
9070 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
9074 cat >>confdefs.h
<<_ACEOF
9075 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9080 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9082 if test "x$ac_cv_type_pid_t" = xyes
; then :
9085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9088 #if defined _WIN64 && !defined __CYGWIN__
9101 if ac_fn_c_try_compile
"$LINENO"; then :
9104 gl_pid_type
='__int64'
9106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9108 cat >>confdefs.h
<<_ACEOF
9109 #define pid_t $gl_pid_type
9116 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9117 if test "x$ac_cv_type_mode_t" = xyes
; then :
9121 cat >>confdefs.h
<<_ACEOF
9151 if test $gl_cv_have_include_next = yes; then
9152 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
9155 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
9156 if ${gl_cv_next_fnmatch_h+:} false
; then :
9157 $as_echo_n "(cached) " >&6
9160 if test $ac_cv_header_fnmatch_h = yes; then
9165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 #include <fnmatch.h>
9170 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9171 *) gl_absname_cpp
="$ac_cpp" ;;
9176 gl_dirsep_regex
='[/\\]'
9179 gl_dirsep_regex
='\/'
9182 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9183 gl_header_literal_regex
=`echo 'fnmatch.h' \
9184 | sed -e "$gl_make_literal_regex_sed"`
9185 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9186 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9192 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9193 sed -n "$gl_absolute_header_sed"`
9195 gl_header
=$gl_cv_absolute_fnmatch_h
9196 gl_cv_next_fnmatch_h
='"'$gl_header'"'
9198 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
9204 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
9206 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
9208 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9210 gl_next_as_first_directive
='<'fnmatch.h
'>'
9212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9213 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
9215 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
9223 if test $ac_cv_header_fnmatch_h = yes; then
9234 if test $ac_cv_header_fnmatch_h != yes; then
9240 if test -n "$FNMATCH_H"; then
9241 GL_GENERATE_FNMATCH_H_TRUE
=
9242 GL_GENERATE_FNMATCH_H_FALSE
='#'
9244 GL_GENERATE_FNMATCH_H_TRUE
='#'
9245 GL_GENERATE_FNMATCH_H_FALSE
=
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
9258 $as_echo_n "checking for mbstate_t... " >&6; }
9259 if ${ac_cv_type_mbstate_t+:} false
; then :
9260 $as_echo_n "(cached) " >&6
9262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 $ac_includes_default
9269 mbstate_t x; return sizeof x;
9274 if ac_fn_c_try_compile
"$LINENO"; then :
9275 ac_cv_type_mbstate_t
=yes
9277 ac_cv_type_mbstate_t
=no
9279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
9282 $as_echo "$ac_cv_type_mbstate_t" >&6; }
9283 if test $ac_cv_type_mbstate_t = yes; then
9285 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
9289 $as_echo "#define mbstate_t int" >>confdefs.h
9371 GNULIB_REMAINDERF
=0;
9372 GNULIB_REMAINDERL
=0;
9464 HAVE_DECL_COPYSIGNF
=1;
9481 HAVE_DECL_REMAINDER
=1;
9482 HAVE_DECL_REMAINDERL
=1;
9554 REPLACE_REMAINDER
=0;
9555 REPLACE_REMAINDERF
=0;
9556 REPLACE_REMAINDERL
=0;
9562 REPLACE_SIGNBIT_USING_BUILTINS
=0;
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9575 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9576 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9577 $as_echo_n "(cached) " >&6
9580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9587 int e; return frexp (x, &e) > 0;
9592 if ac_fn_c_try_link
"$LINENO"; then :
9593 gl_cv_func_frexp_no_libm
=yes
9595 gl_cv_func_frexp_no_libm
=no
9597 rm -f core conftest.err conftest.
$ac_objext \
9598 conftest
$ac_exeext conftest.
$ac_ext
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9602 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9604 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9605 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9611 cat >>confdefs.h
<<_ACEOF
9612 #define HAVE_DECL_ALARM $ac_have_decl
9619 if test $gl_cv_func_frexp_no_libm = no
; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9621 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9622 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9623 $as_echo_n "(cached) " >&6
9628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9635 int e; return frexp (x, &e) > 0;
9640 if ac_fn_c_try_link
"$LINENO"; then :
9641 gl_cv_func_frexp_in_libm
=yes
9643 gl_cv_func_frexp_in_libm
=no
9645 rm -f core conftest.err conftest.
$ac_objext \
9646 conftest
$ac_exeext conftest.
$ac_ext
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9651 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9652 if test $gl_cv_func_frexp_in_libm = yes; then
9656 if test $gl_cv_func_frexp_no_libm = yes \
9657 ||
test $gl_cv_func_frexp_in_libm = yes; then
9659 LIBS
="$LIBS $FREXP_LIBM"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9664 $as_echo_n "checking whether frexp works... " >&6; }
9665 if ${gl_cv_func_frexp_works+:} false
; then :
9666 $as_echo_n "(cached) " >&6
9669 if test "$cross_compiling" = yes; then :
9671 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9672 mingw
*) # Guess yes with MSVC, no with mingw.
9673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9682 $EGREP "Good" >/dev
/null
2>&1; then :
9683 gl_cv_func_frexp_works
="guessing yes"
9685 gl_cv_func_frexp_works
="guessing no"
9690 *) gl_cv_func_frexp_works
="guessing yes" ;;
9694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9701 # include <signal.h>
9702 # include <unistd.h>
9704 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9705 ICC 10.0 has a bug when optimizing the expression -zero.
9706 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9707 to PowerPC on Mac OS X 10.5. */
9708 #if defined __hpux || defined __sgi || defined __ICC
9710 compute_minus_zero (void)
9712 return -DBL_MIN * DBL_MIN;
9714 # define minus_zero compute_minus_zero ()
9716 double minus_zero = -0.0;
9725 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9726 number. Let the test fail in this case. */
9727 signal (SIGALRM, SIG_DFL);
9730 /* Test on denormalized numbers. */
9731 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9736 double y = frexp (x, &exp);
9737 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9738 On NetBSD: y = 0.75. Correct: y = 0.5. */
9742 /* Test on infinite numbers. */
9746 double y = frexp (x, &exp);
9750 /* Test on negative zero. */
9754 double y = frexp (x, &exp);
9755 if (memcmp (&y, &x, sizeof x))
9761 if ac_fn_c_try_run
"$LINENO"; then :
9762 gl_cv_func_frexp_works
=yes
9764 gl_cv_func_frexp_works
=no
9766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9773 $as_echo "$gl_cv_func_frexp_works" >&6; }
9776 case "$gl_cv_func_frexp_works" in
9777 *yes) gl_func_frexp
=yes ;;
9778 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9783 if test $gl_func_frexp = yes; then
9785 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9792 $as_echo_n "checking whether long double and double are the same... " >&6; }
9793 if ${gl_cv_long_double_equals_double+:} false
; then :
9794 $as_echo_n "(cached) " >&6
9796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9802 typedef int check[sizeof (long double) == sizeof (double)
9803 && LDBL_MANT_DIG == DBL_MANT_DIG
9804 && LDBL_MAX_EXP == DBL_MAX_EXP
9805 && LDBL_MIN_EXP == DBL_MIN_EXP
9812 if ac_fn_c_try_compile
"$LINENO"; then :
9813 gl_cv_long_double_equals_double
=yes
9815 gl_cv_long_double_equals_double
=no
9817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9821 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9822 if test $gl_cv_long_double_equals_double = yes; then
9824 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9826 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9828 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9838 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9840 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9848 if test $HAVE_DECL_FREXPL = 1; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9851 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9852 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9853 $as_echo_n "(cached) " >&6
9856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9863 int e; return frexpl (x, &e) > 0;
9868 if ac_fn_c_try_link
"$LINENO"; then :
9869 gl_cv_func_frexpl_no_libm
=yes
9871 gl_cv_func_frexpl_no_libm
=no
9873 rm -f core conftest.err conftest.
$ac_objext \
9874 conftest
$ac_exeext conftest.
$ac_ext
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9878 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9880 if test $gl_cv_func_frexpl_no_libm = no
; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9882 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9883 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9884 $as_echo_n "(cached) " >&6
9889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9896 int e; return frexpl (x, &e) > 0;
9901 if ac_fn_c_try_link
"$LINENO"; then :
9902 gl_cv_func_frexpl_in_libm
=yes
9904 gl_cv_func_frexpl_in_libm
=no
9906 rm -f core conftest.err conftest.
$ac_objext \
9907 conftest
$ac_exeext conftest.
$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9912 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9913 if test $gl_cv_func_frexpl_in_libm = yes; then
9917 if test $gl_cv_func_frexpl_no_libm = yes \
9918 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9920 LIBS
="$LIBS $FREXPL_LIBM"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9924 $as_echo_n "checking whether frexpl works... " >&6; }
9925 if ${gl_cv_func_frexpl_works+:} false
; then :
9926 $as_echo_n "(cached) " >&6
9929 if test "$cross_compiling" = yes; then :
9932 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9933 gl_cv_func_frexpl_works
="guessing no";;
9934 *) gl_cv_func_frexpl_works
="guessing yes";;
9938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9943 /* Override the values of <float.h>, like done in float.in.h. */
9944 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9945 # undef LDBL_MIN_EXP
9946 # define LDBL_MIN_EXP (-16381)
9948 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9949 # undef LDBL_MIN_EXP
9950 # define LDBL_MIN_EXP (-16381)
9952 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9953 # undef LDBL_MIN_EXP
9954 # define LDBL_MIN_EXP DBL_MIN_EXP
9956 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9957 # if defined __GNUC__
9958 # undef LDBL_MIN_EXP
9959 # define LDBL_MIN_EXP DBL_MIN_EXP
9966 long double frexpl (long double, int *);
9967 long double zero = 0.0L;
9971 volatile long double x;
9972 /* Test on finite numbers that fails on AIX 5.1. */
9980 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9981 function returns an invalid (incorrectly normalized) value: it returns
9982 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9983 but the correct result is
9984 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9988 long double y = frexpl (x, &exp);
9989 if (!(exp == 1 && y == 0.505L))
9992 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9993 LDBL_MAX_EXP = 16384.
9994 In the loop end test, we test x against Infinity, rather than comparing
9995 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9998 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10009 /* Test on denormalized numbers. */
10012 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10017 long double y = frexpl (x, &exp);
10018 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10019 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10020 if (exp != LDBL_MIN_EXP - 1)
10024 /* Test on infinite numbers. */
10025 /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
10029 long double y = frexpl (x, &exp);
10036 if ac_fn_c_try_run
"$LINENO"; then :
10037 gl_cv_func_frexpl_works
=yes
10039 gl_cv_func_frexpl_works
=no
10041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10048 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10051 case "$gl_cv_func_frexpl_works" in
10052 *yes) gl_func_frexpl
=yes ;;
10053 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
10058 if test $gl_func_frexpl = yes; then
10060 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10064 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
10065 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10067 FREXPL_LIBM
="$FREXP_LIBM"
10089 GNULIB_UTIMENSAT
=0;
10090 GNULIB_OVERRIDES_STRUCT_STAT
=0;
10091 GNULIB_MDA_CHMOD
=1;
10092 GNULIB_MDA_MKDIR
=1;
10093 GNULIB_MDA_UMASK
=1;
10106 REPLACE_FCHMODAT
=0;
10109 REPLACE_FUTIMENS
=0;
10113 REPLACE_MKFIFOAT
=0;
10117 REPLACE_UTIMENSAT
=0;
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10120 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10121 if ${ac_cv_header_stat_broken+:} false
; then :
10122 $as_echo_n "(cached) " >&6
10124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 #include <sys/types.h>
10127 #include <sys/stat.h>
10129 #if defined S_ISBLK && defined S_IFDIR
10130 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10133 #if defined S_ISBLK && defined S_IFCHR
10134 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10137 #if defined S_ISLNK && defined S_IFREG
10138 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10141 #if defined S_ISSOCK && defined S_IFREG
10142 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10146 if ac_fn_c_try_compile
"$LINENO"; then :
10147 ac_cv_header_stat_broken
=no
10149 ac_cv_header_stat_broken
=yes
10151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10154 $as_echo "$ac_cv_header_stat_broken" >&6; }
10155 if test $ac_cv_header_stat_broken = yes; then
10157 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10168 $as_echo_n "checking for 64-bit off_t... " >&6; }
10169 if ${gl_cv_type_off_t_64+:} false
; then :
10170 $as_echo_n "(cached) " >&6
10172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 #include <sys/types.h>
10175 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10185 if ac_fn_c_try_compile
"$LINENO"; then :
10186 gl_cv_type_off_t_64
=yes
10188 gl_cv_type_off_t_64
=no
10190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10194 $as_echo "$gl_cv_type_off_t_64" >&6; }
10195 if test $gl_cv_type_off_t_64 = no
; then
10196 WINDOWS_64_BIT_OFF_T
=1
10198 WINDOWS_64_BIT_OFF_T
=0
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10201 $as_echo_n "checking for 64-bit st_size... " >&6; }
10202 if ${gl_cv_member_st_size_64+:} false
; then :
10203 $as_echo_n "(cached) " >&6
10205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 #include <sys/types.h>
10209 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10219 if ac_fn_c_try_compile
"$LINENO"; then :
10220 gl_cv_member_st_size_64
=yes
10222 gl_cv_member_st_size_64
=no
10224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10228 $as_echo "$gl_cv_member_st_size_64" >&6; }
10229 if test $gl_cv_member_st_size_64 = no
; then
10230 WINDOWS_64_BIT_ST_SIZE
=1
10232 WINDOWS_64_BIT_ST_SIZE
=0
10236 WINDOWS_64_BIT_OFF_T
=0
10237 WINDOWS_64_BIT_ST_SIZE
=0
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10242 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10243 if ${ac_cv_c_restrict+:} false
; then :
10244 $as_echo_n "(cached) " >&6
10246 ac_cv_c_restrict
=no
10247 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
10248 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
10249 # Put 'restrict' last, because C++ lacks it.
10250 for ac_kw
in __restrict__ __restrict _Restrict restrict
; do
10251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 typedef int *int_ptr;
10254 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10255 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10256 int bar (int ip[$ac_kw]) { return ip[0]; }
10264 return foo (t) + bar (t);
10270 if ac_fn_c_try_compile
"$LINENO"; then :
10271 ac_cv_c_restrict
=$ac_kw
10273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10274 test "$ac_cv_c_restrict" != no
&& break
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10279 $as_echo "$ac_cv_c_restrict" >&6; }
10281 case $ac_cv_c_restrict in
10283 no
) $as_echo "#define restrict /**/" >>confdefs.h
10285 *) cat >>confdefs.h
<<_ACEOF
10286 #define restrict $ac_cv_c_restrict
10305 if test $gl_cv_have_include_next = yes; then
10306 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10309 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10310 if ${gl_cv_next_sys_stat_h+:} false
; then :
10311 $as_echo_n "(cached) " >&6
10314 if test $ac_cv_header_sys_stat_h = yes; then
10319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321 #include <sys/stat.h>
10324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10325 *) gl_absname_cpp
="$ac_cpp" ;;
10330 gl_dirsep_regex
='[/\\]'
10333 gl_dirsep_regex
='\/'
10336 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10337 gl_header_literal_regex
=`echo 'sys/stat.h' \
10338 | sed -e "$gl_make_literal_regex_sed"`
10339 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10340 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10346 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10347 sed -n "$gl_absolute_header_sed"`
10349 gl_header
=$gl_cv_absolute_sys_stat_h
10350 gl_cv_next_sys_stat_h
='"'$gl_header'"'
10352 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10358 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10360 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
10362 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10364 gl_next_as_first_directive
='<'sys
/stat.h
'>'
10366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10367 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
10369 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
10378 WINDOWS_STAT_TIMESPEC
=0
10387 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10388 #include <sys/stat.h>
10390 if test "x$ac_cv_type_nlink_t" = xyes
; then :
10394 $as_echo "#define nlink_t int" >>confdefs.h
10409 for ac_header
in sdkddkver.h
10411 ac_fn_c_check_header_mongrel
"$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
10412 if test "x$ac_cv_header_sdkddkver_h" = xyes
; then :
10413 cat >>confdefs.h
<<_ACEOF
10414 #define HAVE_SDKDDKVER_H 1
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10429 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
10430 if ${gl_cv_func_getcwd_null+:} false
; then :
10431 $as_echo_n "(cached) " >&6
10433 if test "$cross_compiling" = yes; then :
10435 # Guess yes on glibc systems.
10436 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
10437 # Guess yes on musl systems.
10438 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
10439 # Guess yes on Cygwin.
10440 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
10441 # If we don't know, obey --enable-cross-guesses.
10442 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
10446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 # include <stdlib.h>
10451 # include <unistd.h>
10452 # else /* on Windows with MSVC */
10453 # include <direct.h>
10467 #if defined _WIN32 && ! defined __CYGWIN__
10468 /* mingw cwd does not start with '/', but _getcwd does allocate.
10469 However, mingw fails to honor non-zero size. */
10471 if (chdir ("/") != 0)
10475 char *f = getcwd (NULL, 0);
10479 { free (f); return 3; }
10481 { free (f); return 4; }
10491 if ac_fn_c_try_run
"$LINENO"; then :
10492 gl_cv_func_getcwd_null
=yes
10494 gl_cv_func_getcwd_null
=no
10496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
10502 $as_echo "$gl_cv_func_getcwd_null" >&6; }
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
10506 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
10507 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
10508 $as_echo_n "(cached) " >&6
10510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 #include <unistd.h>
10524 char *getcwd (char *, size_t);
10531 if ac_fn_c_try_compile
"$LINENO"; then :
10532 gl_cv_func_getcwd_posix_signature
=yes
10534 gl_cv_func_getcwd_posix_signature
=no
10536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
10540 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
10542 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
10543 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
10549 cat >>confdefs.h
<<_ACEOF
10550 #define HAVE_DECL_GETCWD $ac_have_decl
10562 GNULIB_FPRINTF_POSIX
=0;
10578 GNULIB_OBSTACK_PRINTF
=0;
10579 GNULIB_OBSTACK_PRINTF_POSIX
=0;
10584 GNULIB_PRINTF_POSIX
=0;
10593 GNULIB_SPRINTF_POSIX
=0;
10594 GNULIB_STDIO_H_NONBLOCKING
=0;
10595 GNULIB_STDIO_H_SIGPIPE
=0;
10597 GNULIB_VASPRINTF
=0;
10602 GNULIB_VFPRINTF_POSIX
=0;
10604 GNULIB_VPRINTF_POSIX
=0;
10605 GNULIB_VSNPRINTF
=0;
10606 GNULIB_VSPRINTF_POSIX
=0;
10607 GNULIB_MDA_FCLOSEALL
=1;
10608 GNULIB_MDA_FDOPEN
=1;
10609 GNULIB_MDA_FILENO
=1;
10612 GNULIB_MDA_TEMPNAM
=1;
10613 HAVE_DECL_FCLOSEALL
=1;
10614 HAVE_DECL_FPURGE
=1;
10615 HAVE_DECL_FSEEKO
=1;
10616 HAVE_DECL_FTELLO
=1;
10617 HAVE_DECL_GETDELIM
=1;
10618 HAVE_DECL_GETLINE
=1;
10619 HAVE_DECL_OBSTACK_PRINTF
=1;
10620 HAVE_DECL_SNPRINTF
=1;
10621 HAVE_DECL_VSNPRINTF
=1;
10642 REPLACE_GETDELIM
=0;
10644 REPLACE_OBSTACK_PRINTF
=0;
10650 REPLACE_RENAMEAT
=0;
10651 REPLACE_SNPRINTF
=0;
10653 REPLACE_STDIO_READ_FUNCS
=0;
10654 REPLACE_STDIO_WRITE_FUNCS
=0;
10656 REPLACE_VASPRINTF
=0;
10657 REPLACE_VDPRINTF
=0;
10658 REPLACE_VFPRINTF
=0;
10660 REPLACE_VSNPRINTF
=0;
10661 REPLACE_VSPRINTF
=0;
10663 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
10664 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
10670 cat >>confdefs.h
<<_ACEOF
10671 #define HAVE_DECL_GETDELIM $ac_have_decl
10678 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
10679 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
10685 cat >>confdefs.h
<<_ACEOF
10686 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
10689 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
10690 if test "x$ac_cv_have_decl_getline" = xyes
; then :
10696 cat >>confdefs.h
<<_ACEOF
10697 #define HAVE_DECL_GETLINE $ac_have_decl
10700 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
10701 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10707 cat >>confdefs.h
<<_ACEOF
10708 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10713 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10714 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10720 cat >>confdefs.h
<<_ACEOF
10721 #define HAVE_DECL_GETLOGIN $ac_have_decl
10728 LIB_GETLOGIN
='-ladvapi32' ;;
10739 GNULIB_GETRANDOM
=0;
10741 REPLACE_GETRANDOM
=0;
10746 GNULIB_GETTIMEOFDAY
=0;
10747 HAVE_GETTIMEOFDAY
=1;
10748 HAVE_STRUCT_TIMEVAL
=1;
10750 REPLACE_GETTIMEOFDAY
=0;
10751 REPLACE_STRUCT_TIMEVAL
=0;
10768 if test $gl_cv_have_include_next = yes; then
10769 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10772 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10773 if ${gl_cv_next_sys_time_h+:} false
; then :
10774 $as_echo_n "(cached) " >&6
10777 if test $ac_cv_header_sys_time_h = yes; then
10782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <sys/time.h>
10787 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10788 *) gl_absname_cpp
="$ac_cpp" ;;
10793 gl_dirsep_regex
='[/\\]'
10796 gl_dirsep_regex
='\/'
10799 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10800 gl_header_literal_regex
=`echo 'sys/time.h' \
10801 | sed -e "$gl_make_literal_regex_sed"`
10802 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10803 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10809 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10810 sed -n "$gl_absolute_header_sed"`
10812 gl_header
=$gl_cv_absolute_sys_time_h
10813 gl_cv_next_sys_time_h
='"'$gl_header'"'
10815 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10821 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10823 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10825 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10826 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10827 gl_next_as_first_directive
='<'sys
/time.h
'>'
10829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10830 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10832 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10838 if test $ac_cv_header_sys_time_h != yes; then
10846 if test $ac_cv_header_sys_socket_h != yes; then
10847 for ac_header
in winsock2.h
10849 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10850 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10851 cat >>confdefs.h
<<_ACEOF
10852 #define HAVE_WINSOCK2_H 1
10860 if test "$ac_cv_header_winsock2_h" = yes; then
10862 UNISTD_H_HAVE_WINSOCK2_H
=1
10863 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10870 $as_echo_n "checking for struct timeval... " >&6; }
10871 if ${gl_cv_sys_struct_timeval+:} false
; then :
10872 $as_echo_n "(cached) " >&6
10874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10876 #if HAVE_SYS_TIME_H
10877 #include <sys/time.h>
10880 #if HAVE_WINSOCK2_H
10881 # include <winsock2.h>
10887 static struct timeval x; x.tv_sec = x.tv_usec;
10892 if ac_fn_c_try_compile
"$LINENO"; then :
10893 gl_cv_sys_struct_timeval
=yes
10895 gl_cv_sys_struct_timeval
=no
10897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10901 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10902 if test $gl_cv_sys_struct_timeval != yes; then
10903 HAVE_STRUCT_TIMEVAL
=0
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10906 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10907 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10908 $as_echo_n "(cached) " >&6
10910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #if HAVE_SYS_TIME_H
10913 #include <sys/time.h>
10916 #if HAVE_WINSOCK2_H
10917 # include <winsock2.h>
10923 static struct timeval x;
10924 typedef int verify_tv_sec_type[
10925 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10932 if ac_fn_c_try_compile
"$LINENO"; then :
10933 gl_cv_sys_struct_timeval_tv_sec
=yes
10935 gl_cv_sys_struct_timeval_tv_sec
=no
10937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10941 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10942 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10943 REPLACE_STRUCT_TIMEVAL
=1
10959 HAVE_GLOB_PATTERN_P
=1;
10961 REPLACE_GLOB_PATTERN_P
=0;
10979 if test $gl_cv_have_include_next = yes; then
10980 gl_cv_next_glob_h
='<'glob.h
'>'
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10983 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10984 if ${gl_cv_next_glob_h+:} false
; then :
10985 $as_echo_n "(cached) " >&6
10988 if test $ac_cv_header_glob_h = yes; then
10993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10998 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10999 *) gl_absname_cpp
="$ac_cpp" ;;
11004 gl_dirsep_regex
='[/\\]'
11007 gl_dirsep_regex
='\/'
11010 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11011 gl_header_literal_regex
=`echo 'glob.h' \
11012 | sed -e "$gl_make_literal_regex_sed"`
11013 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11014 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11020 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11021 sed -n "$gl_absolute_header_sed"`
11023 gl_header
=$gl_cv_absolute_glob_h
11024 gl_cv_next_glob_h
='"'$gl_header'"'
11026 gl_cv_next_glob_h
='<'glob.h
'>'
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
11032 $as_echo "$gl_cv_next_glob_h" >&6; }
11034 NEXT_GLOB_H
=$gl_cv_next_glob_h
11036 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11037 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11038 gl_next_as_first_directive
='<'glob.h
'>'
11040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11041 gl_next_as_first_directive
=$gl_cv_next_glob_h
11043 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
11049 if test $ac_cv_header_glob_h = yes; then
11060 if test $ac_cv_header_glob_h != yes; then
11066 if test -n "$GLOB_H"; then
11067 GL_GENERATE_GLOB_H_TRUE
=
11068 GL_GENERATE_GLOB_H_FALSE
='#'
11070 GL_GENERATE_GLOB_H_TRUE
='#'
11071 GL_GENERATE_GLOB_H_FALSE
=
11089 if test -z "$gl_pthreadlib_body_done"; then
11093 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
11094 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
11095 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11097 gl_have_pthread_h
=yes
11099 gl_have_pthread_h
=no
11103 if test "$gl_have_pthread_h" = yes; then
11104 # Other possible tests:
11105 # -lpthreads (FSU threads, PCthreads)
11107 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
11108 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
11109 # the second one only in libpthread, and lock.c needs it.
11111 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
11112 # needs -pthread for some reason. See:
11113 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
11115 for gl_pthread
in '' '-pthread'; do
11116 LIBS
="$LIBS $gl_pthread"
11117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119 #include <pthread.h>
11121 pthread_mutexattr_t ma;
11126 pthread_mutex_lock (&m);
11127 pthread_mutexattr_init (&ma);
11132 if ac_fn_c_try_link
"$LINENO"; then :
11134 LIBPTHREAD
=$gl_pthread
11135 LIBPMULTITHREAD
=$gl_pthread
11137 rm -f core conftest.err conftest.
$ac_objext \
11138 conftest
$ac_exeext conftest.
$ac_ext
11140 test $gl_pthread_api = yes && break
11143 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11144 # since it is defined as a macro on OSF/1.)
11145 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
11146 # The program links fine without libpthread. But it may actually
11147 # need to link with libpthread in order to create multiple threads.
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11149 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11150 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11151 $as_echo_n "(cached) " >&6
11153 ac_check_lib_save_LIBS
=$LIBS
11154 LIBS
="-lpthread $LIBS"
11155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11164 char pthread_kill ();
11168 return pthread_kill ();
11173 if ac_fn_c_try_link
"$LINENO"; then :
11174 ac_cv_lib_pthread_pthread_kill
=yes
11176 ac_cv_lib_pthread_pthread_kill
=no
11178 rm -f core conftest.err conftest.
$ac_objext \
11179 conftest
$ac_exeext conftest.
$ac_ext
11180 LIBS
=$ac_check_lib_save_LIBS
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11183 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11184 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11185 LIBPMULTITHREAD
=-lpthread
11186 # On Solaris and HP-UX, most pthread functions exist also in libc.
11187 # Therefore pthread_in_use() needs to actually try to create a
11188 # thread: pthread_create from libc will fail, whereas
11189 # pthread_create will actually create a thread.
11190 # On Solaris 10 or newer, this test is no longer needed, because
11191 # libc contains the fully functional pthread functions.
11193 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
11195 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11201 elif test $gl_pthread_api != yes; then
11202 # Some library is needed. Try libpthread and libc_r.
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11204 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11205 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11206 $as_echo_n "(cached) " >&6
11208 ac_check_lib_save_LIBS
=$LIBS
11209 LIBS
="-lpthread $LIBS"
11210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11219 char pthread_kill ();
11223 return pthread_kill ();
11228 if ac_fn_c_try_link
"$LINENO"; then :
11229 ac_cv_lib_pthread_pthread_kill
=yes
11231 ac_cv_lib_pthread_pthread_kill
=no
11233 rm -f core conftest.err conftest.
$ac_objext \
11234 conftest
$ac_exeext conftest.
$ac_ext
11235 LIBS
=$ac_check_lib_save_LIBS
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11238 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11239 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11241 LIBPTHREAD
=-lpthread
11242 LIBPMULTITHREAD
=-lpthread
11245 if test $gl_pthread_api != yes; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11248 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11249 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
11250 $as_echo_n "(cached) " >&6
11252 ac_check_lib_save_LIBS
=$LIBS
11254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11263 char pthread_kill ();
11267 return pthread_kill ();
11272 if ac_fn_c_try_link
"$LINENO"; then :
11273 ac_cv_lib_c_r_pthread_kill
=yes
11275 ac_cv_lib_c_r_pthread_kill
=no
11277 rm -f core conftest.err conftest.
$ac_objext \
11278 conftest
$ac_exeext conftest.
$ac_ext
11279 LIBS
=$ac_check_lib_save_LIBS
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
11282 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11283 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
11286 LIBPMULTITHREAD
=-lc_r
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
11293 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
11295 $as_echo "$gl_pthread_api" >&6; }
11298 if test $gl_pthread_api = yes; then
11300 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
11304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11315 if ac_fn_c_try_link
"$LINENO"; then :
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
11320 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
11321 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
11322 $as_echo_n "(cached) " >&6
11324 ac_check_lib_save_LIBS
=$LIBS
11326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11335 char sched_yield ();
11339 return sched_yield ();
11344 if ac_fn_c_try_link
"$LINENO"; then :
11345 ac_cv_lib_rt_sched_yield
=yes
11347 ac_cv_lib_rt_sched_yield
=no
11349 rm -f core conftest.err conftest.
$ac_objext \
11350 conftest
$ac_exeext conftest.
$ac_ext
11351 LIBS
=$ac_check_lib_save_LIBS
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
11354 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
11355 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
11356 LIB_SCHED_YIELD
=-lrt
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
11359 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
11360 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
11361 $as_echo_n "(cached) " >&6
11363 ac_check_lib_save_LIBS
=$LIBS
11364 LIBS
="-lposix4 $LIBS"
11365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11374 char sched_yield ();
11378 return sched_yield ();
11383 if ac_fn_c_try_link
"$LINENO"; then :
11384 ac_cv_lib_posix4_sched_yield
=yes
11386 ac_cv_lib_posix4_sched_yield
=no
11388 rm -f core conftest.err conftest.
$ac_objext \
11389 conftest
$ac_exeext conftest.
$ac_ext
11390 LIBS
=$ac_check_lib_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
11393 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
11394 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
11395 LIB_SCHED_YIELD
=-lposix4
11402 rm -f core conftest.err conftest.
$ac_objext \
11403 conftest
$ac_exeext conftest.
$ac_ext
11406 gl_pthreadlib_body_done
=done
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
11418 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
11419 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
11420 $as_echo_n "(cached) " >&6
11423 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
11424 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
11425 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
11426 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
11427 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
11428 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
11429 # If we don't know, obey --enable-cross-guesses.
11431 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
11436 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
11440 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11441 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
11445 case "$gl_cv_func_setlocale_null_all_mtsafe" in
11446 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
11447 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
11450 cat >>confdefs.h
<<_ACEOF
11451 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
11456 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
11457 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
11458 $as_echo_n "(cached) " >&6
11461 # Guess no on OpenBSD, AIX.
11463 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
11464 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
11465 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
11466 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
11467 # If we don't know, obey --enable-cross-guesses.
11469 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
11474 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
11478 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11479 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
11483 case "$gl_cv_func_setlocale_null_one_mtsafe" in
11484 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
11485 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
11488 cat >>confdefs.h
<<_ACEOF
11489 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
11493 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
11495 mingw
*) LIB_SETLOCALE_NULL
= ;;
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11500 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11501 if ${gl_cv_have_weak+:} false
; then :
11502 $as_echo_n "(cached) " >&6
11505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507 extern void xyzzy ();
11517 if ac_fn_c_try_link
"$LINENO"; then :
11518 gl_cv_have_weak
=maybe
11520 rm -f core conftest.err conftest.
$ac_objext \
11521 conftest
$ac_exeext conftest.
$ac_ext
11522 if test $gl_cv_have_weak = maybe
; then
11523 if test "$cross_compiling" = yes; then :
11524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11527 Extensible Linking Format
11531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11532 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
11533 gl_cv_have_weak
="guessing yes"
11535 gl_cv_have_weak
="guessing no"
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11548 return (fputs == NULL);
11551 if ac_fn_c_try_run
"$LINENO"; then :
11552 gl_cv_have_weak
=yes
11556 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11557 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11561 case " $LDFLAGS " in
11562 *" -static "*) gl_cv_have_weak
=no
;;
11564 case "$gl_cv_have_weak" in
11567 freebsd
* | dragonfly
*)
11569 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
11570 cat <<EOF > conftest2.c
11571 #include <pthread.h>
11572 #pragma weak pthread_mutexattr_gettype
11575 return (pthread_mutexattr_gettype != NULL);
11578 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
11579 || gl_cv_have_weak
=no
11580 rm -f conftest1.c libempty.so conftest2.c conftest
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11588 $as_echo "$gl_cv_have_weak" >&6; }
11589 case "$gl_cv_have_weak" in
11592 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11597 case "$gl_cv_have_weak" in
11598 *yes) LIB_SETLOCALE_NULL
= ;;
11599 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
11604 LIB_SETLOCALE_NULL
=
11615 GNULIB_GETPEERNAME
=0;
11616 GNULIB_GETSOCKNAME
=0;
11617 GNULIB_GETSOCKOPT
=0;
11623 GNULIB_SETSOCKOPT
=0;
11626 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
11627 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
11629 HAVE_SA_FAMILY_T
=1;
11639 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
11645 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
11646 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
11647 $as_echo_n "(cached) " >&6
11650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #include <sys/socket.h>
11661 if ac_fn_c_try_compile
"$LINENO"; then :
11662 gl_cv_header_sys_socket_h_selfcontained
=yes
11664 gl_cv_header_sys_socket_h_selfcontained
=no
11666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
11670 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
11671 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
11672 for ac_func
in shutdown
11674 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
11675 if test "x$ac_cv_func_shutdown" = xyes
; then :
11676 cat >>confdefs.h
<<_ACEOF
11677 #define HAVE_SHUTDOWN 1
11683 if test $ac_cv_func_shutdown = yes; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
11685 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
11686 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
11687 $as_echo_n "(cached) " >&6
11690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11692 #include <sys/socket.h>
11696 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
11701 if ac_fn_c_try_compile
"$LINENO"; then :
11702 gl_cv_header_sys_socket_h_shut
=yes
11704 gl_cv_header_sys_socket_h_shut
=no
11706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
11710 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
11711 if test $gl_cv_header_sys_socket_h_shut = no
; then
11712 SYS_SOCKET_H
='sys/socket.h'
11716 # We need to check for ws2tcpip.h now.
11728 if test $gl_cv_have_include_next = yes; then
11729 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
11732 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
11733 if ${gl_cv_next_sys_socket_h+:} false
; then :
11734 $as_echo_n "(cached) " >&6
11737 if test $ac_cv_header_sys_socket_h = yes; then
11742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744 #include <sys/socket.h>
11747 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11748 *) gl_absname_cpp
="$ac_cpp" ;;
11753 gl_dirsep_regex
='[/\\]'
11756 gl_dirsep_regex
='\/'
11759 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11760 gl_header_literal_regex
=`echo 'sys/socket.h' \
11761 | sed -e "$gl_make_literal_regex_sed"`
11762 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11769 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11770 sed -n "$gl_absolute_header_sed"`
11772 gl_header
=$gl_cv_absolute_sys_socket_h
11773 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11775 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11781 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11783 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11785 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11787 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11790 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11792 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11797 if test $ac_cv_header_sys_socket_h = yes; then
11798 HAVE_SYS_SOCKET_H
=1
11800 HAVE_SYS_SOCKET_H
=0
11805 if test $ac_cv_header_sys_socket_h = yes; then
11808 if test $ac_cv_header_ws2tcpip_h = yes; then
11817 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11818 /* sys/types.h is not needed according to POSIX, but the
11819 sys/socket.h in i386-unknown-freebsd4.10 and
11820 powerpc-apple-darwin5.5 required it. */
11821 #include <sys/types.h>
11822 #ifdef HAVE_SYS_SOCKET_H
11823 #include <sys/socket.h>
11825 #ifdef HAVE_WS2TCPIP_H
11826 #include <ws2tcpip.h>
11830 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11832 cat >>confdefs.h
<<_ACEOF
11833 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11838 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11839 /* sys/types.h is not needed according to POSIX, but the
11840 sys/socket.h in i386-unknown-freebsd4.10 and
11841 powerpc-apple-darwin5.5 required it. */
11842 #include <sys/types.h>
11843 #ifdef HAVE_SYS_SOCKET_H
11844 #include <sys/socket.h>
11846 #ifdef HAVE_WS2TCPIP_H
11847 #include <ws2tcpip.h>
11851 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11853 cat >>confdefs.h
<<_ACEOF
11854 #define HAVE_SA_FAMILY_T 1
11860 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11861 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11863 if test $ac_cv_type_sa_family_t = no
; then
11866 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11867 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11868 #ifdef HAVE_SYS_SOCKET_H
11869 #include <sys/socket.h>
11871 #ifdef HAVE_WS2TCPIP_H
11872 #include <ws2tcpip.h>
11876 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11878 cat >>confdefs.h
<<_ACEOF
11879 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11884 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11888 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11889 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11890 SYS_SOCKET_H
='sys/socket.h'
11896 if test $ac_cv_header_sys_socket_h != yes; then
11897 for ac_header
in winsock2.h
11899 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11900 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11901 cat >>confdefs.h
<<_ACEOF
11902 #define HAVE_WINSOCK2_H 1
11910 if test "$ac_cv_header_winsock2_h" = yes; then
11912 UNISTD_H_HAVE_WINSOCK2_H
=1
11913 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11933 $as_echo_n "checking for IPv4 sockets... " >&6; }
11934 if ${gl_cv_socket_ipv4+:} false
; then :
11935 $as_echo_n "(cached) " >&6
11937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 #include <sys/types.h>
11940 #ifdef HAVE_SYS_SOCKET_H
11941 #include <sys/socket.h>
11943 #ifdef HAVE_NETINET_IN_H
11944 #include <netinet/in.h>
11946 #ifdef HAVE_WINSOCK2_H
11947 #include <winsock2.h>
11952 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11953 if (&x && &y && &z) return 0;
11958 if ac_fn_c_try_compile
"$LINENO"; then :
11959 gl_cv_socket_ipv4
=yes
11961 gl_cv_socket_ipv4
=no
11963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11966 $as_echo "$gl_cv_socket_ipv4" >&6; }
11967 if test $gl_cv_socket_ipv4 = yes; then
11969 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11974 $as_echo_n "checking for IPv6 sockets... " >&6; }
11975 if ${gl_cv_socket_ipv6+:} false
; then :
11976 $as_echo_n "(cached) " >&6
11978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #include <sys/types.h>
11981 #ifdef HAVE_SYS_SOCKET_H
11982 #include <sys/socket.h>
11984 #ifdef HAVE_NETINET_IN_H
11985 #include <netinet/in.h>
11987 #ifdef HAVE_WINSOCK2_H
11988 #include <winsock2.h>
11990 #ifdef HAVE_WS2TCPIP_H
11991 #include <ws2tcpip.h>
11996 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11997 if (&x && &y && &z) return 0;
12002 if ac_fn_c_try_compile
"$LINENO"; then :
12003 gl_cv_socket_ipv6
=yes
12005 gl_cv_socket_ipv6
=no
12007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
12010 $as_echo "$gl_cv_socket_ipv6" >&6; }
12011 if test $gl_cv_socket_ipv6 = yes; then
12013 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
12029 if test $gl_cv_have_include_next = yes; then
12030 gl_cv_next_limits_h
='<'limits.h
'>'
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
12033 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
12034 if ${gl_cv_next_limits_h+:} false
; then :
12035 $as_echo_n "(cached) " >&6
12038 if test $ac_cv_header_limits_h = yes; then
12043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045 #include <limits.h>
12048 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12049 *) gl_absname_cpp
="$ac_cpp" ;;
12054 gl_dirsep_regex
='[/\\]'
12057 gl_dirsep_regex
='\/'
12060 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12061 gl_header_literal_regex
=`echo 'limits.h' \
12062 | sed -e "$gl_make_literal_regex_sed"`
12063 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12064 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12070 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12071 sed -n "$gl_absolute_header_sed"`
12073 gl_header
=$gl_cv_absolute_limits_h
12074 gl_cv_next_limits_h
='"'$gl_header'"'
12076 gl_cv_next_limits_h
='<'limits.h
'>'
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
12082 $as_echo "$gl_cv_next_limits_h" >&6; }
12084 NEXT_LIMITS_H
=$gl_cv_next_limits_h
12086 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12088 gl_next_as_first_directive
='<'limits.h
'>'
12090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12091 gl_next_as_first_directive
=$gl_cv_next_limits_h
12093 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
12100 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
12101 if ${gl_cv_header_limits_width+:} false
; then :
12102 $as_echo_n "(cached) " >&6
12104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12107 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12109 #include <limits.h>
12110 long long llm = LLONG_MAX;
12112 int ullw = ULLONG_WIDTH;
12122 if ac_fn_c_try_compile
"$LINENO"; then :
12123 gl_cv_header_limits_width
=yes
12125 gl_cv_header_limits_width
=no
12127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
12130 $as_echo "$gl_cv_header_limits_width" >&6; }
12131 if test "$gl_cv_header_limits_width" = yes; then
12137 if test -n "$LIMITS_H"; then
12138 GL_GENERATE_LIMITS_H_TRUE
=
12139 GL_GENERATE_LIMITS_H_FALSE
='#'
12141 GL_GENERATE_LIMITS_H_TRUE
='#'
12142 GL_GENERATE_LIMITS_H_FALSE
=
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12148 $as_echo_n "checking for wint_t... " >&6; }
12149 if ${gt_cv_c_wint_t+:} false
; then :
12150 $as_echo_n "(cached) " >&6
12152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12155 wint_t foo = (wchar_t)'\0';
12164 if ac_fn_c_try_compile
"$LINENO"; then :
12169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12172 $as_echo "$gt_cv_c_wint_t" >&6; }
12173 if test $gt_cv_c_wint_t = yes; then
12175 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12179 $as_echo_n "checking whether wint_t is large enough... " >&6; }
12180 if ${gl_cv_type_wint_t_large_enough+:} false
; then :
12181 $as_echo_n "(cached) " >&6
12183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12196 if ac_fn_c_try_compile
"$LINENO"; then :
12197 gl_cv_type_wint_t_large_enough
=yes
12199 gl_cv_type_wint_t_large_enough
=no
12201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12204 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
12205 if test $gl_cv_type_wint_t_large_enough = no
; then
12206 GNULIB_OVERRIDES_WINT_T
=1
12208 GNULIB_OVERRIDES_WINT_T
=0
12211 GNULIB_OVERRIDES_WINT_T
=0
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12223 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
12224 if ${gl_cv_c_multiarch+:} false
; then :
12225 $as_echo_n "(cached) " >&6
12227 gl_cv_c_multiarch
=no
12228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230 #ifndef __APPLE_CC__
12231 not a universal capable compiler
12236 if ac_fn_c_try_compile
"$LINENO"; then :
12240 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12241 if test -n "$prev"; then
12243 i?
86 | x86_64 | ppc | ppc64 | arm | arm64
)
12244 if test -z "$arch" ||
test "$arch" = "$word"; then
12247 gl_cv_c_multiarch
=yes
12253 if test "x$word" = "x-arch"; then
12260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12264 $as_echo "$gl_cv_c_multiarch" >&6; }
12265 if test $gl_cv_c_multiarch = yes; then
12266 APPLE_UNIVERSAL_BUILD
=1
12268 APPLE_UNIVERSAL_BUILD
=0
12278 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12281 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12285 if test $ac_cv_header_wchar_h = yes; then
12293 if test $ac_cv_header_inttypes_h = yes; then
12301 if test $ac_cv_header_sys_types_h = yes; then
12317 if test $gl_cv_have_include_next = yes; then
12318 gl_cv_next_stdint_h
='<'stdint.h
'>'
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12321 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12322 if ${gl_cv_next_stdint_h+:} false
; then :
12323 $as_echo_n "(cached) " >&6
12326 if test $ac_cv_header_stdint_h = yes; then
12331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333 #include <stdint.h>
12336 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12337 *) gl_absname_cpp
="$ac_cpp" ;;
12342 gl_dirsep_regex
='[/\\]'
12345 gl_dirsep_regex
='\/'
12348 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12349 gl_header_literal_regex
=`echo 'stdint.h' \
12350 | sed -e "$gl_make_literal_regex_sed"`
12351 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12352 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12358 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12359 sed -n "$gl_absolute_header_sed"`
12361 gl_header
=$gl_cv_absolute_stdint_h
12362 gl_cv_next_stdint_h
='"'$gl_header'"'
12364 gl_cv_next_stdint_h
='<'stdint.h
'>'
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12370 $as_echo "$gl_cv_next_stdint_h" >&6; }
12372 NEXT_STDINT_H
=$gl_cv_next_stdint_h
12374 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12376 gl_next_as_first_directive
='<'stdint.h
'>'
12378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12379 gl_next_as_first_directive
=$gl_cv_next_stdint_h
12381 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
12386 if test $ac_cv_header_stdint_h = yes; then
12393 if test $ac_cv_header_stdint_h = yes; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12395 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12396 if ${gl_cv_header_working_stdint_h+:} false
; then :
12397 $as_echo_n "(cached) " >&6
12399 gl_cv_header_working_stdint_h
=no
12400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12404 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12405 #define __STDC_CONSTANT_MACROS 1
12406 #define __STDC_LIMIT_MACROS 1
12407 #include <stdint.h>
12408 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12409 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12410 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12414 #include <stddef.h>
12415 #include <signal.h>
12417 # include <wchar.h>
12422 int8_t a1 = INT8_MAX;
12423 int8_t a1min = INT8_MIN;
12426 int16_t a2 = INT16_MAX;
12427 int16_t a2min = INT16_MIN;
12430 int32_t a3 = INT32_MAX;
12431 int32_t a3min = INT32_MIN;
12434 int64_t a4 = INT64_MAX;
12435 int64_t a4min = INT64_MIN;
12438 uint8_t b1 = UINT8_MAX;
12440 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12443 uint16_t b2 = UINT16_MAX;
12446 uint32_t b3 = UINT32_MAX;
12449 uint64_t b4 = UINT64_MAX;
12451 int_least8_t c1 = INT8_C (0x7f);
12452 int_least8_t c1max = INT_LEAST8_MAX;
12453 int_least8_t c1min = INT_LEAST8_MIN;
12454 int_least16_t c2 = INT16_C (0x7fff);
12455 int_least16_t c2max = INT_LEAST16_MAX;
12456 int_least16_t c2min = INT_LEAST16_MIN;
12457 int_least32_t c3 = INT32_C (0x7fffffff);
12458 int_least32_t c3max = INT_LEAST32_MAX;
12459 int_least32_t c3min = INT_LEAST32_MIN;
12460 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12461 int_least64_t c4max = INT_LEAST64_MAX;
12462 int_least64_t c4min = INT_LEAST64_MIN;
12463 uint_least8_t d1 = UINT8_C (0xff);
12464 uint_least8_t d1max = UINT_LEAST8_MAX;
12465 uint_least16_t d2 = UINT16_C (0xffff);
12466 uint_least16_t d2max = UINT_LEAST16_MAX;
12467 uint_least32_t d3 = UINT32_C (0xffffffff);
12468 uint_least32_t d3max = UINT_LEAST32_MAX;
12469 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12470 uint_least64_t d4max = UINT_LEAST64_MAX;
12471 int_fast8_t e1 = INT_FAST8_MAX;
12472 int_fast8_t e1min = INT_FAST8_MIN;
12473 int_fast16_t e2 = INT_FAST16_MAX;
12474 int_fast16_t e2min = INT_FAST16_MIN;
12475 int_fast32_t e3 = INT_FAST32_MAX;
12476 int_fast32_t e3min = INT_FAST32_MIN;
12477 int_fast64_t e4 = INT_FAST64_MAX;
12478 int_fast64_t e4min = INT_FAST64_MIN;
12479 uint_fast8_t f1 = UINT_FAST8_MAX;
12480 uint_fast16_t f2 = UINT_FAST16_MAX;
12481 uint_fast32_t f3 = UINT_FAST32_MAX;
12482 uint_fast64_t f4 = UINT_FAST64_MAX;
12484 intptr_t g = INTPTR_MAX;
12485 intptr_t gmin = INTPTR_MIN;
12488 uintptr_t h = UINTPTR_MAX;
12490 intmax_t i = INTMAX_MAX;
12491 uintmax_t j = UINTMAX_MAX;
12493 /* Check that SIZE_MAX has the correct type, if possible. */
12494 #if 201112 <= __STDC_VERSION__
12495 int k = _Generic (SIZE_MAX, size_t: 0);
12496 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
12497 || (0x5110 <= __SUNPRO_C && !__STDC__))
12499 extern __typeof__ (SIZE_MAX) k;
12502 #include <limits.h> /* for CHAR_BIT */
12503 #define TYPE_MINIMUM(t) \
12504 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12505 #define TYPE_MAXIMUM(t) \
12506 ((t) ((t) 0 < (t) -1 \
12508 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12511 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12512 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12514 /* Detect bug in FreeBSD 6.0 / ia64. */
12515 int check_SIG_ATOMIC:
12516 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12517 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12519 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12521 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12522 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12524 /* Detect bug in mingw. */
12526 WINT_MIN == TYPE_MINIMUM (wint_t)
12527 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12530 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12532 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12533 int check_UINT16_C:
12534 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12536 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12538 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12541 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12544 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12547 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12549 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12550 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12551 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12552 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12553 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12554 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12555 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12556 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12557 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12558 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12559 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12570 if ac_fn_c_try_compile
"$LINENO"; then :
12571 if test "$cross_compiling" = yes; then :
12573 # Guess yes on native Windows.
12574 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12575 # In general, assume it works.
12576 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12584 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12585 #define __STDC_CONSTANT_MACROS 1
12586 #define __STDC_LIMIT_MACROS 1
12587 #include <stdint.h>
12590 #include <stddef.h>
12591 #include <signal.h>
12593 # include <wchar.h>
12598 #include <string.h>
12599 #define MVAL(macro) MVAL1(macro)
12600 #define MVAL1(expression) #expression
12601 static const char *macro_values[] =
12635 for (mv = macro_values; *mv != NULL; mv++)
12637 const char *value = *mv;
12638 /* Test whether it looks like a cast expression. */
12639 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12640 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12641 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12642 || strncmp (value, "((int)"/*)*/, 6) == 0
12643 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12644 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12645 return mv - macro_values + 1;
12653 if ac_fn_c_try_run
"$LINENO"; then :
12654 gl_cv_header_working_stdint_h
=yes
12656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12666 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12669 HAVE_C99_STDINT_H
=0
12670 HAVE_SYS_BITYPES_H
=0
12671 HAVE_SYS_INTTYPES_H
=0
12673 case "$gl_cv_header_working_stdint_h" in
12675 HAVE_C99_STDINT_H
=1
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
12677 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
12678 if ${gl_cv_header_stdint_without_STDC_macros+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 gl_cv_header_stdint_without_STDC_macros
=no
12682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12686 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12687 #include <stdint.h>
12690 #include <stddef.h>
12691 #include <signal.h>
12693 # include <wchar.h>
12697 intmax_t im = INTMAX_MAX;
12698 int32_t i32 = INT32_C (0x7fffffff);
12708 if ac_fn_c_try_compile
"$LINENO"; then :
12709 gl_cv_header_stdint_without_STDC_macros
=yes
12711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
12715 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
12717 if test $gl_cv_header_stdint_without_STDC_macros = no
; then
12719 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12722 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12726 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12727 if ${gl_cv_header_stdint_width+:} false
; then :
12728 $as_echo_n "(cached) " >&6
12730 gl_cv_header_stdint_width
=no
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 /* Work if build is not clean. */
12735 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12736 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12737 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12739 #include <stdint.h>
12741 #include <stddef.h>
12742 #include <signal.h>
12744 # include <wchar.h>
12747 int iw = UINTMAX_WIDTH;
12757 if ac_fn_c_try_compile
"$LINENO"; then :
12758 gl_cv_header_stdint_width
=yes
12760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12763 $as_echo "$gl_cv_header_stdint_width" >&6; }
12764 if test "$gl_cv_header_stdint_width" = yes; then
12769 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12771 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12772 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12773 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12774 cat >>confdefs.h
<<_ACEOF
12775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12782 if test $ac_cv_header_sys_inttypes_h = yes; then
12783 HAVE_SYS_INTTYPES_H
=1
12785 if test $ac_cv_header_sys_bitypes_h = yes; then
12786 HAVE_SYS_BITYPES_H
=1
12790 if test $APPLE_UNIVERSAL_BUILD = 0; then
12793 for gltype
in ptrdiff_t size_t
; do
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12795 $as_echo_n "checking for bit size of $gltype... " >&6; }
12796 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12797 $as_echo_n "(cached) " >&6
12799 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12800 #include <stddef.h>
12801 #include <signal.h>
12803 # include <wchar.h>
12806 #include <limits.h>"; then :
12812 eval gl_cv_bitsizeof_
${gltype}=\
$result
12815 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12817 $as_echo "$ac_res" >&6; }
12818 eval result
=\
$gl_cv_bitsizeof_${gltype}
12819 if test $result = unknown
; then
12822 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12823 cat >>confdefs.h
<<_ACEOF
12824 #define BITSIZEOF_${GLTYPE} $result
12827 eval BITSIZEOF_
${GLTYPE}=\
$result
12834 for gltype
in sig_atomic_t wchar_t wint_t
; do
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12836 $as_echo_n "checking for bit size of $gltype... " >&6; }
12837 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12838 $as_echo_n "(cached) " >&6
12840 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12841 #include <stddef.h>
12842 #include <signal.h>
12844 # include <wchar.h>
12847 #include <limits.h>"; then :
12853 eval gl_cv_bitsizeof_
${gltype}=\
$result
12856 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12858 $as_echo "$ac_res" >&6; }
12859 eval result
=\
$gl_cv_bitsizeof_${gltype}
12860 if test $result = unknown
; then
12863 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12864 cat >>confdefs.h
<<_ACEOF
12865 #define BITSIZEOF_${GLTYPE} $result
12868 eval BITSIZEOF_
${GLTYPE}=\
$result
12874 for gltype
in sig_atomic_t wchar_t wint_t
; do
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12876 $as_echo_n "checking whether $gltype is signed... " >&6; }
12877 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12878 $as_echo_n "(cached) " >&6
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 #include <stddef.h>
12884 #include <signal.h>
12886 # include <wchar.h>
12889 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12898 if ac_fn_c_try_compile
"$LINENO"; then :
12903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12904 eval gl_cv_type_
${gltype}_signed
=\
$result
12907 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12909 $as_echo "$ac_res" >&6; }
12910 eval result
=\
$gl_cv_type_${gltype}_signed
12911 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12912 if test "$result" = yes; then
12913 cat >>confdefs.h
<<_ACEOF
12914 #define HAVE_SIGNED_${GLTYPE} 1
12917 eval HAVE_SIGNED_
${GLTYPE}=1
12919 eval HAVE_SIGNED_
${GLTYPE}=0
12924 gl_cv_type_ptrdiff_t_signed
=yes
12925 gl_cv_type_size_t_signed
=no
12926 if test $APPLE_UNIVERSAL_BUILD = 0; then
12929 for gltype
in ptrdiff_t size_t
; do
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12931 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12932 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12933 $as_echo_n "(cached) " >&6
12935 eval gl_cv_type_
${gltype}_suffix
=no
12936 eval result
=\
$gl_cv_type_${gltype}_signed
12937 if test "$result" = yes; then
12942 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12944 '') gltype1
='int';;
12945 l
) gltype1
='long int';;
12946 ll
) gltype1
='long long int';;
12947 i64
) gltype1
='__int64';;
12948 u
) gltype1
='unsigned int';;
12949 ul
) gltype1
='unsigned long int';;
12950 ull
) gltype1
='unsigned long long int';;
12951 ui64
)gltype1
='unsigned __int64';;
12953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12956 #include <stddef.h>
12957 #include <signal.h>
12959 # include <wchar.h>
12962 extern $gltype foo;
12963 extern $gltype1 foo;
12972 if ac_fn_c_try_compile
"$LINENO"; then :
12973 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12976 eval result
=\
$gl_cv_type_${gltype}_suffix
12977 test "$result" != no
&& break
12980 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12982 $as_echo "$ac_res" >&6; }
12983 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12984 eval result
=\
$gl_cv_type_${gltype}_suffix
12985 test "$result" = no
&& result
=
12986 eval ${GLTYPE}_SUFFIX
=\
$result
12987 cat >>confdefs.h
<<_ACEOF
12988 #define ${GLTYPE}_SUFFIX $result
12997 for gltype
in sig_atomic_t wchar_t wint_t
; do
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12999 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
13000 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
13001 $as_echo_n "(cached) " >&6
13003 eval gl_cv_type_
${gltype}_suffix
=no
13004 eval result
=\
$gl_cv_type_${gltype}_signed
13005 if test "$result" = yes; then
13010 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
13012 '') gltype1
='int';;
13013 l
) gltype1
='long int';;
13014 ll
) gltype1
='long long int';;
13015 i64
) gltype1
='__int64';;
13016 u
) gltype1
='unsigned int';;
13017 ul
) gltype1
='unsigned long int';;
13018 ull
) gltype1
='unsigned long long int';;
13019 ui64
)gltype1
='unsigned __int64';;
13021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13024 #include <stddef.h>
13025 #include <signal.h>
13027 # include <wchar.h>
13030 extern $gltype foo;
13031 extern $gltype1 foo;
13040 if ac_fn_c_try_compile
"$LINENO"; then :
13041 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
13043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13044 eval result
=\
$gl_cv_type_${gltype}_suffix
13045 test "$result" != no
&& break
13048 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13050 $as_echo "$ac_res" >&6; }
13051 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13052 eval result
=\
$gl_cv_type_${gltype}_suffix
13053 test "$result" = no
&& result
=
13054 eval ${GLTYPE}_SUFFIX
=\
$result
13055 cat >>confdefs.h
<<_ACEOF
13056 #define ${GLTYPE}_SUFFIX $result
13063 if test $GNULIB_OVERRIDES_WINT_T = 1; then
13064 BITSIZEOF_WINT_T
=32
13072 LIMITS_H
='limits.h'
13073 if test -n "$LIMITS_H"; then
13074 GL_GENERATE_LIMITS_H_TRUE
=
13075 GL_GENERATE_LIMITS_H_FALSE
='#'
13077 GL_GENERATE_LIMITS_H_TRUE
='#'
13078 GL_GENERATE_LIMITS_H_FALSE
=
13087 if test -n "$STDINT_H"; then
13088 GL_GENERATE_STDINT_H_TRUE
=
13089 GL_GENERATE_STDINT_H_FALSE
='#'
13091 GL_GENERATE_STDINT_H_TRUE
='#'
13092 GL_GENERATE_STDINT_H_FALSE
=
13099 GNULIB_STRTOIMAX
=0;
13100 GNULIB_STRTOUMAX
=0;
13101 HAVE_DECL_IMAXABS
=1;
13102 HAVE_DECL_IMAXDIV
=1;
13103 HAVE_DECL_STRTOIMAX
=1;
13104 HAVE_DECL_STRTOUMAX
=1;
13106 REPLACE_STRTOIMAX
=0;
13107 REPLACE_STRTOUMAX
=0;
13108 INT32_MAX_LT_INTMAX_MAX
=1;
13109 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
13110 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
13111 UINT32_MAX_LT_UINTMAX_MAX
=1;
13112 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
13128 if test $gl_cv_have_include_next = yes; then
13129 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
13132 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
13133 if ${gl_cv_next_inttypes_h+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13137 if test $ac_cv_header_inttypes_h = yes; then
13142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144 #include <inttypes.h>
13147 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13148 *) gl_absname_cpp
="$ac_cpp" ;;
13153 gl_dirsep_regex
='[/\\]'
13156 gl_dirsep_regex
='\/'
13159 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13160 gl_header_literal_regex
=`echo 'inttypes.h' \
13161 | sed -e "$gl_make_literal_regex_sed"`
13162 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13163 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13169 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13170 sed -n "$gl_absolute_header_sed"`
13172 gl_header
=$gl_cv_absolute_inttypes_h
13173 gl_cv_next_inttypes_h
='"'$gl_header'"'
13175 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13181 $as_echo "$gl_cv_next_inttypes_h" >&6; }
13183 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
13185 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13187 gl_next_as_first_directive
='<'inttypes.h
'>'
13189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13190 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
13192 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13210 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13211 if ${gl_cv_cc_double_expbit0+:} false
; then :
13212 $as_echo_n "(cached) " >&6
13215 if test "$cross_compiling" = yes; then :
13217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13220 #if defined arm || defined __arm || defined __arm__
13225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13226 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
13227 gl_cv_cc_double_expbit0
="unknown"
13231 if ${ac_cv_c_bigendian+:} false
; then :
13232 $as_echo_n "(cached) " >&6
13234 ac_cv_c_bigendian
=unknown
13235 # See if we're dealing with a universal compiler.
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 #ifndef __APPLE_CC__
13239 not a universal capable compiler
13244 if ac_fn_c_try_compile
"$LINENO"; then :
13246 # Check for potential -arch flags. It is not universal unless
13247 # there are at least two -arch flags with different values.
13250 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13251 if test -n "$ac_prev"; then
13253 i?
86 | x86_64 | ppc | ppc64
)
13254 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13257 ac_cv_c_bigendian
=universal
13263 elif test "x$ac_word" = "x-arch"; then
13268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13269 if test $ac_cv_c_bigendian = unknown
; then
13270 # See if sys/param.h defines the BYTE_ORDER macro.
13271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273 #include <sys/types.h>
13274 #include <sys/param.h>
13279 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13280 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13282 bogus endian macros
13289 if ac_fn_c_try_compile
"$LINENO"; then :
13290 # It does; now see whether it defined to BIG_ENDIAN or not.
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #include <sys/types.h>
13294 #include <sys/param.h>
13299 #if BYTE_ORDER != BIG_ENDIAN
13307 if ac_fn_c_try_compile
"$LINENO"; then :
13308 ac_cv_c_bigendian
=yes
13310 ac_cv_c_bigendian
=no
13312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13316 if test $ac_cv_c_bigendian = unknown
; then
13317 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <limits.h>
13325 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13326 bogus endian macros
13333 if ac_fn_c_try_compile
"$LINENO"; then :
13334 # It does; now see whether it defined to _BIG_ENDIAN or not.
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <limits.h>
13342 #ifndef _BIG_ENDIAN
13350 if ac_fn_c_try_compile
"$LINENO"; then :
13351 ac_cv_c_bigendian
=yes
13353 ac_cv_c_bigendian
=no
13355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13359 if test $ac_cv_c_bigendian = unknown
; then
13360 # Compile a test program.
13361 if test "$cross_compiling" = yes; then :
13362 # Try to guess by grepping values from an object file.
13363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 short int ascii_mm[] =
13366 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13367 short int ascii_ii[] =
13368 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13369 int use_ascii (int i) {
13370 return ascii_mm[i] + ascii_ii[i];
13372 short int ebcdic_ii[] =
13373 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13374 short int ebcdic_mm[] =
13375 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13376 int use_ebcdic (int i) {
13377 return ebcdic_mm[i] + ebcdic_ii[i];
13384 return use_ascii (foo) == use_ebcdic (foo);
13389 if ac_fn_c_try_compile
"$LINENO"; then :
13390 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13391 ac_cv_c_bigendian
=yes
13393 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13394 if test "$ac_cv_c_bigendian" = unknown
; then
13395 ac_cv_c_bigendian
=no
13397 # finding both strings is unlikely to happen, but who knows?
13398 ac_cv_c_bigendian
=unknown
13402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13406 $ac_includes_default
13411 /* Are we little or big endian? From Harbison&Steele. */
13415 char c[sizeof (long int)];
13418 return u.c[sizeof (long int) - 1] == 1;
13424 if ac_fn_c_try_run
"$LINENO"; then :
13425 ac_cv_c_bigendian
=no
13427 ac_cv_c_bigendian
=yes
13429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13436 case $ac_cv_c_bigendian in #(
13438 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
13440 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
13443 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13447 gl_cv_cc_double_expbit0
="unknown" ;;
13456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13460 #include <stddef.h>
13462 #include <string.h>
13464 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13465 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
13466 static unsigned int ored_words[NWORDS];
13467 static unsigned int anded_words[NWORDS];
13468 static void add_to_ored_words (double x)
13472 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
13473 memset (&m, 0, sizeof (memory_double));
13475 for (i = 0; i < NWORDS; i++)
13477 ored_words[i] |= m.word[i];
13478 anded_words[i] &= m.word[i];
13484 FILE *fp = fopen ("conftest.out", "w");
13487 for (j = 0; j < NWORDS; j++)
13488 anded_words[j] = ~ (unsigned int) 0;
13489 add_to_ored_words (0.25);
13490 add_to_ored_words (0.5);
13491 add_to_ored_words (1.0);
13492 add_to_ored_words (2.0);
13493 add_to_ored_words (4.0);
13494 /* Remove bits that are common (e.g. if representation of the first mantissa
13495 bit is explicit). */
13496 for (j = 0; j < NWORDS; j++)
13497 ored_words[j] &= ~anded_words[j];
13498 /* Now find the nonzero word. */
13499 for (j = 0; j < NWORDS; j++)
13500 if (ored_words[j] != 0)
13505 for (i = j + 1; i < NWORDS; i++)
13506 if (ored_words[i] != 0)
13508 fprintf (fp, "unknown");
13509 return (fclose (fp) != 0);
13512 if ((ored_words[j] >> i) & 1)
13514 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13515 return (fclose (fp) != 0);
13518 fprintf (fp, "unknown");
13519 return (fclose (fp) != 0);
13523 if ac_fn_c_try_run
"$LINENO"; then :
13524 gl_cv_cc_double_expbit0
=`cat conftest.out`
13526 gl_cv_cc_double_expbit0
="unknown"
13528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13536 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13537 case "$gl_cv_cc_double_expbit0" in
13539 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13540 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13542 cat >>confdefs.h
<<_ACEOF
13543 #define DBL_EXPBIT0_WORD $word
13547 cat >>confdefs.h
<<_ACEOF
13548 #define DBL_EXPBIT0_BIT $bit
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13556 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13557 if ${ac_cv_c_bigendian+:} false
; then :
13558 $as_echo_n "(cached) " >&6
13560 ac_cv_c_bigendian
=unknown
13561 # See if we're dealing with a universal compiler.
13562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 #ifndef __APPLE_CC__
13565 not a universal capable compiler
13570 if ac_fn_c_try_compile
"$LINENO"; then :
13572 # Check for potential -arch flags. It is not universal unless
13573 # there are at least two -arch flags with different values.
13576 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13577 if test -n "$ac_prev"; then
13579 i?
86 | x86_64 | ppc | ppc64
)
13580 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13583 ac_cv_c_bigendian
=universal
13589 elif test "x$ac_word" = "x-arch"; then
13594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13595 if test $ac_cv_c_bigendian = unknown
; then
13596 # See if sys/param.h defines the BYTE_ORDER macro.
13597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 #include <sys/types.h>
13600 #include <sys/param.h>
13605 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13606 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13608 bogus endian macros
13615 if ac_fn_c_try_compile
"$LINENO"; then :
13616 # It does; now see whether it defined to BIG_ENDIAN or not.
13617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 #include <sys/types.h>
13620 #include <sys/param.h>
13625 #if BYTE_ORDER != BIG_ENDIAN
13633 if ac_fn_c_try_compile
"$LINENO"; then :
13634 ac_cv_c_bigendian
=yes
13636 ac_cv_c_bigendian
=no
13638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13642 if test $ac_cv_c_bigendian = unknown
; then
13643 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 #include <limits.h>
13651 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13652 bogus endian macros
13659 if ac_fn_c_try_compile
"$LINENO"; then :
13660 # It does; now see whether it defined to _BIG_ENDIAN or not.
13661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 #include <limits.h>
13668 #ifndef _BIG_ENDIAN
13676 if ac_fn_c_try_compile
"$LINENO"; then :
13677 ac_cv_c_bigendian
=yes
13679 ac_cv_c_bigendian
=no
13681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13685 if test $ac_cv_c_bigendian = unknown
; then
13686 # Compile a test program.
13687 if test "$cross_compiling" = yes; then :
13688 # Try to guess by grepping values from an object file.
13689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 short int ascii_mm[] =
13692 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13693 short int ascii_ii[] =
13694 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13695 int use_ascii (int i) {
13696 return ascii_mm[i] + ascii_ii[i];
13698 short int ebcdic_ii[] =
13699 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13700 short int ebcdic_mm[] =
13701 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13702 int use_ebcdic (int i) {
13703 return ebcdic_mm[i] + ebcdic_ii[i];
13710 return use_ascii (foo) == use_ebcdic (foo);
13715 if ac_fn_c_try_compile
"$LINENO"; then :
13716 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13717 ac_cv_c_bigendian
=yes
13719 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13720 if test "$ac_cv_c_bigendian" = unknown
; then
13721 ac_cv_c_bigendian
=no
13723 # finding both strings is unlikely to happen, but who knows?
13724 ac_cv_c_bigendian
=unknown
13728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 $ac_includes_default
13737 /* Are we little or big endian? From Harbison&Steele. */
13741 char c[sizeof (long int)];
13744 return u.c[sizeof (long int) - 1] == 1;
13750 if ac_fn_c_try_run
"$LINENO"; then :
13751 ac_cv_c_bigendian
=no
13753 ac_cv_c_bigendian
=yes
13755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13762 $as_echo "$ac_cv_c_bigendian" >&6; }
13763 case $ac_cv_c_bigendian in #(
13765 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13771 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13775 as_fn_error $?
"unknown endianness
13776 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13781 GNULIB_LOCALECONV
=0;
13782 GNULIB_SETLOCALE
=0;
13783 GNULIB_SETLOCALE_NULL
=0;
13784 GNULIB_DUPLOCALE
=0;
13785 GNULIB_LOCALENAME
=0;
13789 REPLACE_LOCALECONV
=0;
13790 REPLACE_SETLOCALE
=0;
13791 REPLACE_NEWLOCALE
=0;
13792 REPLACE_DUPLOCALE
=0;
13793 REPLACE_FREELOCALE
=0;
13794 REPLACE_STRUCT_LCONV
=0;
13798 HAVE_MAX_ALIGN_T
=1;
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13803 $as_echo_n "checking for wchar_t... " >&6; }
13804 if ${gt_cv_c_wchar_t+:} false
; then :
13805 $as_echo_n "(cached) " >&6
13807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <stddef.h>
13810 wchar_t foo = (wchar_t)'\0';
13819 if ac_fn_c_try_compile
"$LINENO"; then :
13820 gt_cv_c_wchar_t
=yes
13824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13827 $as_echo "$gt_cv_c_wchar_t" >&6; }
13828 if test $gt_cv_c_wchar_t = yes; then
13830 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13843 $as_echo_n "checking for good max_align_t... " >&6; }
13844 if ${gl_cv_type_max_align_t+:} false
; then :
13845 $as_echo_n "(cached) " >&6
13847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 #include <stddef.h>
13850 unsigned int s = sizeof (max_align_t);
13851 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
13852 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13853 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13855 typedef struct { char a; max_align_t b; } max_helper;
13856 typedef struct { char a; long b; } long_helper;
13857 typedef struct { char a; double b; } double_helper;
13858 typedef struct { char a; long double b; } long_double_helper;
13859 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
13860 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
13861 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
13871 if ac_fn_c_try_compile
"$LINENO"; then :
13872 gl_cv_type_max_align_t
=yes
13874 gl_cv_type_max_align_t
=no
13876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13880 $as_echo "$gl_cv_type_max_align_t" >&6; }
13881 if test $gl_cv_type_max_align_t = no
; then
13886 if test $gt_cv_c_wchar_t = no
; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13892 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13893 if ${gl_cv_decl_null_works+:} false
; then :
13894 $as_echo_n "(cached) " >&6
13896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 #include <stddef.h>
13899 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13909 if ac_fn_c_try_compile
"$LINENO"; then :
13910 gl_cv_decl_null_works
=yes
13912 gl_cv_decl_null_works
=no
13914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13917 $as_echo "$gl_cv_decl_null_works" >&6; }
13918 if test $gl_cv_decl_null_works = no
; then
13924 if test -n "$STDDEF_H"; then
13925 GL_GENERATE_STDDEF_H_TRUE
=
13926 GL_GENERATE_STDDEF_H_FALSE
='#'
13928 GL_GENERATE_STDDEF_H_TRUE
='#'
13929 GL_GENERATE_STDDEF_H_FALSE
=
13932 if test -n "$STDDEF_H"; then
13941 if test $gl_cv_have_include_next = yes; then
13942 gl_cv_next_stddef_h
='<'stddef.h
'>'
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13945 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13946 if ${gl_cv_next_stddef_h+:} false
; then :
13947 $as_echo_n "(cached) " >&6
13952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <stddef.h>
13957 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13958 *) gl_absname_cpp
="$ac_cpp" ;;
13963 gl_dirsep_regex
='[/\\]'
13966 gl_dirsep_regex
='\/'
13969 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13970 gl_header_literal_regex
=`echo 'stddef.h' \
13971 | sed -e "$gl_make_literal_regex_sed"`
13972 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13979 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13980 sed -n "$gl_absolute_header_sed"`
13982 gl_header
=$gl_cv_absolute_stddef_h
13983 gl_cv_next_stddef_h
='"'$gl_header'"'
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13988 $as_echo "$gl_cv_next_stddef_h" >&6; }
13990 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13992 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13994 gl_next_as_first_directive
='<'stddef.h
'>'
13996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13997 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13999 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
14012 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
14013 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
14014 $as_echo_n "(cached) " >&6
14016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 #include <locale.h>
14028 if ac_fn_c_try_compile
"$LINENO"; then :
14029 gl_cv_header_locale_has_locale_t
=yes
14031 gl_cv_header_locale_has_locale_t
=no
14033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
14037 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
14040 if test $ac_cv_header_xlocale_h = yes; then
14042 if test $gl_cv_header_locale_has_locale_t = yes; then
14043 gl_cv_header_locale_h_needs_xlocale_h
=no
14045 gl_cv_header_locale_h_needs_xlocale_h
=yes
14050 gl_cv_header_locale_h_needs_xlocale_h
=no
14051 if test $gl_cv_header_locale_has_locale_t = yes; then
14061 gl_threads_api
=none
14066 if test "$gl_use_threads" != no
; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
14070 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
14071 if ${gl_cv_have_weak+:} false
; then :
14072 $as_echo_n "(cached) " >&6
14075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 extern void xyzzy ();
14087 if ac_fn_c_try_link
"$LINENO"; then :
14088 gl_cv_have_weak
=maybe
14090 rm -f core conftest.err conftest.
$ac_objext \
14091 conftest
$ac_exeext conftest.
$ac_ext
14092 if test $gl_cv_have_weak = maybe
; then
14093 if test "$cross_compiling" = yes; then :
14094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 Extensible Linking Format
14101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14102 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
14103 gl_cv_have_weak
="guessing yes"
14105 gl_cv_have_weak
="guessing no"
14111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14118 return (fputs == NULL);
14121 if ac_fn_c_try_run
"$LINENO"; then :
14122 gl_cv_have_weak
=yes
14126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14131 case " $LDFLAGS " in
14132 *" -static "*) gl_cv_have_weak
=no
;;
14134 case "$gl_cv_have_weak" in
14137 freebsd
* | dragonfly
*)
14139 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
14140 cat <<EOF > conftest2.c
14141 #include <pthread.h>
14142 #pragma weak pthread_mutexattr_gettype
14145 return (pthread_mutexattr_gettype != NULL);
14148 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
14149 || gl_cv_have_weak
=no
14150 rm -f conftest1.c libempty.so conftest2.c conftest
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
14158 $as_echo "$gl_cv_have_weak" >&6; }
14159 case "$gl_cv_have_weak" in
14162 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
14167 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14171 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
14173 gl_have_isoc_threads
="$ac_cv_header_threads_h"
14175 if test "$gl_use_threads" = yes \
14176 ||
test "$gl_use_threads" = posix \
14177 ||
test "$gl_use_threads" = isoc
+posix
; then
14180 if test -z "$gl_pthreadlib_body_done"; then
14184 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14185 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14186 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14187 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14188 gl_have_pthread_h
=yes
14190 gl_have_pthread_h
=no
14194 if test "$gl_have_pthread_h" = yes; then
14195 # Other possible tests:
14196 # -lpthreads (FSU threads, PCthreads)
14198 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14199 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14200 # the second one only in libpthread, and lock.c needs it.
14202 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14203 # needs -pthread for some reason. See:
14204 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14206 for gl_pthread
in '' '-pthread'; do
14207 LIBS
="$LIBS $gl_pthread"
14208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <pthread.h>
14212 pthread_mutexattr_t ma;
14217 pthread_mutex_lock (&m);
14218 pthread_mutexattr_init (&ma);
14223 if ac_fn_c_try_link
"$LINENO"; then :
14225 LIBPTHREAD
=$gl_pthread
14226 LIBPMULTITHREAD
=$gl_pthread
14228 rm -f core conftest.err conftest.
$ac_objext \
14229 conftest
$ac_exeext conftest.
$ac_ext
14231 test $gl_pthread_api = yes && break
14234 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14235 # since it is defined as a macro on OSF/1.)
14236 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14237 # The program links fine without libpthread. But it may actually
14238 # need to link with libpthread in order to create multiple threads.
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14240 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14241 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14242 $as_echo_n "(cached) " >&6
14244 ac_check_lib_save_LIBS
=$LIBS
14245 LIBS
="-lpthread $LIBS"
14246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14249 /* Override any GCC internal prototype to avoid an error.
14250 Use char because int might match the return type of a GCC
14251 builtin and then its argument prototype would still apply. */
14255 char pthread_kill ();
14259 return pthread_kill ();
14264 if ac_fn_c_try_link
"$LINENO"; then :
14265 ac_cv_lib_pthread_pthread_kill
=yes
14267 ac_cv_lib_pthread_pthread_kill
=no
14269 rm -f core conftest.err conftest.
$ac_objext \
14270 conftest
$ac_exeext conftest.
$ac_ext
14271 LIBS
=$ac_check_lib_save_LIBS
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14274 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14275 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14276 LIBPMULTITHREAD
=-lpthread
14277 # On Solaris and HP-UX, most pthread functions exist also in libc.
14278 # Therefore pthread_in_use() needs to actually try to create a
14279 # thread: pthread_create from libc will fail, whereas
14280 # pthread_create will actually create a thread.
14281 # On Solaris 10 or newer, this test is no longer needed, because
14282 # libc contains the fully functional pthread functions.
14284 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14286 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14292 elif test $gl_pthread_api != yes; then
14293 # Some library is needed. Try libpthread and libc_r.
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14295 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14296 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14297 $as_echo_n "(cached) " >&6
14299 ac_check_lib_save_LIBS
=$LIBS
14300 LIBS
="-lpthread $LIBS"
14301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 /* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14310 char pthread_kill ();
14314 return pthread_kill ();
14319 if ac_fn_c_try_link
"$LINENO"; then :
14320 ac_cv_lib_pthread_pthread_kill
=yes
14322 ac_cv_lib_pthread_pthread_kill
=no
14324 rm -f core conftest.err conftest.
$ac_objext \
14325 conftest
$ac_exeext conftest.
$ac_ext
14326 LIBS
=$ac_check_lib_save_LIBS
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14329 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14330 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14332 LIBPTHREAD
=-lpthread
14333 LIBPMULTITHREAD
=-lpthread
14336 if test $gl_pthread_api != yes; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14339 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14340 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14341 $as_echo_n "(cached) " >&6
14343 ac_check_lib_save_LIBS
=$LIBS
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14354 char pthread_kill ();
14358 return pthread_kill ();
14363 if ac_fn_c_try_link
"$LINENO"; then :
14364 ac_cv_lib_c_r_pthread_kill
=yes
14366 ac_cv_lib_c_r_pthread_kill
=no
14368 rm -f core conftest.err conftest.
$ac_objext \
14369 conftest
$ac_exeext conftest.
$ac_ext
14370 LIBS
=$ac_check_lib_save_LIBS
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14373 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14374 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14377 LIBPMULTITHREAD
=-lc_r
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14384 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14386 $as_echo "$gl_pthread_api" >&6; }
14389 if test $gl_pthread_api = yes; then
14391 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14406 if ac_fn_c_try_link
"$LINENO"; then :
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14411 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14412 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14413 $as_echo_n "(cached) " >&6
14415 ac_check_lib_save_LIBS
=$LIBS
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14420 /* Override any GCC internal prototype to avoid an error.
14421 Use char because int might match the return type of a GCC
14422 builtin and then its argument prototype would still apply. */
14426 char sched_yield ();
14430 return sched_yield ();
14435 if ac_fn_c_try_link
"$LINENO"; then :
14436 ac_cv_lib_rt_sched_yield
=yes
14438 ac_cv_lib_rt_sched_yield
=no
14440 rm -f core conftest.err conftest.
$ac_objext \
14441 conftest
$ac_exeext conftest.
$ac_ext
14442 LIBS
=$ac_check_lib_save_LIBS
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14445 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14446 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14447 LIB_SCHED_YIELD
=-lrt
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14450 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14451 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14452 $as_echo_n "(cached) " >&6
14454 ac_check_lib_save_LIBS
=$LIBS
14455 LIBS
="-lposix4 $LIBS"
14456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14459 /* Override any GCC internal prototype to avoid an error.
14460 Use char because int might match the return type of a GCC
14461 builtin and then its argument prototype would still apply. */
14465 char sched_yield ();
14469 return sched_yield ();
14474 if ac_fn_c_try_link
"$LINENO"; then :
14475 ac_cv_lib_posix4_sched_yield
=yes
14477 ac_cv_lib_posix4_sched_yield
=no
14479 rm -f core conftest.err conftest.
$ac_objext \
14480 conftest
$ac_exeext conftest.
$ac_ext
14481 LIBS
=$ac_check_lib_save_LIBS
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14484 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14485 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14486 LIB_SCHED_YIELD
=-lposix4
14493 rm -f core conftest.err conftest.
$ac_objext \
14494 conftest
$ac_exeext conftest.
$ac_ext
14497 gl_pthreadlib_body_done
=done
14500 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14501 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14502 if test $gl_pthread_api = yes; then
14503 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14504 gl_threads_api
='isoc+posix'
14506 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14508 LIBTHREAD
= LTLIBTHREAD
=
14510 gl_threads_api
=posix
14512 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14514 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14515 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14517 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14519 LIBTHREAD
= LTLIBTHREAD
=
14522 freebsd
* | dragonfly
*)
14523 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
14525 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14535 if test $gl_threads_api = none
; then
14536 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14540 if test -z "$gl_stdthreadlib_body_done"; then
14550 if test -z "$gl_pthreadlib_body_done"; then
14554 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14555 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14556 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14557 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14558 gl_have_pthread_h
=yes
14560 gl_have_pthread_h
=no
14564 if test "$gl_have_pthread_h" = yes; then
14565 # Other possible tests:
14566 # -lpthreads (FSU threads, PCthreads)
14568 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14569 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14570 # the second one only in libpthread, and lock.c needs it.
14572 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14573 # needs -pthread for some reason. See:
14574 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14576 for gl_pthread
in '' '-pthread'; do
14577 LIBS
="$LIBS $gl_pthread"
14578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 #include <pthread.h>
14582 pthread_mutexattr_t ma;
14587 pthread_mutex_lock (&m);
14588 pthread_mutexattr_init (&ma);
14593 if ac_fn_c_try_link
"$LINENO"; then :
14595 LIBPTHREAD
=$gl_pthread
14596 LIBPMULTITHREAD
=$gl_pthread
14598 rm -f core conftest.err conftest.
$ac_objext \
14599 conftest
$ac_exeext conftest.
$ac_ext
14601 test $gl_pthread_api = yes && break
14604 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14605 # since it is defined as a macro on OSF/1.)
14606 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14607 # The program links fine without libpthread. But it may actually
14608 # need to link with libpthread in order to create multiple threads.
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14610 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14611 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14612 $as_echo_n "(cached) " >&6
14614 ac_check_lib_save_LIBS
=$LIBS
14615 LIBS
="-lpthread $LIBS"
14616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14625 char pthread_kill ();
14629 return pthread_kill ();
14634 if ac_fn_c_try_link
"$LINENO"; then :
14635 ac_cv_lib_pthread_pthread_kill
=yes
14637 ac_cv_lib_pthread_pthread_kill
=no
14639 rm -f core conftest.err conftest.
$ac_objext \
14640 conftest
$ac_exeext conftest.
$ac_ext
14641 LIBS
=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14644 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14645 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14646 LIBPMULTITHREAD
=-lpthread
14647 # On Solaris and HP-UX, most pthread functions exist also in libc.
14648 # Therefore pthread_in_use() needs to actually try to create a
14649 # thread: pthread_create from libc will fail, whereas
14650 # pthread_create will actually create a thread.
14651 # On Solaris 10 or newer, this test is no longer needed, because
14652 # libc contains the fully functional pthread functions.
14654 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14656 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14662 elif test $gl_pthread_api != yes; then
14663 # Some library is needed. Try libpthread and libc_r.
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14665 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14666 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14667 $as_echo_n "(cached) " >&6
14669 ac_check_lib_save_LIBS
=$LIBS
14670 LIBS
="-lpthread $LIBS"
14671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14680 char pthread_kill ();
14684 return pthread_kill ();
14689 if ac_fn_c_try_link
"$LINENO"; then :
14690 ac_cv_lib_pthread_pthread_kill
=yes
14692 ac_cv_lib_pthread_pthread_kill
=no
14694 rm -f core conftest.err conftest.
$ac_objext \
14695 conftest
$ac_exeext conftest.
$ac_ext
14696 LIBS
=$ac_check_lib_save_LIBS
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14699 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14700 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14702 LIBPTHREAD
=-lpthread
14703 LIBPMULTITHREAD
=-lpthread
14706 if test $gl_pthread_api != yes; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14709 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14710 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14711 $as_echo_n "(cached) " >&6
14713 ac_check_lib_save_LIBS
=$LIBS
14715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14724 char pthread_kill ();
14728 return pthread_kill ();
14733 if ac_fn_c_try_link
"$LINENO"; then :
14734 ac_cv_lib_c_r_pthread_kill
=yes
14736 ac_cv_lib_c_r_pthread_kill
=no
14738 rm -f core conftest.err conftest.
$ac_objext \
14739 conftest
$ac_exeext conftest.
$ac_ext
14740 LIBS
=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14743 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14744 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14747 LIBPMULTITHREAD
=-lc_r
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14754 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14756 $as_echo "$gl_pthread_api" >&6; }
14759 if test $gl_pthread_api = yes; then
14761 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14776 if ac_fn_c_try_link
"$LINENO"; then :
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14781 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14782 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14783 $as_echo_n "(cached) " >&6
14785 ac_check_lib_save_LIBS
=$LIBS
14787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14790 /* Override any GCC internal prototype to avoid an error.
14791 Use char because int might match the return type of a GCC
14792 builtin and then its argument prototype would still apply. */
14796 char sched_yield ();
14800 return sched_yield ();
14805 if ac_fn_c_try_link
"$LINENO"; then :
14806 ac_cv_lib_rt_sched_yield
=yes
14808 ac_cv_lib_rt_sched_yield
=no
14810 rm -f core conftest.err conftest.
$ac_objext \
14811 conftest
$ac_exeext conftest.
$ac_ext
14812 LIBS
=$ac_check_lib_save_LIBS
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14815 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14816 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14817 LIB_SCHED_YIELD
=-lrt
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14820 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14821 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14822 $as_echo_n "(cached) " >&6
14824 ac_check_lib_save_LIBS
=$LIBS
14825 LIBS
="-lposix4 $LIBS"
14826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14829 /* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14835 char sched_yield ();
14839 return sched_yield ();
14844 if ac_fn_c_try_link
"$LINENO"; then :
14845 ac_cv_lib_posix4_sched_yield
=yes
14847 ac_cv_lib_posix4_sched_yield
=no
14849 rm -f core conftest.err conftest.
$ac_objext \
14850 conftest
$ac_exeext conftest.
$ac_ext
14851 LIBS
=$ac_check_lib_save_LIBS
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14854 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14855 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14856 LIB_SCHED_YIELD
=-lposix4
14863 rm -f core conftest.err conftest.
$ac_objext \
14864 conftest
$ac_exeext conftest.
$ac_ext
14867 gl_pthreadlib_body_done
=done
14870 if test $ac_cv_header_threads_h = yes; then
14871 for ac_func
in thrd_create
14873 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14874 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14875 cat >>confdefs.h
<<_ACEOF
14876 #define HAVE_THRD_CREATE 1
14882 if test $ac_cv_func_thrd_create = yes; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14886 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14887 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14888 $as_echo_n "(cached) " >&6
14890 ac_check_lib_save_LIBS
=$LIBS
14891 LIBS
="-lstdthreads $LIBS"
14892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14895 /* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14901 char thrd_create ();
14905 return thrd_create ();
14910 if ac_fn_c_try_link
"$LINENO"; then :
14911 ac_cv_lib_stdthreads_thrd_create
=yes
14913 ac_cv_lib_stdthreads_thrd_create
=no
14915 rm -f core conftest.err conftest.
$ac_objext \
14916 conftest
$ac_exeext conftest.
$ac_ext
14917 LIBS
=$ac_check_lib_save_LIBS
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14920 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14921 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14923 LIBSTDTHREAD
='-lstdthreads -lpthread'
14927 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14933 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14940 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14942 $as_echo "$ac_cv_header_threads_h" >&6; }
14943 gl_stdthreadlib_body_done
=done
14946 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14947 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14948 gl_threads_api
=isoc
14950 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14954 if test $gl_threads_api = none
; then
14955 case "$gl_use_threads" in
14956 yes | windows | win32
) # The 'win32' is for backward compatibility.
14957 if { case "$host_os" in
14962 gl_threads_api
=windows
14964 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14972 $as_echo_n "checking for multithread API to use... " >&6; }
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14974 $as_echo "$gl_threads_api" >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14988 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14989 if ${gl_cv_func_malloc_posix+:} false
; then :
14990 $as_echo_n "(cached) " >&6
14993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14999 #if defined _WIN32 && ! defined __CYGWIN__
15007 if ac_fn_c_try_compile
"$LINENO"; then :
15008 gl_cv_func_malloc_posix
=yes
15010 gl_cv_func_malloc_posix
=no
15012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
15016 $as_echo "$gl_cv_func_malloc_posix" >&6; }
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15021 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15022 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
15023 $as_echo_n "(cached) " >&6
15025 if test "$cross_compiling" = yes; then :
15027 # Guess yes on platforms where we know the result.
15028 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
15029 | hpux
* | solaris
* | cygwin
* | mingw
*)
15030 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
15031 # If we don't know, obey --enable-cross-guesses.
15032 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
15036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 #include <stdlib.h>
15043 char *p = malloc (0);
15052 if ac_fn_c_try_run
"$LINENO"; then :
15053 ac_cv_func_malloc_0_nonnull
=yes
15055 ac_cv_func_malloc_0_nonnull
=no
15057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15064 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15065 case "$ac_cv_func_malloc_0_nonnull" in
15067 gl_cv_func_malloc_0_nonnull
=1
15070 gl_cv_func_malloc_0_nonnull
=0
15075 cat >>confdefs.h
<<_ACEOF
15076 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
15090 $as_echo_n "checking for a traditional japanese locale... " >&6; }
15091 if ${gt_cv_locale_ja+:} false
; then :
15092 $as_echo_n "(cached) " >&6
15095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15098 #include <locale.h>
15100 #if HAVE_LANGINFO_CODESET
15101 # include <langinfo.h>
15103 #include <stdlib.h>
15104 #include <string.h>
15109 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15110 imitates locale dependent behaviour by looking at the environment
15111 variables, and all locales use the UTF-8 encoding. */
15112 #if defined __BEOS__ || defined __HAIKU__
15115 /* Check whether the given locale name is recognized by the system. */
15116 # if defined _WIN32 && !defined __CYGWIN__
15117 /* On native Windows, setlocale(category, "") looks at the system settings,
15118 not at the environment variables. Also, when an encoding suffix such
15119 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15120 category of the locale to "C". */
15121 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15122 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15125 if (setlocale (LC_ALL, "") == NULL) return 1;
15127 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15128 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15129 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15130 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15131 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15132 some unit tests fail.
15133 On MirBSD 10, when an unsupported locale is specified, setlocale()
15134 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15135 # if HAVE_LANGINFO_CODESET
15137 const char *cs = nl_langinfo (CODESET);
15138 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15139 || strcmp (cs, "UTF-8") == 0)
15144 /* On Cygwin, avoid locale names without encoding suffix, because the
15145 locale_charset() function relies on the encoding suffix. Note that
15146 LC_ALL is set on the command line. */
15147 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15149 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
15150 on Cygwin 1.5.x. */
15151 if (MB_CUR_MAX == 1)
15153 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15154 This excludes the UTF-8 encoding (except on MirBSD). */
15157 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15158 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15159 for (p = buf; *p != '\0'; p++)
15160 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15169 (eval $ac_link) 2>&5
15171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15174 # Handle native Windows specially, because there setlocale() interprets
15175 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15176 # "fr" or "fra" as "French" or "French_France.1252",
15177 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15178 # "ja" as "Japanese" or "Japanese_Japan.932",
15181 # Note that on native Windows, the Japanese locale is
15182 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
15183 # cannot use it here.
15184 gt_cv_locale_ja
=none
15187 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15188 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15189 # configure script would override the LC_ALL setting. Likewise for
15190 # LC_CTYPE, which is also set at the beginning of the configure script.
15191 # Test for the AIX locale name.
15192 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15193 gt_cv_locale_ja
=ja_JP
15195 # Test for the locale name with explicit encoding suffix.
15196 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15197 gt_cv_locale_ja
=ja_JP.EUC-JP
15199 # Test for the HP-UX, OSF/1, NetBSD locale name.
15200 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15201 gt_cv_locale_ja
=ja_JP.eucJP
15203 # Test for the IRIX, FreeBSD locale name.
15204 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15205 gt_cv_locale_ja
=ja_JP.EUC
15207 # Test for the Solaris 7 locale name.
15208 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15211 # Special test for NetBSD 1.6.
15212 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
15213 gt_cv_locale_ja
=ja_JP.eucJP
15216 gt_cv_locale_ja
=none
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
15230 $as_echo "$gt_cv_locale_ja" >&6; }
15231 LOCALE_JA
=$gt_cv_locale_ja
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
15237 $as_echo_n "checking for a french Unicode locale... " >&6; }
15238 if ${gt_cv_locale_fr_utf8+:} false
; then :
15239 $as_echo_n "(cached) " >&6
15242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15245 #include <locale.h>
15247 #if HAVE_LANGINFO_CODESET
15248 # include <langinfo.h>
15250 #include <stdlib.h>
15251 #include <string.h>
15255 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15256 imitates locale dependent behaviour by looking at the environment
15257 variables, and all locales use the UTF-8 encoding. */
15258 #if !(defined __BEOS__ || defined __HAIKU__)
15259 /* Check whether the given locale name is recognized by the system. */
15260 # if defined _WIN32 && !defined __CYGWIN__
15261 /* On native Windows, setlocale(category, "") looks at the system settings,
15262 not at the environment variables. Also, when an encoding suffix such
15263 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15264 category of the locale to "C". */
15265 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15266 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15269 if (setlocale (LC_ALL, "") == NULL) return 1;
15271 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15272 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15273 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15274 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15275 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15276 some unit tests fail. */
15277 # if HAVE_LANGINFO_CODESET
15279 const char *cs = nl_langinfo (CODESET);
15280 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15285 /* On Cygwin, avoid locale names without encoding suffix, because the
15286 locale_charset() function relies on the encoding suffix. Note that
15287 LC_ALL is set on the command line. */
15288 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15290 /* Check whether in the abbreviation of the second month, the second
15291 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15292 two bytes long, with UTF-8 encoding. */
15293 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15294 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15295 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15298 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15299 /* Check whether the decimal separator is a comma.
15300 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15301 are nl_langinfo(RADIXCHAR) are both ".". */
15302 if (localeconv () ->decimal_point[0] != ',') return 1;
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
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15323 gt_cv_locale_fr_utf8
=French_France
.65001
15326 gt_cv_locale_fr_utf8
=none
15330 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15331 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15332 # configure script would override the LC_ALL setting. Likewise for
15333 # LC_CTYPE, which is also set at the beginning of the configure script.
15334 # Test for the usual locale name.
15335 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15336 gt_cv_locale_fr_utf8
=fr_FR
15338 # Test for the locale name with explicit encoding suffix.
15339 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15340 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
15342 # Test for the Solaris 7 locale name.
15343 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15344 gt_cv_locale_fr_utf8
=fr.UTF-8
15347 gt_cv_locale_fr_utf8
=none
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15358 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15359 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15366 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15367 if ${gt_cv_locale_zh_CN+:} false
; then :
15368 $as_echo_n "(cached) " >&6
15371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15374 #include <locale.h>
15375 #include <stdlib.h>
15377 #if HAVE_LANGINFO_CODESET
15378 # include <langinfo.h>
15380 #include <stdlib.h>
15381 #include <string.h>
15386 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15387 imitates locale dependent behaviour by looking at the environment
15388 variables, and all locales use the UTF-8 encoding. */
15389 #if defined __BEOS__ || defined __HAIKU__
15392 /* Check whether the given locale name is recognized by the system. */
15393 # if defined _WIN32 && !defined __CYGWIN__
15394 /* On native Windows, setlocale(category, "") looks at the system settings,
15395 not at the environment variables. Also, when an encoding suffix such
15396 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15397 category of the locale to "C". */
15398 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15399 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15402 if (setlocale (LC_ALL, "") == NULL) return 1;
15404 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15405 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15406 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15407 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15408 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15409 some unit tests fail.
15410 On MirBSD 10, when an unsupported locale is specified, setlocale()
15411 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15412 # if HAVE_LANGINFO_CODESET
15414 const char *cs = nl_langinfo (CODESET);
15415 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15416 || strcmp (cs, "UTF-8") == 0)
15421 /* On Cygwin, avoid locale names without encoding suffix, because the
15422 locale_charset() function relies on the encoding suffix. Note that
15423 LC_ALL is set on the command line. */
15424 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15426 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15427 This excludes the UTF-8 encoding (except on MirBSD). */
15430 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15431 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15432 for (p = buf; *p != '\0'; p++)
15433 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15436 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15437 single wide character. This excludes the GB2312 and GBK encodings. */
15438 if (mblen ("\203\062\332\066", 5) != 4)
15445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15446 (eval $ac_link) 2>&5
15448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15449 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15451 # Handle native Windows specially, because there setlocale() interprets
15452 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15453 # "fr" or "fra" as "French" or "French_France.1252",
15454 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15455 # "ja" as "Japanese" or "Japanese_Japan.932",
15458 # Test for the hypothetical native Windows locale name.
15459 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15460 gt_cv_locale_zh_CN
=Chinese_China
.54936
15463 gt_cv_locale_zh_CN
=none
15467 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15468 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15469 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15470 gt_cv_locale_zh_CN
=none
15473 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15474 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15475 # configure script would override the LC_ALL setting. Likewise for
15476 # LC_CTYPE, which is also set at the beginning of the configure script.
15477 # Test for the locale name without encoding suffix.
15478 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15479 gt_cv_locale_zh_CN
=zh_CN
15481 # Test for the locale name with explicit encoding suffix.
15482 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15483 gt_cv_locale_zh_CN
=zh_CN.GB18030
15486 gt_cv_locale_zh_CN
=none
15492 # If there was a link error, due to mblen(), the system is so old that
15493 # it certainly doesn't have a chinese locale.
15494 gt_cv_locale_zh_CN
=none
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15500 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15501 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15505 $as_echo_n "checking for inline... " >&6; }
15506 if ${ac_cv_c_inline+:} false
; then :
15507 $as_echo_n "(cached) " >&6
15510 for ac_kw
in inline __inline__ __inline
; do
15511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 #ifndef __cplusplus
15515 static $ac_kw foo_t static_foo () {return 0; }
15516 $ac_kw foo_t foo () {return 0; }
15520 if ac_fn_c_try_compile
"$LINENO"; then :
15521 ac_cv_c_inline
=$ac_kw
15523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15524 test "$ac_cv_c_inline" != no
&& break
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15529 $as_echo "$ac_cv_c_inline" >&6; }
15531 case $ac_cv_c_inline in
15534 case $ac_cv_c_inline in
15536 *) ac_val
=$ac_cv_c_inline;;
15538 cat >>confdefs.h
<<_ACEOF
15539 #ifndef __cplusplus
15540 #define inline $ac_val
15551 GNULIB_EXPLICIT_BZERO
=0;
15558 GNULIB_RAWMEMCHR
=0;
15561 GNULIB_STRCHRNUL
=0;
15569 GNULIB_STRCASESTR
=0;
15576 GNULIB_MBSCASECMP
=0;
15577 GNULIB_MBSNCASECMP
=0;
15578 GNULIB_MBSPCASECMP
=0;
15579 GNULIB_MBSCASESTR
=0;
15586 GNULIB_STRERROR_R
=0;
15587 GNULIB_STRERRORNAME_NP
=0;
15588 GNULIB_SIGABBREV_NP
=0;
15589 GNULIB_SIGDESCR_NP
=0;
15590 GNULIB_STRSIGNAL
=0;
15591 GNULIB_STRVERSCMP
=0;
15593 GNULIB_MDA_MEMCCPY
=1;
15594 GNULIB_MDA_STRDUP
=1;
15595 HAVE_EXPLICIT_BZERO
=1;
15598 HAVE_DECL_MEMMEM
=1;
15600 HAVE_DECL_MEMRCHR
=1;
15605 HAVE_DECL_STRDUP
=1;
15606 HAVE_DECL_STRNDUP
=1;
15607 HAVE_DECL_STRNLEN
=1;
15611 HAVE_DECL_STRTOK_R
=1;
15612 HAVE_DECL_STRERROR_R
=1;
15613 HAVE_STRERRORNAME_NP
=1;
15614 HAVE_SIGABBREV_NP
=1;
15615 HAVE_SIGDESCR_NP
=1;
15616 HAVE_DECL_STRSIGNAL
=1;
15622 REPLACE_STRCHRNUL
=0;
15628 REPLACE_STRCASESTR
=0;
15629 REPLACE_STRTOK_R
=0;
15630 REPLACE_STRERROR
=0;
15631 REPLACE_STRERROR_R
=0;
15632 REPLACE_STRERRORNAME_NP
=0;
15633 REPLACE_STRSIGNAL
=0;
15634 UNDEFINE_STRTOK_R
=0;
15641 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15642 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15643 # irrelevant for anonymous mappings.
15644 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15645 if test "x$ac_cv_func_mmap" = xyes
; then :
15652 # Try to allow MAP_ANONYMOUS.
15653 gl_have_mmap_anonymous
=no
15654 if test $gl_have_mmap = yes; then
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15656 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15660 #include <sys/mman.h>
15661 #ifdef MAP_ANONYMOUS
15662 I cannot identify this map
15666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15667 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15668 gl_have_mmap_anonymous
=yes
15672 if test $gl_have_mmap_anonymous != yes; then
15673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15676 #include <sys/mman.h>
15678 I cannot identify this map
15682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15683 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15685 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15687 gl_have_mmap_anonymous
=yes
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15693 $as_echo "$gl_have_mmap_anonymous" >&6; }
15694 if test $gl_have_mmap_anonymous = yes; then
15696 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15705 # Detect platform-specific bugs in some versions of glibc:
15706 # memchr should not dereference anything with length 0
15707 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15708 # memchr should not dereference overestimated length after a match
15709 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15710 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15711 # memchr should cast the second argument to 'unsigned char'.
15712 # This bug exists in Android 4.3.
15713 # Assume that memchr works on platforms that lack mprotect.
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15715 $as_echo_n "checking whether memchr works... " >&6; }
15716 if ${gl_cv_func_memchr_works+:} false
; then :
15717 $as_echo_n "(cached) " >&6
15719 if test "$cross_compiling" = yes; then :
15721 # Guess no on Android.
15722 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15723 # Guess yes on native Windows.
15724 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15725 # If we don't know, obey --enable-cross-guesses.
15726 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15733 #include <string.h>
15734 #if HAVE_SYS_MMAN_H
15735 # include <fcntl.h>
15736 # include <unistd.h>
15737 # include <sys/types.h>
15738 # include <sys/mman.h>
15740 # define MAP_FILE 0
15749 char *fence = NULL;
15750 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15751 # if HAVE_MAP_ANONYMOUS
15752 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15754 # else /* !HAVE_MAP_ANONYMOUS */
15755 const int flags = MAP_FILE | MAP_PRIVATE;
15756 int fd = open ("/dev/zero", O_RDONLY, 0666);
15760 int pagesize = getpagesize ();
15762 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15764 if (two_pages != (char *)(-1)
15765 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15766 fence = two_pages + pagesize;
15771 /* Test against bugs on glibc systems. */
15772 if (memchr (fence, 0, 0))
15774 strcpy (fence - 9, "12345678");
15775 if (memchr (fence - 9, 0, 79) != fence - 1)
15777 if (memchr (fence - 1, 0, 3) != fence - 1)
15779 /* Test against bug on AIX 7.2. */
15780 if (memchr (fence - 4, '6', 16) != fence - 4)
15783 /* Test against bug on Android 4.3. */
15789 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15798 if ac_fn_c_try_run
"$LINENO"; then :
15799 gl_cv_func_memchr_works
=yes
15801 gl_cv_func_memchr_works
=no
15803 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15804 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15810 $as_echo "$gl_cv_func_memchr_works" >&6; }
15811 case "$gl_cv_func_memchr_works" in
15813 *) REPLACE_MEMCHR
=1 ;;
15816 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15817 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15823 cat >>confdefs.h
<<_ACEOF
15824 #define HAVE_DECL_MEMMEM $ac_have_decl
15831 for ac_func
in memmem
15833 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15834 if test "x$ac_cv_func_memmem" = xyes
; then :
15835 cat >>confdefs.h
<<_ACEOF
15836 #define HAVE_MEMMEM 1
15842 if test $ac_cv_func_memmem = yes; then
15848 if test $ac_cv_have_decl_memmem = no
; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15852 $as_echo_n "checking whether memmem works... " >&6; }
15853 if ${gl_cv_func_memmem_works_always+:} false
; then :
15854 $as_echo_n "(cached) " >&6
15856 if test "$cross_compiling" = yes; then :
15857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15860 #ifdef __GNU_LIBRARY__
15861 #include <features.h>
15862 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15863 || __GLIBC_MINOR__ > 12)) \
15864 || (__GLIBC__ > 2)) \
15865 || defined __UCLIBC__
15868 #elif defined __CYGWIN__
15869 #include <cygwin/version.h>
15870 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15879 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15880 gl_cv_func_memmem_works_always
="guessing yes"
15882 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15891 #include <string.h> /* for memmem */
15892 #define P "_EF_BF_BD"
15893 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15894 #define NEEDLE P P P P P
15901 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15903 /* Check for empty needle behavior. */
15905 const char *haystack = "AAA";
15906 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
15915 if ac_fn_c_try_run
"$LINENO"; then :
15916 gl_cv_func_memmem_works_always
=yes
15918 gl_cv_func_memmem_works_always
=no
15920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15927 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15928 case "$gl_cv_func_memmem_works_always" in
15937 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15938 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15944 cat >>confdefs.h
<<_ACEOF
15945 #define HAVE_DECL_MEMRCHR $ac_have_decl
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
15953 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
15954 if ${gl_cv_minmax_in_limits_h+:} false
; then :
15955 $as_echo_n "(cached) " >&6
15957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15959 #include <limits.h>
15960 int x = MIN (42, 17);
15969 if ac_fn_c_try_compile
"$LINENO"; then :
15970 gl_cv_minmax_in_limits_h
=yes
15972 gl_cv_minmax_in_limits_h
=no
15974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
15977 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
15978 if test $gl_cv_minmax_in_limits_h = yes; then
15980 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
15990 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
15991 if ${gl_cv_minmax_in_sys_param_h+:} false
; then :
15992 $as_echo_n "(cached) " >&6
15994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 #include <sys/param.h>
15997 int x = MIN (42, 17);
16006 if ac_fn_c_try_compile
"$LINENO"; then :
16007 gl_cv_minmax_in_sys_param_h
=yes
16009 gl_cv_minmax_in_sys_param_h
=no
16011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
16014 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
16015 if test $gl_cv_minmax_in_sys_param_h = yes; then
16017 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
16031 $as_echo_n "checking for O_CLOEXEC... " >&6; }
16032 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
16033 $as_echo_n "(cached) " >&6
16035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16050 if ac_fn_c_try_compile
"$LINENO"; then :
16051 gl_cv_macro_O_CLOEXEC
=yes
16053 gl_cv_macro_O_CLOEXEC
=no
16055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
16058 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
16063 $as_echo_n "checking for promoted mode_t type... " >&6; }
16064 if ${gl_cv_promoted_mode_t+:} false
; then :
16065 $as_echo_n "(cached) " >&6
16068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 #include <sys/types.h>
16074 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
16079 if ac_fn_c_try_compile
"$LINENO"; then :
16080 gl_cv_promoted_mode_t
='int'
16082 gl_cv_promoted_mode_t
='mode_t'
16084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
16088 $as_echo "$gl_cv_promoted_mode_t" >&6; }
16090 cat >>confdefs.h
<<_ACEOF
16091 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
16103 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
16104 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
16110 cat >>confdefs.h
<<_ACEOF
16111 #define HAVE_DECL_SETENV $ac_have_decl
16119 if test $ac_cv_have_decl_setenv = no
; then
16127 for ac_header
in search.h
16129 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
16130 if test "x$ac_cv_header_search_h" = xyes
; then :
16131 cat >>confdefs.h
<<_ACEOF
16132 #define HAVE_SEARCH_H 1
16139 for ac_func
in tsearch
16141 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
16142 if test "x$ac_cv_func_tsearch" = xyes
; then :
16143 cat >>confdefs.h
<<_ACEOF
16144 #define HAVE_TSEARCH 1
16153 GNULIB_PTHREAD_SIGMASK
=0;
16155 GNULIB_SIGNAL_H_SIGPIPE
=0;
16156 GNULIB_SIGPROCMASK
=0;
16157 GNULIB_SIGACTION
=0;
16158 HAVE_POSIX_SIGNALBLOCKING
=1;
16159 HAVE_PTHREAD_SIGMASK
=1;
16164 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
16166 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
16168 HAVE_SIGHANDLER_T
=1;
16169 REPLACE_PTHREAD_SIGMASK
=0;
16173 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
16174 #include <signal.h>
16175 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
16176 #include <sys/types.h>
16179 if test "x$ac_cv_type_sigset_t" = xyes
; then :
16181 cat >>confdefs.h
<<_ACEOF
16182 #define HAVE_SIGSET_T 1
16185 gl_cv_type_sigset_t
=yes
16187 gl_cv_type_sigset_t
=no
16190 if test $gl_cv_type_sigset_t != yes; then
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16195 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16196 if ${ac_cv_type_uid_t+:} false
; then :
16197 $as_echo_n "(cached) " >&6
16199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201 #include <sys/types.h>
16204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16205 $EGREP "uid_t" >/dev
/null
2>&1; then :
16206 ac_cv_type_uid_t
=yes
16208 ac_cv_type_uid_t
=no
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16214 $as_echo "$ac_cv_type_uid_t" >&6; }
16215 if test $ac_cv_type_uid_t = no
; then
16217 $as_echo "#define uid_t int" >>confdefs.h
16220 $as_echo "#define gid_t int" >>confdefs.h
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16225 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16226 if ${ac_cv_header_stdbool_h+:} false
; then :
16227 $as_echo_n "(cached) " >&6
16229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16232 #include <stdbool.h>
16237 typedef _Bool Bool;
16239 "error: bool is not defined"
16242 "error: false is not defined"
16245 "error: false is not 0"
16248 "error: true is not defined"
16251 "error: true is not 1"
16255 #ifndef __bool_true_false_are_defined
16256 "error: __bool_true_false_are_defined is not defined"
16259 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
16261 char a[true == 1 ? 1 : -1];
16262 char b[false == 0 ? 1 : -1];
16263 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16264 char d[(bool) 0.5 == true ? 1 : -1];
16265 /* See body of main program for 'e'. */
16266 char f[(Bool) 0.0 == false ? 1 : -1];
16268 char h[sizeof (Bool)];
16269 char i[sizeof s.t];
16270 enum { j = false, k = true, l = false * true, m = true * 256 };
16271 /* The following fails for
16272 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16274 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16275 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16276 /* Catch a bug in an HP-UX C compiler. See
16277 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16278 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16289 *pq |= q; *pq |= ! q;
16290 *qq |= q; *qq |= ! q;
16291 /* Refer to every declared value, to avoid compiler optimizations. */
16292 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16293 + !m + !n + !o + !p + !q + !pq + !qq);
16299 if ac_fn_c_try_compile
"$LINENO"; then :
16300 ac_cv_header_stdbool_h
=yes
16302 ac_cv_header_stdbool_h
=no
16304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16307 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16308 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16309 if test "x$ac_cv_type__Bool" = xyes
; then :
16311 cat >>confdefs.h
<<_ACEOF
16312 #define HAVE__BOOL 1
16319 ac_fn_c_check_decl
"$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default"
16320 if test "x$ac_cv_have_decl_fcloseall" = xyes
; then :
16326 cat >>confdefs.h
<<_ACEOF
16327 #define HAVE_DECL_FCLOSEALL $ac_have_decl
16330 ac_fn_c_check_decl
"$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default"
16331 if test "x$ac_cv_have_decl_ecvt" = xyes
; then :
16337 cat >>confdefs.h
<<_ACEOF
16338 #define HAVE_DECL_ECVT $ac_have_decl
16341 ac_fn_c_check_decl
"$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default"
16342 if test "x$ac_cv_have_decl_fcvt" = xyes
; then :
16348 cat >>confdefs.h
<<_ACEOF
16349 #define HAVE_DECL_FCVT $ac_have_decl
16352 ac_fn_c_check_decl
"$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default"
16353 if test "x$ac_cv_have_decl_gcvt" = xyes
; then :
16359 cat >>confdefs.h
<<_ACEOF
16360 #define HAVE_DECL_GCVT $ac_have_decl
16363 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
16364 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
16370 cat >>confdefs.h
<<_ACEOF
16371 #define HAVE_DECL_STRDUP $ac_have_decl
16375 REPLACE_STRERROR_0
=0
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16377 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
16378 if ${gl_cv_func_strerror_0_works+:} false
; then :
16379 $as_echo_n "(cached) " >&6
16381 if test "$cross_compiling" = yes; then :
16383 # Guess yes on glibc systems.
16384 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16385 # Guess yes on musl systems.
16386 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16387 # Guess yes on native Windows.
16388 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16389 # If we don't know, obey --enable-cross-guesses.
16390 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
16394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #include <string.h>
16405 str = strerror (0);
16406 if (!*str) result |= 1;
16407 if (errno) result |= 2;
16408 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16415 if ac_fn_c_try_run
"$LINENO"; then :
16416 gl_cv_func_strerror_0_works
=yes
16418 gl_cv_func_strerror_0_works
=no
16420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16427 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16428 case "$gl_cv_func_strerror_0_works" in
16431 REPLACE_STRERROR_0
=1
16433 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16447 if test $ac_cv_func_strerror_r = yes; then
16448 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16450 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16451 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16452 $as_echo_n "(cached) " >&6
16454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 #include <string.h>
16457 int strerror_r (int, char *, size_t);
16467 if ac_fn_c_try_compile
"$LINENO"; then :
16468 gl_cv_func_strerror_r_posix_signature
=yes
16470 gl_cv_func_strerror_r_posix_signature
=no
16472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16476 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16477 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16479 $as_echo_n "checking whether strerror_r works... " >&6; }
16480 if ${gl_cv_func_strerror_r_works+:} false
; then :
16481 $as_echo_n "(cached) " >&6
16483 if test "$cross_compiling" = yes; then :
16487 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16488 # Guess no on HP-UX.
16489 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16490 # Guess no on BSD variants.
16491 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16492 # Guess yes otherwise.
16493 *) gl_cv_func_strerror_r_works
="guessing yes";;
16497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16500 #include <string.h>
16507 if (strerror_r (EACCES, buf, 0) < 0)
16510 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16512 strcpy (buf, "Unknown");
16513 if (strerror_r (0, buf, sizeof buf) != 0)
16517 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16521 if (strerror_r (-3, buf, sizeof buf) < 0)
16533 if ac_fn_c_try_run
"$LINENO"; then :
16534 gl_cv_func_strerror_r_works
=yes
16536 gl_cv_func_strerror_r_works
=no
16538 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16539 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16545 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16548 if test $ac_cv_func___xpg_strerror_r = yes; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16550 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16551 if ${gl_cv_func_strerror_r_works+:} false
; then :
16552 $as_echo_n "(cached) " >&6
16554 if test "$cross_compiling" = yes; then :
16555 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16561 #include <string.h>
16566 int __xpg_strerror_r(int, char *, size_t);
16572 char buf[256] = "^";
16574 char *str = strerror (-1);
16575 strcpy (copy, str);
16576 if (__xpg_strerror_r (-2, buf, 1) == 0)
16580 __xpg_strerror_r (-2, buf, 256);
16581 if (strcmp (str, copy))
16589 if ac_fn_c_try_run
"$LINENO"; then :
16590 gl_cv_func_strerror_r_works
=yes
16592 gl_cv_func_strerror_r_works
=no
16594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16601 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16607 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16608 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16614 cat >>confdefs.h
<<_ACEOF
16615 #define HAVE_DECL_STRERROR_R $ac_have_decl
16632 if test $gl_cv_have_include_next = yes; then
16633 gl_cv_next_string_h
='<'string.h
'>'
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16636 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16637 if ${gl_cv_next_string_h+:} false
; then :
16638 $as_echo_n "(cached) " >&6
16643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16645 #include <string.h>
16648 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16649 *) gl_absname_cpp
="$ac_cpp" ;;
16654 gl_dirsep_regex
='[/\\]'
16657 gl_dirsep_regex
='\/'
16660 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16661 gl_header_literal_regex
=`echo 'string.h' \
16662 | sed -e "$gl_make_literal_regex_sed"`
16663 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16664 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16670 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16671 sed -n "$gl_absolute_header_sed"`
16673 gl_header
=$gl_cv_absolute_string_h
16674 gl_cv_next_string_h
='"'$gl_header'"'
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16679 $as_echo "$gl_cv_next_string_h" >&6; }
16681 NEXT_STRING_H
=$gl_cv_next_string_h
16683 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16685 gl_next_as_first_directive
='<'string.h
'>'
16687 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16688 gl_next_as_first_directive
=$gl_cv_next_string_h
16690 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16702 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16703 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16709 cat >>confdefs.h
<<_ACEOF
16710 #define HAVE_DECL_STRNLEN $ac_have_decl
16716 if test $REPLACE_MEMCHR = 1; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16720 $as_echo_n "checking whether strstr works... " >&6; }
16721 if ${gl_cv_func_strstr_works_always+:} false
; then :
16722 $as_echo_n "(cached) " >&6
16724 if test "$cross_compiling" = yes; then :
16725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16728 #ifdef __GNU_LIBRARY__
16729 #include <features.h>
16730 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16731 || defined __UCLIBC__
16734 #elif defined __CYGWIN__
16735 #include <cygwin/version.h>
16736 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16745 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16746 gl_cv_func_strstr_works_always
="guessing yes"
16748 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16757 #include <string.h> /* for strstr */
16758 #ifdef __GNU_LIBRARY__
16759 #include <features.h>
16760 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16764 #define P "_EF_BF_BD"
16765 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16766 #define NEEDLE P P P P P
16771 return !!strstr (HAYSTACK, NEEDLE);
16777 if ac_fn_c_try_run
"$LINENO"; then :
16778 gl_cv_func_strstr_works_always
=yes
16780 gl_cv_func_strstr_works_always
=no
16782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16789 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16790 case "$gl_cv_func_strstr_works_always" in
16798 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16799 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16805 cat >>confdefs.h
<<_ACEOF
16806 #define HAVE_DECL_STRTOK_R $ac_have_decl
16821 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16833 if test $gl_cv_have_include_next = yes; then
16834 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16837 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16838 if ${gl_cv_next_sys_types_h+:} false
; then :
16839 $as_echo_n "(cached) " >&6
16844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 #include <sys/types.h>
16849 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16850 *) gl_absname_cpp
="$ac_cpp" ;;
16855 gl_dirsep_regex
='[/\\]'
16858 gl_dirsep_regex
='\/'
16861 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16862 gl_header_literal_regex
=`echo 'sys/types.h' \
16863 | sed -e "$gl_make_literal_regex_sed"`
16864 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16865 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16871 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16872 sed -n "$gl_absolute_header_sed"`
16874 gl_header
=$gl_cv_absolute_sys_types_h
16875 gl_cv_next_sys_types_h
='"'$gl_header'"'
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16880 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16882 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16884 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16886 gl_next_as_first_directive
='<'sys
/types.h
'>'
16888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16889 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16891 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16904 WINDOWS_STAT_INODES
=0
16915 GNULIB_LOCALTIME
=0;
16916 GNULIB_NANOSLEEP
=0;
16920 GNULIB_TIMESPEC_GET
=0;
16924 GNULIB_MDA_TZSET
=1;
16925 HAVE_DECL_LOCALTIME_R
=1;
16929 HAVE_TIMESPEC_GET
=1;
16931 REPLACE_CTIME
=GNULIB_PORTCHECK
;
16932 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
16933 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
16934 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
16935 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
16936 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
16937 REPLACE_TZSET
=GNULIB_PORTCHECK
;
16939 : ${GNULIB_GETTIMEOFDAY=0};
16941 REPLACE_LOCALTIME
=0;
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16946 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16947 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
16948 $as_echo_n "(cached) " >&6
16950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16957 static struct timespec x; x.tv_sec = x.tv_nsec;
16962 if ac_fn_c_try_compile
"$LINENO"; then :
16963 gl_cv_sys_struct_timespec_in_time_h
=yes
16965 gl_cv_sys_struct_timespec_in_time_h
=no
16967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16970 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16972 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16973 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16974 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16975 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
16976 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16977 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16980 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16981 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
16982 $as_echo_n "(cached) " >&6
16984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16986 #include <sys/time.h>
16991 static struct timespec x; x.tv_sec = x.tv_nsec;
16996 if ac_fn_c_try_compile
"$LINENO"; then :
16997 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16999 gl_cv_sys_struct_timespec_in_sys_time_h
=no
17001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17004 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17005 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17006 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
17009 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17010 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
17011 $as_echo_n "(cached) " >&6
17013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015 #include <pthread.h>
17020 static struct timespec x; x.tv_sec = x.tv_nsec;
17025 if ac_fn_c_try_compile
"$LINENO"; then :
17026 gl_cv_sys_struct_timespec_in_pthread_h
=yes
17028 gl_cv_sys_struct_timespec_in_pthread_h
=no
17030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17033 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17034 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17035 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
17038 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
17039 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
17040 $as_echo_n "(cached) " >&6
17042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 #include <unistd.h>
17049 static struct timespec x; x.tv_sec = x.tv_nsec;
17054 if ac_fn_c_try_compile
"$LINENO"; then :
17055 gl_cv_sys_struct_timespec_in_unistd_h
=yes
17057 gl_cv_sys_struct_timespec_in_unistd_h
=no
17059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
17062 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
17063 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
17064 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
17085 if test $gl_cv_have_include_next = yes; then
17086 gl_cv_next_time_h
='<'time.h
'>'
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
17089 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17090 if ${gl_cv_next_time_h+:} false
; then :
17091 $as_echo_n "(cached) " >&6
17096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17101 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17102 *) gl_absname_cpp
="$ac_cpp" ;;
17107 gl_dirsep_regex
='[/\\]'
17110 gl_dirsep_regex
='\/'
17113 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17114 gl_header_literal_regex
=`echo 'time.h' \
17115 | sed -e "$gl_make_literal_regex_sed"`
17116 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17117 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17123 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17124 sed -n "$gl_absolute_header_sed"`
17126 gl_header
=$gl_cv_absolute_time_h
17127 gl_cv_next_time_h
='"'$gl_header'"'
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
17132 $as_echo "$gl_cv_next_time_h" >&6; }
17134 NEXT_TIME_H
=$gl_cv_next_time_h
17136 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17138 gl_next_as_first_directive
='<'time.h
'>'
17140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17141 gl_next_as_first_directive
=$gl_cv_next_time_h
17143 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
17153 $as_echo_n "checking for TIME_UTC in <time.h>... " >&6; }
17154 if ${gl_cv_time_h_has_TIME_UTC+:} false
; then :
17155 $as_echo_n "(cached) " >&6
17157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17164 static int x = TIME_UTC; x++;
17169 if ac_fn_c_try_compile
"$LINENO"; then :
17170 gl_cv_time_h_has_TIME_UTC
=yes
17172 gl_cv_time_h_has_TIME_UTC
=no
17174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
17177 $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; }
17178 if test $gl_cv_time_h_has_TIME_UTC = yes; then
17179 TIME_H_DEFINES_TIME_UTC
=1
17181 TIME_H_DEFINES_TIME_UTC
=0
17187 ac_fn_c_check_decl
"$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default"
17188 if test "x$ac_cv_have_decl_execvpe" = xyes
; then :
17194 cat >>confdefs.h
<<_ACEOF
17195 #define HAVE_DECL_EXECVPE $ac_have_decl
17198 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
17199 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
17205 cat >>confdefs.h
<<_ACEOF
17206 #define HAVE_DECL_UNSETENV $ac_have_decl
17213 if test $ac_cv_header_crtdefs_h = yes; then
17223 GNULIB_ISWXDIGIT
=0;
17227 GNULIB_TOWCTRANS
=0;
17231 REPLACE_ISWBLANK
=0;
17232 REPLACE_ISWDIGIT
=0;
17233 REPLACE_ISWXDIGIT
=0;
17243 GL_COND_LIBTOOL_TRUE
=
17244 GL_COND_LIBTOOL_FALSE
='#'
17246 GL_COND_LIBTOOL_TRUE
='#'
17247 GL_COND_LIBTOOL_FALSE
=
17250 gl_cond_libtool
=false
17253 gl_m4_base
='import/m4'
17264 gl_source_base
='import'
17267 if test $ac_cv_func_alloca_works = no
; then
17271 # Define an additional variable used in the Makefile substitution.
17272 if test $ac_cv_working_alloca_h = yes; then
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17274 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17275 if ${gl_cv_rpl_alloca+:} false
; then :
17276 $as_echo_n "(cached) " >&6
17279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17282 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17288 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
17289 gl_cv_rpl_alloca
=yes
17291 gl_cv_rpl_alloca
=no
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17298 $as_echo "$gl_cv_rpl_alloca" >&6; }
17299 if test $gl_cv_rpl_alloca = yes; then
17301 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17311 if test -n "$ALLOCA_H"; then
17312 GL_GENERATE_ALLOCA_H_TRUE
=
17313 GL_GENERATE_ALLOCA_H_FALSE
='#'
17315 GL_GENERATE_ALLOCA_H_TRUE
='#'
17316 GL_GENERATE_ALLOCA_H_FALSE
=
17320 if test $ac_cv_working_alloca_h = yes; then
17331 if test $ac_cv_header_arpa_inet_h = yes; then
17346 if test $gl_cv_have_include_next = yes; then
17347 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
17350 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
17351 if ${gl_cv_next_arpa_inet_h+:} false
; then :
17352 $as_echo_n "(cached) " >&6
17355 if test $ac_cv_header_arpa_inet_h = yes; then
17360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17362 #include <arpa/inet.h>
17365 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17366 *) gl_absname_cpp
="$ac_cpp" ;;
17371 gl_dirsep_regex
='[/\\]'
17374 gl_dirsep_regex
='\/'
17377 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17378 gl_header_literal_regex
=`echo 'arpa/inet.h' \
17379 | sed -e "$gl_make_literal_regex_sed"`
17380 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17381 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17387 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17388 sed -n "$gl_absolute_header_sed"`
17390 gl_header
=$gl_cv_absolute_arpa_inet_h
17391 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
17393 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
17399 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
17401 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
17403 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17404 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17405 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
17407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17408 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
17410 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17420 if test $ac_cv_header_sys_socket_h = yes; then
17423 if test $ac_cv_header_ws2tcpip_h = yes; then
17444 if test $ac_cv_func_btowc = no
; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17452 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17453 if ${gl_cv_func_btowc_nul+:} false
; then :
17454 $as_echo_n "(cached) " >&6
17457 if test "$cross_compiling" = yes; then :
17460 # Guess no on Cygwin.
17461 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17462 # Guess yes on native Windows.
17463 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
17464 # Guess yes otherwise.
17465 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17475 if (btowc ('\0') != 0)
17480 if ac_fn_c_try_run
"$LINENO"; then :
17481 gl_cv_func_btowc_nul
=yes
17483 gl_cv_func_btowc_nul
=no
17485 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17486 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17492 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17495 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17496 if ${gl_cv_func_btowc_eof+:} false
; then :
17497 $as_echo_n "(cached) " >&6
17501 # Guess no on IRIX.
17502 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17503 # Guess yes on native Windows.
17504 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
17505 # Guess yes otherwise.
17506 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17508 if test $LOCALE_FR != none
; then
17509 if test "$cross_compiling" = yes; then :
17512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17515 #include <locale.h>
17520 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17522 if (btowc (EOF) != WEOF)
17528 if ac_fn_c_try_run
"$LINENO"; then :
17529 gl_cv_func_btowc_eof
=yes
17531 gl_cv_func_btowc_eof
=no
17533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17541 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17543 case "$gl_cv_func_btowc_nul" in
17545 *) REPLACE_BTOWC
=1 ;;
17547 case "$gl_cv_func_btowc_eof" in
17549 *) REPLACE_BTOWC
=1 ;;
17553 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17562 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17579 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17585 $as_echo_n "checking for __builtin_expect... " >&6; }
17586 if ${gl_cv___builtin_expect+:} false
; then :
17587 $as_echo_n "(cached) " >&6
17589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17593 main (int argc, char **argv)
17595 argc = __builtin_expect (argc, 100);
17596 return argv[argc != 100][0];
17599 if ac_fn_c_try_link
"$LINENO"; then :
17600 gl_cv___builtin_expect
=yes
17602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17605 #include <builtins.h>
17607 main (int argc, char **argv)
17609 argc = __builtin_expect (argc, 100);
17610 return argv[argc != 100][0];
17613 if ac_fn_c_try_link
"$LINENO"; then :
17614 gl_cv___builtin_expect
="in <builtins.h>"
17616 gl_cv___builtin_expect
=no
17618 rm -f core conftest.err conftest.
$ac_objext \
17619 conftest
$ac_exeext conftest.
$ac_ext
17621 rm -f core conftest.err conftest.
$ac_objext \
17622 conftest
$ac_exeext conftest.
$ac_ext
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17625 $as_echo "$gl_cv___builtin_expect" >&6; }
17626 if test "$gl_cv___builtin_expect" = yes; then
17627 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17629 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17630 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17638 if test $ac_cv_func_canonicalize_file_name = no
; then
17639 HAVE_CANONICALIZE_FILE_NAME
=0
17640 if test $ac_cv_func_realpath = no
; then
17643 case "$gl_cv_func_realpath_works" in
17645 *) REPLACE_REALPATH
=1 ;;
17649 case "$gl_cv_func_realpath_works" in
17653 REPLACE_CANONICALIZE_FILE_NAME
=1
17659 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17668 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17673 cat >>confdefs.h
<<_ACEOF
17674 #define GNULIB_CANONICALIZE_LGPL 1
17683 GNULIB_CANONICALIZE_FILE_NAME
=1
17689 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17704 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17719 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5
17726 $as_echo_n "checking whether this system supports file names of any length... " >&6; }
17727 if ${gl_cv_have_unlimited_file_name_length+:} false
; then :
17728 $as_echo_n "(cached) " >&6
17730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17735 # include <unistd.h>
17737 #include <limits.h>
17738 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17739 # include <sys/param.h>
17741 #if !defined PATH_MAX && defined MAXPATHLEN
17742 # define PATH_MAX MAXPATHLEN
17746 # define PATH_MAX 1024
17748 #if defined _WIN32 && ! defined __CYGWIN__
17750 # define PATH_MAX 260
17754 have_arbitrary_file_name_length_limit
17757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17758 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17759 gl_cv_have_unlimited_file_name_length
=no
17761 gl_cv_have_unlimited_file_name_length
=yes
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5
17767 $as_echo "$gl_cv_have_unlimited_file_name_length" >&6; }
17769 if test $gl_cv_have_unlimited_file_name_length = no
; then
17778 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17785 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17786 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17788 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
17789 # programs in the package would end up linked with that potentially-shared
17790 # library, inducing unnecessary run-time overhead.
17793 gl_saved_libs
=$LIBS
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17795 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17796 if ${ac_cv_search_clock_gettime+:} false
; then :
17797 $as_echo_n "(cached) " >&6
17799 ac_func_search_save_LIBS
=$LIBS
17800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17809 char clock_gettime ();
17813 return clock_gettime ();
17818 for ac_lib
in '' rt posix4
; do
17819 if test -z "$ac_lib"; then
17820 ac_res
="none required"
17823 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17825 if ac_fn_c_try_link
"$LINENO"; then :
17826 ac_cv_search_clock_gettime
=$ac_res
17828 rm -f core conftest.err conftest.
$ac_objext \
17830 if ${ac_cv_search_clock_gettime+:} false
; then :
17834 if ${ac_cv_search_clock_gettime+:} false
; then :
17837 ac_cv_search_clock_gettime
=no
17839 rm conftest.
$ac_ext
17840 LIBS
=$ac_func_search_save_LIBS
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17843 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17844 ac_res
=$ac_cv_search_clock_gettime
17845 if test "$ac_res" != no
; then :
17846 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17847 test "$ac_cv_search_clock_gettime" = "none required" ||
17848 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
17851 for ac_func
in clock_gettime clock_settime
17853 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17854 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17855 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17856 cat >>confdefs.h
<<_ACEOF
17857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17863 LIBS
=$gl_saved_libs
17867 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17874 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17883 if test $ac_cv_header_sys_socket_h != yes; then
17884 for ac_header
in winsock2.h
17886 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17887 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17888 cat >>confdefs.h
<<_ACEOF
17889 #define HAVE_WINSOCK2_H 1
17897 if test "$ac_cv_header_winsock2_h" = yes; then
17899 UNISTD_H_HAVE_WINSOCK2_H
=1
17900 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17906 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17911 if test $REPLACE_CLOSE = 0; then
17915 if test $ac_cv_func_fchdir = no
; then
17919 if test $HAVE_FCHDIR = 0; then
17925 if test $REPLACE_CLOSE = 1; then
17934 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
17948 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17955 for ac_func
in closedir
17957 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
17958 if test "x$ac_cv_func_closedir" = xyes
; then :
17959 cat >>confdefs.h
<<_ACEOF
17960 #define HAVE_CLOSEDIR 1
17966 if test $ac_cv_func_closedir = no
; then
17973 if test $ac_cv_func_fchdir = no
; then
17977 if test $HAVE_FCHDIR = 0; then
17978 if test $HAVE_CLOSEDIR = 1; then
17983 case $host_os,$HAVE_CLOSEDIR in
17985 REPLACE_CLOSEDIR
=1;;
17988 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
17997 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
18011 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
18026 if test $gl_cv_have_include_next = yes; then
18027 gl_cv_next_ctype_h
='<'ctype.h
'>'
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
18030 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
18031 if ${gl_cv_next_ctype_h+:} false
; then :
18032 $as_echo_n "(cached) " >&6
18037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18038 /* end confdefs.h. */
18042 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18043 *) gl_absname_cpp
="$ac_cpp" ;;
18048 gl_dirsep_regex
='[/\\]'
18051 gl_dirsep_regex
='\/'
18054 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18055 gl_header_literal_regex
=`echo 'ctype.h' \
18056 | sed -e "$gl_make_literal_regex_sed"`
18057 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18064 gl_cv_absolute_ctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18065 sed -n "$gl_absolute_header_sed"`
18067 gl_header
=$gl_cv_absolute_ctype_h
18068 gl_cv_next_ctype_h
='"'$gl_header'"'
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
18073 $as_echo "$gl_cv_next_ctype_h" >&6; }
18075 NEXT_CTYPE_H
=$gl_cv_next_ctype_h
18077 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18078 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18079 gl_next_as_first_directive
='<'ctype.h
'>'
18081 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18082 gl_next_as_first_directive
=$gl_cv_next_ctype_h
18084 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
=$gl_next_as_first_directive
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
18095 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
18096 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
18097 $as_echo_n "(cached) " >&6
18099 if test "$cross_compiling" = yes; then :
18101 # Guess yes on glibc systems with Linux kernel.
18102 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18103 # Guess yes on musl systems with Linux kernel.
18104 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18105 # Guess no on native Windows.
18106 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
18107 # If we don't know, obey --enable-cross-guesses.
18108 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
18112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h. */
18114 #include <sys/types.h>
18115 #include <sys/stat.h>
18116 #include <dirent.h>
18121 DIR *dp = opendir (".");
18128 { closedir (dp); return 2; }
18129 if (lstat (e->d_name, &st) != 0)
18130 { closedir (dp); return 3; }
18131 if (e->d_ino != st.st_ino)
18132 { closedir (dp); return 4; }
18140 if ac_fn_c_try_run
"$LINENO"; then :
18141 gl_cv_struct_dirent_d_ino
=yes
18143 gl_cv_struct_dirent_d_ino
=no
18145 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18146 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
18151 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
18152 case "$gl_cv_struct_dirent_d_ino" in
18155 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
18162 $as_echo_n "checking for d_type member in directory struct... " >&6; }
18163 if ${gl_cv_struct_dirent_d_type+:} false
; then :
18164 $as_echo_n "(cached) " >&6
18166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18169 #include <sys/types.h>
18170 #include <dirent.h>
18175 struct dirent dp; dp.d_type = 0;
18180 if ac_fn_c_try_link
"$LINENO"; then :
18181 gl_cv_struct_dirent_d_type
=yes
18183 gl_cv_struct_dirent_d_type
=no
18185 rm -f core conftest.err conftest.
$ac_objext \
18186 conftest
$ac_exeext conftest.
$ac_ext
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
18191 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
18192 if test $gl_cv_struct_dirent_d_type = yes; then
18194 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18211 if test $gl_cv_have_include_next = yes; then
18212 gl_cv_next_dirent_h
='<'dirent.h
'>'
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
18215 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
18216 if ${gl_cv_next_dirent_h+:} false
; then :
18217 $as_echo_n "(cached) " >&6
18220 if test $ac_cv_header_dirent_h = yes; then
18225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 #include <dirent.h>
18230 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18231 *) gl_absname_cpp
="$ac_cpp" ;;
18236 gl_dirsep_regex
='[/\\]'
18239 gl_dirsep_regex
='\/'
18242 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18243 gl_header_literal_regex
=`echo 'dirent.h' \
18244 | sed -e "$gl_make_literal_regex_sed"`
18245 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18246 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18252 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18253 sed -n "$gl_absolute_header_sed"`
18255 gl_header
=$gl_cv_absolute_dirent_h
18256 gl_cv_next_dirent_h
='"'$gl_header'"'
18258 gl_cv_next_dirent_h
='<'dirent.h
'>'
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
18264 $as_echo "$gl_cv_next_dirent_h" >&6; }
18266 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
18268 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18270 gl_next_as_first_directive
='<'dirent.h
'>'
18272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18273 gl_next_as_first_directive
=$gl_cv_next_dirent_h
18275 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
18280 if test $ac_cv_header_dirent_h = yes; then
18296 for ac_func
in dirfd
18298 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
18299 if test "x$ac_cv_func_dirfd" = xyes
; then :
18300 cat >>confdefs.h
<<_ACEOF
18301 #define HAVE_DIRFD 1
18307 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
18308 #include <dirent.h>
18310 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
18316 cat >>confdefs.h
<<_ACEOF
18317 #define HAVE_DECL_DIRFD $ac_have_decl
18320 if test $ac_cv_have_decl_dirfd = no
; then
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
18325 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18326 if ${gl_cv_func_dirfd_macro+:} false
; then :
18327 $as_echo_n "(cached) " >&6
18329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18332 #include <sys/types.h>
18333 #include <dirent.h>
18335 dirent_header_defines_dirfd
18338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18339 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
18340 gl_cv_func_dirfd_macro
=yes
18342 gl_cv_func_dirfd_macro
=no
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
18348 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18350 # Use the replacement if we have no function or macro with that name,
18351 # or if OS/2 kLIBC whose dirfd() does not work.
18352 # Replace only if the system declares dirfd already.
18353 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
18354 no
,no
,*,yes |
*,*,os2
*,yes)
18357 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
18361 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
18362 ||
test $REPLACE_DIRFD = 1; then
18371 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
18375 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18376 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
18377 $as_echo_n "(cached) " >&6
18380 dirfd_save_CFLAGS
=$CFLAGS
18381 for ac_expr
in d_fd dd_fd
; do
18383 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18387 #include <sys/types.h>
18388 #include <dirent.h>
18392 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18397 if ac_fn_c_try_compile
"$LINENO"; then :
18401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18402 CFLAGS
=$dirfd_save_CFLAGS
18403 test "$dir_fd_found" = yes && break
18405 test "$dir_fd_found" = yes || ac_expr
=no_such_member
18407 gl_cv_sys_dir_fd_member_name
=$ac_expr
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
18412 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18413 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
18415 cat >>confdefs.h
<<_ACEOF
18416 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18434 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18441 $as_echo_n "checking whether // is distinct from /... " >&6; }
18442 if ${gl_cv_double_slash_root+:} false
; then :
18443 $as_echo_n "(cached) " >&6
18445 if test x
"$cross_compiling" = xyes
; then
18446 # When cross-compiling, there is no way to tell whether // is special
18447 # short of a list of hosts. However, the only known hosts to date
18448 # that have a distinct // are Apollo DomainOS (too old to port to),
18449 # Cygwin, and z/OS. If anyone knows of another system for which // has
18450 # special semantics and is distinct from /, please report it to
18451 # <bug-gnulib@gnu.org>.
18453 *-cygwin | i370-ibm-openedition
)
18454 gl_cv_double_slash_root
=yes ;;
18456 # Be optimistic and assume that / and // are the same when we
18458 gl_cv_double_slash_root
='unknown, assuming no' ;;
18461 set x
`ls -di / // 2>/dev/null`
18462 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
18463 gl_cv_double_slash_root
=no
18465 gl_cv_double_slash_root
=yes
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18470 $as_echo "$gl_cv_double_slash_root" >&6; }
18471 if test "$gl_cv_double_slash_root" = yes; then
18473 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18481 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18489 if test $ac_cv_func_fchdir = no
; then
18493 if test $HAVE_FCHDIR = 0; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
18498 $as_echo_n "checking whether dup works... " >&6; }
18499 if ${gl_cv_func_dup_works+:} false
; then :
18500 $as_echo_n "(cached) " >&6
18502 if test "$cross_compiling" = yes; then :
18504 # Guess no on native Windows.
18505 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
18506 *) gl_cv_func_dup_works
="guessing yes" ;;
18510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18512 #include <unistd.h>
18522 /* On OS/2 kLIBC, dup does not work on a directory fd. */
18523 int fd = open (".", O_RDONLY);
18524 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
18531 if ac_fn_c_try_run
"$LINENO"; then :
18532 gl_cv_func_dup_works
=yes
18534 gl_cv_func_dup_works
=no
18536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
18543 $as_echo "$gl_cv_func_dup_works" >&6; }
18544 case "$gl_cv_func_dup_works" in
18551 if test $REPLACE_DUP = 1; then
18560 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
18575 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18583 $as_echo_n "checking whether dup2 works... " >&6; }
18584 if ${gl_cv_func_dup2_works+:} false
; then :
18585 $as_echo_n "(cached) " >&6
18587 if test "$cross_compiling" = yes; then :
18589 mingw
*) # on this platform, dup2 always returns 0 for success
18590 gl_cv_func_dup2_works
="guessing no" ;;
18591 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18592 gl_cv_func_dup2_works
="guessing no" ;;
18594 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18596 gl_cv_func_dup2_works
="guessing no" ;;
18597 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18598 gl_cv_func_dup2_works
="guessing no" ;;
18599 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18600 gl_cv_func_dup2_works
="guessing no" ;;
18601 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
18602 gl_cv_func_dup2_works
="guessing no" ;;
18603 *) gl_cv_func_dup2_works
="guessing yes" ;;
18606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h. */
18611 #include <limits.h>
18612 #include <sys/resource.h>
18613 #include <unistd.h>
18618 #ifndef RLIM_SAVED_CUR
18619 # define RLIM_SAVED_CUR RLIM_INFINITY
18621 #ifndef RLIM_SAVED_MAX
18622 # define RLIM_SAVED_MAX RLIM_INFINITY
18629 int bad_fd = INT_MAX;
18630 struct rlimit rlim;
18631 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18632 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18633 && rlim.rlim_cur != RLIM_INFINITY
18634 && rlim.rlim_cur != RLIM_SAVED_MAX
18635 && rlim.rlim_cur != RLIM_SAVED_CUR)
18636 bad_fd = rlim.rlim_cur;
18638 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18641 if (dup2 (1, 1) != 1)
18644 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18648 if (dup2 (0, 0) != -1)
18650 /* Many gnulib modules require POSIX conformance of EBADF. */
18651 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18653 /* Flush out some cygwin core dumps. */
18654 if (dup2 (2, -1) != -1 || errno != EBADF)
18658 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
18660 int fd = open (".", O_RDONLY);
18663 else if (dup2 (fd, fd + 1) == -1)
18673 if ac_fn_c_try_run
"$LINENO"; then :
18674 gl_cv_func_dup2_works
=yes
18676 gl_cv_func_dup2_works
=no
18678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18685 $as_echo "$gl_cv_func_dup2_works" >&6; }
18686 case "$gl_cv_func_dup2_works" in
18690 for ac_func
in setdtablesize
18692 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18693 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
18694 cat >>confdefs.h
<<_ACEOF
18695 #define HAVE_SETDTABLESIZE 1
18707 if test $ac_cv_func_fchdir = no
; then
18711 if test $HAVE_FCHDIR = 0; then
18716 if test $REPLACE_DUP2 = 1; then
18725 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18740 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18756 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18763 $as_echo_n "checking for error_at_line... " >&6; }
18764 if ${ac_cv_lib_error_at_line+:} false
; then :
18765 $as_echo_n "(cached) " >&6
18767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18768 /* end confdefs.h. */
18773 error_at_line (0, 0, "", 0, "an error occurred");
18778 if ac_fn_c_try_link
"$LINENO"; then :
18779 ac_cv_lib_error_at_line
=yes
18781 ac_cv_lib_error_at_line
=no
18783 rm -f core conftest.err conftest.
$ac_objext \
18784 conftest
$ac_exeext conftest.
$ac_ext
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18787 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18789 if test $ac_cv_lib_error_at_line = no
; then
18798 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18812 if test $ac_cv_have_decl_fchdir = no
; then
18817 if test $HAVE_FCHDIR = 0; then
18826 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18830 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18833 $as_echo_n "checking whether open can visit directories... " >&6; }
18834 if ${gl_cv_func_open_directory_works+:} false
; then :
18835 $as_echo_n "(cached) " >&6
18837 if test "$cross_compiling" = yes; then :
18839 # Guess yes on Linux systems.
18840 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18841 # Guess yes on glibc systems.
18842 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18843 # Guess no on native Windows.
18844 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18845 # If we don't know, obey --enable-cross-guesses.
18846 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18860 return open(".", O_RDONLY) < 0;
18865 if ac_fn_c_try_run
"$LINENO"; then :
18866 gl_cv_func_open_directory_works
=yes
18868 gl_cv_func_open_directory_works
=no
18870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18876 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18877 case "$gl_cv_func_open_directory_works" in
18881 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18898 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18907 if test $ac_cv_func_fcntl = no
; then
18911 if test $ac_cv_func_fcntl = no
; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18919 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18920 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
18921 $as_echo_n "(cached) " >&6
18923 if test "$cross_compiling" = yes; then :
18925 aix
* | cygwin
* | haiku
*)
18926 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
18927 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
18930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18934 #include <limits.h>
18935 #include <sys/resource.h>
18936 #include <unistd.h>
18941 #ifndef RLIM_SAVED_CUR
18942 # define RLIM_SAVED_CUR RLIM_INFINITY
18944 #ifndef RLIM_SAVED_MAX
18945 # define RLIM_SAVED_MAX RLIM_INFINITY
18952 int bad_fd = INT_MAX;
18953 struct rlimit rlim;
18954 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18955 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18956 && rlim.rlim_cur != RLIM_INFINITY
18957 && rlim.rlim_cur != RLIM_SAVED_MAX
18958 && rlim.rlim_cur != RLIM_SAVED_CUR)
18959 bad_fd = rlim.rlim_cur;
18960 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18961 if (errno != EINVAL) result |= 2;
18962 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18963 if (errno != EINVAL) result |= 8;
18964 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18967 fd = open (".", O_RDONLY);
18970 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18980 if ac_fn_c_try_run
"$LINENO"; then :
18981 gl_cv_func_fcntl_f_dupfd_works
=yes
18983 gl_cv_func_fcntl_f_dupfd_works
=no
18985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18986 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18991 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18992 case $gl_cv_func_fcntl_f_dupfd_works in
18997 if test $ac_cv_func_fcntl = no
; then
19004 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
19009 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
19010 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
19011 $as_echo_n "(cached) " >&6
19013 if test "$cross_compiling" = yes; then :
19015 # Guess no on NetBSD.
19016 netbsd
*) gl_cv_func_fcntl_f_dupfd_cloexec
="guessing no" ;;
19017 *) gl_cv_func_fcntl_f_dupfd_cloexec
="$gl_cross_guess_normal" ;;
19021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19022 /* end confdefs.h. */
19024 #include <unistd.h>
19025 int main (int argc, char *argv[])
19028 /* parent process */
19030 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
19032 return execl ("./conftest", "./conftest", "child", NULL);
19035 /* child process */
19036 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
19041 if ac_fn_c_try_run
"$LINENO"; then :
19042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19046 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
19047 it to support the semantics on older kernels that failed with EINVAL. */
19059 if ac_fn_c_try_compile
"$LINENO"; then :
19060 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
19062 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
19064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19067 gl_cv_func_fcntl_f_dupfd_cloexec
=no
19069 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19070 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
19076 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
19077 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
19082 if test $ac_cv_func_fcntl = no
; then
19095 if test $ac_cv_func_fchdir = no
; then
19099 if test $HAVE_FCHDIR = 0; then
19103 if test $ac_cv_func_fcntl = no
; then
19112 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
19121 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
19135 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
19150 if test $gl_cv_have_include_next = yes; then
19151 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
19154 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19155 if ${gl_cv_next_fcntl_h+:} false
; then :
19156 $as_echo_n "(cached) " >&6
19161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19166 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19167 *) gl_absname_cpp
="$ac_cpp" ;;
19172 gl_dirsep_regex
='[/\\]'
19175 gl_dirsep_regex
='\/'
19178 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19179 gl_header_literal_regex
=`echo 'fcntl.h' \
19180 | sed -e "$gl_make_literal_regex_sed"`
19181 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19182 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19188 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19189 sed -n "$gl_absolute_header_sed"`
19191 gl_header
=$gl_cv_absolute_fcntl_h
19192 gl_cv_next_fcntl_h
='"'$gl_header'"'
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
19197 $as_echo "$gl_cv_next_fcntl_h" >&6; }
19199 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
19201 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19203 gl_next_as_first_directive
='<'fcntl.h
'>'
19205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19206 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
19208 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
19224 cat >>confdefs.h
<<_ACEOF
19225 #define GNULIB_FD_SAFER_FLAG 1
19234 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
19235 #include <dirent.h>
19238 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
19244 cat >>confdefs.h
<<_ACEOF
19245 #define HAVE_DECL_FDOPENDIR $ac_have_decl
19247 if test $ac_have_decl = 1; then :
19250 HAVE_DECL_FDOPENDIR
=0
19254 if test $ac_cv_func_fdopendir = no
; then
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
19258 $as_echo_n "checking whether fdopendir works... " >&6; }
19259 if ${gl_cv_func_fdopendir_works+:} false
; then :
19260 $as_echo_n "(cached) " >&6
19262 if test "$cross_compiling" = yes; then :
19264 # Guess yes on glibc systems.
19265 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19266 # Guess yes on musl systems.
19267 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19268 # If we don't know, obey --enable-cross-guesses.
19269 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
19273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19276 #include <dirent.h>
19278 #include <unistd.h>
19283 #if !HAVE_DECL_FDOPENDIR
19285 # ifdef __cplusplus
19288 DIR *fdopendir (int);
19295 int fd = open ("conftest.c", O_RDONLY);
19296 if (fd < 0) result |= 1;
19297 if (fdopendir (fd)) result |= 2;
19298 if (close (fd)) result |= 4;
19305 if ac_fn_c_try_run
"$LINENO"; then :
19306 gl_cv_func_fdopendir_works
=yes
19308 gl_cv_func_fdopendir_works
=no
19310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
19316 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
19317 case "$gl_cv_func_fdopendir_works" in
19320 REPLACE_FDOPENDIR
=1
19325 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
19334 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
19348 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
19354 cat >>confdefs.h
<<_ACEOF
19355 #define GNULIB_FDOPENDIR 1
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
19364 $as_echo_n "checking for flexible array member... " >&6; }
19365 if ${ac_cv_c_flexmember+:} false
; then :
19366 $as_echo_n "(cached) " >&6
19368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19370 #include <stdlib.h>
19372 #include <stddef.h>
19373 struct m { struct m *next, **list; char name[]; };
19374 struct s { struct s *p; struct m *m; int n; double d[]; };
19378 int m = getchar ();
19379 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
19380 nbytes += sizeof (struct s) - 1;
19381 nbytes -= nbytes % sizeof (struct s);
19382 struct s *p = malloc (nbytes);
19386 return p->d != (double *) NULL;
19391 if ac_fn_c_try_compile
"$LINENO"; then :
19392 ac_cv_c_flexmember
=yes
19394 ac_cv_c_flexmember
=no
19396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19399 $as_echo "$ac_cv_c_flexmember" >&6; }
19400 if test $ac_cv_c_flexmember = yes; then
19402 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19405 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19413 REPLACE_FLOAT_LDBL
=0
19415 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
19418 freebsd
* | dragonfly
*)
19419 case "$host_cpu" in
19424 # On x86_64 systems, the C compiler may still be generating
19426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19428 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
19435 if ac_fn_c_try_compile
"$LINENO"; then :
19440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19445 case "$host_cpu" in
19453 aix
* | freebsd
* | dragonfly
* | linux
*)
19454 if test -n "$FLOAT_H"; then
19455 REPLACE_FLOAT_LDBL
=1
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
19462 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
19463 if ${gl_cv_func_itold_works+:} false
; then :
19464 $as_echo_n "(cached) " >&6
19467 if test "$cross_compiling" = yes; then :
19470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19472 #if defined __LP64__ || defined __arch64__
19479 if ac_fn_c_try_compile
"$LINENO"; then :
19480 gl_cv_func_itold_works
="guessing no"
19482 gl_cv_func_itold_works
="guessing yes"
19484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19486 # Guess yes on native Windows.
19487 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
19488 *) gl_cv_func_itold_works
="guessing yes" ;;
19492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19496 volatile long double ld;
19505 if ac_fn_c_try_run
"$LINENO"; then :
19506 gl_cv_func_itold_works
=yes
19508 gl_cv_func_itold_works
=no
19510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
19517 $as_echo "$gl_cv_func_itold_works" >&6; }
19518 case "$gl_cv_func_itold_works" in
19525 if test -n "$FLOAT_H"; then
19534 if test $gl_cv_have_include_next = yes; then
19535 gl_cv_next_float_h
='<'float.h
'>'
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19538 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19539 if ${gl_cv_next_float_h+:} false
; then :
19540 $as_echo_n "(cached) " >&6
19545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h. */
19550 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19551 *) gl_absname_cpp
="$ac_cpp" ;;
19556 gl_dirsep_regex
='[/\\]'
19559 gl_dirsep_regex
='\/'
19562 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19563 gl_header_literal_regex
=`echo 'float.h' \
19564 | sed -e "$gl_make_literal_regex_sed"`
19565 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19566 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19572 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19573 sed -n "$gl_absolute_header_sed"`
19575 gl_header
=$gl_cv_absolute_float_h
19576 gl_cv_next_float_h
='"'$gl_header'"'
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19581 $as_echo "$gl_cv_next_float_h" >&6; }
19583 NEXT_FLOAT_H
=$gl_cv_next_float_h
19585 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19587 gl_next_as_first_directive
='<'float.h
'>'
19589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19590 gl_next_as_first_directive
=$gl_cv_next_float_h
19592 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
19599 if test -n "$FLOAT_H"; then
19600 GL_GENERATE_FLOAT_H_TRUE
=
19601 GL_GENERATE_FLOAT_H_FALSE
='#'
19603 GL_GENERATE_FLOAT_H_TRUE
='#'
19604 GL_GENERATE_FLOAT_H_FALSE
=
19609 if test $REPLACE_FLOAT_LDBL = 1; then
19618 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
19621 if test $REPLACE_ITOLD = 1; then
19630 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
19637 gl_fnmatch_required_lowercase
=`
19638 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19641 if test $ac_cv_func_fnmatch = no
; then
19644 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19646 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19647 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
19648 $as_echo_n "(cached) " >&6
19650 if test $gl_fnmatch_required = GNU
; then
19651 gl_fnmatch_gnu_start
=
19652 gl_fnmatch_gnu_end
=
19654 gl_fnmatch_gnu_start
='#if 0'
19655 gl_fnmatch_gnu_end
='#endif'
19657 if test "$cross_compiling" = yes; then :
19659 # Guess yes on musl systems.
19660 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
19661 # Guess no otherwise, even on glibc systems.
19662 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
19666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668 #include <fnmatch.h>
19670 y (char const *pattern, char const *string, int flags)
19672 return fnmatch (pattern, string, flags) == 0;
19675 n (char const *pattern, char const *string, int flags)
19677 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19683 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19684 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19685 static char const A_1[] = { 'A' - 1, 0 };
19686 static char const A01[] = { 'A' + 1, 0 };
19687 static char const a_1[] = { 'a' - 1, 0 };
19688 static char const a01[] = { 'a' + 1, 0 };
19689 static char const bs_1[] = { '\\\\' - 1, 0 };
19690 static char const bs01[] = { '\\\\' + 1, 0 };
19692 if (!n ("a*", "", 0))
19694 if (!y ("a*", "abc", 0))
19696 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
19698 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
19700 if (!y ("a\\\\bc", "abc", 0))
19702 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
19704 if (!y ("*x", ".x", 0))
19706 if (!n ("*x", ".x", FNM_PERIOD))
19708 if (!y (Apat, "\\\\", 0))
19710 if (!y (Apat, "A", 0))
19712 if (!y (apat, "\\\\", 0))
19714 if (!y (apat, "a", 0))
19716 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
19718 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
19720 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
19722 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
19724 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
19726 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
19728 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
19730 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
19732 $gl_fnmatch_gnu_start
19733 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
19735 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
19737 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
19739 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
19741 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
19743 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
19745 $gl_fnmatch_gnu_end
19752 if ac_fn_c_try_run
"$LINENO"; then :
19753 eval "$gl_fnmatch_cache_var=yes"
19755 eval "$gl_fnmatch_cache_var=no"
19757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19763 eval ac_res
=\$
$gl_fnmatch_cache_var
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19765 $as_echo "$ac_res" >&6; }
19766 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19767 case "$gl_fnmatch_result" in
19769 *) REPLACE_FNMATCH
=1 ;;
19772 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19775 FNMATCH_H
='fnmatch.h'
19776 if test -n "$FNMATCH_H"; then
19777 GL_GENERATE_FNMATCH_H_TRUE
=
19778 GL_GENERATE_FNMATCH_H_FALSE
='#'
19780 GL_GENERATE_FNMATCH_H_TRUE
='#'
19781 GL_GENERATE_FNMATCH_H_FALSE
=
19787 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19796 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19814 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19823 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19832 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19841 cat >>confdefs.h
<<_ACEOF
19842 #define GNULIB_FNMATCH_GNU 1
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
19851 $as_echo_n "checking whether free is known to preserve errno... " >&6; }
19852 if ${gl_cv_func_free_preserves_errno+:} false
; then :
19853 $as_echo_n "(cached) " >&6
19855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19857 #include <stdlib.h>
19862 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
19863 #elif defined __OpenBSD__
19864 #elif defined __sun
19866 #error "'free' is not known to preserve errno"
19873 if ac_fn_c_try_compile
"$LINENO"; then :
19874 gl_cv_func_free_preserves_errno
=yes
19876 gl_cv_func_free_preserves_errno
=no
19878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
19882 $as_echo "$gl_cv_func_free_preserves_errno" >&6; }
19884 case $gl_cv_func_free_preserves_errno in
19886 *) REPLACE_FREE
=1 ;;
19889 if test $REPLACE_FREE = 1; then
19898 gl_LIBOBJS
="$gl_LIBOBJS free.$ac_objext"
19907 GNULIB_FREE_POSIX
=1
19913 $as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
19918 if test $gl_func_frexp != yes; then
19927 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
19941 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
19946 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19955 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19969 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19987 if test $ac_cv_func_fchdir = no
; then
19991 if test $HAVE_FCHDIR = 0; then
19992 case "$gl_cv_func_open_directory_works" in
20001 if test $REPLACE_FSTAT = 1; then
20010 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
20022 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
20043 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20054 if test $ac_cv_func_fstatat = no
; then
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
20058 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
20059 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
20060 $as_echo_n "(cached) " >&6
20062 if test "$cross_compiling" = yes; then :
20064 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
20065 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
20069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20073 #include <sys/stat.h>
20078 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
20082 if ac_fn_c_try_run
"$LINENO"; then :
20083 gl_cv_func_fstatat_zero_flag
=yes
20085 gl_cv_func_fstatat_zero_flag
=no
20087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
20094 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
20096 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
20098 *) REPLACE_FSTATAT
=1 ;;
20103 REPLACE_FSTATAT
=1 ;;
20106 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
20109 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
20115 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
20124 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
20138 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
20150 gl_cv_func_getcwd_path_max
=yes
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
20159 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
20160 if ${gl_cv_func_getcwd_path_max+:} false
; then :
20161 $as_echo_n "(cached) " >&6
20163 # Arrange for deletion of the temporary directory this test creates.
20164 ac_clean_files
="$ac_clean_files confdir3"
20165 if test "$cross_compiling" = yes; then :
20166 # Cross-compilation guesses:
20168 aix
*) # On AIX, it has the AIX bug.
20169 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
20170 gnu
*) # On Hurd, it is 'yes'.
20171 gl_cv_func_getcwd_path_max
='guessing yes' ;;
20172 linux
* | kfreebsd
*)
20173 # On older Linux+glibc it's 'no, but it is partly working',
20174 # on newer Linux+glibc it's 'yes'.
20175 # On Linux+musl libc, it's 'no, but it is partly working'.
20176 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
20177 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
20178 *) # If we don't know, obey --enable-cross-guesses.
20179 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
20183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20187 #include <stdlib.h>
20189 # include <unistd.h>
20191 # include <direct.h>
20193 #include <string.h>
20194 #include <limits.h>
20195 #include <sys/stat.h>
20196 #include <sys/types.h>
20200 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20202 # include <unistd.h>
20204 #include <limits.h>
20205 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20206 # include <sys/param.h>
20208 #if !defined PATH_MAX && defined MAXPATHLEN
20209 # define PATH_MAX MAXPATHLEN
20213 # define PATH_MAX 1024
20215 #if defined _WIN32 && ! defined __CYGWIN__
20217 # define PATH_MAX 260
20222 # define AT_FDCWD 0
20224 #ifdef ENAMETOOLONG
20225 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20227 # define is_ENAMETOOLONG(x) 0
20230 /* Use the getcwd function, not any macro. */
20239 # define S_IRWXU 0700
20242 /* The length of this name must be 8. */
20243 #define DIR_NAME "confdir3"
20244 #define DIR_NAME_LEN 8
20245 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20247 /* The length of "../". */
20248 #define DOTDOTSLASH_LEN 3
20250 /* Leftover bytes in the buffer, to work around library or OS bugs. */
20251 #define BUF_SLOP 20
20257 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20258 at least not on a local file system. And if we were to start worrying
20259 about remote file systems, we'd have to enable the wrapper function
20260 all of the time, just to be safe. That's not worth the cost. */
20262 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20263 - DIR_NAME_SIZE - BUF_SLOP) \
20265 /* FIXME: Assuming there's a system for which this is true,
20266 this should be done in a compile test. */
20269 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20270 + DIR_NAME_SIZE + BUF_SLOP];
20271 char *cwd = getcwd (buf, PATH_MAX);
20272 size_t initial_cwd_len;
20275 size_t n_chdirs = 0;
20280 cwd_len = initial_cwd_len = strlen (cwd);
20284 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20287 cwd_len += DIR_NAME_SIZE;
20288 /* If mkdir or chdir fails, it could be that this system cannot create
20289 any file with an absolute name longer than PATH_MAX, such as cygwin.
20290 If so, leave fail as 0, because the current working directory can't
20291 be too long for getcwd if it can't even be created. On Linux with
20292 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
20293 too long; ignore this failure because the getcwd() system call
20294 produces good results whereas the gnulib substitute calls getdents64
20295 which fails with error EPROTO.
20296 For other errors, be pessimistic and consider that as a failure,
20298 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20300 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20302 if (! (errno == EINVAL))
20308 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20312 c = getcwd (buf, PATH_MAX);
20313 if (!c && errno == ENOENT)
20323 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20329 /* Our replacement needs to be able to stat() long ../../paths,
20330 so generate a path larger than PATH_MAX to check,
20331 avoiding the replacement if we can't stat(). */
20332 c = getcwd (buf, cwd_len + 1);
20333 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
20340 if (dotdot_max <= cwd_len - initial_cwd_len)
20342 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20344 c = getcwd (buf, cwd_len + 1);
20347 if (! (errno == ERANGE || errno == ENOENT
20348 || is_ENAMETOOLONG (errno)))
20353 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20361 if (c && strlen (c) != cwd_len)
20369 /* Leaving behind such a deep directory is not polite.
20370 So clean up here, right away, even though the driving
20371 shell script would also clean up. */
20375 /* Try rmdir first, in case the chdir failed. */
20377 for (i = 0; i <= n_chdirs; i++)
20379 if (chdir ("..") < 0)
20381 if (rmdir (DIR_NAME) != 0)
20391 if ac_fn_c_try_run
"$LINENO"; then :
20392 gl_cv_func_getcwd_path_max
=yes
20395 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
20396 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
20397 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
20398 *) gl_cv_func_getcwd_path_max
=no
;;
20401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20402 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
20408 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
20410 case "$gl_cv_func_getcwd_null" in
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
20419 $as_echo_n "checking for getpagesize... " >&6; }
20420 if ${gl_cv_func_getpagesize+:} false
; then :
20421 $as_echo_n "(cached) " >&6
20423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20425 #include <unistd.h>
20429 return getpagesize();
20435 if ac_fn_c_try_link
"$LINENO"; then :
20436 gl_cv_func_getpagesize
=yes
20438 gl_cv_func_getpagesize
=no
20440 rm -f core conftest.err conftest.
$ac_objext \
20441 conftest
$ac_exeext conftest.
$ac_ext
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
20445 $as_echo "$gl_cv_func_getpagesize" >&6; }
20447 if test $gl_cv_func_getpagesize = yes; then
20449 cat >>confdefs.h
<<_ACEOF
20450 #define HAVE_GETPAGESIZE 1
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5
20456 $as_echo_n "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; }
20457 if ${gl_cv_func_getcwd_succeeds_beyond_4k+:} false
; then :
20458 $as_echo_n "(cached) " >&6
20460 # Remove any remnants of a previous test.
20461 rm -rf confdir-14B---
20462 # Arrange for deletion of the temporary directory this test creates.
20463 ac_clean_files
="$ac_clean_files confdir-14B---"
20464 if test "$cross_compiling" = yes; then :
20466 # Guess yes on musl systems.
20467 *-musl*) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing yes" ;;
20468 # Guess no otherwise, even on glibc systems.
20469 *) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing no"
20473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20477 #include <stdlib.h>
20479 # include <unistd.h>
20480 #else /* on Windows with MSVC */
20481 # include <direct.h>
20483 #include <string.h>
20484 #include <sys/stat.h>
20487 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20489 # include <unistd.h>
20491 #include <limits.h>
20492 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20493 # include <sys/param.h>
20495 #if !defined PATH_MAX && defined MAXPATHLEN
20496 # define PATH_MAX MAXPATHLEN
20500 # define PATH_MAX 1024
20502 #if defined _WIN32 && ! defined __CYGWIN__
20504 # define PATH_MAX 260
20513 # define S_IRWXU 0700
20516 /* FIXME: skip the run-test altogether on systems without getpagesize. */
20517 #if ! HAVE_GETPAGESIZE
20518 # define getpagesize() 0
20521 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20522 the 16kB pagesize on ia64 linux. Those conditions make the code below
20523 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
20524 #define TARGET_LEN (5 * 1024)
20530 size_t initial_cwd_len;
20533 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20534 this relatively expensive and invasive test if that's not true. */
20536 int bug_possible = PATH_MAX < getpagesize ();
20538 int bug_possible = 0;
20540 if (! bug_possible)
20543 cwd = getcwd (NULL, 0);
20547 initial_cwd_len = strlen (cwd);
20552 static char const dir_name[] = "confdir-14B---";
20553 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20554 / sizeof dir_name);
20556 for (d = 0; d < desired_depth; d++)
20558 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20560 if (! (errno == ERANGE || errno == ENAMETOOLONG
20561 || errno == ENOENT))
20562 fail = 3; /* Unable to construct deep hierarchy. */
20567 /* If libc has the bug in question, this invocation of getcwd
20568 results in a failed assertion. */
20569 cwd = getcwd (NULL, 0);
20571 fail = 4; /* getcwd didn't assert, but it failed for a long name
20572 where the answer could have been learned. */
20575 /* Call rmdir first, in case the above chdir failed. */
20579 if (chdir ("..") < 0)
20592 if ac_fn_c_try_run
"$LINENO"; then :
20593 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20596 if test $ret -ge 128 ||
test $ret = 4; then
20597 gl_cv_func_getcwd_succeeds_beyond_4k
=no
20599 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5
20610 $as_echo "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; }
20611 case "$gl_cv_func_getcwd_succeeds_beyond_4k" in
20624 case "$gl_cv_func_getcwd_path_max" in
20625 *"no" |
*"no, it has the AIX bug") ;;
20628 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
20632 case "$gl_cv_func_getcwd_path_max" in
20633 *"no, but it is partly working")
20635 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
20638 *"yes, but with shorter paths")
20640 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
20645 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
20646 ||
test $gl_cv_func_getcwd_posix_signature != yes \
20647 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
20648 ||
test $gl_abort_bug = yes; then
20652 if test $REPLACE_GETCWD = 1; then
20661 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
20671 cat >>confdefs.h
<<_ACEOF
20672 #define GNULIB_GETCWD 1
20687 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20696 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
20703 if test $REPLACE_GETCWD = 1; then
20712 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
20726 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20738 if test $ac_cv_func_getdelim = yes; then
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
20741 $as_echo_n "checking for working getdelim function... " >&6; }
20742 if ${gl_cv_func_working_getdelim+:} false
; then :
20743 $as_echo_n "(cached) " >&6
20745 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
20746 if test "$cross_compiling" = yes; then :
20747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20750 #include <features.h>
20751 #ifdef __GNU_LIBRARY__
20752 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
20758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20759 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
20760 gl_cv_func_working_getdelim
="guessing yes"
20763 *-musl*) gl_cv_func_working_getdelim
="guessing yes" ;;
20764 *) gl_cv_func_working_getdelim
="$gl_cross_guess_normal" ;;
20772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20773 /* end confdefs.h. */
20775 # include <stdio.h>
20776 # include <stdlib.h>
20777 # include <string.h>
20780 FILE *in = fopen ("./conftest.data", "r");
20784 /* Test result for a NULL buffer and a zero size.
20785 Based on a test program from Karl Heuer. */
20788 int len = getdelim (&line, &siz, '\n', in);
20789 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
20790 { free (line); fclose (in); return 2; }
20794 /* Test result for a NULL buffer and a non-zero size.
20795 This crashes on FreeBSD 8.0. */
20797 size_t siz = (size_t)(~0) / 4;
20798 if (getdelim (&line, &siz, '\n', in) == -1)
20799 { fclose (in); return 3; }
20807 if ac_fn_c_try_run
"$LINENO"; then :
20808 gl_cv_func_working_getdelim
=yes
20810 gl_cv_func_working_getdelim
=no
20812 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20813 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
20819 $as_echo "$gl_cv_func_working_getdelim" >&6; }
20820 case "$gl_cv_func_working_getdelim" in
20822 *) REPLACE_GETDELIM
=1 ;;
20828 if test $ac_cv_have_decl_getdelim = no
; then
20829 HAVE_DECL_GETDELIM
=0
20832 if test $HAVE_GETDELIM = 0 ||
test $REPLACE_GETDELIM = 1; then
20841 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
20844 for ac_func
in flockfile funlockfile
20846 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20847 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20848 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20849 cat >>confdefs.h
<<_ACEOF
20850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20856 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
20857 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
20863 cat >>confdefs.h
<<_ACEOF
20864 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
20880 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
20889 if test $ac_cv_func_getdtablesize = yes &&
20890 test $ac_cv_have_decl_getdtablesize = yes; then
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
20892 $as_echo_n "checking whether getdtablesize works... " >&6; }
20893 if ${gl_cv_func_getdtablesize_works+:} false
; then :
20894 $as_echo_n "(cached) " >&6
20897 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
20899 if test "$cross_compiling" = yes; then :
20901 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
20902 gl_cv_func_getdtablesize_works
="guessing no" ;;
20903 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
20907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20910 #include <unistd.h>
20919 int size = getdtablesize();
20920 if (dup2 (0, getdtablesize()) != -1)
20922 if (size != getdtablesize())
20929 if ac_fn_c_try_run
"$LINENO"; then :
20930 gl_cv_func_getdtablesize_works
=yes
20932 gl_cv_func_getdtablesize_works
=no
20934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
20943 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
20944 case "$gl_cv_func_getdtablesize_works" in
20945 *yes |
"no (limitation)") ;;
20946 *) REPLACE_GETDTABLESIZE
=1 ;;
20949 HAVE_GETDTABLESIZE
=0
20952 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20961 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20970 GNULIB_GETDTABLESIZE
=1
20976 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20987 gl_getline_needs_run_time_check
=no
20988 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
20989 if test "x$ac_cv_func_getline" = xyes
; then :
20990 gl_getline_needs_run_time_check
=yes
20992 am_cv_func_working_getline
=no
20995 if test $gl_getline_needs_run_time_check = yes; then
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
20997 $as_echo_n "checking for working getline function... " >&6; }
20998 if ${am_cv_func_working_getline+:} false
; then :
20999 $as_echo_n "(cached) " >&6
21001 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
21002 if test "$cross_compiling" = yes; then :
21003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h. */
21006 #include <features.h>
21007 #ifdef __GNU_LIBRARY__
21008 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21015 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
21016 am_cv_func_working_getline
="guessing yes"
21019 *-musl*) am_cv_func_working_getline
="guessing yes" ;;
21020 *) am_cv_func_working_getline
="$gl_cross_guess_normal" ;;
21028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21031 # include <stdio.h>
21032 # include <stdlib.h>
21033 # include <string.h>
21036 FILE *in = fopen ("./conftest.data", "r");
21040 /* Test result for a NULL buffer and a zero size.
21041 Based on a test program from Karl Heuer. */
21044 int len = getline (&line, &siz, in);
21045 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21046 { free (line); fclose (in); return 2; }
21050 /* Test result for a NULL buffer and a non-zero size.
21051 This crashes on FreeBSD 8.0. */
21053 size_t siz = (size_t)(~0) / 4;
21054 if (getline (&line, &siz, in) == -1)
21055 { fclose (in); return 3; }
21063 if ac_fn_c_try_run
"$LINENO"; then :
21064 am_cv_func_working_getline
=yes
21066 am_cv_func_working_getline
=no
21068 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21069 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
21075 $as_echo "$am_cv_func_working_getline" >&6; }
21078 if test $ac_cv_have_decl_getline = no
; then
21079 HAVE_DECL_GETLINE
=0
21082 case "$am_cv_func_working_getline" in
21089 if test $REPLACE_GETLINE = 1; then
21098 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
21115 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
21125 if test $ac_cv_have_decl_getlogin_r = no
; then
21126 HAVE_DECL_GETLOGIN_R
=0
21130 if test $ac_cv_func_getlogin_r = no
; then
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
21136 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
21137 if ${gl_cv_func_getlogin_r_works+:} false
; then :
21138 $as_echo_n "(cached) " >&6
21142 # Guess no on Mac OS X, OSF/1.
21143 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
21144 # Guess yes otherwise.
21145 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
21147 if test "$cross_compiling" = yes; then :
21150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21151 /* end confdefs.h. */
21153 #include <stddef.h>
21154 #include <string.h>
21155 #include <unistd.h>
21156 #if !HAVE_DECL_GETLOGIN_R
21158 # ifdef __cplusplus
21161 int getlogin_r (char *, size_t);
21169 if (getlogin_r (buf, 0) == 0)
21171 if (getlogin_r (buf, 1) == 0)
21173 if (getlogin_r (buf, 100) == 0)
21175 size_t n = strlen (buf);
21176 if (getlogin_r (buf, n) == 0)
21182 if ac_fn_c_try_run
"$LINENO"; then :
21183 gl_cv_func_getlogin_r_works
=yes
21185 gl_cv_func_getlogin_r_works
=no
21187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
21194 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
21195 case "$gl_cv_func_getlogin_r_works" in
21197 *) REPLACE_GETLOGIN_R
=1 ;;
21201 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
21210 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
21221 GNULIB_GETLOGIN_R
=1
21227 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
21236 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
21238 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
21244 cat >>confdefs.h
<<_ACEOF
21245 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
21247 if test $ac_have_decl = 1; then :
21251 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
21253 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
21259 cat >>confdefs.h
<<_ACEOF
21260 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
21262 if test $ac_have_decl = 1; then :
21266 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
21268 if test "x$ac_cv_have_decl___argv" = xyes
; then :
21274 cat >>confdefs.h
<<_ACEOF
21275 #define HAVE_DECL___ARGV $ac_have_decl
21277 if test $ac_have_decl = 1; then :
21282 # Incur the cost of this test only if none of the above worked.
21283 if test $ac_found = 0; then
21284 # On OpenBSD 5.1, using the global __progname variable appears to be
21285 # the only way to implement getprogname.
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
21287 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
21288 if ${gl_cv_var___progname+:} false
; then :
21289 $as_echo_n "(cached) " >&6
21292 gl_cv_var___progname
=
21293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21294 /* end confdefs.h. */
21295 extern char *__progname;
21299 return *__progname;
21305 if ac_fn_c_try_link
"$LINENO"; then :
21306 gl_cv_var___progname
=yes
21309 rm -f core conftest.err conftest.
$ac_objext \
21310 conftest
$ac_exeext conftest.
$ac_ext
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
21315 $as_echo "$gl_cv_var___progname" >&6; }
21316 if test "$gl_cv_var___progname" = yes; then
21318 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
21327 if test "$ac_cv_func_getrandom" != yes; then
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
21331 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
21332 if ${gl_cv_func_getrandom_ok+:} false
; then :
21333 $as_echo_n "(cached) " >&6
21335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21336 /* end confdefs.h. */
21337 /* Additional includes are needed before <sys/random.h> on uClibc
21339 #include <sys/types.h>
21340 #include <stdlib.h>
21341 #include <sys/random.h>
21342 ssize_t getrandom (void *, size_t, unsigned int);
21353 if ac_fn_c_try_compile
"$LINENO"; then :
21354 gl_cv_func_getrandom_ok
=yes
21356 gl_cv_func_getrandom_ok
=no
21358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
21362 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
21363 if test $gl_cv_func_getrandom_ok = no
; then
21364 REPLACE_GETRANDOM
=1
21370 for ac_header
in bcrypt.h
21372 ac_fn_c_check_header_compile
"$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
21375 if test "x$ac_cv_header_bcrypt_h" = xyes
; then :
21376 cat >>confdefs.h
<<_ACEOF
21377 #define HAVE_BCRYPT_H 1
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
21385 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
21386 if ${gl_cv_lib_assume_bcrypt+:} false
; then :
21387 $as_echo_n "(cached) " >&6
21389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h. */
21391 #include <windows.h>
21395 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
21404 if ac_fn_c_try_compile
"$LINENO"; then :
21405 gl_cv_lib_assume_bcrypt
=yes
21407 gl_cv_lib_assume_bcrypt
=no
21409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
21413 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
21414 if test $gl_cv_lib_assume_bcrypt = yes; then
21416 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
21418 LIB_GETRANDOM
='-lbcrypt'
21420 LIB_GETRANDOM
='-ladvapi32'
21428 if test $HAVE_GETRANDOM = 0 ||
test $REPLACE_GETRANDOM = 1; then
21437 gl_LIBOBJS
="$gl_LIBOBJS getrandom.$ac_objext"
21451 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
21464 gl_gettimeofday_timezone
=void
21465 if test $ac_cv_func_gettimeofday != yes; then
21466 HAVE_GETTIMEOFDAY
=0
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21469 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21470 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
21471 $as_echo_n "(cached) " >&6
21473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21475 #include <sys/time.h>
21477 int gettimeofday (struct timeval *restrict, void *restrict);
21482 /* glibc uses struct timezone * rather than the POSIX void *
21483 if _GNU_SOURCE is defined. However, since the only portable
21484 use of gettimeofday uses NULL as the second parameter, and
21485 since the glibc definition is actually more typesafe, it is
21486 not worth wrapping this to get a compliant signature. */
21487 int (*f) (struct timeval *restrict, void *restrict)
21490 return !(x | c.tv_sec | c.tv_usec);
21496 if ac_fn_c_try_compile
"$LINENO"; then :
21497 gl_cv_func_gettimeofday_posix_signature
=yes
21499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21500 /* end confdefs.h. */
21501 #include <sys/time.h>
21502 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21512 if ac_fn_c_try_compile
"$LINENO"; then :
21513 gl_cv_func_gettimeofday_posix_signature
=almost
21515 gl_cv_func_gettimeofday_posix_signature
=no
21517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21522 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21523 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21524 gl_gettimeofday_timezone
='struct timezone'
21525 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21526 REPLACE_GETTIMEOFDAY
=1
21528 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21529 REPLACE_GETTIMEOFDAY
=1
21532 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
21536 cat >>confdefs.h
<<_ACEOF
21537 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21541 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21550 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21559 GNULIB_GETTIMEOFDAY
=1
21565 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21573 if test $ac_cv_func_glob = no
; then
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
21578 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
21579 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
21580 $as_echo_n "(cached) " >&6
21582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21584 #include <gnu-versions.h>
21585 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
21587 if ac_fn_c_try_compile
"$LINENO"; then :
21588 gl_cv_gnu_glob_interface_version_1_2
=yes
21590 gl_cv_gnu_glob_interface_version_1_2
=no
21592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
21595 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
21596 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
21600 if test $REPLACE_GLOB = 0; then
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
21602 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
21603 if ${gl_cv_glob_lists_symlinks+:} false
; then :
21604 $as_echo_n "(cached) " >&6
21606 if test $cross_compiling != yes; then
21607 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
21608 gl_cv_glob_lists_symlinks
=maybe
21610 # If we can't make a symlink, then we cannot test this issue. Be
21611 # pessimistic about this.
21612 gl_cv_glob_lists_symlinks
=no
21614 if test $gl_cv_glob_lists_symlinks = maybe
; then
21615 if test "$cross_compiling" = yes; then :
21619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h. */
21621 #include <stddef.h>
21627 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
21635 if ac_fn_c_try_run
"$LINENO"; then :
21636 gl_cv_glob_lists_symlinks
=yes
21638 gl_cv_glob_lists_symlinks
=no
21640 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21641 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21645 rm -f conf$$
-globtest
21647 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
21652 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
21653 case "$gl_cv_glob_lists_symlinks" in
21655 *) REPLACE_GLOB
=1 ;;
21661 if test $ac_cv_func_glob_pattern_p = no
; then
21662 HAVE_GLOB_PATTERN_P
=0
21664 if test $REPLACE_GLOB = 1; then
21665 REPLACE_GLOB_PATTERN_P
=1
21669 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21673 if test -n "$GLOB_H"; then
21674 GL_GENERATE_GLOB_H_TRUE
=
21675 GL_GENERATE_GLOB_H_FALSE
='#'
21677 GL_GENERATE_GLOB_H_TRUE
='#'
21678 GL_GENERATE_GLOB_H_FALSE
=
21684 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21693 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
21703 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
21711 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
21720 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
21734 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
21740 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
21755 if test $ac_cv_header_sys_socket_h != yes; then
21756 for ac_header
in winsock2.h
21758 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21759 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21760 cat >>confdefs.h
<<_ACEOF
21761 #define HAVE_WINSOCK2_H 1
21769 if test "$ac_cv_header_winsock2_h" = yes; then
21771 UNISTD_H_HAVE_WINSOCK2_H
=1
21772 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21778 if test $HAVE_WINSOCK2_H = 1; then
21779 REPLACE_INET_NTOP
=1
21780 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
21782 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21788 cat >>confdefs.h
<<_ACEOF
21789 #define HAVE_DECL_INET_NTOP $ac_have_decl
21792 if test $ac_cv_have_decl_inet_ntop = yes; then
21793 INET_NTOP_LIB
="-lws2_32"
21795 HAVE_DECL_INET_NTOP
=0
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21800 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21801 if ${ac_cv_search_inet_ntop+:} false
; then :
21802 $as_echo_n "(cached) " >&6
21804 ac_func_search_save_LIBS
=$LIBS
21805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21806 /* end confdefs.h. */
21808 /* Override any GCC internal prototype to avoid an error.
21809 Use char because int might match the return type of a GCC
21810 builtin and then its argument prototype would still apply. */
21818 return inet_ntop ();
21823 for ac_lib
in '' nsl resolv network
; do
21824 if test -z "$ac_lib"; then
21825 ac_res
="none required"
21828 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21830 if ac_fn_c_try_link
"$LINENO"; then :
21831 ac_cv_search_inet_ntop
=$ac_res
21833 rm -f core conftest.err conftest.
$ac_objext \
21835 if ${ac_cv_search_inet_ntop+:} false
; then :
21839 if ${ac_cv_search_inet_ntop+:} false
; then :
21842 ac_cv_search_inet_ntop
=no
21844 rm conftest.
$ac_ext
21845 LIBS
=$ac_func_search_save_LIBS
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21848 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21849 ac_res
=$ac_cv_search_inet_ntop
21850 if test "$ac_res" != no
; then :
21851 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21854 for ac_func
in inet_ntop
21856 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21857 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
21858 cat >>confdefs.h
<<_ACEOF
21859 #define HAVE_INET_NTOP 1
21865 if test $ac_cv_func_inet_ntop = no
; then
21873 if test "$ac_cv_search_inet_ntop" != "no" \
21874 && test "$ac_cv_search_inet_ntop" != "none required"; then
21875 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
21879 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
21881 # include <netdb.h>
21885 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21891 cat >>confdefs.h
<<_ACEOF
21892 #define HAVE_DECL_INET_NTOP $ac_have_decl
21895 if test $ac_cv_have_decl_inet_ntop = no
; then
21896 HAVE_DECL_INET_NTOP
=0
21901 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
21910 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
21930 if test -n "$STDINT_H"; then
21931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h. */
21947 if ac_fn_c_try_compile
"$LINENO"; then :
21948 PRIPTR_PREFIX
='"l"'
21950 PRIPTR_PREFIX
='"ll"'
21952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21954 for glpfx
in '' l ll I64
; do
21956 '') gltype1
='int';;
21957 l
) gltype1
='long int';;
21958 ll
) gltype1
='long long int';;
21959 I64
) gltype1
='__int64';;
21961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h. */
21963 #include <stdint.h>
21964 extern intptr_t foo;
21965 extern $gltype1 foo;
21974 if ac_fn_c_try_compile
"$LINENO"; then :
21975 PRIPTR_PREFIX
='"'$glpfx'"'
21977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21978 test -n "$PRIPTR_PREFIX" && break
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
21985 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
21986 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
21987 $as_echo_n "(cached) " >&6
21989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21991 /* Work also in C++ mode. */
21992 #define __STDC_LIMIT_MACROS 1
21994 /* Work if build is not clean. */
21995 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21997 #include <limits.h>
21999 #include <stdint.h>
22002 #if defined INT32_MAX && defined INTMAX_MAX
22003 #define CONDITION (INT32_MAX < INTMAX_MAX)
22005 #define CONDITION (sizeof (int) < sizeof (long long int))
22007 int test[CONDITION ? 1 : -1];
22016 if ac_fn_c_try_compile
"$LINENO"; then :
22017 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
22019 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
22021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
22024 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
22025 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
22026 INT32_MAX_LT_INTMAX_MAX
=1;
22028 INT32_MAX_LT_INTMAX_MAX
=0;
22032 if test $APPLE_UNIVERSAL_BUILD = 0; then
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
22035 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
22036 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
22037 $as_echo_n "(cached) " >&6
22039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22041 /* Work also in C++ mode. */
22042 #define __STDC_LIMIT_MACROS 1
22044 /* Work if build is not clean. */
22045 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22047 #include <limits.h>
22049 #include <stdint.h>
22052 #if defined INT64_MAX
22053 #define CONDITION (INT64_MAX == LONG_MAX)
22055 #define CONDITION (sizeof (long long int) == sizeof (long int))
22057 int test[CONDITION ? 1 : -1];
22066 if ac_fn_c_try_compile
"$LINENO"; then :
22067 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
22069 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
22071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
22074 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
22075 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
22076 INT64_MAX_EQ_LONG_MAX
=1;
22078 INT64_MAX_EQ_LONG_MAX
=0;
22083 INT64_MAX_EQ_LONG_MAX
=-1
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
22087 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
22088 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
22089 $as_echo_n "(cached) " >&6
22091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093 /* Work also in C++ mode. */
22094 #define __STDC_LIMIT_MACROS 1
22096 /* Work if build is not clean. */
22097 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22099 #include <limits.h>
22101 #include <stdint.h>
22104 #if defined UINT32_MAX && defined UINTMAX_MAX
22105 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
22107 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
22109 int test[CONDITION ? 1 : -1];
22118 if ac_fn_c_try_compile
"$LINENO"; then :
22119 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
22121 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
22123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
22126 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
22127 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
22128 UINT32_MAX_LT_UINTMAX_MAX
=1;
22130 UINT32_MAX_LT_UINTMAX_MAX
=0;
22134 if test $APPLE_UNIVERSAL_BUILD = 0; then
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
22137 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
22138 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
22139 $as_echo_n "(cached) " >&6
22141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h. */
22143 /* Work also in C++ mode. */
22144 #define __STDC_LIMIT_MACROS 1
22146 /* Work if build is not clean. */
22147 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22149 #include <limits.h>
22151 #include <stdint.h>
22154 #if defined UINT64_MAX
22155 #define CONDITION (UINT64_MAX == ULONG_MAX)
22157 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
22159 int test[CONDITION ? 1 : -1];
22168 if ac_fn_c_try_compile
"$LINENO"; then :
22169 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
22171 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
22173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
22176 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
22177 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
22178 UINT64_MAX_EQ_ULONG_MAX
=1;
22180 UINT64_MAX_EQ_ULONG_MAX
=0;
22185 UINT64_MAX_EQ_ULONG_MAX
=-1
22195 if test $ac_cv_func_isblank = no
; then
22199 if test $HAVE_ISBLANK = 0; then
22208 gl_LIBOBJS
="$gl_LIBOBJS isblank.$ac_objext"
22213 cat >>confdefs.h
<<_ACEOF
22214 #define GNULIB_ISBLANK 1
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
22231 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
22232 if ${gl_cv_func_isnand_no_libm+:} false
; then :
22233 $as_echo_n "(cached) " >&6
22236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22237 /* end confdefs.h. */
22239 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22241 # define isnand(x) __builtin_isnan ((double)(x))
22244 # define isnand(x) isnan ((double)(x))
22255 if ac_fn_c_try_link
"$LINENO"; then :
22256 gl_cv_func_isnand_no_libm
=yes
22258 gl_cv_func_isnand_no_libm
=no
22260 rm -f core conftest.err conftest.
$ac_objext \
22261 conftest
$ac_exeext conftest.
$ac_ext
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
22265 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
22267 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
22268 if test $gl_cv_func_isnand_no_libm = yes; then
22270 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
22274 if test $gl_func_isnand_no_libm != yes; then
22283 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
22292 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
22293 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
22294 $as_echo_n "(cached) " >&6
22297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22298 /* end confdefs.h. */
22300 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22302 # define isnanl(x) __builtin_isnan ((long double)(x))
22303 #elif defined isnan
22305 # define isnanl(x) isnan ((long double)(x))
22316 if ac_fn_c_try_link
"$LINENO"; then :
22317 gl_cv_func_isnanl_no_libm
=yes
22319 gl_cv_func_isnanl_no_libm
=no
22321 rm -f core conftest.err conftest.
$ac_objext \
22322 conftest
$ac_exeext conftest.
$ac_ext
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
22326 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
22328 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
22329 if test $gl_func_isnanl_no_libm = yes; then
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
22335 $as_echo_n "checking whether isnanl works... " >&6; }
22336 if ${gl_cv_func_isnanl_works+:} false
; then :
22337 $as_echo_n "(cached) " >&6
22340 if test "$cross_compiling" = yes; then :
22342 mingw
*) # Guess yes on mingw, no on MSVC.
22343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22344 /* end confdefs.h. */
22351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22352 $EGREP "Known" >/dev
/null
2>&1; then :
22353 gl_cv_func_isnanl_works
="guessing yes"
22355 gl_cv_func_isnanl_works
="guessing no"
22360 *) gl_cv_func_isnanl_works
="guessing yes" ;;
22364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22365 /* end confdefs.h. */
22368 #include <limits.h>
22370 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22372 # define isnanl(x) __builtin_isnan ((long double)(x))
22373 #elif defined isnan
22375 # define isnanl(x) isnan ((long double)(x))
22378 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22379 typedef union { unsigned int word[NWORDS]; long double value; }
22380 memory_long_double;
22381 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
22382 runtime type conversion. */
22384 static long double NaNl ()
22387 return zero / zero;
22390 # define NaNl() (0.0L / 0.0L)
22396 if (!isnanl (NaNl ()))
22400 memory_long_double m;
22403 /* The isnanl function should be immune against changes in the sign bit and
22404 in the mantissa bits. The xor operation twiddles a bit that can only be
22405 a sign bit or a mantissa bit (since the exponent never extends to
22408 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
22409 for (i = 0; i < NWORDS; i++)
22411 if (!isnanl (m.value))
22415 #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
22416 /* Representation of an 80-bit 'long double' as an initializer for a sequence
22417 of 'unsigned int' words. */
22418 # ifdef WORDS_BIGENDIAN
22419 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22420 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
22421 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
22422 (unsigned int) (mantlo) << 16 \
22425 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22426 { mantlo, manthi, exponent }
22429 static memory_long_double x =
22430 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
22431 if (!isnanl (x.value))
22435 /* Signalling NaN. */
22436 static memory_long_double x =
22437 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
22438 if (!isnanl (x.value))
22441 /* isnanl should return something even for noncanonical values. */
22442 { /* Pseudo-NaN. */
22443 static memory_long_double x =
22444 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
22445 if (isnanl (x.value) && !isnanl (x.value))
22448 { /* Pseudo-Infinity. */
22449 static memory_long_double x =
22450 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
22451 if (isnanl (x.value) && !isnanl (x.value))
22454 { /* Pseudo-Zero. */
22455 static memory_long_double x =
22456 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
22457 if (isnanl (x.value) && !isnanl (x.value))
22460 { /* Unnormalized number. */
22461 static memory_long_double x =
22462 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
22463 if (isnanl (x.value) && !isnanl (x.value))
22466 { /* Pseudo-Denormal. */
22467 static memory_long_double x =
22468 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
22469 if (isnanl (x.value) && !isnanl (x.value))
22477 if ac_fn_c_try_run
"$LINENO"; then :
22478 gl_cv_func_isnanl_works
=yes
22480 gl_cv_func_isnanl_works
=no
22482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
22489 $as_echo "$gl_cv_func_isnanl_works" >&6; }
22491 case "$gl_cv_func_isnanl_works" in
22493 *) gl_func_isnanl_no_libm
=no
;;
22496 if test $gl_func_isnanl_no_libm = yes; then
22498 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
22502 if test $gl_func_isnanl_no_libm != yes; then
22511 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
22517 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
22518 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
22519 $as_echo_n "(cached) " >&6
22522 if test "$cross_compiling" = yes; then :
22524 gl_cv_cc_long_double_expbit0
="unknown"
22526 mingw
*) # On native Windows (little-endian), we know the result
22527 # in two cases: mingw, MSVC.
22528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22529 /* end confdefs.h. */
22536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22537 $EGREP "Known" >/dev
/null
2>&1; then :
22538 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
22542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22551 $EGREP "Known" >/dev
/null
2>&1; then :
22552 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
22560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22564 #include <stddef.h>
22566 #include <string.h>
22568 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22569 typedef union { long double value; unsigned int word[NWORDS]; }
22570 memory_long_double;
22571 static unsigned int ored_words[NWORDS];
22572 static unsigned int anded_words[NWORDS];
22573 static void add_to_ored_words (long double *x)
22575 memory_long_double m;
22577 /* Clear it first, in case
22578 sizeof (long double) < sizeof (memory_long_double). */
22579 memset (&m, 0, sizeof (memory_long_double));
22581 for (i = 0; i < NWORDS; i++)
22583 ored_words[i] |= m.word[i];
22584 anded_words[i] &= m.word[i];
22589 static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
22591 FILE *fp = fopen ("conftest.out", "w");
22594 for (j = 0; j < NWORDS; j++)
22595 anded_words[j] = ~ (unsigned int) 0;
22596 for (j = 0; j < 5; j++)
22597 add_to_ored_words (&samples[j]);
22598 /* Remove bits that are common (e.g. if representation of the first mantissa
22599 bit is explicit). */
22600 for (j = 0; j < NWORDS; j++)
22601 ored_words[j] &= ~anded_words[j];
22602 /* Now find the nonzero word. */
22603 for (j = 0; j < NWORDS; j++)
22604 if (ored_words[j] != 0)
22609 for (i = j + 1; i < NWORDS; i++)
22610 if (ored_words[i] != 0)
22612 fprintf (fp, "unknown");
22613 return (fclose (fp) != 0);
22616 if ((ored_words[j] >> i) & 1)
22618 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22619 return (fclose (fp) != 0);
22622 fprintf (fp, "unknown");
22623 return (fclose (fp) != 0);
22627 if ac_fn_c_try_run
"$LINENO"; then :
22628 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
22630 gl_cv_cc_long_double_expbit0
="unknown"
22632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
22640 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
22641 case "$gl_cv_cc_long_double_expbit0" in
22643 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22644 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
22646 cat >>confdefs.h
<<_ACEOF
22647 #define LDBL_EXPBIT0_WORD $word
22651 cat >>confdefs.h
<<_ACEOF
22652 #define LDBL_EXPBIT0_BIT $bit
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
22664 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
22665 if ${gl_cv_c___inline+:} false
; then :
22666 $as_echo_n "(cached) " >&6
22668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22669 /* end confdefs.h. */
22671 static __inline foo_t foo (void) { return 0; }
22680 if ac_fn_c_try_compile
"$LINENO"; then :
22681 gl_cv_c___inline
=yes
22683 gl_cv_c___inline
=no
22685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
22688 $as_echo "$gl_cv_c___inline" >&6; }
22689 if test $gl_cv_c___inline = yes; then
22691 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
22699 LOCALCHARSET_TESTS_ENVIRONMENT
=
22714 $as_echo "#define _LCONV_C99 1" >>confdefs.h
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
22720 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
22721 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
22722 $as_echo_n "(cached) " >&6
22724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22725 /* end confdefs.h. */
22726 #include <locale.h>
22727 int x = LC_MESSAGES;
22728 int y = sizeof (((struct lconv *) 0)->decimal_point);
22737 if ac_fn_c_try_compile
"$LINENO"; then :
22738 gl_cv_header_locale_h_posix2001
=yes
22740 gl_cv_header_locale_h_posix2001
=no
22742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
22745 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
22748 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
22749 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
22750 $as_echo_n "(cached) " >&6
22752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22754 #include <locale.h>
22756 int x = sizeof (l.decimal_point);
22757 int y = sizeof (l.int_p_cs_precedes);
22766 if ac_fn_c_try_compile
"$LINENO"; then :
22767 gl_cv_sys_struct_lconv_ok
=yes
22769 gl_cv_sys_struct_lconv_ok
=no
22771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
22775 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
22776 if test $gl_cv_sys_struct_lconv_ok = no
; then
22779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22780 /* end confdefs.h. */
22787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22788 $EGREP "Special" >/dev
/null
2>&1; then :
22791 REPLACE_STRUCT_LCONV
=1
22796 *) REPLACE_STRUCT_LCONV
=1 ;;
22808 if test $gl_cv_have_include_next = yes; then
22809 gl_cv_next_locale_h
='<'locale.h
'>'
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
22812 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
22813 if ${gl_cv_next_locale_h+:} false
; then :
22814 $as_echo_n "(cached) " >&6
22819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22820 /* end confdefs.h. */
22821 #include <locale.h>
22824 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22825 *) gl_absname_cpp
="$ac_cpp" ;;
22830 gl_dirsep_regex
='[/\\]'
22833 gl_dirsep_regex
='\/'
22836 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22837 gl_header_literal_regex
=`echo 'locale.h' \
22838 | sed -e "$gl_make_literal_regex_sed"`
22839 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22840 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22846 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22847 sed -n "$gl_absolute_header_sed"`
22849 gl_header
=$gl_cv_absolute_locale_h
22850 gl_cv_next_locale_h
='"'$gl_header'"'
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
22855 $as_echo "$gl_cv_next_locale_h" >&6; }
22857 NEXT_LOCALE_H
=$gl_cv_next_locale_h
22859 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22861 gl_next_as_first_directive
='<'locale.h
'>'
22863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22864 gl_next_as_first_directive
=$gl_cv_next_locale_h
22866 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
22878 if test "$gl_threads_api" = posix
; then
22879 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22880 # pthread_rwlock_* functions.
22882 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22884 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
22887 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22891 if $has_rwlock; then
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
22895 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
22896 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
22897 $as_echo_n "(cached) " >&6
22900 LIBS
="$LIBS $LIBMULTITHREAD"
22901 if test "$cross_compiling" = yes; then :
22903 # Guess no on glibc systems.
22904 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22905 # Guess no on musl systems.
22906 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22907 # Guess no on bionic systems.
22908 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22909 # Guess yes on native Windows with the mingw-w64 winpthreads library.
22910 # Guess no on native Windows with the gnulib windows-rwlock module.
22911 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
22912 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
22914 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
22917 # If we don't know, obey --enable-cross-guesses.
22918 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
22922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22923 /* end confdefs.h. */
22926 #include <pthread.h>
22927 #include <stdlib.h>
22928 #include <unistd.h>
22930 #define SUCCEED() exit (0)
22931 #define FAILURE() exit (1)
22932 #define UNEXPECTED(n) (exit (10 + (n)))
22934 /* The main thread creates the waiting writer and the requesting reader threads
22935 in the default way; this guarantees that they have the same priority.
22936 We can reuse the main thread as first reader thread. */
22938 static pthread_rwlock_t lock;
22939 static pthread_t reader1;
22940 static pthread_t writer;
22941 static pthread_t reader2;
22942 static pthread_t timer;
22943 /* Used to pass control from writer to reader2 and from reader2 to timer,
22944 as in a relay race.
22945 Passing control from one running thread to another running thread
22946 is most likely faster than to create the second thread. */
22947 static pthread_mutex_t baton;
22950 timer_func (void *ignored)
22952 /* Step 13 (can be before or after step 12):
22953 The timer thread takes the baton, then waits a moment to make sure
22954 it can tell whether the second reader thread is blocked at step 12. */
22955 if (pthread_mutex_lock (&baton))
22958 /* By the time we get here, it's clear that the second reader thread is
22959 blocked at step 12. This is the desired behaviour. */
22964 reader2_func (void *ignored)
22968 /* Step 8 (can be before or after step 7):
22969 The second reader thread takes the baton, then waits a moment to make sure
22970 the writer thread has reached step 7. */
22971 if (pthread_mutex_lock (&baton))
22974 /* Step 9: The second reader thread requests the lock. */
22975 err = pthread_rwlock_tryrdlock (&lock);
22978 else if (err != EBUSY)
22980 /* Step 10: Launch a timer, to test whether the next call blocks. */
22981 if (pthread_create (&timer, NULL, timer_func, NULL))
22983 /* Step 11: Release the baton. */
22984 if (pthread_mutex_unlock (&baton))
22986 /* Step 12: The second reader thread requests the lock. */
22987 err = pthread_rwlock_rdlock (&lock);
22995 writer_func (void *ignored)
22997 /* Step 4: Take the baton, so that the second reader thread does not go ahead
22999 if (pthread_mutex_lock (&baton))
23001 /* Step 5: Create the second reader thread. */
23002 if (pthread_create (&reader2, NULL, reader2_func, NULL))
23004 /* Step 6: Release the baton. */
23005 if (pthread_mutex_unlock (&baton))
23007 /* Step 7: The writer thread requests the lock. */
23008 if (pthread_rwlock_wrlock (&lock))
23016 reader1 = pthread_self ();
23018 /* Step 1: The main thread initializes the lock and the baton. */
23019 if (pthread_rwlock_init (&lock, NULL))
23021 if (pthread_mutex_init (&baton, NULL))
23023 /* Step 2: The main thread acquires the lock as a reader. */
23024 if (pthread_rwlock_rdlock (&lock))
23026 /* Step 3: Create the writer thread. */
23027 if (pthread_create (&writer, NULL, writer_func, NULL))
23029 /* Job done. Go to sleep. */
23037 if ac_fn_c_try_run
"$LINENO"; then :
23038 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
23040 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
23042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23043 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
23050 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
23051 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
23054 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
23060 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23062 /* end confdefs.h. */
23064 #include <pthread.h>
23069 #if __FreeBSD__ == 4
23070 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23071 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
23072 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
23073 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
23075 int x = (int)PTHREAD_MUTEX_RECURSIVE;
23083 if ac_fn_c_try_compile
"$LINENO"; then :
23085 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
23088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23094 cat >>confdefs.h
<<_ACEOF
23095 #define GNULIB_LOCK 1
23103 if test $ac_cv_func_lstat = yes; then
23105 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
23114 if test $REPLACE_LSTAT = 1; then
23123 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
23138 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
23145 if test $gl_cv_func_malloc_posix = yes; then
23147 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
23153 if test $REPLACE_MALLOC = 1; then
23162 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
23170 GNULIB_MALLOC_POSIX
=1
23176 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
23194 if test $gl_cv_have_include_next = yes; then
23195 gl_cv_next_math_h
='<'math.h
'>'
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
23198 $as_echo_n "checking absolute name of <math.h>... " >&6; }
23199 if ${gl_cv_next_math_h+:} false
; then :
23200 $as_echo_n "(cached) " >&6
23203 if test $ac_cv_header_math_h = yes; then
23208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23209 /* end confdefs.h. */
23213 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23214 *) gl_absname_cpp
="$ac_cpp" ;;
23219 gl_dirsep_regex
='[/\\]'
23222 gl_dirsep_regex
='\/'
23225 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23226 gl_header_literal_regex
=`echo 'math.h' \
23227 | sed -e "$gl_make_literal_regex_sed"`
23228 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23235 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23236 sed -n "$gl_absolute_header_sed"`
23238 gl_header
=$gl_cv_absolute_math_h
23239 gl_cv_next_math_h
='"'$gl_header'"'
23241 gl_cv_next_math_h
='<'math.h
'>'
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
23247 $as_echo "$gl_cv_next_math_h" >&6; }
23249 NEXT_MATH_H
=$gl_cv_next_math_h
23251 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23253 gl_next_as_first_directive
='<'math.h
'>'
23255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23256 gl_next_as_first_directive
=$gl_cv_next_math_h
23258 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
23265 $as_echo_n "checking whether NAN macro works... " >&6; }
23266 if ${gl_cv_header_math_nan_works+:} false
; then :
23267 $as_echo_n "(cached) " >&6
23269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23270 /* end confdefs.h. */
23275 /* Solaris 10 has a broken definition of NAN. Other platforms
23276 fail to provide NAN, or provide it only in C99 mode; this
23277 test only needs to fail when NAN is provided but wrong. */
23287 if ac_fn_c_try_compile
"$LINENO"; then :
23288 gl_cv_header_math_nan_works
=yes
23290 gl_cv_header_math_nan_works
=no
23292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
23295 $as_echo "$gl_cv_header_math_nan_works" >&6; }
23296 if test $gl_cv_header_math_nan_works = no
; then
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
23300 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
23301 if ${gl_cv_header_math_huge_val_works+:} false
; then :
23302 $as_echo_n "(cached) " >&6
23304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h. */
23310 /* Solaris 10 has a broken definition of HUGE_VAL. */
23311 double d = HUGE_VAL;
23317 if ac_fn_c_try_compile
"$LINENO"; then :
23318 gl_cv_header_math_huge_val_works
=yes
23320 gl_cv_header_math_huge_val_works
=no
23322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
23325 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
23326 if test $gl_cv_header_math_huge_val_works = no
; then
23347 if case "$host_os" in
23349 *) test $ac_cv_func_mbsinit = yes ;;
23351 && test $ac_cv_func_mbrtowc = yes; then
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23357 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23358 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23359 $as_echo_n "(cached) " >&6
23363 # Guess no on AIX and OSF/1.
23364 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23365 # Guess yes otherwise.
23366 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23368 if test $LOCALE_JA != none
; then
23369 if test "$cross_compiling" = yes; then :
23372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23373 /* end confdefs.h. */
23375 #include <locale.h>
23376 #include <string.h>
23380 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23382 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23386 memset (&state, '\0', sizeof (mbstate_t));
23387 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23388 if (mbsinit (&state))
23394 if ac_fn_c_try_run
"$LINENO"; then :
23395 gl_cv_func_mbrtowc_incomplete_state
=yes
23397 gl_cv_func_mbrtowc_incomplete_state
=no
23399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23404 if test $LOCALE_FR_UTF8 != none
; then
23405 if test "$cross_compiling" = yes; then :
23408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23411 #include <locale.h>
23412 #include <string.h>
23416 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23418 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23422 memset (&state, '\0', sizeof (mbstate_t));
23423 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23424 if (mbsinit (&state))
23430 if ac_fn_c_try_run
"$LINENO"; then :
23431 gl_cv_func_mbrtowc_incomplete_state
=yes
23433 gl_cv_func_mbrtowc_incomplete_state
=no
23435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23444 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23450 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23451 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23452 $as_echo_n "(cached) " >&6
23456 # Guess no on Solaris 8.
23457 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23458 # Guess yes otherwise.
23459 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23461 if test $LOCALE_ZH_CN != none
; then
23462 if test "$cross_compiling" = yes; then :
23465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23466 /* end confdefs.h. */
23468 #include <locale.h>
23469 #include <stdlib.h>
23470 #include <string.h>
23474 /* This fails on Solaris 8:
23475 mbrtowc returns 2, and sets wc to 0x00F0.
23476 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23477 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23479 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23483 memset (&state, '\0', sizeof (mbstate_t));
23484 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23485 && mbtowc (&wc, input + 3, 6) == 4)
23491 if ac_fn_c_try_run
"$LINENO"; then :
23492 gl_cv_func_mbrtowc_sanitycheck
=yes
23494 gl_cv_func_mbrtowc_sanitycheck
=no
23496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23504 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23506 REPLACE_MBSTATE_T
=0
23507 case "$gl_cv_func_mbrtowc_incomplete_state" in
23509 *) REPLACE_MBSTATE_T
=1 ;;
23511 case "$gl_cv_func_mbrtowc_sanitycheck" in
23513 *) REPLACE_MBSTATE_T
=1 ;;
23516 REPLACE_MBSTATE_T
=1
23521 if test $ac_cv_func_mbrtowc = no
; then
23523 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
23527 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
23533 cat >>confdefs.h
<<_ACEOF
23534 #define HAVE_DECL_MBRTOWC $ac_have_decl
23537 if test $ac_cv_have_decl_mbrtowc = yes; then
23541 if test $REPLACE_MBSTATE_T = 1; then
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
23548 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
23549 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
23550 $as_echo_n "(cached) " >&6
23554 # Guess no on Solaris.
23555 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
23556 # Guess yes otherwise.
23557 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
23559 if test $LOCALE_FR_UTF8 != none
; then
23560 if test "$cross_compiling" = yes; then :
23563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23564 /* end confdefs.h. */
23566 #include <locale.h>
23567 #include <stdlib.h>
23568 #include <string.h>
23574 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23576 char input[] = "\303\237er";
23581 memset (&state, '\0', sizeof (mbstate_t));
23582 wc = (wchar_t) 0xBADFACE;
23583 ret = mbrtowc (&wc, input, 5, &state);
23586 if (!mbsinit (&state))
23589 memset (&state, '\0', sizeof (mbstate_t));
23590 ret = mbrtowc (NULL, input, 5, &state);
23591 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
23593 if (!mbsinit (&state))
23599 if ac_fn_c_try_run
"$LINENO"; then :
23600 gl_cv_func_mbrtowc_null_arg1
=yes
23602 gl_cv_func_mbrtowc_null_arg1
=no
23604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
23612 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
23618 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
23619 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
23620 $as_echo_n "(cached) " >&6
23624 # Guess no on OSF/1.
23625 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
23626 # Guess yes otherwise.
23627 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
23629 if test $LOCALE_FR_UTF8 != none
; then
23630 if test "$cross_compiling" = yes; then :
23633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23634 /* end confdefs.h. */
23636 #include <locale.h>
23637 #include <string.h>
23641 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23647 memset (&state, '\0', sizeof (mbstate_t));
23648 wc = (wchar_t) 0xBADFACE;
23649 mbrtowc (&wc, NULL, 5, &state);
23650 /* Check that wc was not modified. */
23651 if (wc != (wchar_t) 0xBADFACE)
23657 if ac_fn_c_try_run
"$LINENO"; then :
23658 gl_cv_func_mbrtowc_null_arg2
=yes
23660 gl_cv_func_mbrtowc_null_arg2
=no
23662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
23670 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
23678 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
23679 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
23680 $as_echo_n "(cached) " >&6
23684 # Guess no on HP-UX, Solaris, native Windows.
23685 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
23686 # Guess yes otherwise.
23687 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
23689 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
23690 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
23691 if test "$cross_compiling" = yes; then :
23694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23695 /* end confdefs.h. */
23697 #include <locale.h>
23698 #include <string.h>
23703 int found_some_locale = 0;
23704 /* This fails on Solaris. */
23705 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23707 char input[] = "B\303\274\303\237er"; /* "Büßer" */
23711 memset (&state, '\0', sizeof (mbstate_t));
23712 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23715 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
23718 found_some_locale = 1;
23720 /* This fails on HP-UX 11.11. */
23721 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23723 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23727 memset (&state, '\0', sizeof (mbstate_t));
23728 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23731 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
23734 found_some_locale = 1;
23736 /* This fails on native Windows. */
23737 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23739 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
23743 memset (&state, '\0', sizeof (mbstate_t));
23744 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23747 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23750 found_some_locale = 1;
23752 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23754 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
23758 memset (&state, '\0', sizeof (mbstate_t));
23759 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23762 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23765 found_some_locale = 1;
23767 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23769 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
23773 memset (&state, '\0', sizeof (mbstate_t));
23774 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23777 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23780 found_some_locale = 1;
23782 return (found_some_locale ? result : 77);
23785 if ac_fn_c_try_run
"$LINENO"; then :
23786 gl_cv_func_mbrtowc_retval
=yes
23788 if test $?
!= 77; then
23789 gl_cv_func_mbrtowc_retval
=no
23793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23794 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
23801 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
23807 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
23808 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
23809 $as_echo_n "(cached) " >&6
23813 # Guess no on Solaris 8 and 9.
23814 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
23815 # Guess yes otherwise.
23816 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
23818 if test $LOCALE_ZH_CN != none
; then
23819 if test "$cross_compiling" = yes; then :
23822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h. */
23825 #include <locale.h>
23826 #include <string.h>
23830 /* This fails on Solaris 8 and 9. */
23831 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23836 memset (&state, '\0', sizeof (mbstate_t));
23837 if (mbrtowc (&wc, "", 1, &state) != 0)
23843 if ac_fn_c_try_run
"$LINENO"; then :
23844 gl_cv_func_mbrtowc_nul_retval
=yes
23846 gl_cv_func_mbrtowc_nul_retval
=no
23848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
23856 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
23861 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
23862 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
23863 $as_echo_n "(cached) " >&6
23867 # Guess yes on native Windows.
23868 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
23869 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
23873 if test "$cross_compiling" = yes; then :
23876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23877 /* end confdefs.h. */
23879 #include <locale.h>
23880 #include <string.h>
23885 if (setlocale (LC_ALL, "French_France.65001") != NULL)
23887 wchar_t wc = (wchar_t) 0xBADFACE;
23890 memset (&state, '\0', sizeof (mbstate_t));
23891 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23892 && wc != (wchar_t) 0xBADFACE)
23895 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23897 wchar_t wc = (wchar_t) 0xBADFACE;
23900 memset (&state, '\0', sizeof (mbstate_t));
23901 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
23902 && wc != (wchar_t) 0xBADFACE)
23905 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23907 wchar_t wc = (wchar_t) 0xBADFACE;
23910 memset (&state, '\0', sizeof (mbstate_t));
23911 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
23912 && wc != (wchar_t) 0xBADFACE)
23915 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23917 wchar_t wc = (wchar_t) 0xBADFACE;
23920 memset (&state, '\0', sizeof (mbstate_t));
23921 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
23922 && wc != (wchar_t) 0xBADFACE)
23928 if ac_fn_c_try_run
"$LINENO"; then :
23929 gl_cv_func_mbrtowc_stores_incomplete
=no
23931 gl_cv_func_mbrtowc_stores_incomplete
=yes
23933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23940 if test $LOCALE_FR_UTF8 != none
; then
23941 if test "$cross_compiling" = yes; then :
23944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23945 /* end confdefs.h. */
23947 #include <locale.h>
23948 #include <string.h>
23952 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23954 wchar_t wc = (wchar_t) 0xBADFACE;
23957 memset (&state, '\0', sizeof (mbstate_t));
23958 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23959 && wc != (wchar_t) 0xBADFACE)
23965 if ac_fn_c_try_run
"$LINENO"; then :
23966 gl_cv_func_mbrtowc_stores_incomplete
=no
23968 gl_cv_func_mbrtowc_stores_incomplete
=yes
23970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
23980 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
23985 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
23986 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
23987 $as_echo_n "(cached) " >&6
23991 # Guess no on AIX and glibc systems.
23992 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
23993 # Guess yes on native Windows.
23994 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23995 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23997 if test "$cross_compiling" = yes; then :
24000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24005 static mbstate_t mbs;
24009 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
24012 if ac_fn_c_try_run
"$LINENO"; then :
24013 gl_cv_func_mbrtowc_empty_input
=yes
24015 gl_cv_func_mbrtowc_empty_input
=no
24017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
24024 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
24028 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
24029 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
24030 $as_echo_n "(cached) " >&6
24033 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
24035 if test "$cross_compiling" = yes; then :
24037 # Guess yes on native Windows.
24038 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
24042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 #include <limits.h>
24045 #include <locale.h>
24053 char *locale = setlocale (LC_ALL, "C");
24056 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
24060 mbstate_t mbs = { 0, };
24061 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
24071 if ac_fn_c_try_run
"$LINENO"; then :
24072 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
24074 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
24076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24077 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
24083 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
24085 case "$gl_cv_func_mbrtowc_null_arg1" in
24088 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
24093 case "$gl_cv_func_mbrtowc_null_arg2" in
24096 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
24101 case "$gl_cv_func_mbrtowc_retval" in
24104 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
24109 case "$gl_cv_func_mbrtowc_nul_retval" in
24112 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
24117 case "$gl_cv_func_mbrtowc_stores_incomplete" in
24120 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
24125 case "$gl_cv_func_mbrtowc_empty_input" in
24128 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
24133 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
24136 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
24143 if test $REPLACE_MBSTATE_T = 1; then
24145 mingw
*) LIB_MBRTOWC
= ;;
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
24150 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
24151 if ${gl_cv_have_weak+:} false
; then :
24152 $as_echo_n "(cached) " >&6
24155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24156 /* end confdefs.h. */
24157 extern void xyzzy ();
24167 if ac_fn_c_try_link
"$LINENO"; then :
24168 gl_cv_have_weak
=maybe
24170 rm -f core conftest.err conftest.
$ac_objext \
24171 conftest
$ac_exeext conftest.
$ac_ext
24172 if test $gl_cv_have_weak = maybe
; then
24173 if test "$cross_compiling" = yes; then :
24174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24175 /* end confdefs.h. */
24177 Extensible Linking Format
24181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24182 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
24183 gl_cv_have_weak
="guessing yes"
24185 gl_cv_have_weak
="guessing no"
24191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24192 /* end confdefs.h. */
24198 return (fputs == NULL);
24201 if ac_fn_c_try_run
"$LINENO"; then :
24202 gl_cv_have_weak
=yes
24206 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24207 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24211 case " $LDFLAGS " in
24212 *" -static "*) gl_cv_have_weak
=no
;;
24214 case "$gl_cv_have_weak" in
24217 freebsd
* | dragonfly
*)
24219 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
24220 cat <<EOF > conftest2.c
24221 #include <pthread.h>
24222 #pragma weak pthread_mutexattr_gettype
24225 return (pthread_mutexattr_gettype != NULL);
24228 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
24229 || gl_cv_have_weak
=no
24230 rm -f conftest1.c libempty.so conftest2.c conftest
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
24238 $as_echo "$gl_cv_have_weak" >&6; }
24239 case "$gl_cv_have_weak" in
24242 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
24247 case "$gl_cv_have_weak" in
24248 *yes) LIB_MBRTOWC
= ;;
24249 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
24258 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
24267 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
24269 if test $REPLACE_MBSTATE_T = 1; then
24278 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
24288 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
24295 if test -n "$GCC"; then
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
24297 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
24298 if ${gl_cv_cc_vis_werror+:} false
; then :
24299 $as_echo_n "(cached) " >&6
24301 gl_save_CFLAGS
="$CFLAGS"
24302 CFLAGS
="$CFLAGS -Werror"
24303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24304 /* end confdefs.h. */
24314 if ac_fn_c_try_compile
"$LINENO"; then :
24315 gl_cv_cc_vis_werror
=yes
24317 gl_cv_cc_vis_werror
=no
24319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24320 CFLAGS
="$gl_save_CFLAGS"
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24324 $as_echo "$gl_cv_cc_vis_werror" >&6; }
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24326 $as_echo_n "checking for simple visibility declarations... " >&6; }
24327 if ${gl_cv_cc_visibility+:} false
; then :
24328 $as_echo_n "(cached) " >&6
24330 gl_save_CFLAGS
="$CFLAGS"
24331 CFLAGS
="$CFLAGS -fvisibility=hidden"
24332 if test $gl_cv_cc_vis_werror = yes; then
24333 CFLAGS
="$CFLAGS -Werror"
24335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24337 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24338 extern __attribute__((__visibility__("default"))) int exportedvar;
24339 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24340 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24341 void dummyfunc (void) {}
24351 if ac_fn_c_try_compile
"$LINENO"; then :
24352 gl_cv_cc_visibility
=yes
24354 gl_cv_cc_visibility
=no
24356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24357 CFLAGS
="$gl_save_CFLAGS"
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24361 $as_echo "$gl_cv_cc_visibility" >&6; }
24362 if test $gl_cv_cc_visibility = yes; then
24363 CFLAG_VISIBILITY
="-fvisibility=hidden"
24370 cat >>confdefs.h
<<_ACEOF
24371 #define HAVE_VISIBILITY $HAVE_VISIBILITY
24393 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
24409 if case "$host_os" in
24411 *) test $ac_cv_func_mbsinit = yes ;;
24413 && test $ac_cv_func_mbrtowc = yes; then
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24419 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24420 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24421 $as_echo_n "(cached) " >&6
24425 # Guess no on AIX and OSF/1.
24426 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24427 # Guess yes otherwise.
24428 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24430 if test $LOCALE_JA != none
; then
24431 if test "$cross_compiling" = yes; then :
24434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24437 #include <locale.h>
24438 #include <string.h>
24442 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24444 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24448 memset (&state, '\0', sizeof (mbstate_t));
24449 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24450 if (mbsinit (&state))
24456 if ac_fn_c_try_run
"$LINENO"; then :
24457 gl_cv_func_mbrtowc_incomplete_state
=yes
24459 gl_cv_func_mbrtowc_incomplete_state
=no
24461 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24462 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24466 if test $LOCALE_FR_UTF8 != none
; then
24467 if test "$cross_compiling" = yes; then :
24470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24473 #include <locale.h>
24474 #include <string.h>
24478 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24480 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24484 memset (&state, '\0', sizeof (mbstate_t));
24485 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24486 if (mbsinit (&state))
24492 if ac_fn_c_try_run
"$LINENO"; then :
24493 gl_cv_func_mbrtowc_incomplete_state
=yes
24495 gl_cv_func_mbrtowc_incomplete_state
=no
24497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24506 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24512 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24513 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24514 $as_echo_n "(cached) " >&6
24518 # Guess no on Solaris 8.
24519 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24520 # Guess yes otherwise.
24521 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24523 if test $LOCALE_ZH_CN != none
; then
24524 if test "$cross_compiling" = yes; then :
24527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24528 /* end confdefs.h. */
24530 #include <locale.h>
24531 #include <stdlib.h>
24532 #include <string.h>
24536 /* This fails on Solaris 8:
24537 mbrtowc returns 2, and sets wc to 0x00F0.
24538 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24539 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24541 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24545 memset (&state, '\0', sizeof (mbstate_t));
24546 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24547 && mbtowc (&wc, input + 3, 6) == 4)
24553 if ac_fn_c_try_run
"$LINENO"; then :
24554 gl_cv_func_mbrtowc_sanitycheck
=yes
24556 gl_cv_func_mbrtowc_sanitycheck
=no
24558 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24559 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24566 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24568 REPLACE_MBSTATE_T
=0
24569 case "$gl_cv_func_mbrtowc_incomplete_state" in
24571 *) REPLACE_MBSTATE_T
=1 ;;
24573 case "$gl_cv_func_mbrtowc_sanitycheck" in
24575 *) REPLACE_MBSTATE_T
=1 ;;
24578 REPLACE_MBSTATE_T
=1
24583 if test $ac_cv_func_mbsinit = no
; then
24585 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
24589 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
24595 cat >>confdefs.h
<<_ACEOF
24596 #define HAVE_DECL_MBSINIT $ac_have_decl
24599 if test $ac_cv_have_decl_mbsinit = yes; then
24603 if test $REPLACE_MBSTATE_T = 1; then
24607 mingw
*) REPLACE_MBSINIT
=1 ;;
24612 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
24621 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
24638 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
24653 if case "$host_os" in
24655 *) test $ac_cv_func_mbsinit = yes ;;
24657 && test $ac_cv_func_mbrtowc = yes; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24663 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24664 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24665 $as_echo_n "(cached) " >&6
24669 # Guess no on AIX and OSF/1.
24670 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24671 # Guess yes otherwise.
24672 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24674 if test $LOCALE_JA != none
; then
24675 if test "$cross_compiling" = yes; then :
24678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24681 #include <locale.h>
24682 #include <string.h>
24686 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24688 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24692 memset (&state, '\0', sizeof (mbstate_t));
24693 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24694 if (mbsinit (&state))
24700 if ac_fn_c_try_run
"$LINENO"; then :
24701 gl_cv_func_mbrtowc_incomplete_state
=yes
24703 gl_cv_func_mbrtowc_incomplete_state
=no
24705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24710 if test $LOCALE_FR_UTF8 != none
; then
24711 if test "$cross_compiling" = yes; then :
24714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24715 /* end confdefs.h. */
24717 #include <locale.h>
24718 #include <string.h>
24722 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24724 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24728 memset (&state, '\0', sizeof (mbstate_t));
24729 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24730 if (mbsinit (&state))
24736 if ac_fn_c_try_run
"$LINENO"; then :
24737 gl_cv_func_mbrtowc_incomplete_state
=yes
24739 gl_cv_func_mbrtowc_incomplete_state
=no
24741 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24742 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24750 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24756 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24757 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24758 $as_echo_n "(cached) " >&6
24762 # Guess no on Solaris 8.
24763 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24764 # Guess yes otherwise.
24765 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24767 if test $LOCALE_ZH_CN != none
; then
24768 if test "$cross_compiling" = yes; then :
24771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24772 /* end confdefs.h. */
24774 #include <locale.h>
24775 #include <stdlib.h>
24776 #include <string.h>
24780 /* This fails on Solaris 8:
24781 mbrtowc returns 2, and sets wc to 0x00F0.
24782 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24783 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24785 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24789 memset (&state, '\0', sizeof (mbstate_t));
24790 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24791 && mbtowc (&wc, input + 3, 6) == 4)
24797 if ac_fn_c_try_run
"$LINENO"; then :
24798 gl_cv_func_mbrtowc_sanitycheck
=yes
24800 gl_cv_func_mbrtowc_sanitycheck
=no
24802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24810 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24812 REPLACE_MBSTATE_T
=0
24813 case "$gl_cv_func_mbrtowc_incomplete_state" in
24815 *) REPLACE_MBSTATE_T
=1 ;;
24817 case "$gl_cv_func_mbrtowc_sanitycheck" in
24819 *) REPLACE_MBSTATE_T
=1 ;;
24822 REPLACE_MBSTATE_T
=1
24827 if test $ac_cv_func_mbsrtowcs = no
; then
24829 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
24833 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
24839 cat >>confdefs.h
<<_ACEOF
24840 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
24843 if test $ac_cv_have_decl_mbsrtowcs = yes; then
24844 REPLACE_MBSRTOWCS
=1
24847 if test $REPLACE_MBSTATE_T = 1; then
24848 REPLACE_MBSRTOWCS
=1
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
24857 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
24858 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
24859 $as_echo_n "(cached) " >&6
24863 # Guess no on HP-UX, Solaris, mingw.
24864 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
24865 # Guess yes otherwise.
24866 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
24868 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
24869 if test "$cross_compiling" = yes; then :
24872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24873 /* end confdefs.h. */
24875 #include <locale.h>
24876 #include <string.h>
24881 /* Test whether the function supports a NULL destination argument.
24882 This fails on native Windows. */
24883 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24885 const char input[] = "\337er";
24886 const char *src = input;
24889 memset (&state, '\0', sizeof (mbstate_t));
24890 if (mbsrtowcs (NULL, &src, 1, &state) != 3
24894 /* Test whether the function works when started with a conversion state
24895 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
24896 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24898 const char input[] = "B\303\274\303\237er";
24901 memset (&state, '\0', sizeof (mbstate_t));
24902 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24903 if (!mbsinit (&state))
24905 const char *src = input + 2;
24906 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24910 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24912 const char input[] = "<\306\374\313\334\270\354>";
24915 memset (&state, '\0', sizeof (mbstate_t));
24916 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
24917 if (!mbsinit (&state))
24919 const char *src = input + 4;
24920 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
24924 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24926 const char input[] = "B\250\271\201\060\211\070er";
24929 memset (&state, '\0', sizeof (mbstate_t));
24930 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24931 if (!mbsinit (&state))
24933 const char *src = input + 2;
24934 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24941 if ac_fn_c_try_run
"$LINENO"; then :
24942 gl_cv_func_mbsrtowcs_works
=yes
24944 gl_cv_func_mbsrtowcs_works
=no
24946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
24954 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
24956 case "$gl_cv_func_mbsrtowcs_works" in
24958 *) REPLACE_MBSRTOWCS
=1 ;;
24963 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
24972 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
24982 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
24999 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
25006 for ac_func
in mbtowc
25008 ac_fn_c_check_func
"$LINENO" "mbtowc" "ac_cv_func_mbtowc"
25009 if test "x$ac_cv_func_mbtowc" = xyes
; then :
25010 cat >>confdefs.h
<<_ACEOF
25011 #define HAVE_MBTOWC 1
25017 if test $ac_cv_func_mbtowc = no
; then
25025 if test $HAVE_MBTOWC = 0 ||
test $REPLACE_MBTOWC = 1; then
25034 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
25051 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
25056 if test $REPLACE_MEMCHR = 1; then
25065 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
25068 for ac_header
in bp-sym.h
25070 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
25071 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
25072 cat >>confdefs.h
<<_ACEOF
25073 #define HAVE_BP_SYM_H 1
25093 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
25099 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
25101 $as_echo_n "checking whether memmem works in linear time... " >&6; }
25102 if ${gl_cv_func_memmem_works_fast+:} false
; then :
25103 $as_echo_n "(cached) " >&6
25105 if test "$cross_compiling" = yes; then :
25106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25109 #include <features.h>
25110 #ifdef __GNU_LIBRARY__
25111 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
25112 && !defined __UCLIBC__
25117 #include <cygwin/version.h>
25118 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
25124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25125 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25126 gl_cv_func_memmem_works_fast
="guessing yes"
25128 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
25134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h. */
25137 #include <signal.h> /* for signal */
25138 #include <string.h> /* for memmem */
25139 #include <stdlib.h> /* for malloc */
25140 #include <unistd.h> /* for alarm */
25141 static void quit (int sig) { _exit (sig + 128); }
25148 size_t m = 1000000;
25149 char *haystack = (char *) malloc (2 * m + 1);
25150 char *needle = (char *) malloc (m + 1);
25151 /* Failure to compile this test due to missing alarm is okay,
25152 since all such platforms (mingw) also lack memmem. */
25153 signal (SIGALRM, quit);
25155 /* Check for quadratic performance. */
25156 if (haystack && needle)
25158 memset (haystack, 'A', 2 * m);
25159 haystack[2 * m] = 'B';
25160 memset (needle, 'A', m);
25162 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
25165 /* Free allocated memory, in case some sanitizer is watching. */
25174 if ac_fn_c_try_run
"$LINENO"; then :
25175 gl_cv_func_memmem_works_fast
=yes
25177 gl_cv_func_memmem_works_fast
=no
25179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25180 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
25186 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
25187 case "$gl_cv_func_memmem_works_fast" in
25195 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
25204 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
25211 for ac_func
in memmem
25213 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
25214 if test "x$ac_cv_func_memmem" = xyes
; then :
25215 cat >>confdefs.h
<<_ACEOF
25216 #define HAVE_MEMMEM 1
25222 if test $ac_cv_func_memmem = yes; then
25228 if test $ac_cv_have_decl_memmem = no
; then
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
25232 $as_echo_n "checking whether memmem works... " >&6; }
25233 if ${gl_cv_func_memmem_works_always+:} false
; then :
25234 $as_echo_n "(cached) " >&6
25236 if test "$cross_compiling" = yes; then :
25237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h. */
25240 #ifdef __GNU_LIBRARY__
25241 #include <features.h>
25242 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
25243 || __GLIBC_MINOR__ > 12)) \
25244 || (__GLIBC__ > 2)) \
25245 || defined __UCLIBC__
25248 #elif defined __CYGWIN__
25249 #include <cygwin/version.h>
25250 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25259 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25260 gl_cv_func_memmem_works_always
="guessing yes"
25262 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
25268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25269 /* end confdefs.h. */
25271 #include <string.h> /* for memmem */
25272 #define P "_EF_BF_BD"
25273 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25274 #define NEEDLE P P P P P
25281 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
25283 /* Check for empty needle behavior. */
25285 const char *haystack = "AAA";
25286 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
25295 if ac_fn_c_try_run
"$LINENO"; then :
25296 gl_cv_func_memmem_works_always
=yes
25298 gl_cv_func_memmem_works_always
=no
25300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
25307 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
25308 case "$gl_cv_func_memmem_works_always" in
25317 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
25326 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
25340 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
25350 for ac_func
in mempcpy
25352 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
25353 if test "x$ac_cv_func_mempcpy" = xyes
; then :
25354 cat >>confdefs.h
<<_ACEOF
25355 #define HAVE_MEMPCPY 1
25361 if test $ac_cv_func_mempcpy = no
; then
25365 if test $HAVE_MEMPCPY = 0; then
25374 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
25391 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
25400 if test $ac_cv_have_decl_memrchr = no
; then
25401 HAVE_DECL_MEMRCHR
=0
25404 for ac_func
in memrchr
25406 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
25407 if test "x$ac_cv_func_memrchr" = xyes
; then :
25408 cat >>confdefs.h
<<_ACEOF
25409 #define HAVE_MEMRCHR 1
25416 if test $ac_cv_func_memrchr = no
; then
25425 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
25440 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
25450 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
25451 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
25452 $as_echo_n "(cached) " >&6
25454 rm -rf conftest.dir
25455 if test "$cross_compiling" = yes; then :
25457 # Guess yes on Linux systems.
25458 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25459 # Guess yes on glibc systems.
25460 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25461 # Guess yes on MSVC, no on mingw.
25462 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25463 /* end confdefs.h. */
25470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25471 $EGREP "Known" >/dev
/null
2>&1; then :
25472 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
25474 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
25479 # If we don't know, obey --enable-cross-guesses.
25480 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
25484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h. */
25487 #include <sys/types.h>
25488 #include <sys/stat.h>
25496 return mkdir ("conftest.dir/", 0700);
25501 if ac_fn_c_try_run
"$LINENO"; then :
25502 gl_cv_func_mkdir_trailing_slash_works
=yes
25504 gl_cv_func_mkdir_trailing_slash_works
=no
25506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25510 rm -rf conftest.dir
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
25514 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
25515 case "$gl_cv_func_mkdir_trailing_slash_works" in
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
25523 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
25524 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
25525 $as_echo_n "(cached) " >&6
25527 rm -rf conftest.dir
25528 if test "$cross_compiling" = yes; then :
25530 # Guess yes on glibc systems.
25531 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25532 # Guess yes on musl systems.
25533 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25534 # Guess no on native Windows.
25535 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
25536 # If we don't know, obey --enable-cross-guesses.
25537 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
25541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25544 #include <sys/types.h>
25545 #include <sys/stat.h>
25553 return !mkdir ("conftest.dir/./", 0700);
25558 if ac_fn_c_try_run
"$LINENO"; then :
25559 gl_cv_func_mkdir_trailing_dot_works
=yes
25561 gl_cv_func_mkdir_trailing_dot_works
=no
25563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25567 rm -rf conftest.dir
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
25572 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
25573 case "$gl_cv_func_mkdir_trailing_dot_works" in
25578 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
25583 if test $REPLACE_MKDIR = 1; then
25592 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
25606 $as_echo "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
25612 for ac_func
in mkdtemp
25614 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
25615 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
25616 cat >>confdefs.h
<<_ACEOF
25617 #define HAVE_MKDTEMP 1
25623 if test $ac_cv_func_mkdtemp = no
; then
25627 if test $HAVE_MKDTEMP = 0; then
25636 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
25652 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
25662 if test $ac_cv_func_mkostemp != yes; then
25666 if test $HAVE_MKOSTEMP = 0; then
25675 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
25682 cat >>confdefs.h
<<_ACEOF
25683 #define GNULIB_MKOSTEMP 1
25698 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
25703 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25712 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
25716 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25725 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
25730 cat >>confdefs.h
<<_ACEOF
25731 #define GNULIB_MSVC_NOTHROW 1
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
25738 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25739 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
25740 $as_echo_n "(cached) " >&6
25743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25744 /* end confdefs.h. */
25745 #include <netinet/in.h>
25754 if ac_fn_c_try_compile
"$LINENO"; then :
25755 gl_cv_header_netinet_in_h_selfcontained
=yes
25757 gl_cv_header_netinet_in_h_selfcontained
=no
25759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25763 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25764 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25767 NETINET_IN_H
='netinet/in.h'
25768 for ac_header
in netinet
/in.h
25770 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25771 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
25772 cat >>confdefs.h
<<_ACEOF
25773 #define HAVE_NETINET_IN_H 1
25789 if test $gl_cv_have_include_next = yes; then
25790 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
25793 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25794 if ${gl_cv_next_netinet_in_h+:} false
; then :
25795 $as_echo_n "(cached) " >&6
25798 if test $ac_cv_header_netinet_in_h = yes; then
25803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25804 /* end confdefs.h. */
25805 #include <netinet/in.h>
25808 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25809 *) gl_absname_cpp
="$ac_cpp" ;;
25814 gl_dirsep_regex
='[/\\]'
25817 gl_dirsep_regex
='\/'
25820 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25821 gl_header_literal_regex
=`echo 'netinet/in.h' \
25822 | sed -e "$gl_make_literal_regex_sed"`
25823 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25824 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25830 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25831 sed -n "$gl_absolute_header_sed"`
25833 gl_header
=$gl_cv_absolute_netinet_in_h
25834 gl_cv_next_netinet_in_h
='"'$gl_header'"'
25836 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
25842 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25844 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
25846 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25848 gl_next_as_first_directive
='<'netinet
/in.h
'>'
25850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25851 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
25853 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
25858 if test $ac_cv_header_netinet_in_h = yes; then
25859 HAVE_NETINET_IN_H
=1
25861 HAVE_NETINET_IN_H
=0
25866 if test -n "$NETINET_IN_H"; then
25867 GL_GENERATE_NETINET_IN_H_TRUE
=
25868 GL_GENERATE_NETINET_IN_H_FALSE
='#'
25870 GL_GENERATE_NETINET_IN_H_TRUE
='#'
25871 GL_GENERATE_NETINET_IN_H_FALSE
=
25885 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
25891 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
25892 if ${gl_cv_func_open_slash+:} false
; then :
25893 $as_echo_n "(cached) " >&6
25895 # Assume that if we have lstat, we can also check symlinks.
25896 if test $ac_cv_func_lstat = yes; then
25898 ln -s conftest.tmp conftest.lnk
25900 if test "$cross_compiling" = yes; then :
25903 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
25904 gl_cv_func_open_slash
="guessing no" ;;
25906 gl_cv_func_open_slash
="guessing yes" ;;
25910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h. */
25915 # include <unistd.h>
25925 if (open ("conftest.lnk/", O_RDONLY) != -1)
25928 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
25933 if ac_fn_c_try_run
"$LINENO"; then :
25934 gl_cv_func_open_slash
=yes
25936 gl_cv_func_open_slash
=no
25938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25939 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25942 rm -f conftest.sl conftest.tmp conftest.lnk
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
25946 $as_echo "$gl_cv_func_open_slash" >&6; }
25947 case "$gl_cv_func_open_slash" in
25950 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25955 case "$gl_cv_func_open_slash" in
25963 if test $REPLACE_OPEN = 0; then
25967 if test $ac_cv_func_fchdir = no
; then
25971 if test $HAVE_FCHDIR = 0; then
25978 if test $REPLACE_OPEN = 1; then
25987 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
26005 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
26015 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
26019 # Solaris 10 lacks O_CLOEXEC.
26020 # Solaris 9 has *at functions, but uniformly mishandles trailing
26021 # slash in all of them.
26029 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
26038 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
26047 cat >>confdefs.h
<<_ACEOF
26048 #define GNULIB_OPENAT 1
26062 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
26069 for ac_func
in opendir
26071 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
26072 if test "x$ac_cv_func_opendir" = xyes
; then :
26073 cat >>confdefs.h
<<_ACEOF
26074 #define HAVE_OPENDIR 1
26080 if test $ac_cv_func_opendir = no
; then
26087 if test $ac_cv_func_fchdir = no
; then
26091 if test $HAVE_FCHDIR = 0; then
26092 if test $HAVE_OPENDIR = 1; then
26097 case $host_os,$HAVE_OPENDIR in
26099 REPLACE_OPENDIR
=1;;
26102 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
26111 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
26125 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
26136 if test $ac_cv_func_pipe != yes; then
26140 if test $HAVE_PIPE = 0; then
26149 gl_LIBOBJS
="$gl_LIBOBJS pipe.$ac_objext"
26163 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
26171 for ac_func
in rawmemchr
26173 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
26174 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
26175 cat >>confdefs.h
<<_ACEOF
26176 #define HAVE_RAWMEMCHR 1
26182 if test $ac_cv_func_rawmemchr = no
; then
26186 if test $HAVE_RAWMEMCHR = 0; then
26195 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
26210 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
26217 for ac_func
in readdir
26219 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
26220 if test "x$ac_cv_func_readdir" = xyes
; then :
26221 cat >>confdefs.h
<<_ACEOF
26222 #define HAVE_READDIR 1
26228 if test $ac_cv_func_readdir = no
; then
26232 if test $HAVE_READDIR = 0; then
26241 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
26255 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
26262 if test $ac_cv_func_readlink = no
; then
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
26266 $as_echo_n "checking whether readlink signature is correct... " >&6; }
26267 if ${gl_cv_decl_readlink_works+:} false
; then :
26268 $as_echo_n "(cached) " >&6
26270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h. */
26272 #include <unistd.h>
26273 /* Cause compilation failure if original declaration has wrong type. */
26274 ssize_t readlink (const char *, char *, size_t);
26283 if ac_fn_c_try_compile
"$LINENO"; then :
26284 gl_cv_decl_readlink_works
=yes
26286 gl_cv_decl_readlink_works
=no
26288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
26291 $as_echo "$gl_cv_decl_readlink_works" >&6; }
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
26293 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
26294 if ${gl_cv_func_readlink_trailing_slash+:} false
; then :
26295 $as_echo_n "(cached) " >&6
26297 # We have readlink, so assume ln -s works.
26298 ln -s conftest.no-such conftest.link
26299 ln -s conftest.link conftest.lnk2
26300 if test "$cross_compiling" = yes; then :
26302 # Guess yes on Linux or glibc systems.
26303 linux-
* | linux |
*-gnu* | gnu
*)
26304 gl_cv_func_readlink_trailing_slash
="guessing yes" ;;
26305 # Guess no on AIX or HP-UX.
26307 gl_cv_func_readlink_trailing_slash
="guessing no" ;;
26308 # If we don't know, obey --enable-cross-guesses.
26310 gl_cv_func_readlink_trailing_slash
="$gl_cross_guess_normal" ;;
26314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26316 #include <unistd.h>
26322 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
26327 if ac_fn_c_try_run
"$LINENO"; then :
26328 gl_cv_func_readlink_trailing_slash
=yes
26330 gl_cv_func_readlink_trailing_slash
=no
26332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26336 rm -f conftest.link conftest.lnk2
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
26339 $as_echo "$gl_cv_func_readlink_trailing_slash" >&6; }
26340 case "$gl_cv_func_readlink_trailing_slash" in
26342 if test "$gl_cv_decl_readlink_works" != yes; then
26348 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
26355 $as_echo_n "checking whether readlink truncates results correctly... " >&6; }
26356 if ${gl_cv_func_readlink_truncate+:} false
; then :
26357 $as_echo_n "(cached) " >&6
26359 # We have readlink, so assume ln -s works.
26360 ln -s ab conftest.link
26361 if test "$cross_compiling" = yes; then :
26363 # Guess yes on Linux or glibc systems.
26364 linux-
* | linux |
*-gnu* | gnu
*)
26365 gl_cv_func_readlink_truncate
="guessing yes" ;;
26366 # Guess no on AIX or HP-UX.
26368 gl_cv_func_readlink_truncate
="guessing no" ;;
26369 # If we don't know, obey --enable-cross-guesses.
26371 gl_cv_func_readlink_truncate
="$gl_cross_guess_normal" ;;
26375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h. */
26377 #include <unistd.h>
26383 return readlink ("conftest.link", &c, 1) != 1;
26388 if ac_fn_c_try_run
"$LINENO"; then :
26389 gl_cv_func_readlink_truncate
=yes
26391 gl_cv_func_readlink_truncate
=no
26393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26397 rm -f conftest.link conftest.lnk2
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
26400 $as_echo "$gl_cv_func_readlink_truncate" >&6; }
26401 case $gl_cv_func_readlink_truncate in
26403 if test "$gl_cv_decl_readlink_works" != yes; then
26409 $as_echo "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
26416 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26425 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
26442 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
26449 if test $gl_cv_func_malloc_posix = yes; then
26451 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
26457 if test $REPLACE_REALLOC = 1; then
26466 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
26474 GNULIB_REALLOC_POSIX
=1
26480 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
26490 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
26491 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
26492 $as_echo_n "(cached) " >&6
26494 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26495 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26496 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26497 # Assume that if we have lstat, we can also check symlinks.
26498 if test $ac_cv_func_lstat = yes; then
26499 ln -s conftest.f conftest.lnk
26501 if test "$cross_compiling" = yes; then :
26503 # Guess yes on Linux systems.
26504 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26505 # Guess yes on glibc systems.
26506 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26507 # Guess no on native Windows.
26508 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
26509 # If we don't know, obey --enable-cross-guesses.
26510 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
26514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h. */
26517 # include <stdio.h>
26518 # include <stdlib.h>
26524 if (rename ("conftest.f1", "conftest.f2/") == 0)
26526 if (rename ("conftest.d1", "conftest.d2/") != 0)
26529 if (rename ("conftest.f", "conftest.lnk/") == 0)
26538 if ac_fn_c_try_run
"$LINENO"; then :
26539 gl_cv_func_rename_slash_dst_works
=yes
26541 gl_cv_func_rename_slash_dst_works
=no
26543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26547 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
26551 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
26552 case "$gl_cv_func_rename_slash_dst_works" in
26557 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
26563 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
26564 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
26565 $as_echo_n "(cached) " >&6
26567 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26568 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26569 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26570 # Assume that if we have lstat, we can also check symlinks.
26571 if test $ac_cv_func_lstat = yes; then
26572 ln -s conftest.f conftest.lnk
26574 if test "$cross_compiling" = yes; then :
26576 # Guess yes on Linux systems.
26577 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26578 # Guess yes on glibc systems.
26579 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26580 # Guess yes on native Windows.
26581 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26582 # If we don't know, obey --enable-cross-guesses.
26583 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
26587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h. */
26590 # include <stdio.h>
26591 # include <stdlib.h>
26597 if (rename ("conftest.f1/", "conftest.d3") == 0)
26599 if (rename ("conftest.d1/", "conftest.d2") != 0)
26602 if (rename ("conftest.lnk/", "conftest.f") == 0)
26611 if ac_fn_c_try_run
"$LINENO"; then :
26612 gl_cv_func_rename_slash_src_works
=yes
26614 gl_cv_func_rename_slash_src_works
=no
26616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26620 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
26624 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
26625 case "$gl_cv_func_rename_slash_src_works" in
26630 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
26637 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
26638 if ${gl_cv_func_rename_link_works+:} false
; then :
26639 $as_echo_n "(cached) " >&6
26641 if test $ac_cv_func_link = yes; then
26642 if test $cross_compiling != yes; then
26643 rm -rf conftest.f conftest.f1 conftest.f2
26644 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
26645 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
26646 if test "$cross_compiling" = yes; then :
26650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26653 # include <errno.h>
26654 # include <stdio.h>
26655 # include <stdlib.h>
26656 # include <unistd.h>
26665 if (rename ("conftest.f", "conftest.f1"))
26667 if (unlink ("conftest.f1"))
26670 /* Allow either the POSIX-required behavior, where the
26671 previous rename kept conftest.f, or the (better) NetBSD
26672 behavior, where it removed conftest.f. */
26673 if (rename ("conftest.f", "conftest.f") != 0
26674 && errno != ENOENT)
26677 if (rename ("conftest.f1", "conftest.f1") == 0)
26679 if (rename ("conftest.f2", "conftest.f2") != 0)
26687 if ac_fn_c_try_run
"$LINENO"; then :
26688 gl_cv_func_rename_link_works
=yes
26690 gl_cv_func_rename_link_works
=no
26692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26693 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26697 gl_cv_func_rename_link_works
="guessing no"
26699 rm -rf conftest.f conftest.f1 conftest.f2
26702 # Guess yes on Linux systems.
26703 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
26704 # Guess yes on glibc systems.
26705 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
26706 # Guess yes on native Windows.
26707 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
26708 # If we don't know, obey --enable-cross-guesses.
26709 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
26713 gl_cv_func_rename_link_works
=yes
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
26718 $as_echo "$gl_cv_func_rename_link_works" >&6; }
26719 case "$gl_cv_func_rename_link_works" in
26724 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
26730 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
26731 if ${gl_cv_func_rename_dest_works+:} false
; then :
26732 $as_echo_n "(cached) " >&6
26734 rm -rf conftest.f conftest.d1 conftest.d2
26735 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
26736 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26737 if test "$cross_compiling" = yes; then :
26739 # Guess yes on Linux systems.
26740 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
26741 # Guess yes on glibc systems.
26742 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
26743 # Guess no on native Windows.
26744 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
26745 # If we don't know, obey --enable-cross-guesses.
26746 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
26750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26751 /* end confdefs.h. */
26753 # include <stdio.h>
26754 # include <stdlib.h>
26760 if (rename ("conftest.d1", "conftest.d2") != 0)
26762 if (rename ("conftest.d2", "conftest.f") == 0)
26770 if ac_fn_c_try_run
"$LINENO"; then :
26771 gl_cv_func_rename_dest_works
=yes
26773 gl_cv_func_rename_dest_works
=no
26775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26779 rm -rf conftest.f conftest.d1 conftest.d2
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
26783 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
26784 case "$gl_cv_func_rename_dest_works" in
26789 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
26794 if test $REPLACE_RENAME = 1; then
26803 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
26817 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
26824 for ac_func
in rewinddir
26826 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
26827 if test "x$ac_cv_func_rewinddir" = xyes
; then :
26828 cat >>confdefs.h
<<_ACEOF
26829 #define HAVE_REWINDDIR 1
26835 if test $ac_cv_func_rewinddir = no
; then
26839 if test $HAVE_REWINDDIR = 0; then
26848 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
26862 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
26870 $as_echo_n "checking whether rmdir works... " >&6; }
26871 if ${gl_cv_func_rmdir_works+:} false
; then :
26872 $as_echo_n "(cached) " >&6
26875 touch conftest.
file
26876 if test "$cross_compiling" = yes; then :
26878 # Guess yes on Linux systems.
26879 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
26880 # Guess yes on glibc systems.
26881 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
26882 # Guess no on native Windows.
26883 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
26884 # If we don't know, obey --enable-cross-guesses.
26885 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
26889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26890 /* end confdefs.h. */
26894 # include <unistd.h>
26895 #else /* on Windows with MSVC */
26896 # include <direct.h>
26906 if (!rmdir ("conftest.file/"))
26908 else if (errno != ENOTDIR)
26910 if (!rmdir ("conftest.dir/./"))
26918 if ac_fn_c_try_run
"$LINENO"; then :
26919 gl_cv_func_rmdir_works
=yes
26921 gl_cv_func_rmdir_works
=no
26923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26927 rm -rf conftest.dir conftest.
file
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
26930 $as_echo "$gl_cv_func_rmdir_works" >&6; }
26931 case "$gl_cv_func_rmdir_works" in
26938 if test $REPLACE_RMDIR = 1; then
26947 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
26961 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
26970 if test $ac_cv_func_setenv = no
; then
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
26974 $as_echo_n "checking whether setenv validates arguments... " >&6; }
26975 if ${gl_cv_func_setenv_works+:} false
; then :
26976 $as_echo_n "(cached) " >&6
26978 if test "$cross_compiling" = yes; then :
26980 # Guess yes on glibc systems.
26981 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
26982 # Guess yes on musl systems.
26983 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
26984 # If we don't know, obey --enable-cross-guesses.
26985 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
26989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26992 #include <stdlib.h>
26994 #include <string.h>
27002 if (setenv ("", "", 0) != -1)
27004 else if (errno != EINVAL)
27008 if (setenv ("a", "=", 1) != 0)
27010 else if (strcmp (getenv ("a"), "=") != 0)
27019 if ac_fn_c_try_run
"$LINENO"; then :
27020 gl_cv_func_setenv_works
=yes
27022 gl_cv_func_setenv_works
=no
27024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
27030 $as_echo "$gl_cv_func_setenv_works" >&6; }
27031 case "$gl_cv_func_setenv_works" in
27039 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
27048 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
27062 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
27072 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
27073 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
27074 $as_echo_n "(cached) " >&6
27077 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
27078 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
27079 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
27080 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
27081 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
27082 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
27083 # If we don't know, obey --enable-cross-guesses.
27085 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
27090 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
27094 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
27095 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
27099 case "$gl_cv_func_setlocale_null_all_mtsafe" in
27100 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
27101 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
27104 cat >>confdefs.h
<<_ACEOF
27105 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
27110 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
27111 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
27112 $as_echo_n "(cached) " >&6
27115 # Guess no on OpenBSD, AIX.
27117 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
27118 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
27119 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
27120 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
27121 # If we don't know, obey --enable-cross-guesses.
27123 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
27128 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
27132 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
27133 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
27137 case "$gl_cv_func_setlocale_null_one_mtsafe" in
27138 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
27139 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
27142 cat >>confdefs.h
<<_ACEOF
27143 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
27147 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
27149 mingw
*) LIB_SETLOCALE_NULL
= ;;
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
27154 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
27155 if ${gl_cv_have_weak+:} false
; then :
27156 $as_echo_n "(cached) " >&6
27159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27160 /* end confdefs.h. */
27161 extern void xyzzy ();
27171 if ac_fn_c_try_link
"$LINENO"; then :
27172 gl_cv_have_weak
=maybe
27174 rm -f core conftest.err conftest.
$ac_objext \
27175 conftest
$ac_exeext conftest.
$ac_ext
27176 if test $gl_cv_have_weak = maybe
; then
27177 if test "$cross_compiling" = yes; then :
27178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27179 /* end confdefs.h. */
27181 Extensible Linking Format
27185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27186 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
27187 gl_cv_have_weak
="guessing yes"
27189 gl_cv_have_weak
="guessing no"
27195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27196 /* end confdefs.h. */
27202 return (fputs == NULL);
27205 if ac_fn_c_try_run
"$LINENO"; then :
27206 gl_cv_have_weak
=yes
27210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27215 case " $LDFLAGS " in
27216 *" -static "*) gl_cv_have_weak
=no
;;
27218 case "$gl_cv_have_weak" in
27221 freebsd
* | dragonfly
*)
27223 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
27224 cat <<EOF > conftest2.c
27225 #include <pthread.h>
27226 #pragma weak pthread_mutexattr_gettype
27229 return (pthread_mutexattr_gettype != NULL);
27232 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
27233 || gl_cv_have_weak
=no
27234 rm -f conftest1.c libempty.so conftest2.c conftest
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
27242 $as_echo "$gl_cv_have_weak" >&6; }
27243 case "$gl_cv_have_weak" in
27246 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
27251 case "$gl_cv_have_weak" in
27252 *yes) LIB_SETLOCALE_NULL
= ;;
27253 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
27258 LIB_SETLOCALE_NULL
=
27262 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
27271 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
27278 if test -n "$GCC"; then
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
27280 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
27281 if ${gl_cv_cc_vis_werror+:} false
; then :
27282 $as_echo_n "(cached) " >&6
27284 gl_save_CFLAGS
="$CFLAGS"
27285 CFLAGS
="$CFLAGS -Werror"
27286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27287 /* end confdefs.h. */
27297 if ac_fn_c_try_compile
"$LINENO"; then :
27298 gl_cv_cc_vis_werror
=yes
27300 gl_cv_cc_vis_werror
=no
27302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27303 CFLAGS
="$gl_save_CFLAGS"
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
27307 $as_echo "$gl_cv_cc_vis_werror" >&6; }
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
27309 $as_echo_n "checking for simple visibility declarations... " >&6; }
27310 if ${gl_cv_cc_visibility+:} false
; then :
27311 $as_echo_n "(cached) " >&6
27313 gl_save_CFLAGS
="$CFLAGS"
27314 CFLAGS
="$CFLAGS -fvisibility=hidden"
27315 if test $gl_cv_cc_vis_werror = yes; then
27316 CFLAGS
="$CFLAGS -Werror"
27318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27319 /* end confdefs.h. */
27320 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
27321 extern __attribute__((__visibility__("default"))) int exportedvar;
27322 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
27323 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
27324 void dummyfunc (void) {}
27334 if ac_fn_c_try_compile
"$LINENO"; then :
27335 gl_cv_cc_visibility
=yes
27337 gl_cv_cc_visibility
=no
27339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27340 CFLAGS
="$gl_save_CFLAGS"
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
27344 $as_echo "$gl_cv_cc_visibility" >&6; }
27345 if test $gl_cv_cc_visibility = yes; then
27346 CFLAG_VISIBILITY
="-fvisibility=hidden"
27353 cat >>confdefs.h
<<_ACEOF
27354 #define HAVE_VISIBILITY $HAVE_VISIBILITY
27365 GNULIB_SETLOCALE_NULL
=1
27371 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
27386 if test $gl_cv_have_include_next = yes; then
27387 gl_cv_next_signal_h
='<'signal.h
'>'
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
27390 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
27391 if ${gl_cv_next_signal_h+:} false
; then :
27392 $as_echo_n "(cached) " >&6
27397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27398 /* end confdefs.h. */
27399 #include <signal.h>
27402 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27403 *) gl_absname_cpp
="$ac_cpp" ;;
27408 gl_dirsep_regex
='[/\\]'
27411 gl_dirsep_regex
='\/'
27414 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27415 gl_header_literal_regex
=`echo 'signal.h' \
27416 | sed -e "$gl_make_literal_regex_sed"`
27417 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27424 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27425 sed -n "$gl_absolute_header_sed"`
27427 gl_header
=$gl_cv_absolute_signal_h
27428 gl_cv_next_signal_h
='"'$gl_header'"'
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
27433 $as_echo "$gl_cv_next_signal_h" >&6; }
27435 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
27437 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27438 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27439 gl_next_as_first_directive
='<'signal.h
'>'
27441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27442 gl_next_as_first_directive
=$gl_cv_next_signal_h
27444 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
27450 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
27451 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
27452 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
27453 #include <signal.h>
27456 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
27459 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
27468 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
27469 #include <signal.h>
27472 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
27475 HAVE_SIGHANDLER_T
=0
27485 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27486 /* <sys/types.h> is not needed according to POSIX, but the
27487 <sys/socket.h> in i386-unknown-freebsd4.10 and
27488 powerpc-apple-darwin5.5 required it. */
27489 #include <sys/types.h>
27490 #if HAVE_SYS_SOCKET_H
27491 # include <sys/socket.h>
27492 #elif HAVE_WS2TCPIP_H
27493 # include <ws2tcpip.h>
27497 if test "x$ac_cv_type_socklen_t" = xyes
; then :
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
27501 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27502 if ${gl_cv_socklen_t_equiv+:} false
; then :
27503 $as_echo_n "(cached) " >&6
27505 # Systems have either "struct sockaddr *" or
27506 # "void *" as the second argument to getpeername
27507 gl_cv_socklen_t_equiv
=
27508 for arg2
in "struct sockaddr" void
; do
27509 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
27510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h. */
27512 #include <sys/types.h>
27513 #include <sys/socket.h>
27515 int getpeername (int, $arg2 *, $t *);
27520 getpeername (0, 0, &len);
27525 if ac_fn_c_try_compile
"$LINENO"; then :
27526 gl_cv_socklen_t_equiv
="$t"
27528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27529 test "$gl_cv_socklen_t_equiv" != "" && break
27531 test "$gl_cv_socklen_t_equiv" != "" && break
27533 if test "$gl_cv_socklen_t_equiv" = ""; then
27534 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
27539 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27541 cat >>confdefs.h
<<_ACEOF
27542 #define socklen_t $gl_cv_socklen_t_equiv
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27549 $as_echo_n "checking for ssize_t... " >&6; }
27550 if ${gt_cv_ssize_t+:} false
; then :
27551 $as_echo_n "(cached) " >&6
27553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h. */
27555 #include <sys/types.h>
27559 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27565 if ac_fn_c_try_compile
"$LINENO"; then :
27570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27573 $as_echo "$gt_cv_ssize_t" >&6; }
27574 if test $gt_cv_ssize_t = no
; then
27576 $as_echo "#define ssize_t int" >>confdefs.h
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27589 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
27590 if ${gl_cv_func_stat_file_slash+:} false
; then :
27591 $as_echo_n "(cached) " >&6
27594 # Assume that if we have lstat, we can also check symlinks.
27595 if test $ac_cv_func_lstat = yes; then
27596 ln -s conftest.tmp conftest.lnk
27598 if test "$cross_compiling" = yes; then :
27600 # Guess yes on Linux systems.
27601 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
27602 # Guess yes on glibc systems.
27603 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
27604 # If we don't know, obey --enable-cross-guesses.
27605 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
27609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27610 /* end confdefs.h. */
27611 #include <sys/stat.h>
27618 if (!stat ("conftest.tmp/", &st))
27621 if (!stat ("conftest.lnk/", &st))
27630 if ac_fn_c_try_run
"$LINENO"; then :
27631 gl_cv_func_stat_file_slash
=yes
27633 gl_cv_func_stat_file_slash
=no
27635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27639 rm -f conftest.tmp conftest.lnk
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27642 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
27643 case $gl_cv_func_stat_file_slash in
27647 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27657 if test $REPLACE_STAT = 1; then
27666 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27678 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
27699 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
27707 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>
27708 #include <sys/stat.h>
27710 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
27712 cat >>confdefs.h
<<_ACEOF
27713 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27717 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27718 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
27719 $as_echo_n "(cached) " >&6
27721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27722 /* end confdefs.h. */
27724 #include <sys/types.h>
27725 #include <sys/stat.h>
27726 #if HAVE_SYS_TIME_H
27727 # include <sys/time.h>
27730 struct timespec ts;
27743 if ac_fn_c_try_compile
"$LINENO"; then :
27744 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
27746 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
27748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27751 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27752 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27754 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27758 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>
27759 #include <sys/stat.h>
27761 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
27763 cat >>confdefs.h
<<_ACEOF
27764 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27769 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27770 #include <sys/stat.h>
27772 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
27774 cat >>confdefs.h
<<_ACEOF
27775 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27780 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>
27781 #include <sys/stat.h>
27783 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
27785 cat >>confdefs.h
<<_ACEOF
27786 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27802 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>
27803 #include <sys/stat.h>
27805 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
27807 cat >>confdefs.h
<<_ACEOF
27808 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27813 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27814 #include <sys/stat.h>
27816 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
27818 cat >>confdefs.h
<<_ACEOF
27819 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27824 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>
27825 #include <sys/stat.h>
27827 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
27829 cat >>confdefs.h
<<_ACEOF
27830 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
27843 $as_echo_n "checking for working stdalign.h... " >&6; }
27844 if ${gl_cv_header_working_stdalign_h+:} false
; then :
27845 $as_echo_n "(cached) " >&6
27847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27848 /* end confdefs.h. */
27849 #include <stdalign.h>
27850 #include <stddef.h>
27852 /* Test that alignof yields a result consistent with offsetof.
27853 This catches GCC bug 52023
27854 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
27856 template <class t> struct alignof_helper { char a; t b; };
27857 # define ao(type) offsetof (alignof_helper<type>, b)
27859 # define ao(type) offsetof (struct { char a; type b; }, b)
27861 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
27862 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
27863 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
27865 /* Test _Alignas only on platforms where gnulib can help. */
27867 ((defined __cplusplus && 201103 <= __cplusplus) \
27868 || (defined __APPLE__ && defined __MACH__ \
27869 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
27871 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
27872 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
27873 || 1300 <= _MSC_VER)
27874 struct alignas_test { char c; char alignas (8) alignas_8; };
27875 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
27887 if ac_fn_c_try_compile
"$LINENO"; then :
27888 gl_cv_header_working_stdalign_h
=yes
27890 gl_cv_header_working_stdalign_h
=no
27892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
27895 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
27897 if test $gl_cv_header_working_stdalign_h = yes; then
27900 STDALIGN_H
='stdalign.h'
27904 if test -n "$STDALIGN_H"; then
27905 GL_GENERATE_STDALIGN_H_TRUE
=
27906 GL_GENERATE_STDALIGN_H_FALSE
='#'
27908 GL_GENERATE_STDALIGN_H_TRUE
='#'
27909 GL_GENERATE_STDALIGN_H_FALSE
=
27917 if test "$ac_cv_header_stdbool_h" = yes; then
27920 if test -z "$GCC"; then
27921 STDBOOL_H
='stdbool.h'
27931 STDBOOL_H
='stdbool.h'
27934 if test -n "$STDBOOL_H"; then
27935 GL_GENERATE_STDBOOL_H_TRUE
=
27936 GL_GENERATE_STDBOOL_H_FALSE
='#'
27938 GL_GENERATE_STDBOOL_H_TRUE
='#'
27939 GL_GENERATE_STDBOOL_H_FALSE
=
27943 if test "$ac_cv_type__Bool" = yes; then
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27959 $as_echo_n "checking for good max_align_t... " >&6; }
27960 if ${gl_cv_type_max_align_t+:} false
; then :
27961 $as_echo_n "(cached) " >&6
27963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h. */
27965 #include <stddef.h>
27966 unsigned int s = sizeof (max_align_t);
27967 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
27968 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27969 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27971 typedef struct { char a; max_align_t b; } max_helper;
27972 typedef struct { char a; long b; } long_helper;
27973 typedef struct { char a; double b; } double_helper;
27974 typedef struct { char a; long double b; } long_double_helper;
27975 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
27976 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
27977 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
27987 if ac_fn_c_try_compile
"$LINENO"; then :
27988 gl_cv_type_max_align_t
=yes
27990 gl_cv_type_max_align_t
=no
27992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27996 $as_echo "$gl_cv_type_max_align_t" >&6; }
27997 if test $gl_cv_type_max_align_t = no
; then
28002 if test $gt_cv_c_wchar_t = no
; then
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
28008 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28009 if ${gl_cv_decl_null_works+:} false
; then :
28010 $as_echo_n "(cached) " >&6
28012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28013 /* end confdefs.h. */
28014 #include <stddef.h>
28015 int test[2 * (sizeof NULL == sizeof (void *)) -1];
28025 if ac_fn_c_try_compile
"$LINENO"; then :
28026 gl_cv_decl_null_works
=yes
28028 gl_cv_decl_null_works
=no
28030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
28033 $as_echo "$gl_cv_decl_null_works" >&6; }
28034 if test $gl_cv_decl_null_works = no
; then
28040 if test -n "$STDDEF_H"; then
28041 GL_GENERATE_STDDEF_H_TRUE
=
28042 GL_GENERATE_STDDEF_H_FALSE
='#'
28044 GL_GENERATE_STDDEF_H_TRUE
='#'
28045 GL_GENERATE_STDDEF_H_FALSE
=
28048 if test -n "$STDDEF_H"; then
28057 if test $gl_cv_have_include_next = yes; then
28058 gl_cv_next_stddef_h
='<'stddef.h
'>'
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
28061 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28062 if ${gl_cv_next_stddef_h+:} false
; then :
28063 $as_echo_n "(cached) " >&6
28068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28069 /* end confdefs.h. */
28070 #include <stddef.h>
28073 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28074 *) gl_absname_cpp
="$ac_cpp" ;;
28079 gl_dirsep_regex
='[/\\]'
28082 gl_dirsep_regex
='\/'
28085 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28086 gl_header_literal_regex
=`echo 'stddef.h' \
28087 | sed -e "$gl_make_literal_regex_sed"`
28088 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28089 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28095 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28096 sed -n "$gl_absolute_header_sed"`
28098 gl_header
=$gl_cv_absolute_stddef_h
28099 gl_cv_next_stddef_h
='"'$gl_header'"'
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
28104 $as_echo "$gl_cv_next_stddef_h" >&6; }
28106 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
28108 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28110 gl_next_as_first_directive
='<'stddef.h
'>'
28112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28113 gl_next_as_first_directive
=$gl_cv_next_stddef_h
28115 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
28125 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
28136 if test $gl_cv_have_include_next = yes; then
28137 gl_cv_next_stdio_h
='<'stdio.h
'>'
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
28140 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
28141 if ${gl_cv_next_stdio_h+:} false
; then :
28142 $as_echo_n "(cached) " >&6
28147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28148 /* end confdefs.h. */
28152 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28153 *) gl_absname_cpp
="$ac_cpp" ;;
28158 gl_dirsep_regex
='[/\\]'
28161 gl_dirsep_regex
='\/'
28164 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28165 gl_header_literal_regex
=`echo 'stdio.h' \
28166 | sed -e "$gl_make_literal_regex_sed"`
28167 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28168 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28174 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28175 sed -n "$gl_absolute_header_sed"`
28177 gl_header
=$gl_cv_absolute_stdio_h
28178 gl_cv_next_stdio_h
='"'$gl_header'"'
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
28183 $as_echo "$gl_cv_next_stdio_h" >&6; }
28185 NEXT_STDIO_H
=$gl_cv_next_stdio_h
28187 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28188 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28189 gl_next_as_first_directive
='<'stdio.h
'>'
28191 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28192 gl_next_as_first_directive
=$gl_cv_next_stdio_h
28194 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
28201 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
28202 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
28203 $as_echo_n "(cached) " >&6
28205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28206 /* end confdefs.h. */
28208 #define __STDC_FORMAT_MACROS 1
28210 #include <inttypes.h>
28211 /* For non-mingw systems, compilation will trivially succeed.
28212 For mingw, compilation will succeed for older mingw (system
28213 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
28214 #if (defined _WIN32 && ! defined __CYGWIN__) && \
28215 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
28216 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
28227 if ac_fn_c_try_compile
"$LINENO"; then :
28228 gl_cv_func_printf_attribute_flavor
=system
28230 gl_cv_func_printf_attribute_flavor
=gnu
28232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
28235 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
28236 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
28238 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
28245 cat >>confdefs.h
<<_ACEOF
28246 #define GNULIB_FSCANF 1
28253 cat >>confdefs.h
<<_ACEOF
28254 #define GNULIB_SCANF 1
28285 if test $ac_cv_have_decl_fcloseall = no
; then
28286 HAVE_DECL_FCLOSEALL
=0
28299 if test $gl_cv_have_include_next = yes; then
28300 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
28303 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
28304 if ${gl_cv_next_stdlib_h+:} false
; then :
28305 $as_echo_n "(cached) " >&6
28310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28311 /* end confdefs.h. */
28312 #include <stdlib.h>
28315 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28316 *) gl_absname_cpp
="$ac_cpp" ;;
28321 gl_dirsep_regex
='[/\\]'
28324 gl_dirsep_regex
='\/'
28327 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28328 gl_header_literal_regex
=`echo 'stdlib.h' \
28329 | sed -e "$gl_make_literal_regex_sed"`
28330 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28331 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28337 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28338 sed -n "$gl_absolute_header_sed"`
28340 gl_header
=$gl_cv_absolute_stdlib_h
28341 gl_cv_next_stdlib_h
='"'$gl_header'"'
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
28346 $as_echo "$gl_cv_next_stdlib_h" >&6; }
28348 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
28350 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28352 gl_next_as_first_directive
='<'stdlib.h
'>'
28354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28355 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
28357 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
28370 if test $ac_cv_have_decl_ecvt = no
; then
28374 if test $ac_cv_have_decl_fcvt = no
; then
28378 if test $ac_cv_have_decl_gcvt = no
; then
28386 for ac_func
in strchrnul
28388 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
28389 if test "x$ac_cv_func_strchrnul" = xyes
; then :
28390 cat >>confdefs.h
<<_ACEOF
28391 #define HAVE_STRCHRNUL 1
28397 if test $ac_cv_func_strchrnul = no
; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
28401 $as_echo_n "checking whether strchrnul works... " >&6; }
28402 if ${gl_cv_func_strchrnul_works+:} false
; then :
28403 $as_echo_n "(cached) " >&6
28405 if test "$cross_compiling" = yes; then :
28406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28407 /* end confdefs.h. */
28409 #if defined __CYGWIN__
28410 #include <cygwin/version.h>
28411 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
28419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28420 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28421 gl_cv_func_strchrnul_works
="guessing yes"
28423 gl_cv_func_strchrnul_works
="guessing no"
28429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28430 /* end confdefs.h. */
28432 #include <string.h> /* for strchrnul */
28437 const char *buf = "a";
28438 return strchrnul (buf, 'b') != buf + 1;
28444 if ac_fn_c_try_run
"$LINENO"; then :
28445 gl_cv_func_strchrnul_works
=yes
28447 gl_cv_func_strchrnul_works
=no
28449 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28450 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
28456 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
28457 case "$gl_cv_func_strchrnul_works" in
28459 *) REPLACE_STRCHRNUL
=1 ;;
28463 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
28472 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
28487 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
28494 if test $gl_cv_func_malloc_posix != yes; then
28498 if test $ac_cv_have_decl_strdup = no
; then
28502 if test $REPLACE_STRDUP = 1; then
28511 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
28526 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
28537 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
28539 $as_echo_n "checking for working strerror function... " >&6; }
28540 if ${gl_cv_func_working_strerror+:} false
; then :
28541 $as_echo_n "(cached) " >&6
28543 if test "$cross_compiling" = yes; then :
28545 # Guess yes on glibc systems.
28546 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
28547 # Guess yes on musl systems.
28548 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
28549 # If we don't know, obey --enable-cross-guesses.
28550 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
28554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28555 /* end confdefs.h. */
28556 #include <string.h>
28561 if (!*strerror (-2)) return 1;
28566 if ac_fn_c_try_run
"$LINENO"; then :
28567 gl_cv_func_working_strerror
=yes
28569 gl_cv_func_working_strerror
=no
28571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
28578 $as_echo "$gl_cv_func_working_strerror" >&6; }
28579 case "$gl_cv_func_working_strerror" in
28586 case "$gl_cv_func_strerror_r_works" in
28587 *no
) REPLACE_STRERROR
=1 ;;
28594 if test $REPLACE_STRERROR = 1; then
28603 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
28608 cat >>confdefs.h
<<_ACEOF
28609 #define GNULIB_STRERROR 1
28624 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28630 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
28639 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
28645 if test $ac_cv_header_sys_socket_h != yes; then
28646 for ac_header
in winsock2.h
28648 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28649 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
28650 cat >>confdefs.h
<<_ACEOF
28651 #define HAVE_WINSOCK2_H 1
28659 if test "$ac_cv_header_winsock2_h" = yes; then
28661 UNISTD_H_HAVE_WINSOCK2_H
=1
28662 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
28676 if test $ac_cv_have_decl_strerror_r = no
; then
28677 HAVE_DECL_STRERROR_R
=0
28680 if test $ac_cv_func_strerror_r = yes; then
28681 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28682 if test $gl_cv_func_strerror_r_posix_signature = yes; then
28683 case "$gl_cv_func_strerror_r_works" in
28684 *no
) REPLACE_STRERROR_R
=1 ;;
28687 REPLACE_STRERROR_R
=1
28690 REPLACE_STRERROR_R
=1
28694 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
28703 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
28716 GNULIB_STRERROR_R
=1
28722 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
28728 cat >>confdefs.h
<<_ACEOF
28729 #define GNULIB_STRERROR_R_POSIX 1
28742 if test $ac_cv_have_decl_strnlen = no
; then
28743 HAVE_DECL_STRNLEN
=0
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28747 $as_echo_n "checking for working strnlen... " >&6; }
28748 if ${ac_cv_func_strnlen_working+:} false
; then :
28749 $as_echo_n "(cached) " >&6
28751 if test "$cross_compiling" = yes; then :
28752 # Guess no on AIX systems, yes otherwise.
28754 aix
*) ac_cv_func_strnlen_working
=no
;;
28755 *) ac_cv_func_strnlen_working
=yes;;
28758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h. */
28760 $ac_includes_default
28766 #define S_LEN (sizeof S - 1)
28768 /* At least one implementation is buggy: that of AIX 4.3 would
28769 give strnlen (S, 1) == 3. */
28772 for (i = 0; i < S_LEN + 1; ++i)
28774 int expected = i <= S_LEN ? i : S_LEN;
28775 if (strnlen (S, i) != expected)
28784 if ac_fn_c_try_run
"$LINENO"; then :
28785 ac_cv_func_strnlen_working
=yes
28787 ac_cv_func_strnlen_working
=no
28789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28795 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28796 test $ac_cv_func_strnlen_working = no
&& :
28799 if test $ac_cv_func_strnlen_working = no
; then
28804 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
28813 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
28828 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28834 if test $REPLACE_STRSTR = 0; then
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
28836 $as_echo_n "checking whether strstr works in linear time... " >&6; }
28837 if ${gl_cv_func_strstr_linear+:} false
; then :
28838 $as_echo_n "(cached) " >&6
28840 if test "$cross_compiling" = yes; then :
28841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28842 /* end confdefs.h. */
28844 #include <features.h>
28845 #ifdef __GNU_LIBRARY__
28846 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28847 && !(defined __i386__ || defined __x86_64__) \
28848 && !defined __UCLIBC__
28853 #include <cygwin/version.h>
28854 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28861 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28862 gl_cv_func_strstr_linear
="guessing yes"
28864 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
28870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28871 /* end confdefs.h. */
28874 /* z/OS does not deliver signals while strstr() is running (thanks to
28875 restrictions on its LE runtime), which prevents us from limiting the
28876 running time of this test. */
28877 # error "This test does not work properly on z/OS"
28879 #include <signal.h> /* for signal */
28880 #include <string.h> /* for strstr */
28881 #include <stdlib.h> /* for malloc */
28882 #include <unistd.h> /* for alarm */
28883 static void quit (int sig) { _exit (sig + 128); }
28890 size_t m = 1000000;
28891 char *haystack = (char *) malloc (2 * m + 2);
28892 char *needle = (char *) malloc (m + 2);
28893 /* Failure to compile this test due to missing alarm is okay,
28894 since all such platforms (mingw) also have quadratic strstr. */
28895 signal (SIGALRM, quit);
28897 /* Check for quadratic performance. */
28898 if (haystack && needle)
28900 memset (haystack, 'A', 2 * m);
28901 haystack[2 * m] = 'B';
28902 haystack[2 * m + 1] = 0;
28903 memset (needle, 'A', m);
28906 if (!strstr (haystack, needle))
28909 /* Free allocated memory, in case some sanitizer is watching. */
28918 if ac_fn_c_try_run
"$LINENO"; then :
28919 gl_cv_func_strstr_linear
=yes
28921 gl_cv_func_strstr_linear
=no
28923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
28930 $as_echo "$gl_cv_func_strstr_linear" >&6; }
28931 case "$gl_cv_func_strstr_linear" in
28939 if test $REPLACE_STRSTR = 1; then
28948 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28954 if test $REPLACE_MEMCHR = 1; then
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
28958 $as_echo_n "checking whether strstr works... " >&6; }
28959 if ${gl_cv_func_strstr_works_always+:} false
; then :
28960 $as_echo_n "(cached) " >&6
28962 if test "$cross_compiling" = yes; then :
28963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28964 /* end confdefs.h. */
28966 #ifdef __GNU_LIBRARY__
28967 #include <features.h>
28968 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28969 || defined __UCLIBC__
28972 #elif defined __CYGWIN__
28973 #include <cygwin/version.h>
28974 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28983 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28984 gl_cv_func_strstr_works_always
="guessing yes"
28986 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
28992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28993 /* end confdefs.h. */
28995 #include <string.h> /* for strstr */
28996 #ifdef __GNU_LIBRARY__
28997 #include <features.h>
28998 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
29002 #define P "_EF_BF_BD"
29003 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
29004 #define NEEDLE P P P P P
29009 return !!strstr (HAYSTACK, NEEDLE);
29015 if ac_fn_c_try_run
"$LINENO"; then :
29016 gl_cv_func_strstr_works_always
=yes
29018 gl_cv_func_strstr_works_always
=no
29020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29021 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
29027 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
29028 case "$gl_cv_func_strstr_works_always" in
29036 if test $REPLACE_STRSTR = 1; then
29045 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
29059 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
29067 for ac_func
in strtok_r
29069 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
29070 if test "x$ac_cv_func_strtok_r" = xyes
; then :
29071 cat >>confdefs.h
<<_ACEOF
29072 #define HAVE_STRTOK_R 1
29078 if test $ac_cv_func_strtok_r = yes; then
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
29081 $as_echo_n "checking whether strtok_r works... " >&6; }
29082 if ${gl_cv_func_strtok_r_works+:} false
; then :
29083 $as_echo_n "(cached) " >&6
29085 if test "$cross_compiling" = yes; then :
29087 # Guess no on glibc systems.
29088 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
29089 # Guess yes on native Windows.
29090 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
29091 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
29095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29096 /* end confdefs.h. */
29098 #ifndef __OPTIMIZE__
29099 # define __OPTIMIZE__ 1
29101 #undef __OPTIMIZE_SIZE__
29102 #undef __NO_INLINE__
29103 #include <stdlib.h>
29104 #include <string.h>
29109 static const char dummy[] = "\177\01a";
29110 char delimiters[] = "xxxxxxxx";
29111 char *save_ptr = (char *) dummy;
29112 strtok_r (delimiters, "x", &save_ptr);
29113 strtok_r (NULL, "x", &save_ptr);
29121 if ac_fn_c_try_run
"$LINENO"; then :
29122 gl_cv_func_strtok_r_works
=yes
29124 gl_cv_func_strtok_r_works
=no
29126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
29133 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
29134 case "$gl_cv_func_strtok_r_works" in
29136 UNDEFINE_STRTOK_R
=1
29143 if test $ac_cv_have_decl_strtok_r = no
; then
29144 HAVE_DECL_STRTOK_R
=0
29147 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
29156 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
29173 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
29188 if test $gl_cv_have_include_next = yes; then
29189 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
29192 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
29193 if ${gl_cv_next_sys_random_h+:} false
; then :
29194 $as_echo_n "(cached) " >&6
29197 if test $ac_cv_header_sys_random_h = yes; then
29202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29203 /* end confdefs.h. */
29204 #include <sys/random.h>
29207 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29208 *) gl_absname_cpp
="$ac_cpp" ;;
29213 gl_dirsep_regex
='[/\\]'
29216 gl_dirsep_regex
='\/'
29219 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29220 gl_header_literal_regex
=`echo 'sys/random.h' \
29221 | sed -e "$gl_make_literal_regex_sed"`
29222 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29223 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29229 gl_cv_absolute_sys_random_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29230 sed -n "$gl_absolute_header_sed"`
29232 gl_header
=$gl_cv_absolute_sys_random_h
29233 gl_cv_next_sys_random_h
='"'$gl_header'"'
29235 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
29241 $as_echo "$gl_cv_next_sys_random_h" >&6; }
29243 NEXT_SYS_RANDOM_H
=$gl_cv_next_sys_random_h
29245 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29247 gl_next_as_first_directive
='<'sys
/random.h
'>'
29249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29250 gl_next_as_first_directive
=$gl_cv_next_sys_random_h
29252 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
=$gl_next_as_first_directive
29257 if test $ac_cv_header_sys_random_h = yes; then
29258 HAVE_SYS_RANDOM_H
=1
29260 HAVE_SYS_RANDOM_H
=0
29265 if test $ac_cv_header_sys_random_h = yes; then
29266 UNISTD_H_HAVE_SYS_RANDOM_H
=1
29290 if test $gl_cv_have_include_next = yes; then
29291 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
29294 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
29295 if ${gl_cv_next_sys_stat_h+:} false
; then :
29296 $as_echo_n "(cached) " >&6
29299 if test $ac_cv_header_sys_stat_h = yes; then
29304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29305 /* end confdefs.h. */
29306 #include <sys/stat.h>
29309 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29310 *) gl_absname_cpp
="$ac_cpp" ;;
29315 gl_dirsep_regex
='[/\\]'
29318 gl_dirsep_regex
='\/'
29321 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29322 gl_header_literal_regex
=`echo 'sys/stat.h' \
29323 | sed -e "$gl_make_literal_regex_sed"`
29324 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29325 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29331 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29332 sed -n "$gl_absolute_header_sed"`
29334 gl_header
=$gl_cv_absolute_sys_stat_h
29335 gl_cv_next_sys_stat_h
='"'$gl_header'"'
29337 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
29343 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
29345 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
29347 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29349 gl_next_as_first_directive
='<'sys
/stat.h
'>'
29351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29352 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
29354 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
29363 WINDOWS_STAT_TIMESPEC
=0
29372 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
29373 #include <sys/stat.h>
29375 if test "x$ac_cv_type_nlink_t" = xyes
; then :
29379 $as_echo "#define nlink_t int" >>confdefs.h
29408 if test $gl_cv_have_include_next = yes; then
29409 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
29412 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
29413 if ${gl_cv_next_sys_uio_h+:} false
; then :
29414 $as_echo_n "(cached) " >&6
29417 if test $ac_cv_header_sys_uio_h = yes; then
29422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29423 /* end confdefs.h. */
29424 #include <sys/uio.h>
29427 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29428 *) gl_absname_cpp
="$ac_cpp" ;;
29433 gl_dirsep_regex
='[/\\]'
29436 gl_dirsep_regex
='\/'
29439 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29440 gl_header_literal_regex
=`echo 'sys/uio.h' \
29441 | sed -e "$gl_make_literal_regex_sed"`
29442 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29443 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29449 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29450 sed -n "$gl_absolute_header_sed"`
29452 gl_header
=$gl_cv_absolute_sys_uio_h
29453 gl_cv_next_sys_uio_h
='"'$gl_header'"'
29455 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
29461 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
29463 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
29465 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29467 gl_next_as_first_directive
='<'sys
/uio.h
'>'
29469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29470 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
29472 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
29477 if test $ac_cv_header_sys_uio_h = yes; then
29492 cat >>confdefs.h
<<_ACEOF
29493 #define GNULIB_TEMPNAME 1
29507 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,
29508 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29509 been included before. */
29510 #if defined __MINGW32__
29511 # include <unistd.h>
29516 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
29522 cat >>confdefs.h
<<_ACEOF
29523 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
29526 if test $ac_cv_have_decl_localtime_r = no
; then
29527 HAVE_DECL_LOCALTIME_R
=0
29531 if test $ac_cv_func_localtime_r = yes; then
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
29534 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
29535 if ${gl_cv_time_r_posix+:} false
; then :
29536 $as_echo_n "(cached) " >&6
29538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29539 /* end confdefs.h. */
29540 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29541 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29542 been included before. */
29543 #if defined __MINGW32__
29544 # include <unistd.h>
29551 /* We don't need to append 'restrict's to the argument types,
29552 even though the POSIX signature has the 'restrict's,
29553 since C99 says they can't affect type compatibility. */
29554 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
29556 /* Check the return type is a pointer.
29557 On HP-UX 10 it is 'int'. */
29558 *localtime_r (0, 0);
29564 if ac_fn_c_try_compile
"$LINENO"; then :
29565 gl_cv_time_r_posix
=yes
29567 gl_cv_time_r_posix
=no
29569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
29573 $as_echo "$gl_cv_time_r_posix" >&6; }
29574 if test $gl_cv_time_r_posix = yes; then
29575 REPLACE_LOCALTIME_R
=0
29577 REPLACE_LOCALTIME_R
=1
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
29582 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
29583 if ${gl_cv_func_localtime_r_inline+:} false
; then :
29584 $as_echo_n "(cached) " >&6
29586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h. */
29588 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29589 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29590 been included before. */
29591 #if defined __MINGW32__
29592 # include <unistd.h>
29601 localtime_r (&a, &r);
29608 if ac_fn_c_try_link
"$LINENO"; then :
29609 gl_cv_func_localtime_r_inline
=yes
29611 gl_cv_func_localtime_r_inline
=no
29613 rm -f core conftest.err conftest.
$ac_objext \
29614 conftest
$ac_exeext conftest.
$ac_ext
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
29618 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
29619 if test $gl_cv_func_localtime_r_inline = yes; then
29620 REPLACE_LOCALTIME_R
=1
29624 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
29633 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
29650 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
29666 if test $gl_cv_have_include_next = yes; then
29667 gl_cv_next_unistd_h
='<'unistd.h
'>'
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29670 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
29671 if ${gl_cv_next_unistd_h+:} false
; then :
29672 $as_echo_n "(cached) " >&6
29675 if test $ac_cv_header_unistd_h = yes; then
29680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29681 /* end confdefs.h. */
29682 #include <unistd.h>
29685 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29686 *) gl_absname_cpp
="$ac_cpp" ;;
29691 gl_dirsep_regex
='[/\\]'
29694 gl_dirsep_regex
='\/'
29697 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29698 gl_header_literal_regex
=`echo 'unistd.h' \
29699 | sed -e "$gl_make_literal_regex_sed"`
29700 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29707 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29708 sed -n "$gl_absolute_header_sed"`
29710 gl_header
=$gl_cv_absolute_unistd_h
29711 gl_cv_next_unistd_h
='"'$gl_header'"'
29713 gl_cv_next_unistd_h
='<'unistd.h
'>'
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29719 $as_echo "$gl_cv_next_unistd_h" >&6; }
29721 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
29723 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29725 gl_next_as_first_directive
='<'unistd.h
'>'
29727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29728 gl_next_as_first_directive
=$gl_cv_next_unistd_h
29730 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
29735 if test $ac_cv_header_unistd_h = yes; then
29753 if test $ac_cv_have_decl_execvpe = no
; then
29754 HAVE_DECL_EXECVPE
=0
29763 if test $ac_cv_have_decl_unsetenv = no
; then
29764 HAVE_DECL_UNSETENV
=0
29766 for ac_func
in unsetenv
29768 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
29769 if test "x$ac_cv_func_unsetenv" = xyes
; then :
29770 cat >>confdefs.h
<<_ACEOF
29771 #define HAVE_UNSETENV 1
29777 if test $ac_cv_func_unsetenv = no
; then
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
29782 $as_echo_n "checking for unsetenv() return type... " >&6; }
29783 if ${gt_cv_func_unsetenv_ret+:} false
; then :
29784 $as_echo_n "(cached) " >&6
29786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29787 /* end confdefs.h. */
29790 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
29791 #include <stdlib.h>
29796 int unsetenv (const char *name);
29806 if ac_fn_c_try_compile
"$LINENO"; then :
29807 gt_cv_func_unsetenv_ret
='int'
29809 gt_cv_func_unsetenv_ret
='void'
29811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
29814 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
29815 if test $gt_cv_func_unsetenv_ret = 'void'; then
29817 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
29823 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
29824 if ${gl_cv_func_unsetenv_works+:} false
; then :
29825 $as_echo_n "(cached) " >&6
29827 if test "$cross_compiling" = yes; then :
29829 # Guess yes on glibc systems.
29830 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
29831 # If we don't know, obey --enable-cross-guesses.
29832 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
29836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29837 /* end confdefs.h. */
29839 #include <stdlib.h>
29841 extern char **environ;
29850 char entry1[] = "a=1";
29851 char entry2[] = "b=2";
29852 char *env[] = { entry1, entry2, NULL };
29853 if (putenv ((char *) "a=1")) return 1;
29854 if (putenv (entry2)) return 2;
29857 if (getenv ("a")) return 3;
29858 if (!unsetenv ("") || errno != EINVAL) return 4;
29861 if (!getenv ("a")) return 5;
29864 if (getenv ("a")) return 6;
29870 if ac_fn_c_try_run
"$LINENO"; then :
29871 gl_cv_func_unsetenv_works
=yes
29873 gl_cv_func_unsetenv_works
=no
29875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
29882 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
29883 case "$gl_cv_func_unsetenv_works" in
29891 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
29900 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
29918 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
29934 if test $gl_cv_have_include_next = yes; then
29935 gl_cv_next_wchar_h
='<'wchar.h
'>'
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29938 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
29939 if ${gl_cv_next_wchar_h+:} false
; then :
29940 $as_echo_n "(cached) " >&6
29943 if test $ac_cv_header_wchar_h = yes; then
29948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29949 /* end confdefs.h. */
29953 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29954 *) gl_absname_cpp
="$ac_cpp" ;;
29959 gl_dirsep_regex
='[/\\]'
29962 gl_dirsep_regex
='\/'
29965 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29966 gl_header_literal_regex
=`echo 'wchar.h' \
29967 | sed -e "$gl_make_literal_regex_sed"`
29968 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29969 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29975 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29976 sed -n "$gl_absolute_header_sed"`
29978 gl_header
=$gl_cv_absolute_wchar_h
29979 gl_cv_next_wchar_h
='"'$gl_header'"'
29981 gl_cv_next_wchar_h
='<'wchar.h
'>'
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29987 $as_echo "$gl_cv_next_wchar_h" >&6; }
29989 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
29991 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29993 gl_next_as_first_directive
='<'wchar.h
'>'
29995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29996 gl_next_as_first_directive
=$gl_cv_next_wchar_h
29998 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
30003 if test $ac_cv_header_wchar_h = yes; then
30013 if test $gt_cv_c_wint_t = yes; then
30028 ac_fn_c_check_decl
"$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
30032 if test "x$ac_cv_have_decl_wcsdup" = xyes
; then :
30038 cat >>confdefs.h
<<_ACEOF
30039 #define HAVE_DECL_WCSDUP $ac_have_decl
30042 if test $ac_cv_have_decl_wcsdup = no
; then
30051 if test $ac_cv_func_iswcntrl = yes; then
30059 if test $gt_cv_c_wint_t = yes; then
30077 if test $gl_cv_have_include_next = yes; then
30078 gl_cv_next_wctype_h
='<'wctype.h
'>'
30080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
30081 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
30082 if ${gl_cv_next_wctype_h+:} false
; then :
30083 $as_echo_n "(cached) " >&6
30086 if test $ac_cv_header_wctype_h = yes; then
30091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30092 /* end confdefs.h. */
30093 #include <wctype.h>
30096 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30097 *) gl_absname_cpp
="$ac_cpp" ;;
30102 gl_dirsep_regex
='[/\\]'
30105 gl_dirsep_regex
='\/'
30108 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30109 gl_header_literal_regex
=`echo 'wctype.h' \
30110 | sed -e "$gl_make_literal_regex_sed"`
30111 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30118 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30119 sed -n "$gl_absolute_header_sed"`
30121 gl_header
=$gl_cv_absolute_wctype_h
30122 gl_cv_next_wctype_h
='"'$gl_header'"'
30124 gl_cv_next_wctype_h
='<'wctype.h
'>'
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
30130 $as_echo "$gl_cv_next_wctype_h" >&6; }
30132 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
30134 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30136 gl_next_as_first_directive
='<'wctype.h
'>'
30138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30139 gl_next_as_first_directive
=$gl_cv_next_wctype_h
30141 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
30146 if test $ac_cv_header_wctype_h = yes; then
30147 if test $ac_cv_func_iswcntrl = yes; then
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
30149 $as_echo_n "checking whether iswcntrl works... " >&6; }
30150 if ${gl_cv_func_iswcntrl_works+:} false
; then :
30151 $as_echo_n "(cached) " >&6
30154 if test "$cross_compiling" = yes; then :
30155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30156 /* end confdefs.h. */
30157 #include <stdlib.h>
30158 #if __GNU_LIBRARY__ == 1
30159 Linux libc5 i18n is broken.
30169 if ac_fn_c_try_compile
"$LINENO"; then :
30170 gl_cv_func_iswcntrl_works
="guessing yes"
30172 gl_cv_func_iswcntrl_works
="guessing no"
30174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30178 /* end confdefs.h. */
30181 #include <wctype.h>
30182 int main () { return iswprint ('x') == 0; }
30185 if ac_fn_c_try_run
"$LINENO"; then :
30186 gl_cv_func_iswcntrl_works
=yes
30188 gl_cv_func_iswcntrl_works
=no
30190 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30191 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
30197 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
30205 if test $GNULIB_OVERRIDES_WINT_T = 1; then
30208 case "$gl_cv_func_iswcntrl_works" in
30209 *yes) REPLACE_ISWCNTRL
=0 ;;
30210 *) REPLACE_ISWCNTRL
=1 ;;
30215 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
30219 if test $REPLACE_ISWCNTRL = 1; then
30222 for ac_func
in towlower
30224 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
30225 if test "x$ac_cv_func_towlower" = xyes
; then :
30226 cat >>confdefs.h
<<_ACEOF
30227 #define HAVE_TOWLOWER 1
30233 if test $ac_cv_func_towlower = yes; then
30236 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
30238 # include <wctype.h>
30242 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
30248 cat >>confdefs.h
<<_ACEOF
30249 #define HAVE_DECL_TOWLOWER $ac_have_decl
30252 if test $ac_cv_have_decl_towlower = yes; then
30261 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
30266 $as_echo_n "checking for wctype_t... " >&6; }
30267 if ${gl_cv_type_wctype_t+:} false
; then :
30268 $as_echo_n "(cached) " >&6
30270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h. */
30274 # include <wctype.h>
30286 if ac_fn_c_try_compile
"$LINENO"; then :
30287 gl_cv_type_wctype_t
=yes
30289 gl_cv_type_wctype_t
=no
30291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
30295 $as_echo "$gl_cv_type_wctype_t" >&6; }
30296 if test $gl_cv_type_wctype_t = no
; then
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
30301 $as_echo_n "checking for wctrans_t... " >&6; }
30302 if ${gl_cv_type_wctrans_t+:} false
; then :
30303 $as_echo_n "(cached) " >&6
30305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30306 /* end confdefs.h. */
30308 #include <wctype.h>
30319 if ac_fn_c_try_compile
"$LINENO"; then :
30320 gl_cv_type_wctrans_t
=yes
30322 gl_cv_type_wctrans_t
=no
30324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
30328 $as_echo "$gl_cv_type_wctrans_t" >&6; }
30329 if test $gl_cv_type_wctrans_t = no
; then
30348 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
30363 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
30378 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
30393 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
30400 $as_echo_n "checking for wmemchr... " >&6; }
30401 if ${gl_cv_func_wmemchr+:} false
; then :
30402 $as_echo_n "(cached) " >&6
30404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30405 /* end confdefs.h. */
30411 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
30417 if ac_fn_c_try_link
"$LINENO"; then :
30418 gl_cv_func_wmemchr
=yes
30420 gl_cv_func_wmemchr
=no
30422 rm -f core conftest.err conftest.
$ac_objext \
30423 conftest
$ac_exeext conftest.
$ac_ext
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
30427 $as_echo "$gl_cv_func_wmemchr" >&6; }
30428 if test $gl_cv_func_wmemchr = no
; then
30432 if test $HAVE_WMEMCHR = 0; then
30441 gl_LIBOBJS
="$gl_LIBOBJS wmemchr.$ac_objext"
30455 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
30467 if test $ac_cv_func_wmempcpy = no
; then
30471 if test $HAVE_WMEMPCPY = 0; then
30480 gl_LIBOBJS
="$gl_LIBOBJS wmempcpy.$ac_objext"
30494 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
30498 # End of code from modules
30520 gl_source_base
='tests'
30521 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
30523 gl_module_indicator_condition
=$gltests_WITNESS
30533 LIBGNU_LIBDEPS
="$gl_libdeps"
30535 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
30539 am__api_version
='1.15'
30541 # Find a good install program. We prefer a C program (faster),
30542 # so one script is as good as another. But avoid the broken or
30543 # incompatible versions:
30544 # SysV /etc/install, /usr/sbin/install
30545 # SunOS /usr/etc/install
30546 # IRIX /sbin/install
30548 # AmigaOS /C/install, which installs bootblocks on floppy discs
30549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
30550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
30551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
30552 # OS/2's system install, which has a completely different semantic
30553 # ./install, which can be erroneously created by make from ./install.sh.
30554 # Reject install programs that cannot install multiple files.
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
30556 $as_echo_n "checking for a BSD-compatible install... " >&6; }
30557 if test -z "$INSTALL"; then
30558 if ${ac_cv_path_install+:} false
; then :
30559 $as_echo_n "(cached) " >&6
30561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30562 for as_dir
in $PATH
30565 test -z "$as_dir" && as_dir
=.
30566 # Account for people who put trailing slashes in PATH elements.
30567 case $as_dir/ in #((
30568 .
/ | .
// |
/[cC
]/* | \
30569 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
30570 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
30573 # OSF1 and SCO ODT 3.0 have their own names for install.
30574 # Don't use installbsd from OSF since it installs stuff as root
30576 for ac_prog
in ginstall scoinst
install; do
30577 for ac_exec_ext
in '' $ac_executable_extensions; do
30578 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
30579 if test $ac_prog = install &&
30580 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30581 # AIX install. It has an incompatible calling convention.
30583 elif test $ac_prog = install &&
30584 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30585 # program-specific install script used by HP pwplus--don't use.
30588 rm -rf conftest.one conftest.two conftest.dir
30589 echo one
> conftest.one
30590 echo two
> conftest.two
30592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
30593 test -s conftest.one
&& test -s conftest.two
&&
30594 test -s conftest.dir
/conftest.one
&&
30595 test -s conftest.dir
/conftest.two
30597 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
30610 rm -rf conftest.one conftest.two conftest.dir
30613 if test "${ac_cv_path_install+set}" = set; then
30614 INSTALL
=$ac_cv_path_install
30616 # As a last resort, use the slow shell script. Don't cache a
30617 # value for INSTALL within a source directory, because that will
30618 # break other packages using the cache if that directory is
30619 # removed, or if the value is a relative name.
30620 INSTALL
=$ac_install_sh
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
30624 $as_echo "$INSTALL" >&6; }
30626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
30627 # It thinks the first close brace ends the variable substitution.
30628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
30630 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
30632 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
30635 $as_echo_n "checking whether build environment is sane... " >&6; }
30636 # Reject unsafe characters in $srcdir or the absolute working directory
30637 # name. Accept space and tab only in the latter.
30641 *[\\\"\
#\$\&\'\`$am_lf]*)
30642 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
30645 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
30646 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
30649 # Do 'set' in a subshell so we don't clobber the current shell's
30650 # arguments. Must try -L first in case configure is actually a
30651 # symlink; some systems play weird games with the mod time of symlinks
30652 # (eg FreeBSD returns the mod time of the symlink's containing
30656 for am_try
in 1 2; do
30657 echo "timestamp, slept: $am_has_slept" > conftest.
file
30658 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
30659 if test "$*" = "X"; then
30661 set X
`ls -t "$srcdir/configure" conftest.file`
30663 if test "$*" != "X $srcdir/configure conftest.file" \
30664 && test "$*" != "X conftest.file $srcdir/configure"; then
30666 # If neither matched, then we have a broken ls. This can happen
30667 # if, for instance, CONFIG_SHELL is bash and it inherits a
30668 # broken ls alias from the environment. This has actually
30669 # happened. Such a system could not be considered "sane".
30670 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
30671 alias in your environment" "$LINENO" 5
30673 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
30680 test "$2" = conftest.
file
30686 as_fn_error $?
"newly created file is older than distributed files!
30687 Check your system clock" "$LINENO" 5
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30690 $as_echo "yes" >&6; }
30691 # If we didn't sleep, we still need to ensure time stamps of config.status and
30692 # generated files are strictly newer.
30694 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
30699 rm -f conftest.
file
30701 test "$program_prefix" != NONE
&&
30702 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
30703 # Use a double $ so make ignores it.
30704 test "$program_suffix" != NONE
&&
30705 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
30706 # Double any \ or $.
30707 # By default was `s,x,x', remove it if useless.
30708 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
30709 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
30711 # Expand $ac_aux_dir to an absolute path.
30712 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
30714 if test x
"${MISSING+set}" != xset
; then
30715 case $am_aux_dir in
30717 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
30719 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
30722 # Use eval to expand $SHELL
30723 if eval "$MISSING --is-lightweight"; then
30724 am_missing_run
="$MISSING "
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
30728 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
30731 if test x
"${install_sh+set}" != xset
; then
30732 case $am_aux_dir in
30734 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
30736 install_sh
="\${SHELL} $am_aux_dir/install-sh"
30740 # Installed binaries are usually stripped using 'strip' when the user
30741 # run "make install-strip". However 'strip' might not be the right
30742 # tool to use in cross-compilation environments, therefore Automake
30743 # will honor the 'STRIP' environment variable to overrule this program.
30744 if test "$cross_compiling" != no
; then
30745 if test -n "$ac_tool_prefix"; then
30746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30747 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30749 $as_echo_n "checking for $ac_word... " >&6; }
30750 if ${ac_cv_prog_STRIP+:} false
; then :
30751 $as_echo_n "(cached) " >&6
30753 if test -n "$STRIP"; then
30754 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
30756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30757 for as_dir
in $PATH
30760 test -z "$as_dir" && as_dir
=.
30761 for ac_exec_ext
in '' $ac_executable_extensions; do
30762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30763 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
30764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30773 STRIP
=$ac_cv_prog_STRIP
30774 if test -n "$STRIP"; then
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30776 $as_echo "$STRIP" >&6; }
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30779 $as_echo "no" >&6; }
30784 if test -z "$ac_cv_prog_STRIP"; then
30786 # Extract the first word of "strip", so it can be a program name with args.
30787 set dummy strip
; ac_word
=$2
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30789 $as_echo_n "checking for $ac_word... " >&6; }
30790 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
30791 $as_echo_n "(cached) " >&6
30793 if test -n "$ac_ct_STRIP"; then
30794 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
30796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30797 for as_dir
in $PATH
30800 test -z "$as_dir" && as_dir
=.
30801 for ac_exec_ext
in '' $ac_executable_extensions; do
30802 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30803 ac_cv_prog_ac_ct_STRIP
="strip"
30804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30813 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
30814 if test -n "$ac_ct_STRIP"; then
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30816 $as_echo "$ac_ct_STRIP" >&6; }
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819 $as_echo "no" >&6; }
30822 if test "x$ac_ct_STRIP" = x
; then
30825 case $cross_compiling:$ac_tool_warned in
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30829 ac_tool_warned
=yes ;;
30834 STRIP
="$ac_cv_prog_STRIP"
30838 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
30840 for ac_prog
in gawk mawk nawk
awk
30842 # Extract the first word of "$ac_prog", so it can be a program name with args.
30843 set dummy
$ac_prog; ac_word
=$2
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30845 $as_echo_n "checking for $ac_word... " >&6; }
30846 if ${ac_cv_prog_AWK+:} false
; then :
30847 $as_echo_n "(cached) " >&6
30849 if test -n "$AWK"; then
30850 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
30852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30853 for as_dir
in $PATH
30856 test -z "$as_dir" && as_dir
=.
30857 for ac_exec_ext
in '' $ac_executable_extensions; do
30858 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30859 ac_cv_prog_AWK
="$ac_prog"
30860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30869 AWK
=$ac_cv_prog_AWK
30870 if test -n "$AWK"; then
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
30872 $as_echo "$AWK" >&6; }
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30875 $as_echo "no" >&6; }
30879 test -n "$AWK" && break
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
30883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
30885 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
30886 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
30887 $as_echo_n "(cached) " >&6
30889 cat >conftest.
make <<\_ACEOF
30892 @
echo '@@@%%%=$(MAKE)=@@@%%%'
30894 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
30896 *@@@
%%%=?
*=@@@
%%%*)
30897 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
30899 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
30901 rm -f conftest.
make
30903 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909 $as_echo "no" >&6; }
30910 SET_MAKE
="MAKE=${MAKE-make}"
30913 rm -rf .tst
2>/dev
/null
30914 mkdir .tst
2>/dev
/null
30915 if test -d .tst
; then
30920 rmdir .tst
2>/dev
/null
30922 DEPDIR
="${am__leading_dot}deps"
30924 ac_config_commands
="$ac_config_commands depfiles"
30927 am_make
=${MAKE-make}
30928 cat > confinc
<< 'END'
30930 @
echo this is the am__doit target
30933 # If we don't find an include directive, just comment out the code.
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30935 $as_echo_n "checking for style of include used by $am_make... " >&6; }
30939 # First try GNU make style include.
30940 echo "include confinc" > confmf
30941 # Ignore all kinds of additional output from 'make'.
30942 case `$am_make -s -f confmf 2> /dev/null` in #(
30943 *the\ am__doit\ target
*)
30944 am__include
=include
30949 # Now try BSD make style include.
30950 if test "$am__include" = "#"; then
30951 echo '.include "confinc"' > confmf
30952 case `$am_make -s -f confmf 2> /dev/null` in #(
30953 *the\ am__doit\ target
*)
30954 am__include
=.include
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30963 $as_echo "$_am_result" >&6; }
30964 rm -f confinc confmf
30966 # Check whether --enable-dependency-tracking was given.
30967 if test "${enable_dependency_tracking+set}" = set; then :
30968 enableval
=$enable_dependency_tracking;
30971 if test "x$enable_dependency_tracking" != xno
; then
30972 am_depcomp
="$ac_aux_dir/depcomp"
30976 if test "x$enable_dependency_tracking" != xno; then
30985 # Check whether --enable-silent-rules was given.
30986 if test "${enable_silent_rules+set}" = set; then :
30987 enableval
=$enable_silent_rules;
30990 case $enable_silent_rules in # (((
30991 yes) AM_DEFAULT_VERBOSITY
=0;;
30992 no
) AM_DEFAULT_VERBOSITY
=1;;
30993 *) AM_DEFAULT_VERBOSITY
=1;;
30995 am_make
=${MAKE-make}
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30998 if ${am_cv_make_support_nested_variables+:} false
; then :
30999 $as_echo_n "(cached) " >&6
31001 if $as_echo 'TRUE=$(BAR$(V))
31007 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
31008 am_cv_make_support_nested_variables
=yes
31010 am_cv_make_support_nested_variables
=no
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
31014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
31015 if test $am_cv_make_support_nested_variables = yes; then
31017 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
31019 AM_V
=$AM_DEFAULT_VERBOSITY
31020 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
31024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
31025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
31026 # is not polluted with repeated "-I."
31027 am__isrc
=' -I$(srcdir)'
31028 # test to see if srcdir already configured
31029 if test -f $srcdir/config.status
; then
31030 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
31034 # test whether we have cygpath
31035 if test -z "$CYGPATH_W"; then
31036 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
31037 CYGPATH_W
='cygpath -w'
31044 # Define the identity of the package.
31046 VERSION
='UNUSED-VERSION'
31049 # Some tools Automake needs.
31051 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
31054 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
31057 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
31060 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
31063 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
31065 # For better backward compatibility. To be removed once Automake 1.9.x
31066 # dies out for good. For more background, see:
31067 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
31068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
31069 mkdir_p
='$(MKDIR_P)'
31071 # We need awk for the "check" target (and possibly the TAP driver). The
31072 # system "awk" is bad on some platforms.
31073 # Always define AMTAR for backward compatibility. Yes, it's still used
31074 # in the wild :-( We should find a proper way to deprecate it ...
31075 AMTAR
='$${TAR-tar}'
31078 # We'll loop over all known methods to create a tar archive until one works.
31079 _am_tools
='gnutar pax cpio none'
31081 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
31087 depcc
="$CC" am_compiler_list
=
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
31090 $as_echo_n "checking dependency style of $depcc... " >&6; }
31091 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
31092 $as_echo_n "(cached) " >&6
31094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31095 # We make a subdir and do the tests there. Otherwise we can end up
31096 # making bogus files that we don't know about and never remove. For
31097 # instance it was reported that on HP-UX the gcc test will end up
31098 # making a dummy file named 'D' -- because '-MD' means "put the output
31100 rm -rf conftest.dir
31102 # Copy depcomp to subdir because otherwise we won't find it if we're
31103 # using a relative directory.
31104 cp "$am_depcomp" conftest.dir
31106 # We will build objects and dependencies in a subdirectory because
31107 # it helps to detect inapplicable dependency modes. For instance
31108 # both Tru64's cc and ICC support -MD to output dependencies as a
31109 # side effect of compilation, but ICC will put the dependencies in
31110 # the current directory while Tru64 will put them in the object
31114 am_cv_CC_dependencies_compiler_type
=none
31115 if test "$am_compiler_list" = ""; then
31116 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31118 am__universal
=false
31119 case " $depcc " in #(
31120 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
31123 for depmode
in $am_compiler_list; do
31124 # Setup a source with many dependencies, because some compilers
31125 # like to wrap large dependency lists on column 80 (with \), and
31126 # we should not choose a depcomp mode which is confused by this.
31128 # We need to recreate these files for each test, as the compiler may
31129 # overwrite some of them when testing with obscure command lines.
31130 # This happens at least with the AIX C compiler.
31132 for i
in 1 2 3 4 5 6; do
31133 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
31134 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
31135 # Solaris 10 /bin/sh.
31136 echo '/* dummy */' > sub
/conftst
$i.h
31138 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31140 # We check with '-c' and '-o' for the sake of the "dashmstdout"
31141 # mode. It turns out that the SunPro C++ compiler does not properly
31142 # handle '-M -o', and we need to detect this. Also, some Intel
31143 # versions had trouble with output in subdirs.
31144 am__obj
=sub
/conftest.
${OBJEXT-o}
31145 am__minus_obj
="-o $am__obj"
31148 # This depmode causes a compiler race in universal mode.
31149 test "$am__universal" = false ||
continue
31152 # After this tag, mechanisms are not by side-effect, so they'll
31153 # only be used when explicitly requested.
31154 if test "x$enable_dependency_tracking" = xyes
; then
31160 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
31161 # This compiler won't grok '-c -o', but also, the minuso test has
31162 # not run yet. These depmodes are late enough in the game, and
31163 # so weak that their functioning should not be impacted.
31164 am__obj
=conftest.
${OBJEXT-o}
31169 if depmode
=$depmode \
31170 source=sub
/conftest.c object
=$am__obj \
31171 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
31172 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
31173 >/dev
/null
2>conftest.err
&&
31174 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
31175 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
31176 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
31177 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
31178 # icc doesn't choke on unknown options, it will just issue warnings
31179 # or remarks (even with -Werror). So we grep stderr for any message
31180 # that says an option was ignored or not supported.
31181 # When given -MP, icc 7.0 and 7.1 complain thusly:
31182 # icc: Command line warning: ignoring option '-M'; no argument required
31183 # The diagnosis changed in icc 8.0:
31184 # icc: Command line remark: option '-MP' not supported
31185 if (grep 'ignoring option' conftest.err ||
31186 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
31187 am_cv_CC_dependencies_compiler_type
=$depmode
31194 rm -rf conftest.dir
31196 am_cv_CC_dependencies_compiler_type
=none
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
31201 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
31202 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
31205 test "x$enable_dependency_tracking" != xno \
31206 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
31207 am__fastdepCC_TRUE
=
31208 am__fastdepCC_FALSE
='#'
31210 am__fastdepCC_TRUE
='#'
31211 am__fastdepCC_FALSE
=
31216 # POSIX will say in a future version that running "rm -f" with no argument
31217 # is OK; and we want to be able to make that assumption in our Makefile
31218 # recipes. So use an aggressive probe to check that the usage we want is
31219 # actually supported "in the wild" to an acceptable degree.
31220 # See automake bug#10828.
31221 # To make any issue more visible, cause the running configure to be aborted
31222 # by default if the 'rm' program in use doesn't match our expectations; the
31223 # user can still override this though.
31224 if rm -f && rm -fr && rm -rf; then : OK
; else
31228 Your 'rm' program seems unable to run without file operands specified
31229 on the command line, even when the '-f' option is present. This is contrary
31230 to the behaviour of most rm programs out there, and not conforming with
31231 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
31233 Please tell bug-automake@gnu.org about your system, including the value
31234 of your $PATH and any error possibly output before this message. This
31235 can help us improve future automake versions.
31238 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
31239 echo 'Configuration will proceed anyway, since you have set the' >&2
31240 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
31244 Aborting the configuration process, to ensure you take notice of the issue.
31246 You can download and install GNU coreutils to get an 'rm' implementation
31247 that behaves properly: <http://www.gnu.org/software/coreutils/>.
31249 If you want to complete the configuration process using your problematic
31250 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
31251 to "yes", and re-run configure.
31254 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
31259 # Check whether --enable-silent-rules was given.
31260 if test "${enable_silent_rules+set}" = set; then :
31261 enableval
=$enable_silent_rules;
31264 case $enable_silent_rules in # (((
31265 yes) AM_DEFAULT_VERBOSITY
=0;;
31266 no
) AM_DEFAULT_VERBOSITY
=1;;
31267 *) AM_DEFAULT_VERBOSITY
=0;;
31269 am_make
=${MAKE-make}
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
31271 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
31272 if ${am_cv_make_support_nested_variables+:} false
; then :
31273 $as_echo_n "(cached) " >&6
31275 if $as_echo 'TRUE=$(BAR$(V))
31281 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
31282 am_cv_make_support_nested_variables
=yes
31284 am_cv_make_support_nested_variables
=no
31287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
31288 $as_echo "$am_cv_make_support_nested_variables" >&6; }
31289 if test $am_cv_make_support_nested_variables = yes; then
31291 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
31293 AM_V
=$AM_DEFAULT_VERBOSITY
31294 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
31299 # --------------------- #
31300 # Checks for programs. #
31301 # --------------------- #
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
31305 $as_echo_n "checking whether ln -s works... " >&6; }
31307 if test "$LN_S" = "ln -s"; then
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31309 $as_echo "yes" >&6; }
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
31312 $as_echo "no, using $LN_S" >&6; }
31315 if test -n "$ac_tool_prefix"; then
31316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31319 $as_echo_n "checking for $ac_word... " >&6; }
31320 if ${ac_cv_prog_RANLIB+:} false; then :
31321 $as_echo_n "(cached) " >&6
31323 if test -n "$RANLIB"; then
31324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31327 for as_dir in $PATH
31330 test -z "$as_dir" && as_dir=.
31331 for ac_exec_ext in '' $ac_executable_extensions; do
31332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31333 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31343 RANLIB=$ac_cv_prog_RANLIB
31344 if test -n "$RANLIB"; then
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31346 $as_echo "$RANLIB" >&6; }
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31349 $as_echo "no" >&6; }
31354 if test -z "$ac_cv_prog_RANLIB"; then
31355 ac_ct_RANLIB=$RANLIB
31356 # Extract the first word of "ranlib", so it can be a program name with args.
31357 set dummy ranlib; ac_word=$2
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31359 $as_echo_n "checking for $ac_word... " >&6; }
31360 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31361 $as_echo_n "(cached) " >&6
31363 if test -n "$ac_ct_RANLIB"; then
31364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31367 for as_dir in $PATH
31370 test -z "$as_dir" && as_dir=.
31371 for ac_exec_ext in '' $ac_executable_extensions; do
31372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31373 ac_cv_prog_ac_ct_RANLIB="ranlib"
31374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31384 if test -n "$ac_ct_RANLIB"; then
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31386 $as_echo "$ac_ct_RANLIB" >&6; }
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31389 $as_echo "no" >&6; }
31392 if test "x$ac_ct_RANLIB" = x; then
31395 case $cross_compiling:$ac_tool_warned in
31397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31399 ac_tool_warned=yes ;;
31401 RANLIB=$ac_ct_RANLIB
31404 RANLIB="$ac_cv_prog_RANLIB"
31408 if test -n "$ac_tool_prefix"; then
31409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
31410 set dummy ${ac_tool_prefix}ar; ac_word=$2
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31412 $as_echo_n "checking for $ac_word... " >&6; }
31413 if ${ac_cv_prog_AR+:} false; then :
31414 $as_echo_n "(cached) " >&6
31416 if test -n "$AR"; then
31417 ac_cv_prog_AR="$AR" # Let the user override the test.
31419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31420 for as_dir in $PATH
31423 test -z "$as_dir" && as_dir=.
31424 for ac_exec_ext in '' $ac_executable_extensions; do
31425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31426 ac_cv_prog_AR="${ac_tool_prefix}ar"
31427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31437 if test -n "$AR"; then
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31439 $as_echo "$AR" >&6; }
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31442 $as_echo "no" >&6; }
31447 if test -z "$ac_cv_prog_AR"; then
31449 # Extract the first word of "ar", so it can be a program name with args.
31450 set dummy ar; ac_word=$2
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31452 $as_echo_n "checking for $ac_word... " >&6; }
31453 if ${ac_cv_prog_ac_ct_AR+:} false; then :
31454 $as_echo_n "(cached) " >&6
31456 if test -n "$ac_ct_AR"; then
31457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
31459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31460 for as_dir in $PATH
31463 test -z "$as_dir" && as_dir=.
31464 for ac_exec_ext in '' $ac_executable_extensions; do
31465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31466 ac_cv_prog_ac_ct_AR="ar"
31467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31476 ac_ct_AR=$ac_cv_prog_ac_ct_AR
31477 if test -n "$ac_ct_AR"; then
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
31479 $as_echo "$ac_ct_AR" >&6; }
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31482 $as_echo "no" >&6; }
31485 if test "x$ac_ct_AR" = x; then
31488 case $cross_compiling:$ac_tool_warned in
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31492 ac_tool_warned=yes ;;
31497 AR="$ac_cv_prog_AR"
31501 # ---------------------- #
31502 # Checks for libraries. #
31503 # ---------------------- #
31505 ac_config_files="$ac_config_files Makefile.gnulib.inc"
31508 ac_config_files="$ac_config_files Makefile import/Makefile"
31510 ac_config_commands="$ac_config_commands default"
31512 cat >confcache <<\_ACEOF
31513 # This file is a shell script that caches the results of configure
31514 # tests run on this system so they can be shared between configure
31515 # scripts and configure runs, see configure's option
--config-cache.
31516 # It is not useful on other systems. If it contains results you don't
31517 # want to keep, you may remove or edit it.
31519 # config.status only pays attention to the cache file if you give it
31520 # the --recheck option to rerun configure.
31522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31524 # following values.
31528 # The following way of writing the cache mishandles newlines in values,
31529 # but we know of no workaround that is simple, portable, and efficient.
31530 # So, we kill variables containing newlines.
31531 # Ultrix sh set writes to stderr and can't be redirected directly,
31532 # and sets the high bit in the cache file unless we assign to the vars.
31534 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31535 eval ac_val
=\$
$ac_var
31539 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31543 _ | IFS | as_nl
) ;; #(
31544 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31545 *) { eval $ac_var=; unset $ac_var;} ;;
31551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31552 *${as_nl}ac_space
=\
*)
31553 # `set' does not quote correctly, so add quotes: double-quote
31554 # substitution turns \\\\ into \\, and sed turns \\ into \.
31557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31560 # `set' quotes correctly as required by POSIX, so do not add quotes.
31561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31574 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31575 if test -w "$cache_file"; then
31576 if test "x$cache_file" != "x/dev/null"; then
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31578 $as_echo "$as_me: updating cache $cache_file" >&6;}
31579 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31580 cat confcache
>"$cache_file"
31582 case $cache_file in #(
31584 mv -f confcache
"$cache_file"$$
&&
31585 mv -f "$cache_file"$$
"$cache_file" ;; #(
31587 mv -f confcache
"$cache_file" ;;
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31593 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31598 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31599 # Let make expand exec_prefix.
31600 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31602 DEFS
=-DHAVE_CONFIG_H
31606 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31607 # 1. Remove the extension, and $U if already installed.
31608 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31609 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31611 # will be set to the directory where LIBOBJS objects are built.
31612 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31613 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31615 LIBOBJS
=$ac_libobjs
31617 LTLIBOBJS
=$ac_ltlibobjs
31620 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31621 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
31622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31624 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
31625 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
31626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31628 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
31629 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
31630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31632 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
31633 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
31634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31636 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
31637 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
31638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31640 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31641 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31644 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31645 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31648 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31649 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31652 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31653 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31656 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31657 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31660 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31661 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31664 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
31665 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
31666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31670 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31671 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31674 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
31675 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
31676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31678 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
31679 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
31680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31682 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
31683 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
31684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31686 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31687 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31693 if test -n "$gl_LIBOBJS"; then
31694 # Remove the extension.
31695 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31696 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31697 gl_libobjs
="$gl_libobjs $i.$ac_objext"
31698 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
31701 gl_LIBOBJS
=$gl_libobjs
31703 gl_LTLIBOBJS
=$gl_ltlibobjs
31709 if test -n "$gltests_LIBOBJS"; then
31710 # Remove the extension.
31711 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31712 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31713 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
31714 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
31717 gltests_LIBOBJS
=$gltests_libobjs
31719 gltests_LTLIBOBJS
=$gltests_ltlibobjs
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31723 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31724 if test -n "$am_sleep_pid"; then
31725 # Hide warnings about reused PIDs.
31726 wait $am_sleep_pid 2>/dev
/null
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31729 $as_echo "done" >&6; }
31730 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31731 as_fn_error $?
"conditional \"AMDEP\" was never defined.
31732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31734 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31735 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
31736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31738 if test -n "$EXEEXT"; then
31740 am__EXEEXT_FALSE
='#'
31742 am__EXEEXT_TRUE
='#'
31747 : "${CONFIG_STATUS=./config.status}"
31749 ac_clean_files_save
=$ac_clean_files
31750 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31752 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31754 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31756 # Generated by $as_me.
31757 # Run this file to recreate the current configuration.
31758 # Compiler output produced by configure, useful for debugging
31759 # configure, is in config.log if it exists.
31762 ac_cs_recheck=false
31765 SHELL=\${CONFIG_SHELL-$SHELL}
31768 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31769 ## -------------------- ##
31770 ## M4sh Initialization. ##
31771 ## -------------------- ##
31773 # Be more Bourne compatible
31774 DUALCASE
=1; export DUALCASE
# for MKS sh
31775 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31779 # is contrary to our usage. Disable this feature.
31780 alias -g '${1+"$@"}'='"$@"'
31781 setopt NO_GLOB_SUBST
31783 case `(set -o) 2>/dev/null` in #(
31795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31796 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31799 # Prefer a ksh shell builtin over an external printf program on Solaris,
31800 # but without wasting forks for bash or zsh.
31801 if test -z "$BASH_VERSION$ZSH_VERSION" \
31802 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31803 as_echo='print
-r --'
31804 as_echo_n='print
-rn --'
31805 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31806 as_echo='printf %s
\n'
31807 as_echo_n='printf %s
'
31809 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31810 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31811 as_echo_n='/usr
/ucb
/echo -n'
31813 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31814 as_echo_n_body='eval
31818 expr "X$arg" : "X\\(.*\\)$as_nl";
31819 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31821 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31823 export as_echo_n_body
31824 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31826 export as_echo_body
31827 as_echo='sh
-c $as_echo_body as_echo
'
31830 # The user is always right.
31831 if test "${PATH_SEPARATOR+set}" != set; then
31833 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31834 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31841 # We need space, tab and new line, in precisely that order. Quoting is
31842 # there to prevent editors from complaining about space-tab.
31843 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31844 # splitting by setting IFS to empty value.)
31847 # Find who we are. Look in the path if we contain no directory separator.
31850 *[\\/]* ) as_myself=$0 ;;
31851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31852 for as_dir in $PATH
31855 test -z "$as_dir" && as_dir=.
31856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31862 # We did not find ourselves, most probably we were run as `sh COMMAND'
31863 # in which case we are not to be found in the path.
31864 if test "x$as_myself" = x
; then
31867 if test ! -f "$as_myself"; then
31868 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31872 # Unset variables that we do not need and which cause bugs (e.g. in
31873 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31874 # suppresses any "Segmentation fault" message there. '((' could
31875 # trigger a bug in pdksh 5.2.14.
31876 for as_var
in BASH_ENV ENV MAIL MAILPATH
31877 do eval test x\
${$as_var+set} = xset \
31878 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31891 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31894 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31895 # ----------------------------------------
31896 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31897 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31898 # script with STATUS, using 1 if that was 0.
31901 as_status
=$1; test $as_status -eq 0 && as_status
=1
31903 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31904 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31906 $as_echo "$as_me: error: $2" >&2
31907 as_fn_exit
$as_status
31911 # as_fn_set_status STATUS
31912 # -----------------------
31913 # Set $? to STATUS, without forking.
31914 as_fn_set_status
()
31917 } # as_fn_set_status
31919 # as_fn_exit STATUS
31920 # -----------------
31921 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31925 as_fn_set_status
$1
31931 # Portably unset VAR.
31934 { eval $1=; unset $1;}
31936 as_unset
=as_fn_unset
31937 # as_fn_append VAR VALUE
31938 # ----------------------
31939 # Append the text in VALUE to the end of the definition contained in VAR. Take
31940 # advantage of any shell optimizations that allow amortized linear growth over
31941 # repeated appends, instead of the typical quadratic growth present in naive
31943 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31944 eval 'as_fn_append ()
31955 # as_fn_arith ARG...
31956 # ------------------
31957 # Perform arithmetic evaluation on the ARGs, and store the result in the
31958 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31959 # must be portable across $(()) and expr.
31960 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31961 eval 'as_fn_arith ()
31968 as_val
=`expr "$@" || test $? -eq 1`
31973 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31974 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31980 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31981 as_basename
=basename
31986 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31992 as_me
=`$as_basename -- "$0" ||
31993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31994 X"$0" : 'X\(//\)$' \| \
31995 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31997 sed '/^.*\/\([^/][^/]*\)\/*$/{
32011 # Avoid depending upon Character Ranges.
32012 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32013 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32014 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32015 as_cr_digits
='0123456789'
32016 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32018 ECHO_C
= ECHO_N
= ECHO_T
=
32019 case `echo -n x` in #(((((
32021 case `echo 'xy\c'` in
32022 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32024 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32031 rm -f conf$$ conf$$.exe conf$$.
file
32032 if test -d conf$$.dir
; then
32033 rm -f conf$$.dir
/conf$$.
file
32036 mkdir conf$$.dir
2>/dev
/null
32038 if (echo >conf$$.
file) 2>/dev
/null
; then
32039 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32041 # ... but there are two gotchas:
32042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32044 # In both cases, we have to default to `cp -pR'.
32045 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32047 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32055 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32056 rmdir conf$$.dir
2>/dev
/null
32061 # Create "$as_dir" as a directory, including parents if necessary.
32066 -*) as_dir
=.
/$as_dir;;
32068 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32072 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32073 *) as_qdir
=$as_dir;;
32075 as_dirs
="'$as_qdir' $as_dirs"
32076 as_dir
=`$as_dirname -- "$as_dir" ||
32077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32078 X"$as_dir" : 'X\(//\)[^/]' \| \
32079 X"$as_dir" : 'X\(//\)$' \| \
32080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32081 $as_echo X"$as_dir" |
32082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32086 /^X\(\/\/\)[^/].*/{
32099 test -d "$as_dir" && break
32101 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32102 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32106 if mkdir
-p .
2>/dev
/null
; then
32107 as_mkdir_p
='mkdir -p "$as_dir"'
32109 test -d .
/-p && rmdir .
/-p
32114 # as_fn_executable_p FILE
32115 # -----------------------
32116 # Test if FILE is an executable regular file.
32117 as_fn_executable_p
()
32119 test -f "$1" && test -x "$1"
32120 } # as_fn_executable_p
32121 as_test_x
='test -x'
32122 as_executable_p
=as_fn_executable_p
32124 # Sed expression to map a string onto a valid CPP name.
32125 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32127 # Sed expression to map a string onto a valid variable name.
32128 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32132 ## ----------------------------------- ##
32133 ## Main body of $CONFIG_STATUS script. ##
32134 ## ----------------------------------- ##
32136 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32139 # Save the log message, to keep $0 and so on meaningful, and to
32140 # report actual input values of CONFIG_FILES etc. instead of their
32141 # values after options handling.
32143 This file was extended by libgnu $as_me UNUSED-VERSION, which was
32144 generated by GNU Autoconf 2.69. Invocation command line was
32146 CONFIG_FILES = $CONFIG_FILES
32147 CONFIG_HEADERS = $CONFIG_HEADERS
32148 CONFIG_LINKS = $CONFIG_LINKS
32149 CONFIG_COMMANDS = $CONFIG_COMMANDS
32152 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32157 case $ac_config_files in *"
32158 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32161 case $ac_config_headers in *"
32162 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32167 # Files that config.status was made for.
32168 config_files="$ac_config_files"
32169 config_headers="$ac_config_headers"
32170 config_commands="$ac_config_commands"
32174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32176 \`$as_me' instantiates files and other configuration actions
32177 from templates according to the current configuration. Unless the files
32178 and actions are specified as TAGs, all are instantiated by default.
32180 Usage: $0 [OPTION]... [TAG]...
32182 -h, --help print this help, then exit
32183 -V, --version print version number and configuration settings, then exit
32184 --config print configuration, then exit
32185 -q, --quiet, --silent
32186 do not print progress messages
32187 -d, --debug don't remove temporary files
32188 --recheck update $as_me by reconfiguring in the same conditions
32189 --file=FILE[:TEMPLATE]
32190 instantiate the configuration file FILE
32191 --header=FILE[:TEMPLATE]
32192 instantiate the configuration header FILE
32194 Configuration files:
32197 Configuration headers:
32200 Configuration commands:
32203 Report bugs to the package provider."
32206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32207 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32209 libgnu config.status UNUSED-VERSION
32210 configured by $0, generated by GNU Autoconf 2.69,
32211 with options \\"\$ac_cs_config\\"
32213 Copyright (C) 2012 Free Software Foundation, Inc.
32214 This config.status script is free software; the Free Software Foundation
32215 gives unlimited permission to copy, distribute and modify it."
32222 test -n "\$AWK" || AWK=awk
32225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32226 # The default lists apply if the user does not specify any file.
32232 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32233 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32237 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32249 # Handling of the options.
32250 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32252 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32253 $as_echo "$ac_cs_version"; exit ;;
32254 --config |
--confi |
--conf |
--con |
--co |
--c )
32255 $as_echo "$ac_cs_config"; exit ;;
32256 --debug |
--debu |
--deb |
--de |
--d |
-d )
32258 --file |
--fil |
--fi |
--f )
32261 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32262 '') as_fn_error $?
"missing file argument" ;;
32264 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32265 ac_need_defaults
=false
;;
32266 --header |
--heade |
--head |
--hea )
32269 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32271 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32272 ac_need_defaults
=false
;;
32274 # Conflict between --help and --header
32275 as_fn_error $?
"ambiguous option: \`$1'
32276 Try \`$0 --help' for more information.";;
32277 --help |
--hel |
-h )
32278 $as_echo "$ac_cs_usage"; exit ;;
32279 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32280 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32283 # This is an error.
32284 -*) as_fn_error $?
"unrecognized option: \`$1'
32285 Try \`$0 --help' for more information." ;;
32287 *) as_fn_append ac_config_targets
" $1"
32288 ac_need_defaults
=false
;;
32294 ac_configure_extra_args
=
32296 if $ac_cs_silent; then
32298 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32303 if \$ac_cs_recheck; then
32304 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32307 CONFIG_SHELL='$SHELL'
32308 export CONFIG_SHELL
32313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32318 ## Running $as_me. ##
32324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32328 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32334 # Handling of arguments.
32335 for ac_config_target
in $ac_config_targets
32337 case $ac_config_target in
32338 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
32339 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
32340 "Makefile.gnulib.inc") CONFIG_FILES
="$CONFIG_FILES Makefile.gnulib.inc" ;;
32341 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32342 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
32343 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32345 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32350 # If the user did not use the arguments to specify the items to instantiate,
32351 # then the envvar interface is used. Set only those that are not.
32352 # We use the long form for the default assignment because of an extremely
32353 # bizarre bug on SunOS 4.1.3.
32354 if $ac_need_defaults; then
32355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32360 # Have a temporary directory for convenience. Make it in the build tree
32361 # simply because there is no reason against having it here, and in addition,
32362 # creating and moving files from /tmp can sometimes cause problems.
32363 # Hook for its removal unless debugging.
32364 # Note that there is a small window in which the directory will not be cleaned:
32365 # after its creation but before its name has been assigned to `$tmp'.
32369 trap 'exit_status=$?
32370 : "${ac_tmp:=$tmp}"
32371 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32373 trap 'as_fn_exit 1' 1 2 13 15
32375 # Create a (secure) tmp directory for tmp files.
32378 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32382 tmp
=.
/conf$$
-$RANDOM
32383 (umask 077 && mkdir
"$tmp")
32384 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32387 # Set up the scripts for CONFIG_FILES section.
32388 # No need to generate them if there are no CONFIG_FILES.
32389 # This happens for instance with `./config.status config.h'.
32390 if test -n "$CONFIG_FILES"; then
32393 ac_cr
=`echo X | tr X '\015'`
32394 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32395 # But we know of no other shell where ac_cr would be empty at this
32396 # point, so we can use a bashism as a fallback.
32397 if test "x$ac_cr" = x
; then
32398 eval ac_cr
=\$
\'\\r
\'
32400 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32401 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32404 ac_cs_awk_cr
=$ac_cr
32407 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32412 echo "cat >conf$$subs.awk <<_ACEOF" &&
32413 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32415 } >conf$$subs.sh ||
32416 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32417 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32419 for ac_last_try in false false false false false :; do
32420 . ./conf$$subs.sh ||
32421 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32423 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32424 if test $ac_delim_n = $ac_delim_num; then
32426 elif $ac_last_try; then
32427 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32429 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32432 rm -f conf$$subs.sh
32434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32435 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32439 s/^/S["/; s
/!.
*/"]=/
32449 s/\(.\{148\}\)..*/\1/
32451 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32456 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32463 s/\(.\{148\}\)..*/\1/
32465 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32469 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32474 ' <conf$$subs.awk | sed '
32479 ' >>$CONFIG_STATUS || ac_write_fail=1
32480 rm -f conf$$subs.awk
32481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32483 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32484 for (key in S) S_is_set[key] = 1
32490 nfields = split(line, field, "@
")
32492 len = length(field[1])
32493 for (i = 2; i < nfields; i++) {
32495 keylen = length(key)
32496 if (S_is_set[key]) {
32498 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32499 len += length(value) + length(field[++i])
32510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32511 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32512 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32515 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32516 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32519 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32520 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32521 # trailing colons and then remove the whole line if VPATH becomes empty
32522 # (actually we leave an empty line to preserve line numbers).
32523 if test "x
$srcdir" = x.; then
32524 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32543 fi # test -n "$CONFIG_FILES"
32545 # Set up the scripts for CONFIG_HEADERS section.
32546 # No need to generate them if there are no CONFIG_HEADERS.
32547 # This happens for instance with `./config.status Makefile'.
32548 if test -n "$CONFIG_HEADERS"; then
32549 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32553 # Transform confdefs.h into an awk script `defines.awk', embedded as
32554 # here-document in config.status, that substitutes the proper values into
32555 # config.h.in to produce config.h.
32557 # Create a delimiter string that does not exist in confdefs.h, to ease
32558 # handling of long lines.
32560 for ac_last_try in false false :; do
32561 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32562 if test -z "$ac_tt"; then
32564 elif $ac_last_try; then
32565 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32567 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32571 # For the awk script, D is an array of macro values keyed by name,
32572 # likewise P contains macro parameters if any. Preserve backslash
32573 # newline sequences.
32575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32577 s/.\{148\}/&'"$ac_delim"'/g
32580 s/^[ ]*#[ ]*define[ ][ ]*/ /
32587 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32589 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32594 D["\
1"]=" \
3\\\\\\n
"\\/p
32596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32601 s/.\{148\}/&'"$ac_delim"'/g
32606 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32609 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32611 ' <confdefs.h | sed '
32612 s/'"$ac_delim"'/"\\\
32613 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32616 for (key in D) D_is_set[key] = 1
32619 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32621 split(line, arg, " ")
32622 if (arg[1] == "#") {
32626 defundef
= substr
(arg
[1], 2)
32629 split(mac1
, mac2
, "(") #)
32631 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32632 if (D_is_set
[macro
]) {
32633 # Preserve the white space surrounding the "#".
32634 print prefix
"define", macro P
[macro
] D
[macro
]
32637 # Replace #undef with comments. This is necessary, for example,
32638 # in the case of _POSIX_SOURCE, which is predefined and required
32639 # on some systems where configure will not decide to define it.
32640 if (defundef
== "undef") {
32641 print
"/*", prefix defundef
, macro
, "*/"
32649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32650 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32651 fi # test -n "$CONFIG_HEADERS"
32654 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32659 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32661 case $ac_mode$ac_tag in
32663 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32664 :[FH
]-) ac_tag
=-:-;;
32665 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32682 -) ac_f
="$ac_tmp/stdin";;
32683 *) # Look for the file first in the build tree, then in the source tree
32684 # (if the path is not absolute). The absolute path cannot be DOS-style,
32685 # because $ac_f cannot contain `:'.
32689 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32691 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32693 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32694 as_fn_append ac_file_inputs
" '$ac_f'"
32697 # Let's still pretend it is `configure' which instantiates (i.e., don't
32698 # use $as_me), people would be surprised to read:
32699 # /* config.h. Generated by config.status. */
32700 configure_input
='Generated from '`
32701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32703 if test x
"$ac_file" != x-
; then
32704 configure_input
="$ac_file. $configure_input"
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32706 $as_echo "$as_me: creating $ac_file" >&6;}
32708 # Neutralize special characters interpreted by sed in replacement strings.
32709 case $configure_input in #(
32710 *\
&* |
*\|
* |
*\\* )
32711 ac_sed_conf_input
=`$as_echo "$configure_input" |
32712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32713 *) ac_sed_conf_input
=$configure_input;;
32717 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32718 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32723 ac_dir
=`$as_dirname -- "$ac_file" ||
32724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32725 X"$ac_file" : 'X\(//\)[^/]' \| \
32726 X"$ac_file" : 'X\(//\)$' \| \
32727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32728 $as_echo X"$ac_file" |
32729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32733 /^X\(\/\/\)[^/].*/{
32746 as_dir
="$ac_dir"; as_fn_mkdir_p
32750 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32752 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32753 # A ".." for each directory in $ac_dir_suffix.
32754 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32755 case $ac_top_builddir_sub in
32756 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32757 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32760 ac_abs_top_builddir
=$ac_pwd
32761 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32762 # for backward compatibility:
32763 ac_top_builddir
=$ac_top_build_prefix
32766 .
) # We are building in place.
32768 ac_top_srcdir
=$ac_top_builddir_sub
32769 ac_abs_top_srcdir
=$ac_pwd ;;
32770 [\\/]* | ?
:[\\/]* ) # Absolute name.
32771 ac_srcdir
=$srcdir$ac_dir_suffix;
32772 ac_top_srcdir
=$srcdir
32773 ac_abs_top_srcdir
=$srcdir ;;
32774 *) # Relative name.
32775 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32776 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32777 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32779 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32789 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32790 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32792 ac_MKDIR_P
=$MKDIR_P
32794 [\\/$
]* | ?
:[\\/]* ) ;;
32795 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32800 # If the template does not know about datarootdir, expand it.
32801 # FIXME: This hack should be removed a few years after 2.60.
32802 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32813 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32814 *datarootdir
*) ac_datarootdir_seen
=yes;;
32815 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32817 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32820 ac_datarootdir_hack='
32821 s&@datadir@&$datadir&g
32822 s&@docdir@&$docdir&g
32823 s&@infodir@&$infodir&g
32824 s&@localedir@&$localedir&g
32825 s&@mandir@&$mandir&g
32826 s&\\\${datarootdir}&$datarootdir&g' ;;
32830 # Neutralize VPATH when `$srcdir' = `.'.
32831 # Shell code in configure.ac might set extrasub.
32832 # FIXME: do we really want to maintain this feature?
32833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32834 ac_sed_extra="$ac_vpsub
32837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32839 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32840 s|@configure_input@|
$ac_sed_conf_input|
;t t
32841 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32842 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32843 s
&@srcdir@
&$ac_srcdir&;t t
32844 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32845 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32846 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32847 s
&@builddir@
&$ac_builddir&;t t
32848 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32849 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32850 s
&@INSTALL@
&$ac_INSTALL&;t t
32851 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32852 $ac_datarootdir_hack
32854 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
32855 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32857 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32858 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32860 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32862 which seems to be undefined. Please make sure it is defined" >&5
32863 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32864 which seems to be undefined. Please make sure it is defined" >&2;}
32866 rm -f "$ac_tmp/stdin"
32868 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32869 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32877 if test x"$ac_file" != x-; then
32879 $as_echo "/* $configure_input */" \
32880 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32881 } >"$ac_tmp/config.h" \
32882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32883 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32884 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32885 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32888 mv "$ac_tmp/config.h" "$ac_file" \
32889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32892 $as_echo "/* $configure_input */" \
32893 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32894 || as_fn_error $? "could not create -" "$LINENO" 5
32896 # Compute "$ac_file"'s index
in $config_headers.
32899 for _am_header
in $config_headers :; do
32900 case $_am_header in
32901 $_am_arg |
$_am_arg:* )
32904 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
32907 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32908 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32909 X"$_am_arg" : 'X\(//\)[^/]' \| \
32910 X"$_am_arg" : 'X\(//\)$' \| \
32911 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32912 $as_echo X"$_am_arg" |
32913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32917 /^X\(\/\/\)[^/].*/{
32929 s/.*/./; q'`/stamp-h
$_am_stamp_count
32932 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32933 $as_echo "$as_me: executing $ac_file commands" >&6;}
32938 case $ac_file$ac_mode in
32939 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
32940 # Older Autoconf quotes --file arguments for eval, but not when files
32941 # are listed without --file. Let's play safe and only enable the eval
32942 # if we detect the quoting.
32943 case $CONFIG_FILES in
32944 *\'*) eval set x
"$CONFIG_FILES" ;;
32945 *) set x
$CONFIG_FILES ;;
32950 # Strip MF so we end up with the name of the file.
32951 mf
=`echo "$mf" | sed -e 's/:.*$//'`
32952 # Check whether this is an Automake generated Makefile or not.
32953 # We used to match only the files named 'Makefile.in', but
32954 # some people rename them; so instead we look at the file content.
32955 # Grep'ing the first line is not enough: some people post-process
32956 # each Makefile.in and add a new line on top of each file to say so.
32957 # Grep'ing the whole file is not good either: AIX grep has a line
32958 # limit of 2048, but all sed's we know have understand at least 4000.
32959 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
32960 dirpart
=`$as_dirname -- "$mf" ||
32961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32962 X"$mf" : 'X\(//\)[^/]' \| \
32963 X"$mf" : 'X\(//\)$' \| \
32964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32970 /^X\(\/\/\)[^/].*/{
32986 # Extract the definition of DEPDIR, am__include, and am__quote
32987 # from the Makefile without running 'make'.
32988 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
32989 test -z "$DEPDIR" && continue
32990 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
32991 test -z "$am__include" && continue
32992 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
32993 # Find all dependency output files, they are included files with
32994 # $(DEPDIR) in their names. We invoke sed twice because it is the
32995 # simplest approach to changing $(DEPDIR) to its actual value in the
32997 for file in `sed -n "
32998 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32999 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
33000 # Make sure the directory exists.
33001 test -f "$dirpart/$file" && continue
33002 fdir
=`$as_dirname -- "$file" ||
33003 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33004 X"$file" : 'X\(//\)[^/]' \| \
33005 X"$file" : 'X\(//\)$' \| \
33006 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33007 $as_echo X"$file" |
33008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33012 /^X\(\/\/\)[^/].*/{
33025 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
33026 # echo "creating $dirpart/$file"
33027 echo '# dummy' > "$dirpart/$file"
33033 case x
$CONFIG_HEADERS in
33034 xconfig.h
:config.
in)
33045 ac_clean_files
=$ac_clean_files_save
33047 test $ac_write_fail = 0 ||
33048 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
33051 # configure is writing to config.log, and then calls config.status.
33052 # config.status does its own redirection, appending to config.log.
33053 # Unfortunately, on DOS this fails, as config.log is still kept open
33054 # by configure, so config.status won't be able to write to it; its
33055 # output is simply discarded. So we exec the FD to /dev/null,
33056 # effectively closing config.log, so it can be properly (re)opened and
33057 # appended to by config.status. When coming back to configure, we
33058 # need to make the FD available again.
33059 if test "$no_create" != yes; then
33061 ac_config_status_args
=
33062 test "$silent" = yes &&
33063 ac_config_status_args
="$ac_config_status_args --quiet"
33065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33068 # would make configure fail if this is the last instruction.
33069 $ac_cs_success || as_fn_exit
1
33071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33073 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}